Linux 2.6.32 在Arm9(s3c2440)平台的移植(三)

2014-11-24 03:03:28 · 作者: · 浏览: 14
要devfs支持 )
vi fs/Kconfig,找到menu "Pseudo filesystems"处增加如下:
config DEVFS_FS #config的标识
bool "/dev file system support (OBSOLETE)"
depends on EXPERIMENTAL
help


config DEVFS_MOUNT
bool "Automatically mount at boot"
depends on DEVFS_FS #依赖上面的DEVFS_FS
help


config DEVFS_DEBUG
bool "Debug devfs"
depends on DEVFS_FS #依赖上面的DEVFS_FS
help


重新make menuconfig 在File systems->Pseudo filesystems目录里面可以后到devfs的配置选项如下:


[*] /proc file system support


[*] /dev file system support (OBSOLETE)


[*] Automatically mount at boot


[*] Debug devfs


[*] Virtual memory file system support (former shm fs)


[ ] Relayfs file system support


8


修改内核启动选项, make menuconfig,
这里绝大部分选项都先采用默认设置,待移植成功后我们再进一步裁减, 以上(3)中修改了common-smdk.c, 为了让修改生效, 必须选上


还有启动参数 Boot Options ---> Default kernel command string: (注意, )


noinitrd root=/dev/mtdblock4 console=ttySAC0,115200
解释, 也就是mtdblock3是存放cramfs根文件系统的分区,故设置 root=/dev/mtdblock3. console=ttySAC0指kernel启动期间的信息都输出到串口1上.