[LEDE-DEV] sunxi: fixed Bananapi M1 overlayfs mount on /tmp/overlay

xige evaxige at gmail.com
Mon Dec 12 23:04:09 PST 2016


Hi,
I found a overlayfs mount problem on sunxi platform.

Boot console output: 
[    6.920131] mount_root: loading kmods from internal overlay
[    7.262429] block: attempting to load /etc/config/fstab
[    7.267843] block: unable to load configuration (fstab: Entry not found)
[    7.274651] block: no usable configuration
[    7.315660] random: procd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
[    7.329935] mount_root: rootdisk overlay filesystem has not been formatted yet

      F2FS-tools: mkfs.f2fs Ver: 1.7.0 (2016-07-28)

Info: Debug level = 0
Info: Label = rootfs_data
Info: Trim is enabled
Info: Segments per section = 1[    7.499245] random: mkfs.f2fs: uninitialized urandom read (16 bytes read, 12 bits of entropy available)

Info: Sections per zone = 1
Info: sector size = 512
Info: total sectors = 2089216 (1020 MB)
Info: zone aligned segment0 blkaddr: 512
Info: format version with
"Linux version 4.4.36 (evaxige at evaxiges-Mac-Pro.local) (gcc version 5.4.0 (LEDE GCC 5.4.0 r2449-7c47f43) ) #0 SMP PREEMPT Sat Dec 10 15:08:06 2016"
Info: Discarding device
Info: This device doesn't support BLKSECDISCARD
Info: This device doesn't support BLKDISCARD
Info: Overprovision ratio = 6.380%
Info: Overprovision segments = 68 (GC reserved = 39)
Info: format successful[    8.540616] mount_root: failed to mount -t f2fs /dev/loop0 /tmp/overlay: No such device

[    8.808484] block: attempting to load /etc/config/fstab
[    8.814029] block: unable to load configuration (fstab: Entry not found)
[    8.820851] block: no usable configuration
[    8.825565] mount_root: overlay filesystem has not been fully initialized yet
[    8.833382] mount_root: switching to f2fs overlay
[    8.838162] mount_root: switching to f2fs failed - fallback to ramoverlay
[    8.849050] urandom-seed: Seed file not found (/etc/urandom.seed)
[    8.917742] procd: - early -
[    8.920799] procd: - watchdog -
[    9.682197] procd: - ubus -
[    9.717151] random: ubusd: uninitialized urandom read (4 bytes read, 69 bits of entropy available)


Add ‘f2fs' and ‘loop’ features in config-4.4, boot system, 'overlayfs:overlay mount on /', seems ok.

Boot console output:
[    6.965596] mount_root: loading kmods from internal overlay
[    7.303330] block: attempting to load /etc/config/fstab
[    7.308760] block: unable to load configuration (fstab: Entry not found)
[    7.315685] block: no usable configuration
[    7.356848] random: procd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[    7.789755] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[    7.909299] block: attempting to load /etc/config/fstab
[    7.914854] block: unable to load configuration (fstab: Entry not found)
[    7.921684] block: no usable configuration
[    7.926668] mount_root: switching to f2fs overlay
[    7.937646] urandom-seed: Seeding with /etc/urandom.seed


Cheers, 
Wei


-------------- next part --------------
A non-text attachment was scrubbed...
Name: sunxi_overlayfs.patch
Type: application/octet-stream
Size: 3525 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20161213/daa9acf3/attachment.obj>


More information about the Lede-dev mailing list