A)make menuconfig
(a)*] Networking support —>
Networking options —>
[*] IP: kernel level autoconfiguration
[*] IP: DHCP support
[*] IP: BOOTP support
[*] IP: RARP support
(b)File systems —>
[*] Network File Systems —>
[*] Root file system on NFS
B) vi .config
CONFIG_CMDLINE=”noinitrd mem=512M console=ttySAC2,115200 root=/dev/nfs nfsroot=172.16.96.215:/arm-nfs ip=172.16.96.250:172.16.96.215:172.16.96.215:255.255.254.0::eth0:off”
C)make menuconfig
general setup->
[ ] Initial RAM filesystem and RAM disk (initramfs/initrd) support(取消)
D)
make ;
uboot> tftp 30008000 zImage
uboot> bootm 30008000
结果如下:
Boot with zImage
The input address don’t need a virtual-to-physical translation : 30008000
Starting kernel …
Uncompressing Linux… done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.35.7+ (root@mo-cn-491.int.hrs.com) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #9 PREEMPT Fri Sep 14 17:37:04 CST 2018
[ 0.000000] CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: SMDKV210
[ 0.000000] @@@@@@@ atags_pointer not null
[ 0.000000] @@@@@@@linter#####boot_params:c0000100,mdesc->boot_params:40000002
[ 0.000000] Ignoring unrecognised tag 0x41001099
[ 0.000000]
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] CPU S5PV210/S5PC110 (id 0x43110220)
[ 0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics
[ 0.000000] S5PV210: PLL settings, A=1000000000, M=667000000, E=80000000 V=54000000
[ 0.000000] S5PV210: ARMCLK=1000000000, HCLKM=200000000, HCLKD=166750000
[ 0.000000] HCLKP=133400000, PCLKM=100000000, PCLKD=83375000, PCLKP=66700000
[ 0.000000] sclk_dmc: source is sclk_a2m (0), rate is 200000000
[ 0.000000] sclk_onenand: source is hclk_dsys (1), rate is 166750000
[ 0.000000] sclk: source is mout_mpll (6), rate is 66700000
[ 0.000000] sclk: source is mout_mpll (6), rate is 66700000
[ 0.000000] sclk: source is mout_mpll (6), rate is 66700000
[ 0.000000] sclk: source is mout_mpll (6), rate is 66700000
[ 0.000000] sclk_mixer: source is sclk_dac (0), rate is 54000000
[ 0.000000] sclk_spdif: source is sclk_audio (0), rate is 24000000
[ 0.000000] sclk_fimc: source is ext_xtal (0), rate is 24000000
[ 0.000000] sclk_fimc: source is ext_xtal (0), rate is 24000000
[ 0.00