主题 : 求助 :内核移植 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 13280
精华: 0
发帖: 17
金钱: 85 两
威望: 17 点
综合积分: 34 分
注册时间: 2010-01-21
最后登录: 2012-03-27
楼主  发表于: 2010-05-14 15:33

 求助 :内核移植

按照友善的内核移植开发指南,我进行了前两部nand和yaffs2的移植,现在会出现下面的情况,哪位帮我分析下错误原因呀 。谢谢



load Image of Linux...Uncompressing Linux................................................................................................................................... done, booting the kernel.
Linux version 2.6.32.2 (root@localhost.localdomain) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #8 Fri May 14 11:06:23 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: FriendlyARM Mini2440 development board
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
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
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)
Memory: 64MB = 64MB total
Memory: 60524KB available (3668K code, 417K data, 132K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:85
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c-i2c s3c2440-i2c: slave address 0x10
s3c-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
yaffs May 14 2010 10:54:06 Installing.
msgmni has been set to 118
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 60x53
fb0: s3c2410fb frame buffer device
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=4, 39ns Twrph0=8 79ns, Twrph1=8 79ns
Unable to handle kernel NULL pointer dereference at virtual address 00000018
pgd = c0004000
[00000018] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file:
Modules linked in:
CPU: 0    Not tainted  (2.6.32.2 #8)
PC is at s3c24xx_nand_probe+0x2d8/0x514
LR is at s3c24xx_nand_probe+0x1a4/0x514
pc : [<c01e9684>]    lr : [<c01e9550>]    psr: 60000013
sp : c3823f08  ip : 00000000  fp : 00000001
r10: 00000000  r9 : 00000000  r8 : 00000000
r7 : c03e5388  r6 : 00000000  r5 : c39aa900  r4 : c3869800
r3 : 00000001  r2 : c3869988  r1 : c4c00000  r0 : 00000002
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: c000717f  Table: 30004000  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc3822270)
Stack: (0xc3823f08 to 0xc3824000)
3f00:                   00000000 c00d398c c385a2d0 00000000 00000000 c03e5390
3f20: c03e5390 c03fbb48 c39b3960 c03fa600 00000000 00000000 00000000 c01c4878
3f40: c03e5390 c01c3a64 c03e5390 c03e53c4 c03fbb48 c39b3960 c03fa600 c01c3b74
3f60: 00000000 c01c3b18 c03fbb48 c01c3344 c3804938 c38474b0 c00220dc c03fbb48
3f80: c03fbb48 c01c2ca4 c038fbcb c038fbcb 00000006 c00220dc 00000000 c03fbb48
3fa0: c001a8b4 00000000 00000000 c01c3e40 c00220dc 00000000 00000000 c001a8b4
3fc0: 00000000 c002937c c001a8b4 c03ffa3c c0407560 c0022244 c00220dc 00000000
3fe0: 00000000 00000000 00000000 c00083f8 00000000 c002a854 33cc334c 33cc13d4
[<c01e9684>] (s3c24xx_nand_probe+0x2d8/0x514) from [<c01c4878>] (platform_drv_probe+0x18/0x1c)
[<c01c4878>] (platform_drv_probe+0x18/0x1c) from [<c01c3a64>] (driver_probe_device+0xa8/0x15c)
[<c01c3a64>] (driver_probe_device+0xa8/0x15c) from [<c01c3b74>] (__driver_attach+0x5c/0x7c)
[<c01c3b74>] (__driver_attach+0x5c/0x7c) from [<c01c3344>] (bus_for_each_dev+0x48/0x78)
[<c01c3344>] (bus_for_each_dev+0x48/0x78) from [<c01c2ca4>] (bus_add_driver+0x98/0x21c)
[<c01c2ca4>] (bus_add_driver+0x98/0x21c) from [<c01c3e40>] (driver_register+0xa4/0x130)
[<c01c3e40>] (driver_register+0xa4/0x130) from [<c002937c>] (do_one_initcall+0x5c/0x1b4)
[<c002937c>] (do_one_initcall+0x5c/0x1b4) from [<c00083f8>] (kernel_init+0x94/0x10c)
[<c00083f8>] (kernel_init+0x94/0x10c) from [<c002a854>] (kernel_thread_exit+0x0/0x8)
Code: e584321c e58420c4 e58452ac e58482a8 (e5983018)
---[ end trace d88dac855b7db115 ]---
Kernel panic - not syncing: Attempted to kill init!
[<c002e9f8>] (unwind_backtrace+0x0/0xdc) from [<c02dfaf0>] (panic+0x40/0x120)
[<c02dfaf0>] (panic+0x40/0x120) from [<c003ebe0>] (do_exit+0x64/0x58c)
[<c003ebe0>] (do_exit+0x64/0x58c) from [<c002d70c>] (die+0x15c/0x180)
[<c002d70c>] (die+0x15c/0x180) from [<c002f780>] (__do_kernel_fault+0x64/0x74)
[<c002f780>] (__do_kernel_fault+0x64/0x74) from [<c002f948>] (do_page_fault+0x1b8/0x1cc)
[<c002f948>] (do_page_fault+0x1b8/0x1cc) from [<c00292c0>] (do_DataAbort+0x34/0x94)
[<c00292c0>] (do_DataAbort+0x34/0x94) from [<c0029a40>] (__dabt_svc+0x40/0x60)
Exception stack(0xc3823ec0 to 0xc3823f08)
3ec0: 00000002 c4c00000 c3869988 00000001 c3869800 c39aa900 00000000 c03e5388
3ee0: 00000000 00000000 00000000 00000001 00000000 c3823f08 c01e9550 c01e9684
3f00: 60000013 ffffffff
[<c0029a40>] (__dabt_svc+0x40/0x60) from [<c01e9684>] (s3c24xx_nand_probe+0x2d8/0x514)
[<c01e9684>] (s3c24xx_nand_probe+0x2d8/0x514) from [<c01c4878>] (platform_drv_probe+0x18/0x1c)
[<c01c4878>] (platform_drv_probe+0x18/0x1c) from [<c01c3a64>] (driver_probe_device+0xa8/0x15c)
[<c01c3a64>] (driver_probe_device+0xa8/0x15c) from [<c01c3b74>] (__driver_attach+0x5c/0x7c)
[<c01c3b74>] (__driver_attach+0x5c/0x7c) from [<c01c3344>] (bus_for_each_dev+0x48/0x78)
[<c01c3344>] (bus_for_each_dev+0x48/0x78) from [<c01c2ca4>] (



走到这边就走不下去了。我的内核是版本是2.6.32.2的。
级别: 新手上路
UID: 23659
精华: 0
发帖: 29
金钱: 145 两
威望: 29 点
综合积分: 58 分
注册时间: 2010-06-23
最后登录: 2012-05-02
1楼  发表于: 2010-07-13 09:55
一样的问题~~~走不下去了
级别: 新手上路
UID: 24338
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2010-07-06
最后登录: 2010-08-12
2楼  发表于: 2010-07-26 15:47
我也是遇到相同的问题呀!谁解答一下呀!
我的错误提醒是这样的:
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
[<c002e9f8>] (unwind_backtrace+0x0/0xdc) from [<c02e00e4>] (panic+0x40/0x120)
[<c02e00e4>] (panic+0x40/0x120) from [<c00295b4>] (init_post+0xcc/0xf4)
[<c00295b4>] (init_post+0xcc/0xf4) from [<c0008440>] (kernel_init+0xdc/0x10c)
[<c0008440>] (kernel_init+0xdc/0x10c) from [<c002a854>] (kernel_thread_exit+0x0/
0x8)

高人呢!来解答一下吧!
级别: 骑士
UID: 9169
精华: 0
发帖: 249
金钱: 1330 两
威望: 299 点
综合积分: 498 分
注册时间: 2009-09-19
最后登录: 2017-08-14
3楼  发表于: 2010-07-26 16:21
建议先格式化你的nandflash,然后重新下载最新的image文件烧录,看是否出现同样的问题;如果还有的话就说明你的硬件存在问题,特别是NANDFLASH和SDRAM
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2010-07-26 16:22

 回 2楼(jingying1982) 的帖子

你的问题和楼主的不一样,他是NAND Flash配置的问题,而你是文件系统挂载不成功,或者是成功了但无法执行/linuxrc.
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."