Temat: Czy to możliwe syscfg jako overlay?
Witam mam router WRT3200ACM. Układ partycji wygląda tak https://openwrt.org/toh/linksys/linksys_wrt3200acm.
Teraz tak jak zbuduje obraz to raz jest ładowany z mtd5/mtd6 lub mtd7/mtd8. Jest jeszcze partycja mtd9 która ma 80MB. Chciałbym ją użyć jako /overlay. niestety proste montowania nie pomagają.
Po starcie systemu wygląda to tak
/dev/root
/rom
0.00 B / 46.00 MB
100% (46.00 MB)
-
tmpfs
/tmp
241.70 MB / 249.49 MB
3% (7.79 MB)
-
/dev/ubi0_1
/overlay
15.62 MB / 17.02 MB
3% (512.00 KB)
-
overlayfs:/overlay
/
15.62 MB / 17.02 MB
3% (512.00 KB)
-
ubi1:syscfg
/tmp/syscfg
66.02 MB / 70.22 MB
1% (600.00 KB)partycja mtd9 jest zamontowana jako /tmp/syscfg i można ją normalnie użyć.
Jak to zmodyfikować, sam kompiluje system. Znalazłem nawet skrypt odpowiedzialny za to że mtd9 jest montowana do tmp. Niestety nie wiem jak to zmodyfikować bo wszystkie próby kończą się niczym.
To log z boota
Fri May 3 00:13:54 2019 user.info kernel: [ 8.512344] mount_root: loading kmods from internal overlay
Fri May 3 00:13:54 2019 user.info kernel: [ 8.525582] kmodloader: loading kernel modules from //etc/modules-boot.d/*
Fri May 3 00:13:54 2019 user.info kernel: [ 8.532847] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
Fri May 3 00:13:54 2019 kern.notice kernel: [ 8.779970] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 951
Fri May 3 00:13:54 2019 kern.notice kernel: [ 8.830302] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
Fri May 3 00:13:54 2019 kern.notice kernel: [ 8.838169] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
Fri May 3 00:13:54 2019 kern.notice kernel: [ 8.848136] UBIFS (ubi0:1): FS size: 20062208 bytes (19 MiB, 158 LEBs), journal size 1015809 bytes (0 MiB, 8 LEBs)
Fri May 3 00:13:54 2019 kern.notice kernel: [ 8.858534] UBIFS (ubi0:1): reserved for root: 947587 bytes (925 KiB)
Fri May 3 00:13:54 2019 kern.notice kernel: [ 8.865006] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID D9E7AF9E-EA86-481D-9092-FC660F2CA3C8, small LPT model
Fri May 3 00:13:54 2019 user.info kernel: [ 8.877102] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
Fri May 3 00:13:54 2019 user.info kernel: [ 8.887753] block: extroot: device not present, retrying in 5 seconds
Fri May 3 00:13:54 2019 user.err kernel: [ 14.011493] block: extroot: cannot find device ubi1_0
Fri May 3 00:13:54 2019 kern.notice kernel: [ 14.051775] UBIFS (ubi0:1): un-mount UBI device 0
Fri May 3 00:13:54 2019 kern.notice kernel: [ 14.056505] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" stops
Fri May 3 00:13:54 2019 kern.notice kernel: [ 14.110887] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 954
Fri May 3 00:13:54 2019 kern.notice kernel: [ 14.153738] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
Fri May 3 00:13:54 2019 kern.notice kernel: [ 14.161623] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
Fri May 3 00:13:54 2019 kern.notice kernel: [ 14.171589] UBIFS (ubi0:1): FS size: 20062208 bytes (19 MiB, 158 LEBs), journal size 1015809 bytes (0 MiB, 8 LEBs)
Fri May 3 00:13:54 2019 kern.notice kernel: [ 14.181985] UBIFS (ubi0:1): reserved for root: 947587 bytes (925 KiB)
Fri May 3 00:13:54 2019 kern.notice kernel: [ 14.188454] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID D9E7AF9E-EA86-481D-9092-FC660F2CA3C8, small LPT model
Fri May 3 00:13:54 2019 user.info kernel: [ 14.202569] mount_root: loading kmods from internal overlay
Fri May 3 00:13:54 2019 user.info kernel: [ 14.213794] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Fri May 3 00:13:54 2019 user.info kernel: [ 14.223118] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Fri May 3 00:13:54 2019 user.info kernel: [ 14.613263] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
Fri May 3 00:13:54 2019 user.info kernel: [ 14.622424] block: extroot: device not present, retrying in 5 seconds
Fri May 3 00:13:54 2019 user.err kernel: [ 19.753818] block: extroot: cannot find device ubi1_0
Fri May 3 00:13:54 2019 user.info kernel: [ 19.791262] mount_root: switching to ubifs overlay
Fri May 3 00:13:54 2019 kern.info kernel: [ 19.908523] fuse init (API version 7.26)
Fri May 3 00:13:54 2019 kern.info kernel: [ 20.018677] F2FS-fs (mtdblock7): Magic Mismatch, valid(0xf2f52010) - read(0xee070f10)
Fri May 3 00:13:54 2019 kern.err kernel: [ 20.027000] F2FS-fs (mtdblock7): Can't find valid F2FS filesystem in 1th superblock
Fri May 3 00:13:54 2019 kern.info kernel: [ 20.036432] F2FS-fs (mtdblock7): Magic Mismatch, valid(0xf2f52010) - read(0xe1a0e082)
Fri May 3 00:13:54 2019 kern.err kernel: [ 20.045333] F2FS-fs (mtdblock7): Can't find valid F2FS filesystem in 2th superblock
Fri May 3 00:13:54 2019 kern.info kernel: [ 20.054461] F2FS-fs (mtdblock7): Magic Mismatch, valid(0xf2f52010) - read(0xee070f10)
Fri May 3 00:13:54 2019 kern.err kernel: [ 20.063670] F2FS-fs (mtdblock7): Can't find valid F2FS filesystem in 1th superblock
Fri May 3 00:13:54 2019 kern.info kernel: [ 20.072750] F2FS-fs (mtdblock7): Magic Mismatch, valid(0xf2f52010) - read(0xe1a0e082)
Fri May 3 00:13:54 2019 kern.err kernel: [ 20.082005] F2FS-fs (mtdblock7): Can't find valid F2FS filesystem in 2th superblock
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.120146] ubi1: attaching mtd9
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.350925] ubi1: scanning is finished
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.359079] ubi1: attached mtd9 (name "syscfg", size 86 MiB)
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.364771] ubi1: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.371678] ubi1: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.378496] ubi1: VID header offset: 2048 (aligned 2048), data offset: 4096
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.385489] ubi1: good PEBs: 680, bad PEBs: 8, corrupted PEBs: 0
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.391523] ubi1: user volume: 1, internal volumes: 1, max. volumes count: 128
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.398776] ubi1: max/mean erase counter: 8/4, WL threshold: 4096, image sequence number: 617815743
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.407864] ubi1: available PEBs: 0, total reserved PEBs: 680, PEBs reserved for bad PEB handling: 32
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.417130] ubi1: background thread "ubi_bgt1d" started, PID 982
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.427294] UBIFS (ubi1:0): background thread "ubifs_bgt1_0" started, PID 987
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.475643] UBIFS (ubi1:0): UBIFS: mounted UBI device 1, volume 0, name "syscfg"
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.483081] UBIFS (ubi1:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.493045] UBIFS (ubi1:0): FS size: 80375808 bytes (76 MiB, 633 LEBs), journal size 4063232 bytes (3 MiB, 32 LEBs)
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.503529] UBIFS (ubi1:0): reserved for root: 3796347 bytes (3707 KiB)
Fri May 3 00:13:54 2019 kern.notice kernel: [ 20.510175] UBIFS (ubi1:0): media format: w4/r0 (latest is w5/r0), UUID EC0B4F23-B842-458E-8FBD-C92364E6E205, small LPT model