构建cf卡linux系统的几个常见难题(Several common problems of Linux system construction of CF card)
构建cf卡linux系统的几个常见难题(Several common problems of Linux system construction of CF card)
Several common problems of Linux system construction of CF card
How to build linux in the CF card, from the Internet can find a lot of articles, such as: Xu Dexin "embedded Linux PC104 platform in the construction and implementation of" and so on. Here I introduce in the construction of the problems CF card in Linux system and solutions. The hardware is: the board is EVOC 104-1621CLDN, AMI BIOS, 0 kernel. The method adopted is Linux from scratch (LFS). The main problems encountered in this process are:
A BIOS setting
Establish the root file system in CF card after grub is installed on the CF card guide program, and then compiled kernel bzImage copy to /boot/, modify the /boot/grub/menu.lst/. In theory, there should be at least grub's menu screen now, but there was an error after the BIOS self-test:
Searching, for, boot, record, from, ide-0.., not, found
Boot failure
Reboot, and, select, proper, boot, device, or, insert, boot, media,, in, selected, boot, device
Then suspected grub is not installed successfully, reinstall the grub
Grub> setup (HD1)
Checking if, "/boot/grub/stage1", exists... Yes
Checking if, "/boot/grub/stage2", exists... Yes
Checking if, "/boot/grub/reiserfs_stage1_5", exists... Yes
Running "embed /boot/grub/reiserfs_stage1_5 (HD1)"... 19, sectors, are, embedded
.
Succeeded
Running "install, /boot/grub/stage1 (HD1) (HD1), 1+19, P (hd1,0), /boot/grub/stage2
/boot/grub/menu.lst succeeded
Done.
The problem still exists, indicating the problem elsewhere. And then enter the BIOS settings, because in the CF card Linux is equivalent to a IDE hard disk, so modify the settings for IDE, found that the problem is PCI / Plug an d Play Setup PCI IDE BusMaster option must be set to Disabled to enter the grub screen.
In the process of starting the kernel, kernel, panic, -not, syncing, vfs:unable, to, mount, root, FS, on, unknown-block (0,0) appear in
The essence of the problem is t