First, I should say that I've gone through Extroot configuration and Overlay FS support (how to enable overlay for new device). They all deal with an individual image after it's flashed, not how to configure for one in development of the image.
I'm building OpenWrt from source on an unsupported device. Currently, everything is being baked into the image, but without an extroot, changes made on-device don't survive a reboot.
The image does not create an rootfs_data partition.
The image does not have a populated /etc/fstab
root@OpenWrt:/# cat /proc/mtd
dev: size erasesize name
root@OpenWrt:/# cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
root@OpenWrt:/#
Below is the fdisk output.
Disk /dev/mmcblk1: 3688 MB, 3867148288 bytes, 7553024 sectors
7553024 cylinders, 1 heads, 1 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk1p1 * 0,0,1 0,0,1 2048 2099200 2097153 1024M c Win95 FAT32 (LBA)
/dev/mmcblk1p2 0,0,1 1023,0,1 2101248 3842047 1740800 850M 83 Linux
/dev/mmcblk1p3 0,0,1 1023,0,1 3842048 5582847 1740800 850M 83 Linux
/dev/mmcblk1p4 0,0,1 1023,0,1 5582848 7323647 1740800 850M 83 Linux
Disk /dev/mmcblk1boot1: 2 MB, 2097152 bytes, 4096 sectors
64 cylinders, 4 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Disk /dev/mmcblk1boot1 doesn't contain a valid partition table
Disk /dev/mmcblk1boot0: 2 MB, 2097152 bytes, 4096 sectors
64 cylinders, 4 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Disk /dev/mmcblk1boot0 doesn't contain a valid partition table
I'm looking to host the /extroot
on /dev/mmcblk1p3
, and I've already formatted the partition as f2fs (I like the idea of the flash-friendly aspect given the onboard mmc (non-removable)
If anyone can walk me through this, or perhapse point me in the right direction, I'd appreciate the help!