QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1561|回复: 12

哪位高人给解释一下ARM-LINUX 2.4 内核配置啊?

[复制链接]
发表于 2005-3-10 13:58:24 | 显示全部楼层 |阅读模式
我编译2.4.19后在SKYEYE FOR XSCALE上跑,当运行到把RAMDISK载入后就全是出错信息了
发表于 2005-3-10 16:45:56 | 显示全部楼层
你是如何生成kernel and filesystem?
回复

使用道具 举报

 楼主| 发表于 2005-3-10 16:46:17 | 显示全部楼层
报错信息如下:
...
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 8192 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 16384K
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing init memory: 76K
Unable to handle kernel NULL pointer dereference at virtual address 00000004
mm = c013e920 pgd = c0004000
*pgd = 00000000, *pmd = 00000000
Internal error: Oops: 0
CPU: 0
pc : [<c00600e8>]    lr : [<c005fe7c>]    Not tainted
sp : c025dd78  ip : 00000000  fp : 00000000
r10: 00000000  r9 : c025c000  r8 : 00000013
r7 : c03b9200  r6 : c027e600  r5 : 00000000  r4 : c0249d80
r3 : 00000000  r2 : 000001d2  r1 : 00000008  r0 : c0249e5c
Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  Segment kernel
Control: 3905  Table: A0004000  DAC: 0000001D
Process swapper (pid: 1, stack limit = 0xc025c36
回复

使用道具 举报

 楼主| 发表于 2005-3-10 16:50:04 | 显示全部楼层
[quote:7a8d9f335a="chyyuu"]你是如何生成kernel and filesystem?[/quote]

用的下面这些代码

* linux-2.4.19.tar.gz                  - kernel sources from ftp://ftp.kernel.org
* patch-2.4.19-rmk7.gz                 - patches by Russell King f
* diff-2.4.19-rmk7-pxa1.gz             - patches by Nicolas Pitre
* diff-2.4.19-rmk7-pxa1-intc1        - patches by Intel WCCG PCG/SE Linux Team

打完补丁,把lubbock的相关选项打开,编译出的内核在skyeye/xscale/linux-2.4.x/下运行,编译工具是3.2.3的.

如果说我的RAMDISK错了的话,那我用SKYEYE给的那个4M的也不行啊.
回复

使用道具 举报

 楼主| 发表于 2005-3-10 18:44:38 | 显示全部楼层
在内核配置时,CMD_LINE我是这样写的 mem=64M root=/dev/ram rw ramdisk=8192 ramdisk_start=0xc1000000 console=ttyS0,115200

重新编译后告诉我无法挂载ROOTFS,如下:

RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
LAN91x: not found.
Probing Lubbock flash at physical address 0x00000000 (32-bit buswidth)
CFI: Found no Lubbock flash device at location zero
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Kernel panic: VFS: Unable to mount root fs on 01:00
回复

使用道具 举报

发表于 2005-3-10 20:47:32 | 显示全部楼层
[quote:30cf8e3877="cuinantrue"]ramdisk_start=0xc1000000 [/quote]

修改.config:
CONFIG_CMDLINE="root=/dev/ram rw initrd=0xa1000000,0x00800000 console=ttyS0,115200 mem=64M"

skyeye.conf中相应的设置是:
mem_bank: map=M, type=RW, addr=0xa1000000, size=0x00800000, file=./initrd8M.img

内核配置和skyeye.conf中的配置要一致
回复

使用道具 举报

 楼主| 发表于 2005-3-11 11:05:19 | 显示全部楼层
[quote:0b4afaee2d="halfyear"][quote:0b4afaee2d="cuinantrue"]ramdisk_start=0xc1000000 [/quote]

修改.config:
CONFIG_CMDLINE="root=/dev/ram rw initrd=0xa1000000,0x00800000 console=ttyS0,115200 mem=64M"

skyeye.conf中相应的设置是:
mem_bank: map=M, type=RW, addr=0xa1000000, size=0x00800000, file=./initrd8M.img

内核配置和skyeye.conf中的配置要一致[/quote]

开始是这样配的,但是出现的是我在最上面贴的那些错误信息,我再贴下来:
...
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 8192 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 8192K
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing init memory: 72K
Unable to handle kernel NULL pointer dereference at virtual address 00000004
mm = c011c920 pgd = c0004000
*pgd = 00000000, *pmd = 00000000
Internal error: Oops: 0
CPU: 0
pc : [<c005ea8c>]    lr : [<c005e820>]    Not tainted
sp : c0231d78  ip : 00000000  fp : 00000000
r10: 00000000  r9 : c0230000  r8 : 00000013
r7 : c03bd200  r6 : c023f600  r5 : 00000000  r4 : c026dd80
r3 : 00000000  r2 : 000001d2  r1 : 00000008  r0 : c026de5c
Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  Segment kernel
Control: 3907  Table: A0004000  DAC: 0000001D
Process swapper (pid: 1, stack limit = 0xc023036
Stack: (0xc0231d78 to 0xc0232000)
1d60:                                                       00000000 00000000
1d80: 00000000 00000000 c023f600 c03bd200 00000013 c005ed60 00000000 c020d820
1da0: c026dba0 c026dba0 c020d820 c0231de4 00000004 c006faf0 fffffff4 c026dc08
1dc0: c00535f0 00000000 c0250006 00000000 c0231de4 c0231e0c 00000009 c0053b2c
1de0: 00000000 c0250001 00000004 01c000e1 c0250000 c0231e0c c0231fa8 c011c9c0
1e00: c011c998 c0231fa8 c0051434 c020d6a0 c020a360 c0230000 00000000 00000001
1e20: 00000009 00000001 c0250000 c0250000 c0231fa8 c011c9c0 c0051d78 c01259b0
1e40: c01259b0 c0030f4c c01259b0 c01259b0 c01330e0 00000000 00000000 c011c040
1e60: c01330c0 c002d440 c01330e0 c002d340 00000001 c011c060 fffffffe 60000093
1e80: 20000013 c011e6dc 00000101 00000000 c03bf360 c03bf360 c008fe24 00000060
1ea0: c0091e08 00000013 00000000 00000000 c03bf360 00000000 c008fe24 00000008
1ec0: 0000000a 00000013 00000000 c03bb000 00000000 00000000 c03fb0a0 c0140624
1ee0: c026d9c0 a001564c 00000000 c00923d8 c03bf360 00000000 c026d9c0 c03fb0a0
1f00: 00000001 c03fb0a0 c007d290 c020d7a0 00000002 c03bb000 c020d7fc 00000006
1f20: 00000000 c0231f30 fffffff4 c020edc8 c020ed60 c020d7a0 c0231f68 00000006
1f40: 00000000 c00535f0 00000000 c025000c 00000000 c0231f68 c0397140 c026d9c0
1f60: c03fb0a0 c0397148 c0103228 c011c9c0 c0250000 c011c9c0 c0231fa8 c0250000
1f80: c001c7c4 a001564c c0020b58 c011c998 c011a000 c014cfdc 0000000b c001c620
1fa0: c011c998 00000000 c0103228 c011c998 c011c9c0 c01286e8 c011c998 c011a000
1fc0: c014cfdc c012b77c c011cbb4 69052100 a001564c 00000000 c011c9c0 00000000
1fe0: 00000000 c001a0c0 60000013 c0103228 c001a034 c001de28 33da55ec ec677a31
Backtrace: no frame pointer
Code: e584302c e584e0fc ebffff4d e5973020 (e5932004)
Kernel panic: Attempted to kill init!
Unable to handle kernel NULL pointer dereference at virtual address 00000058
mm = c011c920 pgd = c0004000
*pgd = 00000000, *pmd = 00000000
Internal error: Oops: 0
CPU: 0
pc : [<c005dfd4>]    lr : [<c005e07c>]    Not tainted
sp : c0231c88  ip : 60000093  fp : c0231d30
r10: 00000004  r9 : 00000000  r8 : 00000000
r7 : 0000000b  r6 : c0230000  r5 : c0231d30  r4 : 00000000
r3 : c011eaec  r2 : c03bd258  r1 : c03bd260  r0 : 00000000
Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  Segment kernel
Control: 3907  Table: A0004000  DAC: 0000001D
Process swapper (pid: 1, stack limit = 0xc023036
Stack: (0xc0231c88 to 0xc0232000)
1c80:                   00000000 c005e07c 00000000 c004a608 c012e7c8 c004a640
1ca0: c002835c c0230000 c002bb60 c0106248 00000000 00000000 00000001 c0230000
1cc0: c0231d30 00000000 00000000 c00213e4 c0231d30 00000004 c00220d0 00000017
1ce0: c0230000 00000000 00000004 c0022418 c01330f4 00000017 c0231d64 c0102a2c
1d00: 00000004 c0231d30 40000013 00000000 00000000 c0022888 ffffffff c0231d64
1d20: c023f600 c03bd200 00000013 c001c2a0 c026de5c 00000008 000001d2 00000000
回复

使用道具 举报

 楼主| 发表于 2005-3-11 11:12:17 | 显示全部楼层
请问2.4的和2.6的CMD_LINE参数配置格式一样吗?
看报错信息"Unable to handle kernel NULL pointer dereference at virtual address 00000004
mm = c011c920 pgd = c0004000
*pgd = 00000000, *pmd = 00000000 "

高人指点指点吧!
回复

使用道具 举报

 楼主| 发表于 2005-3-11 11:21:16 | 显示全部楼层
我看SKYEYE给的2.4.19内核打印出的配置信息是

mem=64M root=/dev/ram rw ramdisk=8192 ramdisk_start=0xc1000000 console=ttyS0,115200

我照着改就挂不上文件系统了,可是按照下面的改

root=/dev/ram rw initrd=0xa1000000,0x00800000 console=ttyS0,115200 mem=64M

挂完文件系统就报错,该怎么改呢,那位高人说一下?
回复

使用道具 举报

 楼主| 发表于 2005-3-11 16:35:45 | 显示全部楼层
[quote:29da1ebc93="chyyuu"]你是如何生成kernel and filesystem?[/quote]


版主,我按照你在以前的一篇帖子里说的,把#if 0和 #endif去掉了,问题还是一样的.

我和那个兄弟的错误看上去一样,他说是console的问题,可我没有这个问题啊.

会是串口驱动的问题吗?我看编译完之后并没有driver/serial/pxa.o这个文件.
回复

使用道具 举报

发表于 2005-3-11 22:04:21 | 显示全部楼层
。。。。。

NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Kernel panic: VFS: Unable to mount root fs on 01:00

然后就不动了,其他条件和楼上的一样

我也遇到同样的问题,百思不得其解。盼高手指点!
回复

使用道具 举报

 楼主| 发表于 2005-3-14 09:17:18 | 显示全部楼层
用2.4.19-rmk4没问题,奇怪。
回复

使用道具 举报

发表于 2005-3-14 10:53:02 | 显示全部楼层
我发现ftp下来的测试程序中内核版本是2.4.19-rmk4-pxa2-alvin2
而我的是2.4.19-rmk7-pxa2
是不是少打了alvin2的补丁的原因。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-5 15:52 , Processed in 0.075411 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表