免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4267 | 回复: 7
打印 上一主题 下一主题

[操作系统] 烧写内核和根文件系统 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-06-13 09:12 |只看该作者 |倒序浏览
紧急求助啊,在移植内核和文件系统时,出现下面的问题,我实在找不见错误了,哪位大侠帮一下啊


U-Boot 1.3.1 (Jun  4 2011 - 08:03:10)

DRAM:  64 MB
Flash: 512 kB
NAND:    64 MB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
TFTP from server 192.168.1.253; our IP address is 192.168.1.252
Filename 'zImage'.
Load address: 0x30008000
Loading: #################################################################
         #################################################################
         #######
done
Bytes transferred = 2006124 (1e9c6c hex)
setup linux parameters at 0x30000100
linux command line is: "root=nfs nfsroot=192.168.1.253:/source/rootfs init=/linuxrc console=ttySAC0,115200 ip=192.168.1.253"
## Starting application at 0x30008000 ...
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.33 (root@yao-desktop) (gcc version 4.3.2 (crosstool-NG-1.9.0-yh) ) #2 Mon Jun 13 09:04:16 CST 2011
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 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: root=nfs nfsroot=192.168.1.253:/source/rootfs init=/linuxrc console=ttySAC0,115200 ip=192.168.1.253
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: 60664KB available (3724K code, 335K data, 152K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:99
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 50.38 BogoMIPS (lpj=125952)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, Copyright 2003-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
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c-i2c s3c2410-i2c: slave address 0x10
s3c-i2c s3c2410-i2c: bus frequency set to 99 KHz
s3c-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
Advanced Linux Sound Architecture Driver Version 1.0.21.
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 204
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 118
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2410-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
s3c24xx-nand s3c2410-nand: NAND soft ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 8 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000004000 : "Boot Agent"
0x000000000000-0x000000200000 : "S3C2410 flash partition 1"
0x000000400000-0x000000800000 : "S3C2410 flash partition 2"
0x000000800000-0x000000a00000 : "S3C2410 flash partition 3"
0x000000a00000-0x000000e00000 : "S3C2410 flash partition 4"
0x000000e00000-0x000001800000 : "S3C2410 flash partition 5"
0x000001800000-0x000003000000 : "S3C2410 flash partition 6"
0x000003000000-0x000004000000 : "S3C2410 flash partition 7"
Cirrus Logic CS8900A driver for Linux (Modified for SMDK2410)
Unable to handle kernel paging request at virtual address e000030a
pgd = c0004000
[e000030a] *pgd=00000000
Internal error: Oops: 805 [#1]
last sysfs file:
Modules linked in:
CPU: 0    Not tainted  (2.6.33 #2)
PC is at cs8900_probe+0x114/0x2e4
LR is at 0xe0000300
pc : [<c001e67c>]    lr : [<e0000300>]    psr: a0000013
sp : c381bf38  ip : c03dbbe4  fp : c381bf58
r10: 00000000  r9 : 00000000  r8 : 00000000
r7 : 00000002  r6 : 00000000  r5 : c39ae800  r4 : c041df00
r3 : e000030a  r2 : e000030f  r1 : 00000000  r0 : e000030a
Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 0000717f  Table: 30004000  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc381a260)
Stack: (0xc381bf38 to 0xc381c000)
bf20:                                                       00000000 c39ae800
bf40: 00000000 00000000 c001e4e4 c381bf7c c381bf5c c0281628 c001e578 c39ae800
bf60: c381bf7c c39ae800 00000000 00000000 c381bf94 c381bf80 c0281990 c0281580
bf80: c041df64 c39ae800 c381bfac c381bf98 c001e554 c028195c c00267d4 c00268ac
bfa0: c381bfdc c381bfb0 c002e388 c001e4f4 00000000 00000000 c381bfdc c00267d4
bfc0: c00268ac 00000000 00000000 00000000 c381bff4 c381bfe0 c00085e4 c002e330
bfe0: 00000000 00000000 00000000 c381bff8 c0055784 c0008558 40004018 00800028
Backtrace:
[<c001e568>] (cs8900_probe+0x0/0x2e4) from [<c0281628>] (register_netdevice+0xb8/0x3dc)
r7:c001e4e4 r6:00000000 r5:00000000 r4:c39ae800
[<c0281570>] (register_netdevice+0x0/0x3dc) from [<c0281990>] (register_netdev+0x44/0x54)
r6:00000000 r5:00000000 r4:c39ae800
[<c028194c>] (register_netdev+0x0/0x54) from [<c001e554>] (cs8900_init+0x70/0x84)
r5:c39ae800 r4:c041df64
[<c001e4e4>] (cs8900_init+0x0/0x84) from [<c002e388>] (do_one_initcall+0x68/0x1c
r5:c00268ac r4:c00267d4
[<c002e320>] (do_one_initcall+0x0/0x1c from [<c00085e4>] (kernel_init+0x9c/0x110)
r8:00000000 r7:00000000 r6:00000000 r5:c00268ac r4:c00267d4
[<c0008548>] (kernel_init+0x0/0x110) from [<c0055784>] (do_exit+0x0/0x59c)
r5:00000000 r4:00000000
Code: e28e000a e3500201 e1a03000 328334f6 (e1c360b0)
---[ end trace 863cacd8cee6fa58 ]---
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c0032928>] (dump_backtrace+0x0/0x10c) from [<c02fb294>] (dump_stack+0x18/0x1c)
r7:c3815c40 r6:c3815c40 r5:c381a000 r4:0000000b
[<c02fb27c>] (dump_stack+0x0/0x1c) from [<c02fb2d4>] (panic+0x3c/0x130)
[<c02fb298>] (panic+0x0/0x130) from [<c00557ec>] (do_exit+0x68/0x59c)
r3:c03df85c r2:60000093 r1:c381bc70 r0:c037c326
[<c0055784>] (do_exit+0x0/0x59c) from [<c0032d20>] (die+0x15c/0x180)
[<c0032bc4>] (die+0x0/0x180) from [<c0034778>] (__do_kernel_fault+0x6c/0x7c)
[<c003470c>] (__do_kernel_fault+0x0/0x7c) from [<c00349c0>] (do_bad_area+0x60/0x6c)
r7:c0007800 r6:30004000 r5:00003800 r4:00000000
[<c0034960>] (do_bad_area+0x0/0x6c) from [<c0034a58>] (do_translation_fault+0x74/0x80)
[<c00349e4>] (do_translation_fault+0x0/0x80) from [<c002e2bc>] (do_DataAbort+0x3c/0x9c)
r7:c381bef0 r6:00000805 r5:c381bf24 r4:c03d5fdc
[<c002e280>] (do_DataAbort+0x0/0x9c) from [<c002eac8>] (__dabt_svc+0x48/0x60)
Exception stack(0xc381bef0 to 0xc381bf3
bee0:                                     e000030a 00000000 e000030f e000030a
bf00: c041df00 c39ae800 00000000 00000002 00000000 00000000 00000000 c381bf58
bf20: c03dbbe4 c381bf38 e0000300 c001e67c a0000013 ffffffff
r8:00000000 r7:00000002 r6:00000000 r5:c381bf24 r4:c03f919c
[<c001e568>] (cs8900_probe+0x0/0x2e4) from [<c0281628>] (register_netdevice+0xb8/0x3dc)
r7:c001e4e4 r6:00000000 r5:00000000 r4:c39ae800
[<c0281570>] (register_netdevice+0x0/0x3dc) from [<c0281990>] (register_netdev+0x44/0x54)
r6:00000000 r5:00000000 r4:c39ae800
[<c028194c>] (register_netdev+0x0/0x54) from [<c001e554>] (cs8900_init+0x70/0x84)
r5:c39ae800 r4:c041df64
[<c001e4e4>] (cs8900_init+0x0/0x84) from [<c002e388>] (do_one_initcall+0x68/0x1c
r5:c00268ac r4:c00267d4
[<c002e320>] (do_one_initcall+0x0/0x1c from [<c00085e4>] (kernel_init+0x9c/0x110)
r8:00000000 r7:00000000 r6:00000000 r5:c00268ac r4:c00267d4
[<c0008548>] (kernel_init+0x0/0x110) from [<c0055784>] (do_exit+0x0/0x59c)
r5:00000000 r4:00000000

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
2 [报告]
发表于 2011-06-13 11:31 |只看该作者
cs8900的driver去掉试试

论坛徽章:
0
3 [报告]
发表于 2011-06-15 09:22 |只看该作者
这个不行啊,要是去掉那个的话,文件系统就不能挂载了,我感觉在内核中缺啥配置选项,找了好半天也没有找见,

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
4 [报告]
发表于 2011-06-15 11:27 |只看该作者
莫非是NFS?不是的话去掉一下应该没关系的,否则的话就就要改一下probe接口里面的实现了

论坛徽章:
0
5 [报告]
发表于 2011-06-15 12:30 |只看该作者
就是NFS挂载的,改probe接口?这个怎么个情况了?

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
6 [报告]
发表于 2011-06-15 13:24 |只看该作者
就是说你的驱动程序有问题
要不改改cs8900的驱动的代码吧

论坛徽章:
0
7 [报告]
发表于 2011-06-15 17:28 |只看该作者
这个驱动该没有问题,内核是zImage编译都是好的,就是在往板子上挂载的时候,出现
Kernel panic - not syncing: Attempted to kill init!
不知这个到底是怎么个情况了,

论坛徽章:
0
8 [报告]
发表于 2011-06-16 08:34 |只看该作者
做好了,谢谢版主了,是内核编译的问题。缺少下列的编译选项
#make  menuconfig
Kernel  Features ----->
      [*]Use the ARM EABI to compile the kernel
      [*]Allow old ABI binaries to run with this kernel (EXPERIMENTAL)
再次编译的时候,就没有Kernel panic - not syncing: Attempted to kill init!的问题了。
谢谢版主了!终于解决了!

评分

参与人数 1可用积分 +4 收起 理由
T-Bagwell + 4 感谢分享

查看全部评分

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

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP