主题 : 烧写UBI文件系统时遇到这样的问题,求解答 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 55484
精华: 0
发帖: 40
金钱: 200 两
威望: 40 点
综合积分: 80 分
注册时间: 2011-09-18
最后登录: 2015-08-12
楼主  发表于: 2012-02-07 20:09

 烧写UBI文件系统时遇到这样的问题,求解答

开发板 Tiny6410
NAND:K9GAG08U0E   2GB MLC

UBI制作工具:mkubimage-mlc2

串口输出
[    1.510000] NAND_ECC_NONE selected by board driver. This is not recommended !!
[    1.520000] Creating 3 MTD partitions on "NAND 2GiB 3,3V 8-bit":
[    1.530000] 0x000000000000-0x000000080000 : "Bootloader"
[    1.540000] 0x000000080000-0x000000580000 : "Kernel"
[    1.540000] 0x000000580000-0x000010000000 : "rootfs"
[    1.540000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    1.590000] mtd: partition "rootfs" set to be root filesystem
[    1.590000] split_squashfs: no squashfs found in "NAND 2GiB 3,3V 8-bit"
[    1.600000] UBI: attaching mtd2 to ubi0
[    1.600000] UBI: MTD device 2 is write-protected, attach in read-only mode
[    1.610000] UBI: physical eraseblock size:   1048576 bytes (1024 KiB)
[    1.620000] UBI: logical eraseblock size:    1032192 bytes
[    1.620000] UBI: smallest flash I/O unit:    8192
[    1.630000] UBI: VID header offset:          8192 (aligned 8192)
[    1.630000] UBI: data offset:                16384
[    2.220000] UBI error: check_what_we_have: MTD device possibly contains non-UBI data, refusing it
[    2.220000] UBI error: ubi_init: cannot attach mtd2
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
1楼  发表于: 2012-02-08 11:29
信息不够齐全,见我的签名链接
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
2楼  发表于: 2012-02-08 11:29
另外,使用光盘现成的烧写文件可以吗
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
级别: 新手上路
UID: 55484
精华: 0
发帖: 40
金钱: 200 两
威望: 40 点
综合积分: 80 分
注册时间: 2011-09-18
最后登录: 2015-08-12
3楼  发表于: 2012-02-08 14:03
文件系统是通过OPENWRT生成目录,而后重新使用mkubimage-mlc2打包而来。
烧写是使用论坛OpenWRT板块内找到的Lintel定制的UBOOT来进行的,使用DNW方式,UBOOT和内核在NAND中的烧写看上去都是正常的。

补上后续输出
[    2.230000] dm9000 Ethernet Driver, V1.31
[    2.350000] eth0: dm9000a at d09dc000,d0e00004 IRQ 108 MAC: 08:90:90:90:90:90 (chip)
[    2.350000] mice: PS/2 mouse device common for all mice
[    2.360000] touchscreen-1wire        initialized
[    2.360000] backlight-1wire  initialized
[    2.360000] input: TouchScreen Pipe as /devices/virtual/input/input0
[    2.370000] ts-if    initialized
[    2.370000] S3C24XX RTC, (c) 2004,2006 Simtec Electronics
[    2.380000] one_wire_status: 4
[    2.380000] s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling
[    2.390000] s3c-rtc s3c64xx-rtc: rtc core: registered s3c as rtc0
[    2.390000] i2c /dev entries driver
[    2.400000] Linux video capture interface: v2.00
[    2.400000] S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
[    2.410000] s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
[    2.410000] cpuidle: using governor ladder
[    2.420000] one_wire_status: 4
[    2.420000] sdhci: Secure Digital Host Controller Interface driver
[    2.430000] sdhci: Copyright(c) Pierre Ossman
[    2.430000] s3c-sdhci s3c-sdhci.0: clock source 0: hsmmc (133000000 Hz)
[    2.440000] s3c-sdhci s3c-sdhci.0: clock source 1: hsmmc (133000000 Hz)
[    2.440000] s3c-sdhci s3c-sdhci.0: clock source 2: mmc_bus (24000000 Hz)
[    2.450000] mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA
[    2.460000] one_wire_status: 4
[    2.470000] s3c6400_setup_sdhci_cfg_card: CTRL 2=c0004120, 3=80808080
[    2.470000] specify port
[    2.470000] snd_mpu401: probe of snd_mpu401.0 failed with error -22
[    2.480000] usbcore: registered new interface driver snd-usb-audio
[    2.480000] asoc: AC97 HiFi <-> s3c-ac97 mapping ok
[    2.490000] mmc0: host doesn't support card's voltages
[    2.490000] mmc0: error -22 whilst initialising SDIO card
[    2.740000] ALSA device list:
[    2.740000]   #0: MINI6410 (WM9713)
[    2.740000] TCP westwood registered
[    2.740000] NET: Registered protocol family 17
[    2.750000] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[    2.760000] All bugs added by David S. Miller <davem@redhat.com>
[    2.770000] s3c-rtc s3c64xx-rtc: hctosys: invalid date/time
[    2.770000] UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0:FriendlyARM-root", error -19
[    2.780000] VFS: Cannot open root device "ubi0:FriendlyARM-root" or unknown-block(31,2)
[    2.790000] Please append a correct "root=" boot option; here are the available partitions:
[    2.800000] one_wire_status: 2
[    2.800000] 1f00             512 mtdblock0 (driver?)
[    2.800000] 1f01            5120 mtdblock1 (driver?)
[    2.810000] 1f02          256512 mtdblock2 (driver?)
[    2.810000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
[    2.820000] one_wire_status: 2
[    2.820000] Backtrace:
[    2.830000] [<c002e528>] (dump_backtrace+0x0/0x10c) from [<c0341b2c>] (dump_stack+0x18/0x1c)
[    2.840000] one_wire_status: 2
[    2.840000]  r7:00008000 r6:cf813000 r5:c06828b9 r4:cf829f68
[    2.840000] [<c0341b14>] (dump_stack+0x0/0x1c) from [<c0341ba8>] (panic+0x78/0x194)
[    2.850000] [<c0341b30>] (panic+0x0/0x194) from [<c0008e4c>] (mount_block_root+0x1e4/0x2bc)
[    2.860000] one_wire_status: 4
[    2.860000]  r3:00000000 r2:cf84656c r1:cf829f68 r0:c03c0b78
[    2.870000] [<c0008c68>] (mount_block_root+0x0/0x2bc) from [<c0009024>] (prepare_namespace+0x94/0x188)
[    2.880000] one_wire_status: 4
[    2.880000] [<c0008f90>] (prepare_namespace+0x0/0x188) from [<c00084e8>] (kernel_init+0x114/0x154)
[    2.890000]  r6:c0041434 r5:c00230f4 r4:c00230f4
[    2.890000] [<c00083d4>] (kernel_init+0x0/0x154) from [<c0041434>] (do_exit+0x0/0x6ac)
[    2.900000] one_wire_status: 4
[    2.910000]  r5:c00083d4 r4:00000000
[   12.520000] mmc0: Timeout waiting for hardware interrupt.
[   12.520000] sdhci: ============== REGISTER DUMP ==============
[   12.520000] sdhci: Sys addr: 0x00000000 | Version:  0x00000401
[   12.520000] sdhci: Blk size: 0x00000000 | Blk cnt:  0x00000000
[   12.520000] sdhci: Argument: 0x00000000 | Trn mode: 0x00000000
[   12.520000] sdhci: Present:  0x01ff0000 | Host ctl: 0x00000001
[   12.520000] sdhci: Power:    0x00000000 | Blk gap:  0x00000000
[   12.520000] sdhci: Wake-up:  0x00000000 | Clock:    0x00000000
[   12.520000] sdhci: Timeout:  0x00000000 | Int stat: 0x00000000
[   12.520000] sdhci: Int enab: 0x00ff00c3 | Sig enab: 0x00ff00c3
[   12.520000] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[   12.520000] sdhci: Caps:     0x05e80080 | Max curr: 0x00000000
[   12.520000] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000
[   12.520000] sdhci: ===========================================
级别: 新手上路
UID: 55484
精华: 0
发帖: 40
金钱: 200 两
威望: 40 点
综合积分: 80 分
注册时间: 2011-09-18
最后登录: 2015-08-12
4楼  发表于: 2012-02-08 14:05
开发板光盘目前不在身边,暂时测试不了