主题 : (已经解决,但希望高手点评)128MB K9F1G08 (yaffs2) 移植2.6.32内核遇到的问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 11584
精华: 0
发帖: 2
金钱: 20 两
威望: 10 点
综合积分: 4 分
注册时间: 2009-12-13
最后登录: 2009-12-14
楼主  发表于: 2009-12-13 14:01

 (已经解决,但希望高手点评)128MB K9F1G08 (yaffs2) 移植2.6.32内核遇到的问题

这个问题已经解决了,通过改写 mach- 文件:

原来不能启动的:

#define SZ_BLK    0x20000
static struct mtd_partition som244_default_nand_part[] __initdata = {
    [0] = {
        .name    = "Bootloader",
        .offset = 0 * SZ_BLK,
        .size    = 2 * SZ_BLK,
    },
    [1] = {
        .name    = "Param",
        .offset = 2 * SZ_BLK,
        .size    = 1 * SZ_BLK,
    },
    [2] = {
        .name    = "zImage",
        .offset = 3 * SZ_BLK,
        .size    = 37 * SZ_BLK,
    },
    [3] = {
        .name    = "Root (YAFFS)",
        .offset    = 40 * SZ_BLK,
        .size    = 864 * SZ_BLK,
    },
    [4] = {
        .name    = "User Test",
        .offset = 904 * SZ_BLK,
        .size    = 40 * SZ_BLK,
    },
    [5] = {
        .name    = "FPGA RBF",
        .offset    = 944 * SZ_BLK,
        .size    = 80 * SZ_BLK,
    },
};

修改为:


#define SZ_BLK    0x20000
static struct mtd_partition som244_default_nand_part[] = {
    [0] = {
        .name    = "Bootloader",
        .offset = 0x0,
        .size    = 0x40000,
    },
    [1] = {
        .name    = "Param",
        .offset = 0x40000,
        .size    = 0x20000,
    },
    [2] = {
        .name    = "zImage",
        .offset = 0x60000,
        .size    = 0x4A0000,
    },
    [3] = {
        .name    = "Root (YAFFS)",
        .offset    = 0x500000,
        .size    = 0x6C00000,
    },
    [4] = {
        .name    = "User Test",
        .offset = 0x7100000,
        .size    = 0x500000,
    },
    [5] = {
        .name    = "FPGA RBF",
        .offset    = 0x7600000,
        .size    = MTDPART_SIZ_FULL,
    },
};

修改具体为:
A) 去掉结构定义中的  __initdata;
B) 改用绝对大小的二进制数定义分区位置和大小,而原来定义 SZ_BLK 却造成了问题(在2.6.29则没问题,呵呵)

希望资深人士点评,谢谢!

以下是原贴:
####################################################################################################

1. 分区表在原版2.6.29.1上验证是没有问题的,而且把2.6.32的内核换回2.6.29后,也没有问题,所以基本排出是文件系统本身的问题;
2. yaffs的ecc信息完全拷贝2.6.29.1的,所以mkyaffs2image的ecc信息应该不存在问题;
3. 内核配置为yaffs自己的ecc校验,屏蔽了HW_ECC;
4. 搞不定,经过观察back trace,发现出错的部分还是出现在yaffs2读数据的时候,尽管所使用的yaffs2的代码特地使用了原来成功启动的2.6.29的;
5. 莫非还有别的位置设定和NAND有关?

Linux version 2.6.32.tbx170b (root@devlinux.elxyc.local) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #88 Sun Dec 13 13:48:00 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: ELXYC SOM-244 SoCard
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 402.000 MHz, memory 100.500 MHz, peripheral 50.250 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: noinitrd init=/linuxrc loglevel=7 console=tty0 console=ttySAC0,115200 rootfstype=yaffs2 root=/dev/mtdblock3 rw ip=192.168.1.7:192.168.1.100:192.168.1.1:255.255.255.0:tbxbrd:eth0:off mac=00:C0:2B:33:EA:2E
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126392KB available (2928K code, 343K data, 108K 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 pending ext status 00000b00
irq: clearing subpending status 00000093
irq: clearing subpending status 00000092
Console: colour dummy device 80x30
console [tty0] enabled
console [ttySAC0] enabled
Calibrating delay loop... 200.70 BogoMIPS (lpj=501760)
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 c8808000, irq 33
DMA channel 1 at c8808040, irq 34
DMA channel 2 at c8808080, irq 35
DMA channel 3 at c88080c0, 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: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
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.
yaffs Dec 13 2009 13:47:51 Installing.
msgmni has been set to 247
alg: No test for stdrng (krng)
io scheduler noop registered (default)
Console: switching to colour frame buffer device 80x30
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
loop: module loaded
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=1, 9ns Twrph0=3 29ns, Twrph1=2 19ns
s3c24xx-nand s3c2440-nand: NAND soft ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Creating 6 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "Bootloader"
0x000000040000-0x000000060000 : "Param"
0x000000060000-0x000000500000 : "zImage"
0x000000500000-0x000007100000 : "Root (YAFFS)"
0x000007100000-0x000007600000 : "User Test"
0x000007600000-0x000008000000 : "FPGA RBF"
dm9000 Ethernet Driver, V1.31
eth0: dm9000e at c880c000,c8810004 IRQ 53 MAC: 00:e0:5c:90:32:4e (driver fixed)
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: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: S3C24XX OHCI
usb usb1: Manufacturer: Linux 2.6.32.tbx170b ohci_hcd
usb usb1: SerialNumber: s3c24xx
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
s3c-sdi s3c2440-sdi: powered down.
s3c-sdi s3c2440-sdi: mmc0 - using pio, sw SDIO IRQ
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
S3C24XX_UDA134X SoC Audio driver
UDA134X SoC Audio Codec
s3c-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
asoc: UDA134X <-> s3c24xx-i2s mapping ok
ALSA device list:
  #0: S3C24XX_UDA134X (UDA134X)
TCP cubic registered
s3c2410-rtc s3c2410-rtc: setting system clock to 2009-12-13 13:47:49 UTC (1260712069)
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
s3c-sdi s3c2440-sdi: running at 16750kHz (requested: 25000kHz).
s3c-sdi s3c2440-sdi: running at 16750kHz (requested: 25000kHz).
mmc0: new SD card at address 3165
mmcblk0: mmc0:3165 S064B 60.6 MiB
mmcblk0:
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
IP-Config: Complete:
     device=eth0, addr=192.168.1.7, mask=255.255.255.0, gw=192.168.1.1,
     host=tbxbrd, domain=, nis-domain=(none),
     bootserver=192.168.1.100, rootserver=192.168.1.100, rootpath=
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs2 filesystem) on device 31:3.
Freeing init memory: 108K
Unable to handle kernel paging request at virtual address 69662074
pgd = c7a80000
[69662074] *pgd=00000000
Internal error: Oops: 80000005 [#1]
last sysfs file:
Modules linked in:
CPU: 0    Not tainted  (2.6.32.tbx170b #88)
PC is at 0x69662074
LR is at s3c2410_nand_select_chip+0x70/0xb0
pc : [<69662074>]    lr : [<c0184748>]    psr: 20000013
sp : c78237e8  ip : c7823808  fp : c7823804
r10: c7863d80  r9 : c7863c00  r8 : 00000026
r7 : 03296800  r6 : 00000003  r5 : 00000000  r4 : c7859e00
r3 : 69662074  r2 : c8c00004  r1 : 00000000  r0 : c001e918
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: c000717f  Table: 37a80000  DAC: 00000015
Process linuxrc (pid: 1, stack limit = 0xc7822270)
Stack: (0xc78237e8 to 0xc7824000)
37e0:                   0000001c 03796800 00000000 03296800 c7823864 c7823808
3800: c018092c c01846e8 0000001c c0180270 000090d3 00000000 03796800 00000000
3820: c7863d80 c79e1e80 0000003f 00000000 00000000 0000001c c782388c 03296800
3840: 00000000 c79e0400 03296800 00000000 00000000 c7814000 c782388c c7823868
3860: c0179f10 c0180734 c78238a8 c7823878 c0030c38 c79e0400 c78239c0 00000800
3880: c7823914 c7823890 c010727c c0179ea8 c78238a8 c0030c1c c7823950 c01067c0
38a0: c7823970 00000000 00000001 0000001c 00000000 0000001c 0000001c 00000000
38c0: 00000000 c79e1e80 c782390c c7823970 00000001 c7823970 c78239c0 c030d924
38e0: c7823934 c78238f0 c01050c4 c7814000 c78239c0 0000656d 0000656d c78baca0
3900: c78239c0 00000000 c782397c c7823918 c0105348 c0107080 c7823970 c78239c0
3920: 00000000 03296000 c78239bc c7823938 c010718c c010506c c7823950 c79e0400
3940: 024fe800 00000000 c7863c00 00000000 00000001 00000800 00000800 0000001c
3960: 0000002d 00000195 c7814000 0000656d c78239b4 c7823980 c00fc35c c0105314
3980: ffffff16 00000923 fffffff6 c7a080f8 00000132 c7814000 c78239c0 00000000
39a0: 00000800 00000800 c7823a24 c78239b8 c00fc484 c00fc224 00000132 c0107080
39c0: aaaaaaaa 00000001 00000923 00000131 00000800 00000001 00000000 00000000
39e0: 00000000 00001000 00000000 00000000 00000000 00000000 00000000 00000000
3a00: 00000000 55555555 c7a080f8 c001e800 c7a080f8 00098800 c7823a3c c7823a28
3a20: c00fc588 c00fc3c4 00000800 c7814000 c7823a84 c7823a40 c00ffc94 c00fc57c
3a40: c7814000 c001e800 00000132 00000800 00000800 00000000 c7814000 c001e000
3a60: c03573c0 c7a080f8 c7814000 c030d924 0000009a c7409614 c7823ab4 c7823a88
3a80: c00fa004 c00ff9b0 00001000 c7823a98 c0061c40 c03573c0 0000000e 00000011
3aa0: 00200200 00100100 c7823acc c7823ab8 c00fa290 c00f9f90 c03573c0 0000000e
3ac0: c7823b1c c7823ad0 c0069864 c00fa28c 00000000 c7823ae8 00000020 c79ca000
3ae0: c7409610 00000011 c0357418 c03573f8 00000000 c79ca040 c7409610 00000000
3b00: c79ca000 0000009a c7823b88 c7409610 c7823b34 c7823b20 c0069938 c00696b4
3b20: 00000000 c7a7c0b0 c7823b74 c7823b38 c0062418 c006991c 00001000 000284d0
3b40: c7409578 c03571e0 00000000 00000001 c79cb000 c7a80000 c7a7c0b0 c7823b88
3b60: 00000000 000aa000 c7823bc4 c7823b78 c0074e74 c0062080 c7a80000 00000001
3b80: c7a80000 c79cb000 00000001 0000009a 000aa000 00000000 c7823bc4 00000001
3ba0: c7a80000 c7a80000 c7822000 000000aa 00000000 00000000 c7823c2c c7823bc8
3bc0: c00758f8 c0074e2c 0000009a 00000001 00000000 c7823bd0 00000000 000aa000
3be0: c7a7c0b0 c79cb000 000002a8 00000001 c79ca100 c7409958 c7823c1c c7823c08
3c00: c0069938 c7a7c0b0 c79cb000 000aa959 c7820000 c79cb034 00000805 c7823db0
3c20: c7823cdc c7823c30 c0029768 c0075804 c7823cb4 c7823c40 c0067714 c0067564
3c40: 00000041 c006126c ffffffff 00000018 00000000 c0323ff0 c0323fe8 00000000
3c60: 00000000 00000000 000284d0 00000000 c0323ff0 c009b94c 00000000 c03245c4
3c80: c0067714 c0323fd0 00000080 000084d0 000084d0 c03245c0 00000000 00000000
3ca0: 00000000 00000000 c7823d54 c7823cb8 c7a7c0d4 c0304560 c7823de4 00000805
3cc0: c03045b0 c7823db0 80000013 000aa959 c7823cfc c7823ce0 c00298e4 c00295d4
3ce0: c0304560 c7823de4 00000805 c03045b0 c7823dac c7823d00 c00232b4 c002987c
3d00: c7823d2c c7823d10 c007a670 c0079d78 c7a7c070 c009b94c c7a7c070 000aa000
3d20: c7823d8c c7823d30 c007bc40 c0079530 c7a7c108 c79cb000 c7a7c020 c7a7c108
3d40: 00100077 000ad000 c7823d6c c7823d58 c007a5fc c007d46c c7a7c108 c79cb000
3d60: c7823d8c c7823d70 c007a670 c0079d78 c7a7c018 c7a7c020 c7a7c018 000ab000
3d80: c7823dec c7823d90 ffffffff c7823de4 c7869d00 00000000 c7823f58 000accb4
3da0: c7823e0c c7823db0 c0023ae0 c0023284 000aa959 000006a7 00000000 410aafff
3dc0: 000aa959 c79ca080 c7869d00 00000000 c7823f58 000accb4 000accb4 c7823e0c
3de0: 00000001 c7823df8 c00bf568 c0123668 80000013 ffffffff 000006a7 c00bf568
3e00: c7823edc c7823e10 c00c0080 c00bf520 00001812 00000000 c007646c c0029f64
3e20: c7822000 c79ca100 00008000 00000000 00000001 c79c79e0 c7869e00 000aa959
3e40: c7823ea4 c7869d00 00008000 000a2100 000aa100 000aa959 c7823e8c c7823e68
3e60: c007664c c00762ec 00000017 c7823ea4 000a2100 c0076604 000aa959 00000007
3e80: c7823ec4 000aa100 c008dc88 c0076604 00000001 00000001 c7823ea4 00008000
3ea0: c7823efc 00000009 beffffc2 00000000 00000000 c030bab4 c7869d00 fffffff8
3ec0: c030b718 c7822000 00000000 00000000 c7823f14 c7823ee0 c008e190 c00bf96c
3ee0: c7823f58 c7869d02 c7823f58 00000000 c030417c c7869d00 c0304170 c03040e8
3f00: c7823f58 c7822000 c7823f54 c7823f18 c008f368 c008e0e0 c7823f74 00000000
3f20: c0357440 00000000 00030023 c045b10e c03040e8 c0304170 c7823f58 00000000
3f40: 00000000 00000000 c7823fbc c7823f58 c0026e40 c008f0d4 00000000 00000000
3f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3f80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3fa0: c03040e8 c0324620 c001c7a8 00000000 c7823fd4 c7823fc0 c00235ec c0026e10
3fc0: c001ca7c c001ca7c c7823ff4 c7823fd8 c00084c4 c00234f0 00000000 00000000
3fe0: 00000000 00000000 00000000 c7823ff8 c0038c80 c00083e0 00000000 00000000
Backtrace:
[<c01846d8>] (s3c2410_nand_select_chip+0x0/0xb0) from [<c018092c>] (nand_read_oob+0x208/0x34c)
r7:03296800 r6:00000000 r5:03796800 r4:0000001c
[<c0180724>] (nand_read_oob+0x0/0x34c) from [<c0179f10>] (part_read_oob+0x78/0xd4)
[<c0179e98>] (part_read_oob+0x0/0xd4) from [<c010727c>] (nandmtd2_ReadChunkWithTagsFromNAND+0x20c/0x228)
r6:00000800 r5:c78239c0 r4:c79e0400
[<c0107070>] (nandmtd2_ReadChunkWithTagsFromNAND+0x0/0x228) from [<c0105348>] (yaffs_ReadChunkWithTagsFromNAND+0x44/0xdc)
[<c0105304>] (yaffs_ReadChunkWithTagsFromNAND+0x0/0xdc) from [<c00fc35c>] (yaffs_FindChunkInGroup+0x148/0x1a0)
r7:0000656d r6:c7814000 r5:00000195 r4:0000002d
[<c00fc214>] (yaffs_FindChunkInGroup+0x0/0x1a0) from [<c00fc484>] (yaffs_FindChunkInFile+0xd0/0xd4)
[<c00fc3b4>] (yaffs_FindChunkInFile+0x0/0xd4) from [<c00fc588>] (yaffs_ReadChunkDataFromObject+0x1c/0x80)
r7:00098800 r6:c7a080f8 r5:c001e800 r4:c7a080f8
[<c00fc56c>] (yaffs_ReadChunkDataFromObject+0x0/0x80) from [<c00ffc94>] (yaffs_ReadDataFromFile+0x2f4/0x304)
r5:c7814000 r4:00000800
[<c00ff9a0>] (yaffs_ReadDataFromFile+0x0/0x304) from [<c00fa004>] (yaffs_readpage_nolock+0x84/0x178)
[<c00f9f80>] (yaffs_readpage_nolock+0x0/0x178) from [<c00fa290>] (yaffs_readpage+0x14/0x28)
r8:00100100 r7:00200200 r6:00000011 r5:0000000e r4:c03573c0
[<c00fa27c>] (yaffs_readpage+0x0/0x28) from [<c0069864>] (__do_page_cache_readahead+0x1c0/0x268)
r5:0000000e r4:c03573c0
[<c00696a4>] (__do_page_cache_readahead+0x0/0x268) from [<c0069938>] (ra_submit+0x2c/0x34)
[<c006990c>] (ra_submit+0x0/0x34) from [<c0062418>] (filemap_fault+0x3a8/0x3bc)
[<c0062070>] (filemap_fault+0x0/0x3bc) from [<c0074e74>] (__do_fault+0x58/0x3e0)
[<c0074e1c>] (__do_fault+0x0/0x3e0) from [<c00758f8>] (handle_mm_fault+0x104/0xae8)
[<c00757f4>] (handle_mm_fault+0x0/0xae8) from [<c0029768>] (do_page_fault+0x1a4/0x200)
[<c00295c4>] (do_page_fault+0x0/0x200) from [<c00298e4>] (do_translation_fault+0x78/0x80)
[<c002986c>] (do_translation_fault+0x0/0x80) from [<c00232b4>] (do_DataAbort+0x40/0xa4)
r7:c03045b0 r6:00000805 r5:c7823de4 r4:c0304560
[<c0023274>] (do_DataAbort+0x0/0xa4) from [<c0023ae0>] (__dabt_svc+0x40/0x60)
Exception stack(0xc7823db0 to 0xc7823df8)
3da0:                                     000aa959 000006a7 00000000 410aafff
3dc0: 000aa959 c79ca080 c7869d00 00000000 c7823f58 000accb4 000accb4 c7823e0c
3de0: 00000001 c7823df8 c00bf568 c0123668 80000013 ffffffff
[<c00bf510>] (padzero+0x0/0x64) from [<c00c0080>] (load_elf_binary+0x724/0x12fc)
[<c00bf95c>] (load_elf_binary+0x0/0x12fc) from [<c008e190>] (search_binary_handler+0xc0/0x25c)
[<c008e0d0>] (search_binary_handler+0x0/0x25c) from [<c008f368>] (do_execve+0x2a4/0x334)
[<c008f0c4>] (do_execve+0x0/0x334) from [<c0026e40>] (kernel_execve+0x40/0x8c)
[<c0026e00>] (kernel_execve+0x0/0x8c) from [<c00235ec>] (init_post+0x10c/0x178)
r7:00000000 r6:c001c7a8 r5:c0324620 r4:c03040e8
[<c00234e0>] (init_post+0x0/0x178) from [<c00084c4>] (kernel_init+0xf4/0x124)
r5:c001ca7c r4:c001ca7c
[<c00083d0>] (kernel_init+0x0/0x124) from [<c0038c80>] (do_exit+0x0/0x62c)
Code: bad PC value
---[ end trace 95eedf6c88e62613 ]---
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c0027a40>] (dump_backtrace+0x0/0x10c) from [<c0258f5c>] (dump_stack+0x18/0x1c)
r7:c7820000 r6:c0324e90 r5:69662064 r4:0000000b
[<c0258f44>] (dump_stack+0x0/0x1c) from [<c0258fac>] (panic+0x4c/0x134)
[<c0258f60>] (panic+0x0/0x134) from [<c00391b4>] (do_exit+0x534/0x62c)
r3:c03087f4 r2:c7823558 r1:c782342c r0:c02bb3cc
[<c0038c80>] (do_exit+0x0/0x62c) from [<c0027da0>] (die+0x254/0x288)
[<c0027b4c>] (die+0x0/0x288) from [<c00295b4>] (__do_kernel_fault+0x6c/0x7c)
[<c0029548>] (__do_kernel_fault+0x0/0x7c) from [<c002970c>] (do_page_fault+0x148/0x200)
r7:c7820000 r6:69662074 r5:c79cb000 r4:00010000
[<c00295c4>] (do_page_fault+0x0/0x200) from [<c00298e4>] (do_translation_fault+0x78/0x80)
[<c002986c>] (do_translation_fault+0x0/0x80) from [<c0023210>] (do_PrefetchAbort+0x40/0xa4)
r7:c03047b0 r6:00000005 r5:c78237d4 r4:c0304760
[<c00231d0>] (do_PrefetchAbort+0x0/0xa4) from [<c0023c44>] (__pabt_svc+0x44/0x80)
Exception stack(0xc78237a0 to 0xc78237e8)
37a0: c001e918 00000000 c8c00004 69662074 c7859e00 00000000 00000003 03296800
37c0: 00000026 c7863c00 c7863d80 c7823804 c7823808 c78237e8 c0184748 69662074
37e0: 20000013 ffffffff
[<c01846d8>] (s3c2410_nand_select_chip+0x0/0xb0) from [<c018092c>] (nand_read_oob+0x208/0x34c)
r7:03296800 r6:00000000 r5:03796800 r4:0000001c
[<c0180724>] (nand_read_oob+0x0/0x34c) from [<c0179f10>] (part_read_oob+0x78/0xd4)
[<c0179e98>] (part_read_oob+0x0/0xd4) from [<c010727c>] (nandmtd2_ReadChunkWithTagsFromNAND+0x20c/0x228)
r6:00000800 r5:c78239c0 r4:c79e0400
[<c0107070>] (nandmtd2_ReadChunkWithTagsFromNAND+0x0/0x228) from [<c0105348>] (yaffs_ReadChunkWithTagsFromNAND+0x44/0xdc)
[<c0105304>] (yaffs_ReadChunkWithTagsFromNAND+0x0/0xdc) from [<c00fc35c>] (yaffs_FindChunkInGroup+0x148/0x1a0)
r7:0000656d r6:c7814000 r5:00000195 r4:0000002d
[<c00fc214>] (yaffs_FindChunkInGroup+0x0/0x1a0) from [<c00fc484>] (yaffs_FindChunkInFile+0xd0/0xd4)
[<c00fc3b4>] (yaffs_FindChunkInFile+0x0/0xd4) from [<c00fc588>] (yaffs_ReadChunkDataFromObject+0x1c/0x80)
r7:00098800 r6:c7a080f8 r5:c001e800 r4:c7a080f8
[<c00fc56c>] (yaffs_ReadChunkDataFromObject+0x0/0x80) from [<c00ffc94>] (yaffs_ReadDataFromFile+0x2f4/0x304)
r5:c7814000 r4:00000800
[<c00ff9a0>] (yaffs_ReadDataFromFile+0x0/0x304) from [<c00fa004>] (yaffs_readpage_nolock+0x84/0x178)
[<c00f9f80>] (yaffs_readpage_nolock+0x0/0x178) from [<c00fa290>] (yaffs_readpage+0x14/0x28)
r8:00100100 r7:00200200 r6:00000011 r5:0000000e r4:c03573c0
[<c00fa27c>] (yaffs_readpage+0x0/0x28) from [<c0069864>] (__do_page_cache_readahead+0x1c0/0x268)
r5:0000000e r4:c03573c0
[<c00696a4>] (__do_page_cache_readahead+0x0/0x268) from [<c0069938>] (ra_submit+0x2c/0x34)
[<c006990c>] (ra_submit+0x0/0x34) from [<c0062418>] (filemap_fault+0x3a8/0x3bc)
[<c0062070>] (filemap_fault+0x0/0x3bc) from [<c0074e74>] (__do_fault+0x58/0x3e0)
[<c0074e1c>] (__do_fault+0x0/0x3e0) from [<c00758f8>] (handle_mm_fault+0x104/0xae8)
[<c00757f4>] (handle_mm_fault+0x0/0xae8) from [<c0029768>] (do_page_fault+0x1a4/0x200)
[<c00295c4>] (do_page_fault+0x0/0x200) from [<c00298e4>] (do_translation_fault+0x78/0x80)
[<c002986c>] (do_translation_fault+0x0/0x80) from [<c00232b4>] (do_DataAbort+0x40/0xa4)
r7:c03045b0 r6:00000805 r5:c7823de4 r4:c0304560
[<c0023274>] (do_DataAbort+0x0/0xa4) from [<c0023ae0>] (__dabt_svc+0x40/0x60)
Exception stack(0xc7823db0 to 0xc7823df8)
3da0:                                     000aa959 000006a7 00000000 410aafff
3dc0: 000aa959 c79ca080 c7869d00 00000000 c7823f58 000accb4 000accb4 c7823e0c
3de0: 00000001 c7823df8 c00bf568 c0123668 80000013 ffffffff
[<c00bf510>] (padzero+0x0/0x64) from [<c00c0080>] (load_elf_binary+0x724/0x12fc)
[<c00bf95c>] (load_elf_binary+0x0/0x12fc) from [<c008e190>] (search_binary_handler+0xc0/0x25c)
[<c008e0d0>] (search_binary_handler+0x0/0x25c) from [<c008f368>] (do_execve+0x2a4/0x334)
[<c008f0c4>] (do_execve+0x0/0x334) from [<c0026e40>] (kernel_execve+0x40/0x8c)
[<c0026e00>] (kernel_execve+0x0/0x8c) from [<c00235ec>] (init_post+0x10c/0x178)
r7:00000000 r6:c001c7a8 r5:c0324620 r4:c03040e8
[<c00234e0>] (init_post+0x0/0x178) from [<c00084c4>] (kernel_init+0xf4/0x124)
r5:c001ca7c r4:c001ca7c
[<c00083d0>] (kernel_init+0x0/0x124) from [<c0038c80>] (do_exit+0x0/0x62c)
[ 此帖被fasio在2009-12-13 20:25重新编辑 ]
级别: 新手上路
UID: 11584
精华: 0
发帖: 2
金钱: 20 两
威望: 10 点
综合积分: 4 分
注册时间: 2009-12-13
最后登录: 2009-12-14
1楼  发表于: 2009-12-13 14:04
令人感到意外的是:
在nfs启动后,试图去mount 那个mtdblock分区,居然提示大量的:
s3c24xx-nand s3c2440-nand: invalid chip 0,
(在mtd方式启动的时候,可没有说invalid chip)
最后几行提示:

s3c24xx-nand s3c2440-nand: invalid chip 0
uncorrectable error :
uncorrectable error :
uncorrectable error :
uncorrectable error :
uncorrectable error :
uncorrectable error :
uncorrectable error :
uncorrectable error :
page 26304 in gc has no object: 303174162 303174162 303174162
s3c24xx-nand s3c2440-nand: invalid chip 0
**>> Erasure failed 411
s3c24xx-nand s3c2440-nand: invalid chip 0
**>> Block 411 retired
Block 411 is in state 9 after gc, should be erased
s3c24xx-nand s3c2440-nand: invalid chip 0
yaffs tragedy: no more erased blocks
!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!
yaffs tragedy: no more erased blocks
!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!
mount: mounting /dev/mtdblock3 on /mnt/mtd/ failed: Invalid argument

本人在此给大家报一下,现在还是暂时使用2.6.29。