免费注册 查看新帖 |

Chinaunix

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

cramfs文件系统移植问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-04-18 14:35 |只看该作者 |倒序浏览
参照Mini2440_Linux移植开发实战指南,从网上下了linux2.6.32,打算移植自己的内核,平台是友善之臂的mini2440,s3c2440,nand是K9F1208,64M,nand flash驱动通了,移植cramfs的时候出现了下面的问题,哪位大虾指点下,调了好几天,网上也搜了很多,都没有解决

Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0"
MACH_TYPE = 782
NOW, Booting Linux......
Uncompressing Linux................................................................................................................................. done, booting the kernel.
Linux version 2.6.32 (root@ubuntu) (gcc version 4.5.1 (ctng-1.8.1-FA) ) #1 Tue Apr 17 02:59:28 PDT 2012
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: wang gang shi ge tian cai
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: 60652KB available (3616K code, 339K data, 140K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:99
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
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 204
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.
yaffs Apr 17 2012 02:53:42 Installing.
msgmni has been set to 118
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 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
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 s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
s3c24xx-nand s3c2440-nand: NAND ECC disabled
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 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000050000 : "supervivi"
0x000000050000-0x000000250000 : "kernel"
0x000000250000-0x000004050000 : "root"
mtd: partition "root" extends beyond the end of device "NAND 64MiB 3,3V 8-bit" -- size truncated to 0x3db0000
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
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (cramfs filesystem) readonly on device 31:2.
Freeing init memory: 140K
Warning: unable to open an initial console.
BUG: Bad page state in process linuxrc  pfn:30015
page:c04242a0 flags:00000029 count:2 mapcount:0 mapping:c3408634 index:89
[<c0031900>] (unwind_backtrace+0x0/0xd0) from [<c0079114>] (bad_page+0x104/0x13
[<c0079114>] (bad_page+0x104/0x13 from [<c007ad78>] (get_page_from_freelist+0x348/0x45c)
[<c007ad78>] (get_page_from_freelist+0x348/0x45c) from [<c007af70>] (__alloc_pages_nodemask+0xe4/0x51
[<c007af70>] (__alloc_pages_nodemask+0xe4/0x51 from [<c007cc6c>] (__do_page_cache_readahead+0xa4/0x1f
[<c007cc6c>] (__do_page_cache_readahead+0xa4/0x1f from [<c007d06c>] (ra_submit+0x20/0x24)
[<c007d06c>] (ra_submit+0x20/0x24) from [<c00764a0>] (filemap_fault+0x1ac/0x37
[<c00764a0>] (filemap_fault+0x1ac/0x37 from [<c00872f0>] (__do_fault+0x50/0x3b
[<c00872f0>] (__do_fault+0x50/0x3b8) from [<c0089d44>] (handle_mm_fault+0x24c/0x590)
[<c0089d44>] (handle_mm_fault+0x24c/0x590) from [<c0032d40>] (do_page_fault+0xdc/0x1c8)
[<c0032d40>] (do_page_fault+0xdc/0x1c8) from [<c002b1f4>] (do_DataAbort+0x30/0x98)
[<c002b1f4>] (do_DataAbort+0x30/0x98) from [<c002ba08>] (__dabt_svc+0x48/0x60)
Exception stack(0xc381be60 to 0xc381bea8)
be60: 40024654 000009a4 00000000 00000000 00000000 c39e9e20 c38ac3c0 40000000
be80: 00000000 000997e8 c3830520 c39fdf00 00000000 c381bea8 c00cefc8 c0166050
bea0: 20000013 ffffffff
[<c002ba08>] (__dabt_svc+0x48/0x60) from [<c0166050>] (__clear_user_std+0x34/0x64)
Disabling lock debugging due to kernel taint
Unable to handle kernel paging request at virtual address 00100104
pgd = c39f4000
[00100104] *pgd=33a0e031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1]
last sysfs file:
Modules linked in:
CPU: 0    Tainted: G    B       (2.6.32 #1)
PC is at get_page_from_freelist+0x204/0x45c
LR is at get_page_from_freelist+0x348/0x45c
pc : [<c007ac34>]    lr : [<c007ad78>]    psr: 20000093
sp : c381bba0  ip : 00200200  fp : 000201da
r10: c03f5244  r9 : c381a000  r8 : c04242a0
r7 : 60000013  r6 : c3408634  r5 : 00000000  r4 : c03f5214
r3 : 00200200  r2 : 00100100  r1 : 00000001  r0 : 00000005
Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: c000717f  Table: 339f4000  DAC: 00000015
Process linuxrc (pid: 1, stack limit = 0xc381a270)
Stack: (0xc381bba0 to 0xc381c000)
bba0: 00000041 00008000 c481152c c0011fff 00000001 c03f5808 00000001 ffffffff
bbc0: 00000000 c03f523c 00000000 c0172a64 00000028 c480f000 00000000 c03f5214
bbe0: c0413d54 000201da 00000000 c03f5804 c03f5214 003fffff 00000001 c3830520
bc00: c3408260 c007af70 00000001 00000041 c03f5214 00000002 00000000 00000002
bc20: 00000041 c0084e84 c39efde0 000201da c03f5808 c03f5808 00000000 c03f5214
bc40: 00000000 c007addc 00000041 00000003 00000028 60000013 00000001 c03f5214
bc60: 00000000 00000000 c340825c 0000000c 00000000 00000020 00000026 c3830520
bc80: c3408260 c007cc6c 00000001 00000020 c381bc90 c381bc90 c03f5214 c3830520
bca0: 00000000 0000001c c340825c c3830560 c381bd10 c39ee41c c34081b4 c007d06c
bcc0: 00000000 c340825c c3830520 c00764a0 c381a000 000284d0 c03f5808 c340825c
bce0: c0409b38 c39ee41c c39efde0 40024000 00000001 c39efde0 c39f5000 c3a1a890
bd00: 40024000 c00872f0 000000c0 c39f5000 00000001 0000001c 40024000 00000000
bd20: 00000200 40024654 c39ee41c 40024000 00000000 c39efde0 00000200 c3a1a890
bd40: c39f4000 c0089d44 0000001c 00000001 00000000 00000000 00000000 00000001
bd60: c39f5000 00000090 00000024 00000001 00000000 40024654 c3815cc0 c381be60
bd80: c39efde0 00000805 c39ee41c c39efe14 c39fdf00 c0032d40 40024654 00000805
bda0: 00000805 00000005 40024654 c381be60 c03d1db8 20000013 c3830520 c002b1f4
bdc0: 0000001b c016b374 0000001c 0000001b 0000001b 00000000 befa2000 c39ee41c
bde0: c39ee440 08100877 c3830520 c39efde0 00002000 00000002 00000001 c0084d24
be00: c39ee41c c39efde0 08100877 c008b920 00000000 c008bba4 c39ee5e0 c39ee41c
be20: 40023000 c008d618 c39ee5d8 00000000 c3830520 0000001b 00000000 c008b85c
be40: 00000812 c34081b4 c03f5b80 c381be94 c38ac3c0 40000000 00000000 c002ba08
be60: 40024654 000009a4 00000000 00000000 00000000 c39e9e20 c38ac3c0 40000000
be80: 00000000 000997e8 c3830520 c39fdf00 00000000 c381bea8 c00cefc8 c0166050
bea0: 20000013 ffffffff 000009ac c00cefc8 40024738 c00cfd90 00000812 00000000
bec0: 00000000 c381a000 c39fde40 c39ca920 00000000 c39fdf00 000997e8 c381bf80
bee0: 40024654 00008000 00090d64 c39e9e54 40024738 00008000 00099000 00000001
bf00: beffffe1 00000001 00000009 00000000 c0424540 c38ac3c0 fffffff8 c03df438
bf20: 00000000 00000002 c381bf80 c03def38 00000000 c009e554 c381a000 c03d1930
bf40: c03d19b8 c38ac3c0 00000000 00000000 c381bf80 c009f184 c04ae082 00000000
bf60: c03f5860 c03d1930 c04ae082 c03d19b8 00000000 00000000 00000000 c002ef68
bf80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
bfa0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
bfc0: 00000000 00000000 00000000 c03f5860 c00247a8 00000000 00000000 c002b3a4
bfe0: c03f5860 c0008b38 c002ce60 00000000 00000000 c002ce60 00000000 00000000
[<c007ac34>] (get_page_from_freelist+0x204/0x45c) from [<c007af70>] (__alloc_pages_nodemask+0xe4/0x518)
[<c007af70>] (__alloc_pages_nodemask+0xe4/0x518) from [<c007cc6c>] (__do_page_cache_readahead+0xa4/0x1f8)
[<c007cc6c>] (__do_page_cache_readahead+0xa4/0x1f8) from [<c007d06c>] (ra_submit+0x20/0x24)
[<c007d06c>] (ra_submit+0x20/0x24) from [<c00764a0>] (filemap_fault+0x1ac/0x378)
[<c00764a0>] (filemap_fault+0x1ac/0x378) from [<c00872f0>] (__do_fault+0x50/0x3b8)
[<c00872f0>] (__do_fault+0x50/0x3b8) from [<c0089d44>] (handle_mm_fault+0x24c/0x590)
[<c0089d44>] (handle_mm_fault+0x24c/0x590) from [<c0032d40>] (do_page_fault+0xdc/0x1c8)
[<c0032d40>] (do_page_fault+0xdc/0x1c8) from [<c002b1f4>] (do_DataAbort+0x30/0x98)
[<c002b1f4>] (do_DataAbort+0x30/0x98) from [<c002ba08>] (__dabt_svc+0x48/0x60)
Exception stack(0xc381be60 to 0xc381bea8)
be60: 40024654 000009a4 00000000 00000000 00000000 c39e9e20 c38ac3c0 40000000
be80: 00000000 000997e8 c3830520 c39fdf00 00000000 c381bea8 c00cefc8 c0166050
bea0: 20000013 ffffffff
[<c002ba08>] (__dabt_svc+0x48/0x60) from [<c0166050>] (__clear_user_std+0x34/0x64)
Code: 1592800c e2488018 e598301c e5982018 (e5823004)
---[ end trace 59aee985f8be8e33 ]---
BUG: Bad page map in process linuxrc  pte:3002a34f pmd:33a05031
page:c0424540 flags:0000003d count:2 mapcount:-1 mapping:c3408634 index:89
addr:befb6000 vm_flags:00100177 anon_vma:c3a045e0 mappingnull) index:befff
[<c0031900>] (unwind_backtrace+0x0/0xd0) from [<c00877e8>] (print_bad_pte+0x190/0x1c0)
[<c00877e8>] (print_bad_pte+0x190/0x1c0) from [<c0088ef4>] (unmap_vmas+0x398/0x5cc)
[<c0088ef4>] (unmap_vmas+0x398/0x5cc) from [<c008caf0>] (exit_mmap+0xa0/0x138)
[<c008caf0>] (exit_mmap+0xa0/0x138) from [<c004b2dc>] (mmput+0x38/0xd0)
[<c004b2dc>] (mmput+0x38/0xd0) from [<c004e9c0>] (exit_mm+0x108/0x114)
[<c004e9c0>] (exit_mm+0x108/0x114) from [<c004fc6c>] (do_exit+0x174/0x598)
[<c004fc6c>] (do_exit+0x174/0x598) from [<c002fe2c>] (die+0x158/0x17c)
[<c002fe2c>] (die+0x158/0x17c) from [<c0032c54>] (__do_kernel_fault+0x64/0x74)
[<c0032c54>] (__do_kernel_fault+0x64/0x74) from [<c0032e18>] (do_page_fault+0x1b4/0x1c8)
[<c0032e18>] (do_page_fault+0x1b4/0x1c8) from [<c002b1f4>] (do_DataAbort+0x30/0x98)
[<c002b1f4>] (do_DataAbort+0x30/0x98) from [<c002ba08>] (__dabt_svc+0x48/0x60)
Exception stack(0xc381bb58 to 0xc381bba0)
bb40:                                                       00000005 00000001
bb60: 00100100 00200200 c03f5214 00000000 c3408634 60000013 c04242a0 c381a000
bb80: c03f5244 000201da 00200200 c381bba0 c007ad78 c007ac34 20000093 ffffffff
[<c002ba08>] (__dabt_svc+0x48/0x60) from [<c007ac34>] (get_page_from_freelist+0x204/0x45c)
[<c007ac34>] (get_page_from_freelist+0x204/0x45c) from [<c007af70>] (__alloc_pages_nodemask+0xe4/0x518)
[<c007af70>] (__alloc_pages_nodemask+0xe4/0x518) from [<c007cc6c>] (__do_page_cache_readahead+0xa4/0x1f8)
[<c007cc6c>] (__do_page_cache_readahead+0xa4/0x1f8) from [<c007d06c>] (ra_submit+0x20/0x24)
[<c007d06c>] (ra_submit+0x20/0x24) from [<c00764a0>] (filemap_fault+0x1ac/0x378)
[<c00764a0>] (filemap_fault+0x1ac/0x378) from [<c00872f0>] (__do_fault+0x50/0x3b8)
[<c00872f0>] (__do_fault+0x50/0x3b8) from [<c0089d44>] (handle_mm_fault+0x24c/0x590)
[<c0089d44>] (handle_mm_fault+0x24c/0x590) from [<c0032d40>] (do_page_fault+0xdc/0x1c8)
[<c0032d40>] (do_page_fault+0xdc/0x1c8) from [<c002b1f4>] (do_DataAbort+0x30/0x98)
[<c002b1f4>] (do_DataAbort+0x30/0x98) from [<c002ba08>] (__dabt_svc+0x48/0x60)
Exception stack(0xc381be60 to 0xc381bea8)
be60: 40024654 000009a4 00000000 00000000 00000000 c39e9e20 c38ac3c0 40000000
be80: 00000000 000997e8 c3830520 c39fdf00 00000000 c381bea8 c00cefc8 c0166050
bea0: 20000013 ffffffff
[<c002ba08>] (__dabt_svc+0x48/0x60) from [<c0166050>] (__clear_user_std+0x34/0x64)
Kernel panic - not syncing: Attempted to kill init!
[<c0031900>] (unwind_backtrace+0x0/0xd0) from [<c02d601c>] (panic+0x3c/0x110)
[<c02d601c>] (panic+0x3c/0x110) from [<c004fb5c>] (do_exit+0x64/0x598)
[<c004fb5c>] (do_exit+0x64/0x598) from [<c002fe2c>] (die+0x158/0x17c)
[<c002fe2c>] (die+0x158/0x17c) from [<c0032c54>] (__do_kernel_fault+0x64/0x74)
[<c0032c54>] (__do_kernel_fault+0x64/0x74) from [<c0032e18>] (do_page_fault+0x1b4/0x1c8)
[<c0032e18>] (do_page_fault+0x1b4/0x1c8) from [<c002b1f4>] (do_DataAbort+0x30/0x98)
[<c002b1f4>] (do_DataAbort+0x30/0x98) from [<c002ba08>] (__dabt_svc+0x48/0x60)
Exception stack(0xc381bb58 to 0xc381bba0)
bb40:                                                       00000005 00000001
bb60: 00100100 00200200 c03f5214 00000000 c3408634 60000013 c04242a0 c381a000
bb80: c03f5244 000201da 00200200 c381bba0 c007ad78 c007ac34 20000093 ffffffff
[<c002ba08>] (__dabt_svc+0x48/0x60) from [<c007ac34>] (get_page_from_freelist+0x204/0x45c)
[<c007ac34>] (get_page_from_freelist+0x204/0x45c) from [<c007af70>] (__alloc_pages_nodemask+0xe4/0x518)
[<c007af70>] (__alloc_pages_nodemask+0xe4/0x518) from [<c007cc6c>] (__do_page_cache_readahead+0xa4/0x1f8)
[<c007cc6c>] (__do_page_cache_readahead+0xa4/0x1f8) from [<c007d06c>] (ra_submit+0x20/0x24)
[<c007d06c>] (ra_submit+0x20/0x24) from [<c00764a0>] (filemap_fault+0x1ac/0x378)
[<c00764a0>] (filemap_fault+0x1ac/0x378) from [<c00872f0>] (__do_fault+0x50/0x3b8)
[<c00872f0>] (__do_fault+0x50/0x3b8) from [<c0089d44>] (handle_mm_fault+0x24c/0x590)
[<c0089d44>] (handle_mm_fault+0x24c/0x590) from [<c0032d40>] (do_page_fault+0xdc/0x1c8)
[<c0032d40>] (do_page_fault+0xdc/0x1c8) from [<c002b1f4>] (do_DataAbort+0x30/0x98)
[<c002b1f4>] (do_DataAbort+0x30/0x98) from [<c002ba08>] (__dabt_svc+0x48/0x60)
Exception stack(0xc381be60 to 0xc381bea8)
be60: 40024654 000009a4 00000000 00000000 00000000 c39e9e20 c38ac3c0 40000000
be80: 00000000 000997e8 c3830520 c39fdf00 00000000 c381bea8 c00cefc8 c0166050
bea0: 20000013 ffffffff
[<c002ba08>] (__dabt_svc+0x48/0x60) from [<c0166050>] (__clear_user_std+0x34/0x64)

论坛徽章:
0
2 [报告]
发表于 2012-04-18 20:52 |只看该作者
好象是linuxrc出错,也可能是镜像做的有误
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP