mini uclinux系统
by panasonic.lin@163.com
由于uboot对网络的支持很好,于是想实验下uclinux的最小系统,板上只有uboot代码在flash,uclinux的映像通过网络使用tftp下载到内存,然后启动uclinux,uclinux在启动的最后阶段使用nfs挂载根文件系统,根文件系统使用busybox完成init过程,然后启动一个控制台和shell,busybox只编译了几个最基本的应用程序。开发阶段,nfs十分的方便,任何内核,根文件系统的更改都不需要反复的烧写flash,也不需要调试器......
2.1system Type
->Samsung ARM System type
->set flash/sdram size and base addr
->sdram base address 0c000000
->sdram size 00800000
->flash base address 00000000
->flash size 00200000
->RAM kernel executes from
->S3C44B0-MBA44 Board Implementation
2.2 General setup
->networking support
->NWfpe math emulation
->ELF kernel core format
->support uclinux flat format binaries
->compiled-in kernel boot parameter"root=/dev/nfs rw nfsroot=192.168.0.1:/home/panasonic/nfs-root,v3 ip=192.168.0.2:192.168.0.1::255.255.255.0:44b0:eth0:none"
->timer and cpu usage leds
2.6 File systems
->kernel automounter support
->kernel automounter version 4 support
->virtual memory file system support
->/proc file system support
->rom file system support
->second extended fs support
->Network file systems->NFS file system support->provide nfsv3 client support->root file system on NFS
2.7 Character devices
->Samsung s3c44b0x serial ports support
->UART serial console device
->serial drivers->s3c44b0 serial port support->support for console on s3c44b0->115200 default s3c44b0 baudrate
2.8 Library routines
->zlib compression support
3.0exit->do you wish to save your new kernel configuration?->yes
如果刚开始的时候,出现了warning:unable to open an initial console
kernel panic:attempted to kill init!
记得,拷贝romfs根文件系统的时候,不要拷贝uclinux-dist目录下的romfs目录,而是应该将romfs.img挂载到回环设备,拷贝映像里面的内容,romfs目录下的/dev/有很多带@的设备文件,当然用不了拉。