s5pv210的学习之路(21)x210的kernel的NFS的根文件系统编译,使用

本文档介绍了如何在s5pv210上配置和使用NFS根文件系统。步骤包括:通过make menuconfig启用网络支持和NFS文件系统,编辑.config设置启动参数,取消初始RAM文件系统支持,然后编译内核。成功启动后,显示了内核启动信息,并在NFS根文件系统中列出目录。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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]

$cmdline:root=/dev/nfs rw nfsroot=172.16.96.215:/arm-nfs,proto=tcp,nfsvers=3,nolock ip=172.16.96.253:172.16.96.215:172.16.96.1:255.255.254.0::eth0:off console=ttySAC2,115200 init=/linuxrc
[ 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值