3675|0

2

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

关于yaffs2制作过程中的问题 [复制链接]

我的板子是at91sam9263ek的,制作yaffs2用官方源码包生成的mkyaffs2image不能用用友善的出现一下:U-Boot 2010.06 (Jan 10 2012 - 03:06:32)

DRAM:  64 MiB
NAND:  128 MiB
DataFlash:AT45DB321
Nb pages:   8192
Page Size:    528
Size= 4325376 bytes
Logical address: 0xC0000000
Area 0: C0000000 to C0003FFF (RO) Bootstrap
Area 1: C0004000 to C0007FFF      Environment
Area 2: C0008000 to C0047FFF (RO) U-Boot
Area 3: C0048000 to C041FFFF      Kernel
In:    serial
Out:   serial
Err:   serial
Net:   macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation timed out (status=0x7849)
macb0: link down (status: 0x7849)
Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at 22200000 ...
   Image Name:   uImage
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1448504 Bytes = 1.4 MiB
   Load Address: 22200000
   Entry Point:  22200040
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
.................................. done, booting the kernel.
Linux version 2.6.29.4 (root@localhost.localdomain) (gcc version 4.3.2 (Sourcery
 G++ Lite 2008q3-72) ) #2 Thu Jan 12 13:27:32 CST 2012
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9263-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: mem=64M console=ttyS0,115200 root=/dev/mtdblock2 init=/linu
xrc
AT91: 160 gpio irqs in 5 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
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: 61828KB available (2692K code, 224K data, 112K init)
Calibrating delay loop... 99.12 BogoMIPS (lpj=495616)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 296 bytes
NET: Registered protocol family 16
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
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 120
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_lcdfb atmel_lcdfb.0: backlight control is not available
atmel_lcdfb atmel_lcdfb.0: 150KiB frame buffer at 23940000 (mapped at ffc00000)
atmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00700000 (mapped at c4866000), i
rq 26
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
brd: module loaded
loop: module loaded
nbd: registered device at major 43
dm9000 Ethernet Driver, V1.31
eth0 (macb): not using net_device_ops yet
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffbc000 irq 21 (1a:2b:3c:4d:5e:6f)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
Driver 'sd' needs updating - please use bus_type methods
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bi
t)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 4 MTD partitions on "atmel_nand":
0x000000000000-0x000000f00000 : "cramfs"
0x000000f00000-0x000001e00000 : "jffs2"
0x000001e00000-0x000003c00000 : "yaffs"
0x000003c00000-0x000008000000 : "user"
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffa4000 (irq 14)
mtd_dataflash spi0.0: AT45DB321x (4224 KBytes) pagesize 528 bytes (OTP)
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 29, io mem 0x00a00000
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.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
input: gpio-keys as /class/input/input0
ads7846 spi0.3: touchscreen, irq 31
input: ADS784x Touchscreen as /class/input/input1
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
IRQ 1/rtc0: IRQF_DISABLED is not guaranteed on shared IRQs
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 68 (SDA) and 69 (SCL)
AT91SAM9 Watchdog: sorry, watchdog is disabled
at91_wdt: probe of at91_wdt failed with error -5
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
yaffs: dev is 32505858 name is "mtdblock2" rw
yaffs: passed flags ""
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 112K
------------[ cut here ]------------
WARNING: at lib/kref.c:43 kref_get+0x28/0x4c()
Modules linked in:
[<c022f104>] (dump_stack+0x0/0x14) from [<c003b24c>] (warn_slowpath+0x70/0x8c)
[<c003b1dc>] (warn_slowpath+0x0/0x8c) from [<c011fe5c>] (kref_get+0x28/0x4c)
 r3:c02cc528 r2:00000000
 r7:c386cbc0 r6:c38b6520 r5:c02d3fe4 r4:c38b6524
[<c011fe34>] (kref_get+0x0/0x4c) from [<c0138374>] (tty_open+0xfc/0x400)
 r5:c02d3fe4 r4:00000000
[<c0138278>] (tty_open+0x0/0x400) from [<c0083f90>] (chrdev_open+0x144/0x164)
[<c0083e4c>] (chrdev_open+0x0/0x164) from [<c007f8b8>] (__dentry_open+0x148/0x26
4)
 r8:c380a2a0 r7:00000000 r6:c0083e4c r5:c3407888 r4:c386cbc0
[<c007f770>] (__dentry_open+0x0/0x264) from [<c007fab8>] (nameidata_to_filp+0x50
/0x68)
[<c007fa68>] (nameidata_to_filp+0x0/0x68) from [<c008c398>] (do_filp_open+0x378/
0x700)
 r5:c3819ef0 r4:00000000
[<c008c020>] (do_filp_open+0x0/0x700) from [<c007f684>] (do_sys_open+0x5c/0xec)
[<c007f628>] (do_sys_open+0x0/0xec) from [<c007f74c>] (sys_open+0x24/0x28)
 r8:00000000 r7:00000000 r6:00000000 r5:00000000 r4:c02e1920
[<c007f728>] (sys_open+0x0/0x28) from [<c00244a0>] (init_post+0x30/0x100)
[<c0024470>] (init_post+0x0/0x100) from [<c00085e8>] (kernel_init+0xcc/0xf4)
 r5:00000000 r4:c02e1920
[<c000851c>] (kernel_init+0x0/0xf4) from [<c003e0e8>] (do_exit+0x0/0x674)
 r4:00000000
---[ end trace 94ab71de2cfc004e ]---
Unable to handle kernel NULL pointer dereference at virtual address 0000000c
pgd = c0004000
[0000000c] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in:
CPU: 0    Tainted: G        W   (2.6.29.4 #2)
PC is at tty_open+0x18c/0x400
LR is at add_taint+0x20/0x2c
pc : [<c0138404>]    lr : [<c003b1d0>]    psr: 60000013
sp : c3819e10  ip : 60000013  fp : c3819e4c
r10: 00500001  r9 : c3818000  r8 : 00000001
r7 : c386cbc0  r6 : c38b6520  r5 : c02d3fe4  r4 : 00000000
r3 : 0000000c  r2 : 00000000  r1 : c02e27b8  r0 : 00000009
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 0005317f  Table: 20004000  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc3818268)
Stack: (0xc3819e10 to 0xc381a000)
9e00:                                     c3407888 00000002 c3819e54 00000000
9e20: c3819e58 00000000 00000000 c02f4f80 c3407888 c386cbc0 00000000 c3401e18
9e40: c3819e7c c3819e50 c0083f90 c0138288 c008b2c0 00000000 c380a2a0 c386cbc0
9e60: c3407888 c0083e4c 00000000 c380a2a0 c3819ea4 c3819e80 c007f8b8 c0083e5c
9e80: c386cbc0 c3812660 ffffff9c 00000000 00000003 00000000 c3819ec4 c3819ea8
9ea0: c007fab8 c007f780 00000000 c3812660 00000000 c3819ef0 c3819f7c c3819ec8
9ec0: c008c398 c007fa78 00000003 0000001c 00000000 00000000 00000002 00000006
9ee0: 00000026 c3819f6c 00000000 c3819f00 c380a2a0 c3401e18 60000013 ffffffff
9f00: c3819f4c 00000101 00000001 00000000 c3819f94 c02e1128 00000003 00000001
9f20: c380a2a0 c0300460 c02e1108 60000013 00000000 00000003 00000000 c386cbc0
9f40: c3814bc4 00000000 c3819f7c c3819f58 c0094568 00000002 00000000 ffffff9c
9f60: 00000000 c38cf000 00000000 00000000 c3819fac c3819f80 c007f684 c008c030
9f80: c002b464 c022f24c c0288685 c02e1920 00000000 00000000 00000000 00000000
9fa0: c3819fbc c3819fb0 c007f74c c007f638 c3819fd4 c3819fc0 c00244a0 c007f738
9fc0: c02e1920 00000000 c3819ff4 c3819fd8 c00085e8 c0024480 00000000 00000001
9fe0: 00000000 00000000 00000000 c3819ff8 c003e0e8 c000852c 339c339c 37dc33cc
Backtrace:
[<c0138278>] (tty_open+0x0/0x400) from [<c0083f90>] (chrdev_open+0x144/0x164)
[<c0083e4c>] (chrdev_open+0x0/0x164) from [<c007f8b8>] (__dentry_open+0x148/0x26
4)
 r8:c380a2a0 r7:00000000 r6:c0083e4c r5:c3407888 r4:c386cbc0
[<c007f770>] (__dentry_open+0x0/0x264) from [<c007fab8>] (nameidata_to_filp+0x50
/0x68)
[<c007fa68>] (nameidata_to_filp+0x0/0x68) from [<c008c398>] (do_filp_open+0x378/
0x700)
 r5:c3819ef0 r4:00000000
[<c008c020>] (do_filp_open+0x0/0x700) from [<c007f684>] (do_sys_open+0x5c/0xec)
[<c007f628>] (do_sys_open+0x0/0xec) from [<c007f74c>] (sys_open+0x24/0x28)
 r8:00000000 r7:00000000 r6:00000000 r5:00000000 r4:c02e1920
[<c007f728>] (sys_open+0x0/0x28) from [<c00244a0>] (init_post+0x30/0x100)
[<c0024470>] (init_post+0x0/0x100) from [<c00085e8>] (kernel_init+0xcc/0xf4)
 r5:00000000 r4:c02e1920
[<c000851c>] (kernel_init+0x0/0xf4) from [<c003e0e8>] (do_exit+0x0/0x674)
 r4:00000000
Code: e3540000 1a000011 e59630b0 e51b2030 (e5933000)
---[ end trace 94ab71de2cfc004f ]---
Kernel panic - not syncing: Attempted to kill init!

已经打开EABI 支持,但是还是这样,不知道是什么问题。文件系统和内核都用arm-linux-gcc4.3.2编译。

此帖出自Linux开发论坛
点赞 关注

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

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/6 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表