Hi all,
I hope this is the proper forum for this question.
I've been trying to figure out why pivot overlay does not work on the Armada XP platform, in particular a WRT1900AC. I am suspecting it has something to do with ubifs.
I am currently running trunk release r43336 and cannot get this to work no matter what I place in /etc/config/fstab ( I have tried everything in the extroot wiki page)
During console bootup I see the following when i have the target set to /overlay in the fstab file. The error it comes back with is "block: extroot: unable to retrieve rootfs information"
[ 2.420925] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 2.426201] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 2.434414] hub 2-0:1.0: USB hub found
[ 2.438204] hub 2-0:1.0: 2 ports detected
[ 2.442426] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 2.447691] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[ 2.455669] hub 3-0:1.0: USB hub found
[ 2.459459] hub 3-0:1.0: 2 ports detected
[ 2.466644] usbcore: registered new interface driver usb-storage
procd: WDT failed to write: Bad file descriptor
procd: - preinit -
[ 2.738049] random: nonblocking pool is initialized
[ 2.764267] usb 2-2: new high-speed USB device number 2 using xhci_hcd
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 2.908613] usb-storage 2-2:1.0: USB Mass Storage device detected
[ 2.914912] scsi1 : usb-storage 2-2:1.0
[ 3.915104] scsi 1:0:0:0: Direct-Access Patriot Memory PMAP PQ: 0 ANSI: 0 CCS
[ 3.925331] sd 1:0:0:0: [sda] 15663104 512-byte logical blocks: (8.01 GB/7.46 GiB)
[ 3.933106] sd 1:0:0:0: [sda] Write Protect is off
[ 3.938147] sd 1:0:0:0: [sda] No Caching mode page found
[ 3.943477] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 3.952313] sd 1:0:0:0: [sda] No Caching mode page found
[ 3.957660] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 3.964836] sda: sda1
[ 3.968354] sd 1:0:0:0: [sda] No Caching mode page found
[ 3.973684] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 3.979814] sd 1:0:0:0: [sda] Attached SCSI removable disk
block: extroot: unable to retrie[ 6.066777] UBIFS: background thread "ubifs_bgt0_1" started, PID 438
ve rootfs information
[ 6.091855] UBIFS: recovery needed
[ 6.155276] UBIFS: recovery completed
[ 6.159011] UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 6.165485] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 6.174652] UBIFS: FS size: 25522176 bytes (24 MiB, 201 LEBs), journal size 1269760 bytes (1 MiB, 10 LEBs)
[ 6.184349] UBIFS: reserved for root: 1205474 bytes (1177 KiB)
[ 6.190204] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 31B4D870-7D62-4475-8C9A-BF8A2D9CF46F, small LPT model
switching to overlay
[ 6.250775] UBI: attaching mtd8 to ubi1
[ 6.341414] UBI: scanning is finished
[ 6.349104] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 2, need 12
[ 6.359943] UBI: attached mtd8 (name "syscfg", size 38 MiB) to ubi1
[ 6.366247] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 6.373053] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 6.379781] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 6.386682] UBI: good PEBs: 296, bad PEBs: 8, corrupted PEBs: 0
[ 6.392618] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 6.399780] UBI: max/mean erase counter: 25/21, WL threshold: 4096, image sequence number: 750244846
[ 6.408944] UBI: available PEBs: 0, total reserved PEBs: 296, PEBs reserved for bad PEB handling: 2
[ 6.418032] UBI: background thread "ubi_bgt1d" started, PID 445
UBI device number 1, total 296 LEBs (37584896 by[ 6.428336] UBIFS: background thread "ubifs_bgt1_0" started, PID 448
tes, 35.8 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
[ 6.470084] UBIFS: mounted UBI device 1, volume 0, name "syscfg"
[ 6.476139] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 6.485308] UBIFS: FS size: 35680256 bytes (34 MiB, 281 LEBs), journal size 1777664 bytes (1 MiB, 14 LEBs)
[ 6.494995] UBIFS: reserved for root: 1685265 bytes (1645 KiB)
[ 6.500846] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 6C76BEAD-F1CC-46B1-9B9B-CCDD36A50A02, small LPT model
procd: - early -
Failed to connect to ubus
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[ 8.564013] NET: Registered protocol family 10
[ 8.581819] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 8.592625] leds-tlc59116: Using tlc59116 16-bit LED driver at slave address 0x68
After bootup I can make this volume mount to the /mnt/sda1 directory by typing "block mount" without issue. If I change it back to /overlay target and type the following I get the same error as during bootup:
root@OpenWrt:/etc/config# export PREINIT=1
root@OpenWrt:/etc/config# block extroot
block: extroot: unable to retrieve rootfs information
root@OpenWrt:/etc/config#
contents of /etc/config/fstab
config 'global'
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'
config 'mount'
option target '/overlay'
option uuid '675adbeb-75bf-4975-b64b-a8772e8cee9f'
option enabled '1'
root@OpenWrt:/# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 21.8M 440.0K 20.3M 2% /
/dev/root 7.5M 7.5M 0 100% /rom
tmpfs 124.9M 240.0K 124.7M 0% /tmp
/dev/ubi0_1 21.8M 440.0K 20.3M 2% /overlay
overlayfs:/overlay 21.8M 440.0K 20.3M 2% /
ubi1:syscfg 30.8M 272.0K 28.9M 1% /tmp/syscfg
tmpfs 512.0K 0 512.0K 0% /dev
root@OpenWrt:/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/ubi0_1 on /overlay type ubifs (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
ubi1:syscfg on /tmp/syscfg type ubifs (rw,relatime)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
Any help would be greatly appreciated!
(Last edited by tusc on 21 Nov 2014, 00:42)