[RFC] Advice re auto-extroot for EcoNet platform
Caleb James DeLisle
cjd at cjdns.fr
Wed Sep 17 12:34:39 PDT 2025
Update:
I have gotten something working.
1. I have a patch which adds BUILTIN_KMODS, making all kmod packages to
become kernel builtins
2. I have a preinit script to ensure there is a block device in /dev for
any disk with PARTNAME=rootfs_data
This works most of the time, but occasionally the USB device fails to
register until after mount_root(see dmesg below).
What I'm thinking about doing is adding a hotplug.d script which reboots
the device in that case, and this can also partition an empty device.
Then I should be able to make this as a package.
Thanks,
Caleb
[ 2.763207] scsi 0:0:0:0: Direct-Access USB Disk
2.10 PQ: 0 ANSI: 2
[ 2.784567] sd 0:0:0:0: [sda] 1022464 512-byte logical blocks: (524
MB/499 MiB)
[ 2.794943] sd 0:0:0:0: [sda] Write Protect is off
[ 2.802288] sd 0:0:0:0: [sda] No Caching mode page found
[ 2.807647] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 2.878976] r8152-cfgselector 1-2.1: reset high-speed USB device
number 4 using xhci-mtk
[ 4.339676] r8152 1-2.1:1.0 eth0: v1.12.13
[ 4.388681] random: crng init done
[ 4.478821] usb 1-2.4: new high-speed USB device number 5 using xhci-mtk
[ 4.759125] usb-storage 1-2.4:1.0: USB Mass Storage device detected
[ 4.767230] scsi host1: usb-storage 1-2.4:1.0
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
[ 5.818867] scsi 1:0:0:0: Direct-Access Multi Flash Reader
1.00 PQ: 0 ANSI: 0
[ 5.868796] sd 1:0:0:0: [sdb] Media removed, stopped polling
[ 5.875152] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 7.088867] r8152 1-2.1:1.0 eth0: carrier on
[ 9.291450] mount_root: no usable overlay filesystem found, using
tmpfs overlay
[ 9.303630] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 9.913945] procd: - early -
[ 10.632452] procd: - ubus -
[ 10.816972] procd: - init -
Please press Enter to activate this console.
[ 12.222074] kmodloader: loading kernel modules from /etc/modules.d/*
[ 12.360596] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 13.584036] urngd: v1.0.2 started.
[ 33.348852] usb 1-1: reset high-speed USB device number 2 using xhci-mtk
[ 33.978962] Alternate GPT is invalid, using primary GPT.
[ 33.984378] sda: sda1
[ 33.987203] sd 0:0:0:0: [sda] Attached SCSI removable disk
More information about the openwrt-devel
mailing list