转载:http://blog.sina.com.cn/s/blog_80fd855d0100yt9z.html
一、initramfs 介绍
最初的想法是Linus提出的: 把cache当作文件系统装载。Uboot> setenv myboard AT91RM9200DK
Uboot> printenv
baudrate=115200
ipaddr=192.168.1.1
ethaddr=12:34:56:78:9A:BC
serverip=192.168.1.5
myboard=AT91RM9200DK
Environment size: 102/8188 bytes
2.下载启动
MINI6410 # tftp c0008000 initramfs.bin
MINI6410 # tftp c0008000 initramfs.bin
dm9000 i/o: 0x18000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:90:90:90:90:90
operating at 100M full duplex mode
TFTP from server 192.168.1.101; our IP address is 192.168.1.230
Filename 'initramfs.bin'.
Load address: 0xc0008000
MINI6410 # bootm c0008000
IP-Config: Complete:
device=eth0, addr=192.168.1.230, mask=255.255.255.0, gw=255.255.255.255,
host=192.168.1.230, domain=, nis-domain=(none)
dm9000 dm9000: eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
,
bootserver=255.255.255.255, rootserver=192.168.1.101, rootpath=
Freeing init memory: 4064K
##############################################################
run initramfs --please input "0"and Enter
mount rootfs on nfs --please input "1"and Enter
"0" is default
##############################################################
0
[InitRamFs@/]#ls
bin etc lib mnt sbin tmp
dev init makedir.sh proc sys usr
[InitRamFs@/]#
PS:.config的配置一定要准确,多钻研下怎么配置
一些问题参考:http://blog.chinaunix.net/uid-20543672-id-129729.html
http://www.360doc.com/content/10/1203/21/1378815_74790077.shtml