Guess I start a thread here instead of blowing up the sd card debian blog post (o;
I'm trying to get debian-7.5-bare-armhf-2014-07-07 onto the NAND flash....so far it does actually boot the image, but mounts the fs only as RO due to fsck errors...
Steps I've taken...
- Downloaded debian-7.5-bare-armhf-2014-07-07
- mkfs.ubifs -r debian-7.5-bare-armhf-2014-07-07 -m 2048 -e 126976 -c 1984 -o debian.ubifs.img
- ubinize -vv -o debian.ubi -m 2048 -p 131072 ubifs.ini
- flashed the image with the ./demo_linux_nandflash.sh script, just replaced the file name in demo_linux_nandflash.tcl:
set rootfsFile "debian.ubi"
Content of ubifs.ini for creating the UBI image:
[rootfs_volume]
mode=ubi
image=debian.ubifs.img
vol_id=1
vol_size=224MiB
vol_type=dynamic
vol_name=rootfs
vol_alignment=1
And here's the boot log:
ThumbEE CPU extension supported. | |
Registering SWP/SWPB emulation handler | |
UBI: attaching mtd7 to ubi0 | |
UBI: scanning is finished | |
UBI: attached mtd7 (name "rootfs", size 248 MiB) to ubi0 | |
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes | |
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 | |
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 | |
UBI: good PEBs: 1977, bad PEBs: 7, corrupted PEBs: 0 | |
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 | |
UBI: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 2000743801 | |
UBI: available PEBs: 90, total reserved PEBs: 1887, PEBs reserved for bad PEB handling: 33 | |
UBI: background thread "ubi_bgt0d" started, PID 681 | |
input: gpio_keys.3 as /devices/gpio_keys.3/input/input0 | |
at91_rtc fffffeb0.rtc: setting system clock to 2007-01-01 01:05:21 UTC (1167613521) | |
atmel_mci f0000000.mmc: version: 0x505 | |
atmel_mci f0000000.mmc: using dma0chan5 for DMA transfers | |
atmel_mci f0000000.mmc: Atmel MCI controller at 0xf0000000 irq 17, 1 slots | |
atmel_mci f8000000.mmc: version: 0x505 | |
atmel_mci f8000000.mmc: using dma1chan7 for DMA transfers | |
atmel_mci f8000000.mmc: Atmel MCI controller at 0xf8000000 irq 27, 1 slots | |
ALSA device list: | |
No soundcards found. | |
UBIFS: background thread "ubifs_bgt0_1" started, PID 694 | |
UBIFS: mounted UBI device 0, volume 1, name "rootfs"(null) | |
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes | |
UBIFS: FS size: 233508864 bytes (222 MiB, 1839 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) | |
UBIFS: reserved for root: 0 bytes (0 KiB) | |
UBIFS: media format: w4/r0 (latest is w4/r0), UUID AA55C6C8-9E31-4D7C-A3A1-90D56F848A20, small LPT model | |
VFS: Mounted root (ubifs filesystem) on device 0:12. | |
devtmpfs: mounted | |
Freeing unused kernel memory: 116K (c05b5000 - c05d2000) | |
INIT: version 2.88 booting | |
[info] Using makefile-style concurrent boot in runlevel S. | |
[....] Starting the hotplug events dispatcher: udevdudevd[809]: starting version 175 | |
. ok | |
[....] Synthesizing the initial hotplug events...done. | |
[....] Waiting for /dev to be fully populated...UBI error: ubi_open_volume: cannot open device 0, volume 1, error -16 | |
done. | |
[....] Activating swap...done. | |
UBIFS: background thread "ubifs_bgt0_1" stops | |
[....] Checking root file system...fsck from util-linux 2.20.1 | |
fsck: fsck.auto: not found | |
fsck: error 2 while executing fsck.auto for /run/rootdev | |
fsck died with exit status 8 | |
failed (code 8). |
[....] An automatic file system check (fsck) of the root filesystem failed. A manual fsck must be performed, then the system restarted. The fsck s!
[....] The root filesystem is currently mounted in read-only mode. A maintenance shell will now be started. After performing system maintenance, p.
Give root password for maintenance | |
(or type Control-D to continue): | |
root@arm:~# | |
root@arm:~# |
I've also set FSCKFIX=no in /etc/default/rcS, but this doesn't bypass the fsck during boot.
Any ideas what's wrong/missing?