搜索
bottom↓
回复: 3

ubifs根文件系统起不来

[复制链接]

出0入0汤圆

发表于 2013-9-15 15:42:43 | 显示全部楼层 |阅读模式
nandflash是k9F1208U0c  
mkfs.ubifs -r rootfs -m 512 -e 15872 -c 4096 -o ubifs.img
ubinize -o ubi.img -m 512 -p 16KiB -s 256 ubinize.cfg

[ubifs]
mode=ubi
image=ubifs.img
vol_id=0
vol_size=62MiB
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize



setenv bootargs console=ttyS0,115200n8 ubi.mtd=5 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc rw  

device nand0 <nandflash0>, # parts = 6
#: name                size            offset          mask_flags
0: At91strap           0x00020000      0x00000000      0
1: uboot               0x00060000      0x00020000      0
2: env1                0x00010000      0x00080000      0
3: env2                0x00010000      0x00090000      0
4: kernel              0x00200000      0x000a0000      0
5: root                0x03d60000      0x002a0000      0   


求大家能指点一下?

U-Boot 2012.10 (Sep 12 2013 - 23:06:39)

CPU: AT91SAM9260
Crystal frequency:       12 MHz
CPU clock        :      200 MHz
Master clock     :      100 MHz
DRAM:  64 MiB
WARNING: Caches not enabled
NAND:  64 MiB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0xa0000, size 0x200000
2097152 bytes read: OK
## Booting kernel from Legacy Image at 22000000 ...
   Image Name:   Linux-2.6.38
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1516112 Bytes = 1.4 MiB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.38 (root@ubuntu) (gcc version 4.5.2 (Sourcery G++ Lite 2011.03
-41) ) #2 Thu Sep 12 23:44:01 PDT 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 200 MHz, master 100 MHz, main 12.000 MHz
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: ttyS0,115200 root=ubi0_0 ubi.mtd=5 rootfstype=ubifs
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: 61896k/61896k available, 3640k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc4800000 - 0xfee00000   ( 934 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0024000   ( 112 kB)
      .text : 0xc0024000 - 0xc02c685c   (2699 kB)
      .data : 0xc02c8000 - 0xc02e6000   ( 120 kB)
NR_IRQS:192
AT91: 96 gpio irqs in 3 banks
Console: colour dummy device 80x30
console [tty0] enabled
console [ttyS0] enabled
Calibrating delay loop... 99.73 BogoMIPS (lpj=498688)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
max706: Work on CS_PIN:105  DI_PIN:100 -1070798512
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
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
Switching to clocksource pit
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
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 (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
atmel_usart.3: ttyS3 at MMIO 0xfffb8000 (irq = 8) is a ATMEL_SERIAL
atmel_usart.4: ttyS4 at MMIO 0xfffd0000 (irq = 23) is a ATMEL_SERIAL
GPIO: PB17 PB18 PB19
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit
)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Creating 6 MTD partitions on "atmel_nand":
0x000000000000-0x000000020000 : "bootstrap"
0x000000020000-0x000000080000 : " uboot "
0x000000080000-0x000000090000 : "uboot env1"
0x000000090000-0x0000000a0000 : "uboot env2"
0x0000000a0000-0x0000002a0000 : "linux"
0x0000002a0000-0x000004000000 : "rootfs"
UBI: attaching mtd5 to ubi0
UBI: physical eraseblock size:   16384 bytes (16 KiB)
UBI: logical eraseblock size:    15872 bytes
UBI: smallest flash I/O unit:    512
UBI: sub-page size:              256
UBI: VID header offset:          256 (aligned 256)
UBI: data offset:                512
UBI: max. sequence number:       0
UBI error: vtbl_check: volume table check failed: record 0, error 9
UBI error: ubi_init: cannot attach mtd5
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (20:00:00:00:00:00)
eth0: attached PHY driver [LXT971] (mii_bus:phy_addr=ffffffff:01, irq=-1)
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 20, io mem 0x00500000
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
mousedev: PS/2 mouse device common for all mice
rtc-pcf8563 0-0051: chip found, driver version 0.4.3
rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
i2c /dev entries driver
Max706 Watchdog Timer (timeout = 1sec,, nowayout)
TCP cubic registered
NET: Registered protocol family 17
rtc-pcf8563 0-0051: pcf8563_get_datetime: read error
rtc-pcf8563 0-0051: hctosys: unable to read the harsware cloc
VFS: Cannot open root device "ubi0_0" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00             128 mtdblock0  (driver?)
1f01             384 mtdblock1  (driver?)
1f02              64 mtdblock2  (driver?)
1f03              64 mtdblock3  (driver?)
1f04            2048 mtdblock4  (driver?)
1f05           62848 mtdblock5  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c002f0dc>] (unwind_backtrace+0x0/0xe0) from [<c0214d8c>] (panic+0x50/0x174)
[<c0214d8c>] (panic+0x50/0x174) from [<c0008ec0>] (mount_block_root+0x234/0x284)

[<c0008ec0>] (mount_block_root+0x234/0x284) from [<c0008ff8>] (prepare_namespace
+0x88/0x180)
[<c0008ff8>] (prepare_namespace+0x88/0x180) from [<c0008b48>] (kernel_init+0x108
/0x148)
[<c0008b48>] (kernel_init+0x108/0x148) from [<c002accc>] (kernel_thread_exit+0x0
/0x8)

阿莫论坛20周年了!感谢大家的支持与爱护!!

曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……

出0入0汤圆

 楼主| 发表于 2013-9-15 17:15:42 | 显示全部楼层
各位大神 指点一下吧

出0入0汤圆

发表于 2013-9-19 16:07:42 | 显示全部楼层
UBI error: vtbl_check: volume table check failed: record 0, error 9
先确认ubi image制作没问题,然后确认烧录没问题

出0入0汤圆

发表于 2013-9-23 09:15:48 | 显示全部楼层
看下启动的环境变量吧,是不是从正确分区启动。
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-8-26 01:55

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

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