QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3575|回复: 3

求助:VIVI linux 根文件系统 ramdisk 无法启动 !!!

[复制链接]
发表于 2008-3-7 15:05:58 | 显示全部楼层 |阅读模式
VIVI bootloader 0.1.4 ([email protected]) (gcc version 2.95.3 20010315 (release)) #0.1.4 2008年 03月 07日 星期五 10:07:32 CST
MMU table base address = 0x33DFC000
NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung K9D1208V0M)
Found saved vivi parameters.
Press Return to start the OS  now, other key for vivi shell
Copy linux kernel from 0x00030000 to 0x30008000, size = 0x001c0000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "initrd=0x30800000,0x500000 root=/dev/rd/0 init=/linuxrc console=ttySAC0,115200"
MACH_TYPE = 193
NOW, Booting Linux......
Uncompressing Linux...................................................... done, booting the kernel.
Linux version 2.6.16.28 ([email protected]) (gcc version 3.4.1) #1 Thu Mar 6 16:40:16 CST 2008
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: initrd=0x30800000,0x500000 root=/dev/rd/0 init=/linuxrc console=ttySAC0,115200
irq: clearing pending ext status 00080100
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 57916KB available (1252K code, 439K data, 76K init)
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 5120K
S3C2410: Initialising architecture
S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
devfs: 2004-01-31 Richard Gooch ([email protected])
devfs: boot_options: 0x1
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Real Time Clock Driver v1.12ac
S3C2410 RTC, (c) 2004 Simtec Electronics
Non-volatile memory driver v1.2
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
devfs_mk_dev: could not append to parent for tts/0
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
devfs_mk_dev: could not append to parent for tts/1
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
devfs_mk_dev: could not append to parent for tts/2
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
INFTL: inftlcore.c $Revision: 1.19 $, inftlmount.c $Revision: 1.18 $
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: Tacls=1, 10ns Twrph0=4 40ns, Twrph1=1 10ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 5 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "vivi"
Reading data from NAND FLASH without ECC is not recommended
ftl_cs: FTL header not found.
0x00020000-0x00030000 : "param"
ftl_cs: FTL header not found.
0x00040000-0x00200000 : "kernel"
ftl_cs: FTL header not found.
0x00200000-0x00400000 : "root"
ftl_cs: FTL header not found.
0x00400000-0x04210000 : "user"
mtd: partition "user" extends beyond the end of device "NAND 64MiB 3,3V 8-bit" -- size truncated to 0x3c00000
ftl_cs: FTL header not found.
NAND device: Manufacturer ID: 0x98, Chip ID: 0x39 (Toshiba NAND 8MiB 1,8V 8-bit)
flash size: 8 MiB
page size: 512 bytes
OOB area size: 16 bytes
sector size: 8 KiB
pages number: 16384
pages per sector: 16
bus width: 8
bits in sector size: 13
bits in page size: 9
bits in OOB size: 4
flash size with OOB: 8448 KiB
page address bytes: 3
sector address bytes: 2
options: 0x62
Scanning device for bad blocks
options: 0x62
Scanning device for bad blocks
Bad eraseblock 62 at 0x0007c000
Bad eraseblock 63 at 0x0007e000
Bad eraseblock 64 at 0x00080000
Bad eraseblock 65 at 0x00082000
Bad eraseblock 66 at 0x00084000
Bad eraseblock 67 at 0x00086000
.....
 楼主| 发表于 2008-3-7 15:08:32 | 显示全部楼层
Bad eraseblock 556 at 0x00458000
Bad eraseblock 557 at 0x0045a000
Creating 1 MTD partitions on "NAND 8MiB 1,8V 8-bit":
0x00000000-0x00800000 : "NAND simulator partition"
Alignment trap: not handling swp instruction
Alignment trap: not handling instruction e1042093 at [<c012f6d4>]
Unhandled fault: alignment exception (0x803) at 0x0000006f
Internal error: : 803 [#1]
Modules linked in:
CPU: 0
回复

使用道具 举报

 楼主| 发表于 2008-3-7 15:09:28 | 显示全部楼层
PC is at mutex_lock+0x24/0x40
LR is at mutex_lock+0x1c/0x40
pc : [<c012f6d8>]    lr : [<c012f6d0>]    Not tainted
sp : c026de34  ip : c026de34  fp : c026de44
r10: c016a848  r9 : c0c9ea4c  r8 : c0cf8834
r7 : c0165060  r6 : c026de70  r5 : c0c9314c  r4 : 0000006f
r3 : 00000000  r2 : 00000054  r1 : 00000054  r0 : c0137c54
Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  Segment kernel
Control: C000717F  Table: 30004000  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc026c19
Stack: (0xc026de34 to 0xc026e000)
de20:                                              c0c93150 c026de6c c026de48
de40: c00ae554 c012f6c4 c026de70 c0c9314c 00000000 c0c9314c c0165060 c0c930cc
de60: c026de84 c026de70 c00ae774 c00ae538 00000000 c0c9314c c026dea4 c026de88
de80: c00de5e8 c00ae710 c0c93150 c0c930c0 c0c9314c c0141340 c026dec4 c026dea8
dea0: c00aa2b0 c00de538 c0c930c0 00000005 c0c930c0 c0141340 c026dee0 c026dec8
dec0: c00d2b8c c00aa278 c00d2b18 c0c930c0 c0c80c20 c026df14 c026dee4 c0111348
dee0: c00d2b4c 00000005 000000d0 c026df14 c0c80c20 c0c9d200 c016a848 c016a778
df00: 00000000 c0c9ea4c c026df30 c026df18 c0110ae8 c01110b4 c016a87c c016a8c4
df20: c0c9d200 c026df4c c026df34 c01114f0 c0110a88 c016a8bc c0c9d200 c016a788
df40: c026df6c c026df50 c010c0c0 c01114c0 c0c9d200 000000c5 c0c9e800 c0c9ea4c
df60: c026dfa4 c026df70 c010d99c c010c050 00000000 00800000 00000001 00000000
df80: 00000200 00000010 c0c9ea4c 00000000 c0c9e980 c0c9ea4c c026dfd0 c026dfa8
dfa0: c00191d8 c010d4cc c00199e0 c026c000 00000000 c00199fc 00000000 00000000
dfc0: 00000000 c026dff4 c026dfd4 c001b0f4 c0018c30 00000001 00000000 00000000
dfe0: 00000000 00000000 00000000 c026dff8 c0035b70 c001b068 5ec16c40 07e38765
Backtrace:
[<c012f6b4>] (mutex_lock+0x0/0x40) from [<c00ae554>] (create_dir+0x2c/0x1b
r4 = C0C93150
[<c00ae528>] (create_dir+0x0/0x1b from [<c00ae774>] (sysfs_create_dir+0x74/0x8c)
r8 = C0C930CC  r7 = C0165060  r6 = C0C9314C  r5 = 00000000
r4 = C0C9314C
[<c00ae700>] (sysfs_create_dir+0x0/0x8c) from [<c00de5e8>] (kobject_add+0xc0/0x16c)
r4 = C0C9314C
[<c00de528>] (kobject_add+0x0/0x16c) from [<c00aa2b0>] (register_disk+0x48/0x114)
r7 = C0141340  r6 = C0C9314C  r5 = C0C930C0  r4 = C0C93150
[<c00aa268>] (register_disk+0x0/0x114) from [<c00d2b8c>] (add_disk+0x50/0x6
r7 = C0141340  r6 = C0C930C0  r5 = 00000005  r4 = C0C930C0
[<c00d2b3c>] (add_disk+0x0/0x6 from [<c0111348>] (add_mtd_blktrans_dev+0x2a4/0x2d4)
r4 = C0C80C20
[<c01110a4>] (add_mtd_blktrans_dev+0x0/0x2d4) from [<c0110ae8>] (mtdblock_add_mtd+0x70/0x7
[<c0110a78>] (mtdblock_add_mtd+0x0/0x7 from [<c01114f0>] (blktrans_notify_add+0x40/0x54)
r6 = C0C9D200  r5 = C016A8C4  r4 = C016A87C
[<c01114b0>] (blktrans_notify_add+0x0/0x54) from [<c010c0c0>] (add_mtd_device+0x80/0xfc)
r6 = C016A788  r5 = C0C9D200  r4 = C016A8BC
[<c010c040>] (add_mtd_device+0x0/0xfc) from [<c010d99c>] (add_mtd_partitions+0x4e0/0x5a0)
r7 = C0C9EA4C  r6 = C0C9E800  r5 = 000000C5  r4 = C0C9D200
[<c010d4bc>] (add_mtd_partitions+0x0/0x5a0) from [<c00191d8>] (ns_init_module+0x5b8/0x67
[<c0018c20>] (ns_init_module+0x0/0x67 from [<c001b0f4>] (init+0x9c/0x220)
[<c001b058>] (init+0x0/0x220) from [<c0035b70>] (do_exit+0x0/0x7b0)
r7 = 00000000  r6 = 00000000  r5 = 00000000  r4 = 00000000
Code: e59f0020 ebfbfd29 e3a03000 e1042093 (e3520001)
<0>Kernel panic - not syncing: Attempted to kill init!
<1>Unable to handle kernel paging request at virtual address ffffffff
pgd = c0004000
[ffffffff] *pgd=30002031, *pte=00000000, *ppte=00000000
Internal error: Oops: 813 [#2]
Modules linked in:
CPU: 0
PC is at pdflush_operation+0x58/0xb0
LR is at pdflush_list+0x0/0x8
pc : [<c0058b44>]    lr : [<c015e5ec>]    Not tainted
sp : c026dbd0  ip : c0cd9f94  fp : c026dbe8
r10: 00000000  r9 : c015d770  r8 : c01bc254
r7 : c026dbfc  r6 : c00581c4  r5 : 00000000  r4 : a0000013
r3 : a0000093  r2 : ffffffff  r1 : ffffffff  r0 : 00000000
Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  Segment kernel
Control: C000717F  Table: 30004000  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc026c19
Stack: (0xc026dbd0 to 0xc026e000)
dbc0:                                     c026c000 00000100 c0058364 c026dbf8
dbe0: c026dbec c005837c c0058afc c026dc30 c026dbfc c003c948 c0058374 c026dbfc
dc00: c026dbfc c026dc10 00000001 c01bbff0 c026c000 0000000a c01bbfc0 00000008
dc20: c0199180 c026dc54 c026dc34 c0038764 c003c7dc ffffffff c026dccc 00000001
dc40: 0000000b c026dc98 c026dc64 c026dc58 c00388f0 c0038718 c026dc94 c026dc68
dc60: c001cf04 c00388bc c0038764 c003c7dc ffffffff c026dccc 00000001 0000000b
dc80: 00000000 c026ddec c026dcec c026dc98 c001b964 c001cdf4 00003d9a 00000000
dca0: 00000079 c019b694 000016fc c019b698 c019b694 0000000b 00000000 00000008
dcc0: c026ddec c026dcec c026dce0 c026dce0 c003346c c00dae94 20000013 ffffffff
dce0: c026dd18 c026dd00 c0035bf4 c0033394 c0137230 00000000 c015c830 00000001
dd00: c026dd2c 60000093 c026dd1c c026dd2c c026dd1c c0020fe0 c0035b80 00000000
dd20: c026dd40 c026dd30 c0021090 c0020cc4 00030001 c026dde8 c026dd44 c00234d4
dd40: c002104c 00000000 00000004 00000000 00030001 0000006f 00000000 00000200
dd60: 00000001 00000010 00000001 00000003 0000000f c016ab90 00000001 c0c9e600
dd80: c0c9e400 00000002 00000000 00000044 00000000 00000000 00000100 000003e0
dda0: 00000000 00000044 00000000 00000000 c01bc254 c01bbff0 c026c000 0000000a
ddc0: c01bbfc0 c015d770 ffffffff c026de20 c026de70 c0165060 c0cf8834 c026de44
dde0: c026ddec c001b920 c0023458 c0137c54 00000054 00000054 00000000 0000006f
de00: c0c9314c c026de70 c0165060 c0cf8834 c0c9ea4c c016a848 c026de44 c026de34
de20: c026de34 c012f6d0 c012f6d8 40000013 ffffffff c0c93150 c026de6c c026de48
de40: c00ae554 c012f6c4 c026de70 c0c9314c 00000000 c0c9314c c0165060 c0c930cc
de60: c026de84 c026de70 c00ae774 c00ae538 00000000 c0c9314c c026dea4 c026de88
de80: c00de5e8 c00ae710 c0c93150 c0c930c0 c0c9314c c0141340 c026dec4 c026dea8
dea0: c00aa2b0 c00de538 c0c930c0 00000005 c0c930c0 c0141340 c026dee0 c026dec8
dec0: c00d2b8c c00aa278 c00d2b18 c0c930c0 c0c80c20 c026df14 c026dee4 c0111348
dee0: c00d2b4c 00000005 000000d0 c026df14 c0c80c20 c0c9d200 c016a848 c016a778
df00: 00000000 c0c9ea4c c026df30 c026df18 c0110ae8 c01110b4 c016a87c c016a8c4
df20: c0c9d200 c026df4c c026df34 c01114f0 c0110a88 c016a8bc c0c9d200 c016a788
df40: c026df6c c026df50 c010c0c0 c01114c0 c0c9d200 000000c5 c0c9e800 c0c9ea4c
df60: c026dfa4 c026df70 c010d99c c010c050 00000000 00800000 00000001 00000000
df80: 00000200 00000010 c0c9ea4c 00000000 c0c9e980 c0c9ea4c c026dfd0 c026dfa8
dfa0: c00191d8 c010d4cc c00199e0 c026c000 00000000 c00199fc 00000000 00000000
dfc0: 00000000 c026dff4 c026dfd4 c001b0f4 c0018c30 00000001 00000000 00000000
dfe0: 00000000 00000000 00000000 c026dff8 c0035b70 c001b068 5ec16c40 07e38765
Backtrace:
[<c0058aec>] (pdflush_operation+0x0/0xb0) from [<c005837c>] (wb_timer_fn+0x18/0x44)
r6 = C0058364  r5 = 00000100  r4 = C026C000
[<c0058364>] (wb_timer_fn+0x0/0x44) from [<c003c948>] (run_timer_softirq+0x17c/0x1e4)
[<c003c7cc>] (run_timer_softirq+0x0/0x1e4) from [<c0038764>] (__do_softirq+0x5c/0xd0)
[<c0038708>] (__do_softirq+0x0/0xd0) from [<c00388f0>] (irq_exit+0x44/0x4c)
r8 = C026DC98  r7 = 0000000B  r6 = 00000001  r5 = C026DCCC
r4 = FFFFFFFF
[<c00388ac>] (irq_exit+0x0/0x4c) from [<c001cf04>] (asm_do_IRQ+0x120/0x13c)
[<c001cde4>] (asm_do_IRQ+0x0/0x13c) from [<c001b964>] (__irq_svc+0x24/0x160)
[<c0033380>] (panic+0x0/0x114) from [<c0035bf4>] (do_exit+0x84/0x7b0)
r3 = 00000001  r2 = C015C830  r1 = 00000000  r0 = C0137230
[<c0035b70>] (do_exit+0x0/0x7b0) from [<c0020fe0>] (die+0x32c/0x388)
[<c0020cb4>] (die+0x0/0x388) from [<c0021090>] (register_undef_hook+0x0/0x3c)
[<c002103c>] (notify_die+0x0/0x54) from [<c00234d4>] (do_DataAbort+0x8c/0xa0)
r4 = 00030001
[<c0023448>] (do_DataAbort+0x0/0xa0) from [<c001b920>] (__dabt_svc+0x40/0x60)
r8 = C0CF8834  r7 = C0165060  r6 = C026DE70  r5 = C026DE20
r4 = FFFFFFFF
[<c012f6b4>] (mutex_lock+0x0/0x40) from [<c00ae554>] (create_dir+0x2c/0x1b8)
r4 = C0C93150
[<c00ae528>] (create_dir+0x0/0x1b8) from [<c00ae774>] (sysfs_create_dir+0x74/0x8c)
r8 = C0C930CC  r7 = C0165060  r6 = C0C9314C  r5 = 00000000
r4 = C0C9314C
[<c00ae700>] (sysfs_create_dir+0x0/0x8c) from [<c00de5e8>] (kobject_add+0xc0/0x16c)
r4 = C0C9314C
[<c00de528>] (kobject_add+0x0/0x16c) from [<c00aa2b0>] (register_disk+0x48/0x114)
r7 = C0141340  r6 = C0C9314C  r5 = C0C930C0  r4 = C0C93150
[<c00aa268>] (register_disk+0x0/0x114) from [<c00d2b8c>] (add_disk+0x50/0x68)
r7 = C0141340  r6 = C0C930C0  r5 = 00000005  r4 = C0C930C0
[<c00d2b3c>] (add_disk+0x0/0x68) from [<c0111348>] (add_mtd_blktrans_dev+0x2a4/0x2d4)
r4 = C0C80C20
[<c01110a4>] (add_mtd_blktrans_dev+0x0/0x2d4) from [<c0110ae8>] (mtdblock_add_mtd+0x70/0x78)
[<c0110a78>] (mtdblock_add_mtd+0x0/0x78) from [<c01114f0>] (blktrans_notify_add+0x40/0x54)
r6 = C0C9D200  r5 = C016A8C4  r4 = C016A87C
[<c01114b0>] (blktrans_notify_add+0x0/0x54) from [<c010c0c0>] (add_mtd_device+0x80/0xfc)
r6 = C016A788  r5 = C0C9D200  r4 = C016A8BC
[<c010c040>] (add_mtd_device+0x0/0xfc) from [<c010d99c>] (add_mtd_partitions+0x4e0/0x5a0)
r7 = C0C9EA4C  r6 = C0C9E800  r5 = 000000C5  r4 = C0C9D200
[<c010d4bc>] (add_mtd_partitions+0x0/0x5a0) from [<c00191d8>] (ns_init_module+0x5b8/0x678)
[<c0018c20>] (ns_init_module+0x0/0x678) from [<c001b0f4>] (init+0x9c/0x220)
[<c001b058>] (init+0x0/0x220) from [<c0035b70>] (do_exit+0x0/0x7b0)
r7 = 00000000  r6 = 00000000  r5 = 00000000  r4 = 00000000
Code: e3e05000 ea000011 e59c1004 e59c2000 (e5812000)
<0>Kernel panic - not syncing: Aiee, killing interrupt handler!

不知道什么原因 !
ramdisk2 制作了好几次,应该是没什么问题阿 !!
可Linux 还是无法启动 !!!
郁闷中.........
回复

使用道具 举报

发表于 2008-3-9 21:54:14 | 显示全部楼层
从这个启动的log看,似乎看不出kernel的crash和ramdisk有什么关系,crash的地方在MTD驱动里。
建议你把Kernel配置里去除MTD的支持,ramdisk不需要MTD支持。
关于ramdisk的使用,请*仔细*阅读kernel源代码里的Docmentation目录下的initrd.txt和ramdisk.txt
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 00:31 , Processed in 0.098340 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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