主题 : 求助一下 arm下linux启动参数linux_cmd_line的问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 39308
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
综合积分: 18 分
注册时间: 2011-03-08
最后登录: 2012-05-22
楼主  发表于: 2011-03-08 02:45

 求助一下 arm下linux启动参数linux_cmd_line的问题

我在2440下移入了2.6.37.1
bootloader是vivi bootloader里面的启动参数是nfs挂载相关的参数
内核里面是noinitrd root=/dev/mtdblock3 init=/linuxrc 之类的
但是每次启动总是从内核里面的参数启动
menuconfig里面的Always use the default kernel command string 没选
Initial RAM filesystem and RAM disk (initramfs/initrd) support 也没选 (这项有哪位大侠解释一下作用)
是不是还要勾选哪项 或是去掉哪项 望大侠们解答

Copy linux kernel from 0x00060000 to 0x30008000, size = 0x00500000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
/****************  VIVI的启动参数 ************************/
linux command line is: "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.1:/home/
rootfs ip=192.168.1.230:192.168.1.1:192.168.1.1:255.255.255.0::eth0:off"MACH_TYPE = 1999
NOW, Booting Linux......
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 2.6.37.1-holiday (root@localhost.localdomain) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #22 Mon Mar 7 07:13:53 CST 2011
[ 0.000000] CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: my 2440
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] CPU S3C2440A (id 0x32440001)
[ 0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics
[ 0.000000] S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625MHz
[ 0.000000] CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064
/*********************     这里就自动切换成内核里默认的了   费解啊~~~~~~     *****************************/
[ 0.000000] Kernel command line: noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0
[ 0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[ 0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)

我还有另外一个可以启动vivi中参数的内核 不一样的地方已经标出来了

Copy linux kernel from 0x00060000 to 0x30008000, size = 0x00500000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
/*********************************            look at here         ******************************************/
linux command line is: "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.1:/home/
rootfs ip=192.168.1.230:192.168.1.1:192.168.1.1:255.255.255.0::eth0:off"MACH_TYPE = 1999
NOW, Booting Linux......
Uncompressing Linux................................................................................................................................................................. done,
booting the kernel.
Linux version 2.6.32.2-FriendlyARM (root@localhost.localdomain) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #27 Sun Mar 6 09:42:39 CST 2011
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: FriendlyARM Mini2440 development board
/***********************   这条信息是2.6.37.1中没有的         ************************/
ATAG_INITRD is deprecated; please update your bootloader.

Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
/***********************   这条信息与2.6.37.1中的不一样         ************************/
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256

/*********************************            look at here         ******************************************/
Kernel command line: console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.1:/home/rootfs ip=192.168.1.230:192.168.1.1:192.168.1.1:255.255.255.0::eth0:off
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

哪位大侠看看问题出在哪啊 多谢
^很多问题的背后都是简单的原因......
级别: 荣誉会员
UID: 34780
精华: 0
发帖: 1219
金钱: 6230 两
威望: 1246 点
综合积分: 2438 分
注册时间: 2010-12-21
最后登录: 2017-09-18
1楼  发表于: 2011-03-08 10:42
make menuconfig
选择Kernel Features --> Provide old way to pass kernel parameters
级别: 新手上路
UID: 39308
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
综合积分: 18 分
注册时间: 2011-03-08
最后登录: 2012-05-22
2楼  发表于: 2011-03-08 13:20
果然~
那 Initial RAM filesystem and RAM disk (initramfs/initrd) support  这项是干什么用的呢