主题 : 为什么我的ubifs文件系统启动不正常 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 66442
精华: 0
发帖: 25
金钱: 125 两
威望: 25 点
综合积分: 50 分
注册时间: 2012-03-30
最后登录: 2018-02-08
楼主  发表于: 2013-05-03 09:34

 为什么我的ubifs文件系统启动不正常

我的kernel启动过程中无MLC nand initialized, 2011 ported by FriendlyARM这个信息,
并且还是只读的
Creating 3 MTD partitions on "NAND 2GiB 3,3V 8-bit":
0x000000000000-0x000000080000 : "Bootloader"
0x000000080000-0x000000580000 : "Kernel"
0x000000580000-0x000080000000 : "File System"
mtd: partition "File System" doesn't start on an erase block boundary -- force r
ead-only
UBI: attaching mtd2 to ubi0
UBI: MTD device 2 is write-protected, attach in read-only mode

我已选取了Enable UBI和UBIFS file system support
级别: 新手上路
UID: 66442
精华: 0
发帖: 25
金钱: 125 两
威望: 25 点
综合积分: 50 分
注册时间: 2012-03-30
最后登录: 2018-02-08
1楼  发表于: 2013-05-03 10:04
U-Boot 1.1.6 (May  2 2013 - 09:18:46) for FriendlyARM MINI6410


CPU:     S3C6410@532MHz
         Fclk = 532MHz, Hclk = 133MHz, Pclk = 66MHz, Serial = CLKUART (SYNC Mode
)
Board:   MINI6410
DRAM:    256 MB
Flash:   0 kB
NAND:    2048 MB
In:      serial
Out:     serial
Err:     serial
MAC: 08:90:90:90:90:90
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x400000, size 0x500000
..... 5242880 bytes read: OK
Boot with zImage

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.38-FriendlyARM (root@localhost.localdomain) (gcc version 4.5.1
(ctng-1.8.1-FA) ) #6 PREEMPT Fri May 3 10:00:49 CST 2013
CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: MINI6410
Memory policy: ECC disabled, Data cache writeback
CPU S3C6410 (id 0x36410101)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
camera: no parent clock specified
S3C64XX: PLL settings, A=532000000, M=532000000, E=24000000
S3C64XX: HCLK2=266000000, HCLK=133000000, PCLK=66500000
mout_apll: source is fout_apll (1), rate is 532000000
mout_epll: source is epll (1), rate is 24000000
mout_mpll: source is mpll (1), rate is 532000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
usb-bus-host: source is clk_48m (0), rate is 48000000
uclk1: source is dout_mpll (1), rate is 66500000
spi-bus: source is mout_epll (0), rate is 24000000
spi-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
irda-bus: source is mout_epll (0), rate is 24000000
camera: no parent clock specified
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: init=/linuxrc rootfstype=ubifs root=ubi0:FriendlyARM-root u
bi.mtd=2 console=ttySAC0,115200
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 254196k/254196k available, 7948k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xff000000 - 0xffe00000   (  14 MB)
    vmalloc : 0xd0800000 - 0xf6000000   ( 600 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .init : 0xc0008000 - 0xc0078000   ( 448 kB)
      .text : 0xc0078000 - 0xc0509e64   (4680 kB)
      .data : 0xc050a000 - 0xc0548420   ( 250 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:246
VIC @f6000000: id 0x00041192, vendor 0x41
VIC @f6010000: id 0x00041192, vendor 0x41
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 530.84 BogoMIPS (lpj=2654208)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
s3c64xx_dma_init: Registering DMA channels
PL080: IRQ 73, at d0808000, channels 0..8
PL080: IRQ 74, at d080c000, channels 8..16
S3C6410: Initialising architecture
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 64 KHz
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
Advanced Linux Sound Architecture Driver Version 1.0.23.
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 128 (order: 0, 6144 bytes)
UDP-Lite hash table entries: 128 (order: 0, 6144 bytes)
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 (double precision)
msgmni has been set to 496
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered (default)
S3C_LCD clock got enabled :: 133.000 Mhz
LCD TYPE :: SVGA will be initialized
Window[0] - FB1: map_video_memory: clear ff000000:001d4c00
            FB1: map_video_memory: dma=5fa00000 cpu=ff000000 size=001d4c00
Window[0] - FB2: map_video_memory: clear ff0ea600:000ea600
            FB2: map_video_memory: dma=5faea600 cpu=ff0ea600 size=000ea600
Console: switching to colour frame buffer device 100x37
fb0: s3cfb frame buffer device
Window[1] - FB1: map_video_memory: clear ff200000:001d4c00
            FB1: map_video_memory: dma=5f000000 cpu=ff200000 size=001d4c00
Window[1] - FB2: map_video_memory: clear ff2ea600:000ea600
            FB2: map_video_memory: dma=5f0ea600 cpu=ff2ea600 size=000ea600
fb1: s3cfb frame buffer device
s3c6400-uart.0: ttySAC0 at MMIO 0x7f005000 (irq = 16) is a S3C6400/10
s3c6400-uart.1: ttySAC1 at MMIO 0x7f005400 (irq = 20) is a S3C6400/10
s3c6400-uart.2: ttySAC2 at MMIO 0x7f005800 (irq = 24) is a S3C6400/10
s3c6400-uart.3: ttySAC3 at MMIO 0x7f005c00 (irq = 28) is a S3C6400/10
loop: module loaded
SSFDC read-only Flash Translation layer
S3C NAND Driver, (c) 2008 Samsung Electronics
S3C NAND Driver is using hardware ECC.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3V 8-bit)

Creating 3 MTD partitions on "NAND 2GiB 3,3V 8-bit":
0x000000000000-0x000000080000 : "Bootloader"
0x000000080000-0x000000580000 : "Kernel"
0x000000580000-0x000080000000 : "File System"
mtd: partition "File System" doesn't start on an erase block boundary -- force r
ead-only
UBI: attaching mtd2 to ubi0
UBI: MTD device 2 is write-protected, attach in read-only mode
UBI: physical eraseblock size:   1048576 bytes (1024 KiB)
UBI: logical eraseblock size:    1032192 bytes
UBI: smallest flash I/O unit:    8192
UBI: VID header offset:          8192 (aligned 8192)
UBI: data offset:                16384
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:
0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
0:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 19
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
19:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 20
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
20:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 21
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
21:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 22
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
22:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 23
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
23:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 24
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
24:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 25
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
25:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 26
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
26:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 27
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
27:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 28
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
28:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 29
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
29:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 30
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
30:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 31
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
31:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 32
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
32:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 33
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
33:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 34
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
34:8192, read 8192 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 35
:0, read 64 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 8192 bytes from PEB
35:8192, read 8192 bytes
级别: 侠客
UID: 54261
精华: 9
发帖: 43
金钱: 665 两
威望: 133 点
综合积分: 266 分
注册时间: 2011-08-27
最后登录: 2014-08-08
2楼  发表于: 2013-05-03 14:23
你的分区表不对,"File System"分区的起始地址不在擦除块开头。
貌似2G NAND每块是1MB吧,0x000000580000显然不是块开头哈。
改分区表试下。

内核报了一大堆ECC错误,检查loader和kernel的NAND驱动是否匹配...
你是用loader写入UBIFS.img的哇?
[ 此帖被mei5150在2013-05-03 16:38重新编辑 ]