为了我们的内核支持 devfs
以及在启动时并在/sbin/init
运行之前能自动挂载/dev
为 devfs
文件系统,修改fs/Kconfig
文件
[arm@localhost linux2.6.14]$ vi fs/Kconfig
找到menu "Pseudo filesystems"
添加如下语句:
config DEVFS_FS
bool "/dev file system support (OBSOLETE)"
default y
config DEVFS_MOUNT
bool "Automatically mount at boot"
default y
depends on DEVFS_FS
[arm@localhost linux2.6.14]$ make menuconfig
在 smdk2410_defconfig
基础上,我所增删的内核配置项如下:
Loadable module support >
[*] Enable loadable module support
[*] Automatic kernel module loading
System Type > [*] S3C2410 DMA support
Boot options > Default kernel command string:
noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115