2009年2月16日 星期一

TI EVB rootfs and u-Boot

Easy way to get the target filesystem is mount the ramfs and copy all the files as below:
# gunzip ramdisk_omap2evm.gz --> you will get the unzip ramdisk filesystem file
# mkdir tmp_fs --> create one empty directory
# mount -o loop ramdisk_omap2evm tmp_fs --> mount the ramdisk to this file
# mkdir omap2rootfs
# cp -arf tmp_fs/* omap2rootfs --> now you will have all the rootfilesystem

When debug, easy way is use nfs, also you could use nfsroot to bootup as set the bootargs in uboot as (just for example, make sure the filesystem has been export to enable accessed by NFS):
setenv bootargs 'mem=64M console=ttyS0,115200n8 noinitrd root=/dev/nfs rw nfsroot=192.168.1.98:/nfs/nfsroot,nolock,vers=2,rsize=1024,wsize=1024 ip=dhcp mpurate=266'

沒有留言:

張貼留言