linux启动不起来,第一次总是这么难受

armwind 2015-04-05 09:41:47
第一次移植linux(S3C2440),内核引导成功,但是卡在这里,不知道怎么解决,求大神们帮看看可能是哪个地方出现了问题。
内核源码拿过来,我就稍微改了下nand mtd分区,别的没动,可能是驱动参数不对,导致的吗?
Uncompressing Linux.....................................................
Linux version 2.6.32.2 (root@armwind) (gcc version 4.4.3 (ctng-1.6.1) )5
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
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: 166
Kernel command line: noinitrd root=/dev/mtdblock3 console=ttySAC0 init=c
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: 61060KB available (3284K code, 305K data, 116K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:85
irq: clearing subpending status 00000003
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
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
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.
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 119
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C20
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C20
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C20
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
s3c24xx-nand s3c2440-nand: NAND soft ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB )
Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000100000 : "Boot"
0x000000100000-0x000000120000 : "param"
0x000000120000-0x000000520000 : "Kernel"
0x000000520000-0x000010000000 : "root"
dm9000 Ethernet Driver, V1.31
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
VFS: Mounted root (yaffs filesystem) on device 31:3.
Freeing init memory: 116K
Unable to handle kernel paging request at virtual address 00676e6e
pgd = c39fc000
[00676e6e] *pgd=00000000
Internal error: Oops: 80000005 [#1]
last sysfs file:
Modules linked in:
CPU: 0 Not tainted (2.6.32.2 #21)
PC is at 0x676e6e
LR is at s3c2410_nand_select_chip+0x88/0xa0
pc : [<00676e6e>] lr : [<c01db5d0>] psr: 20000033
sp : c381ba40 ip : 00000004 fp : 00000000
r10: 00000001 r9 : 00000000 r8 : 00000000
r7 : 009c7000 r6 : 00000003 r5 : c38ffa20 r4 : 00000000
r3 : 00676e6f r2 : c4c00004 r1 : 00000000 r0 : c0022920
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA Thumb Segment user
Control: c000717f Table: 339fc000 DAC: 00000015
Process linuxrc (pid: 1, stack limit = 0xc381a270)
Stack: (0xc381ba40 to 0xc381c000)
ba40: c393e588 c393e400 c381bb48 c01d885c 00000000 00000004 00000040 00d
ba60: 00000000 00000800 00000000 0000001c 00000000 00000001 00000001 000
ba80: 00000000 0000003f 00000000 00000000 00000000 00000000 00000000 000
baa0: c393e400 c381bb48 00000800 0000001c 00000000 009c7000 00000000 c00
bac0: c381bb48 00000000 00000000 00000000 00000000 00000001 c381bba8 c38
bae0: 00000001 00000000 0000001c c39a8e00 00520000 00000000 00000800 00c
bb00: 00000000 00000000 004a7000 c01c554c c381bb48 0000094e 004a7000 c30
bb20: c381bba8 c0023000 c39a8e00 c014c900 c381bb48 c381bc40 c381bc08 c38
bb40: 00000001 c3815cc0 00000001 00000800 00000000 0000001c 000009ce 000
bb60: c0023000 c39c9fa0 c381bb98 00000127 c39ece0c c381bb98 c393d000 000
bb80: 00000000 00000127 c393d000 c381bba8 0000098e 00000800 00000000 007
bba0: 00001000 c014afec aaaaaaaa 00000001 00000124 00000126 00000800 001
bbc0: 00000000 00000000 c381bc0c 00000001 c381bbe0 c0166b1c 0000009c 000
bbe0: 00000000 c0023000 c39ece0c c39ece0c 00000800 c39ece0c c393d000 c3c
bc00: 00000800 c01463dc aaaaaaaa c0023000 00093000 00000000 00000000 000
bc20: 00000092 c03be460 c393d000 c39ece0c c0023000 00100100 c34084f0 000
bc40: 00000020 c013d29c 00001000 c03be460 c037b21c c03be460 c38306a0 001
bc60: 00000006 c013d4e4 c03be460 c34084ec 00000011 c00751c8 c38306a0 00d
bc80: c03be118 c03be298 00000000 c38306a0 00000000 0000009d c34084ec c34
bca0: c38306e0 c34084ec c381bd00 c0075238 00000000 c34084ec c38306a0 c0c
bcc0: 00000000 c013d4f0 c0390620 000284d0 c3408114 c39f9518 c39f8de0 001
bce0: 00000000 c39f8de0 000ad000 c39fc000 c39fc000 c007fa38 c381a000 c30
bd00: 00000001 0000009d 000ad000 00000000 00000000 00000001 00000000 000
bd20: 00000000 c39f8de0 00000000 c3a00ab4 c39fc000 c0080c50 0000009d 001
bd40: 00000000 c009c994 00001000 00000001 000000ad c39fc000 000002b4 000
bd60: 00000000 000ad76d c3815cc0 c381be50 c39f9518 c39f8de0 c39f8e14 005
bd80: c381a000 c002c9d0 000ad76d 00000805 00000805 c0373db8 000ad76d c30
bda0: 00000000 80000013 c3830320 c0025294 00000000 c39f8de0 c39f953c c04
bdc0: 00000000 c39f9518 c39f953c 000ac000 c39f8de0 c38306a0 00002000 c34
bde0: 00000002 c007d4a8 c39f9518 c39f8de0 000ac000 c0084458 c39f9518 c04
be00: c39f9584 c39f9518 c39f956c c39f9518 08101877 c0086070 c39f94c4 c30
be20: c39f95d8 c39f94c4 00000002 c0084b44 c39f94c4 c0084b94 c39f95d8 fff
be40: c381be84 c388d2c0 000afac4 c0025a00 000ad76d 00000893 00000000 000
be60: 00000000 c393c3e0 c388d2c0 000afac4 00000000 000ad76d c3830320 c30
be80: 00000001 c381be98 c00c8240 c01617d4 80000013 ffffffff 00000893 c00
bea0: 00000000 c00c8d54 00001812 00000000 c39f8de0 00000020 00000001 c30
bec0: c39c8a00 c3830320 c381bf80 00000009 000a4458 00008000 c044809b 00d
bee0: 000acef4 00008000 00000000 00000000 befff000 00000001 beffffe1 c08
bf00: 00000009 c388d2c0 c037c148 fffffff8 00000000 00000000 c381bf80 c08
bf20: c388d2c2 c0097904 c3815cc0 c381a000 c0373968 00000002 c388d2c0 000
bf40: 00000000 c381bf80 c03738e4 c00989c0 c0448092 00000000 c0373968 c00
bf60: c03738e0 c0448092 c0373968 00000000 00000000 00000000 00000000 c08
bf80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000
bfa0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000
bfc0: 00000000 00000000 00000002 c0390680 c0020924 00000000 00000000 c00
bfe0: c0390680 c00085b8 00000000 00000000 00000000 c0026e48 00000000 000
Code: bad PC value
---[ end trace 147a7107591e7d19 ]---
Kernel panic - not syncing: Attempted to kill init!
[<c002ba04>] (unwind_backtrace+0x0/0xd8) from [<c0296c70>] (panic+0x40/)
[<c0296c70>] (panic+0x40/0x110) from [<c00478f8>] (do_exit+0x64/0x59c)
[<c00478f8>] (do_exit+0x64/0x59c) from [<c0029e4c>] (die+0x15c/0x180)
[<c0029e4c>] (die+0x15c/0x180) from [<c002c8e4>] (__do_kernel_fault+0x6)
[<c002c8e4>] (__do_kernel_fault+0x64/0x74) from [<c002caa4>] (do_page_f)
[<c002caa4>] (do_page_fault+0x1b0/0x1c4) from [<c0025200>] (do_Prefetch)
[<c0025200>] (do_PrefetchAbort+0x34/0x94) from [<c0025b64>] (__pabt_svc)
Exception stack(0xc381b9f8 to 0xc381ba40)
b9e0: c0022920 000
ba00: c4c00004 00676e6f 00000000 c38ffa20 00000003 009c7000 00000000 000
ba20: 00000001 00000000 00000004 c381ba40 c01db5d0 00676e6e 20000033 fff
[<c0025b64>] (__pabt_svc+0x44/0x80) from [<00676e6e>] (0x676e6e)
...全文
367 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
fly 100% 2015-04-09
  • 打赏
  • 举报
回复
nand 的驱动错误了 估计又是空指针 访问非法地址的错误
dc838366616 2015-04-09
  • 打赏
  • 举报
回复
是不是内核 bootargs 里边参数init 设置不对Kernel command line: noinitrd root=/dev/mtdblock3 console=ttySAC0 init=c 还是没显示全
曹大夯 2015-04-08
  • 打赏
  • 举报
回复
引用 楼主 armwind 的回复:
Unable to handle kernel paging request at virtual address 00676e6e pgd = c39fc000 [00676e6e] *pgd=00000000 Internal error: Oops: 80000005 [#1] last sysfs file: Modules linked in:
看起来可能是“稍微改了下nand mtd分区”造成一些问题。 你是怎么修改的分区啊,体现在系统的启动配置文件里面了么?

21,600

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧