notes: The current stable version series of OpenWrt is 19.07, with v19.07.8 being the latest release of the series. It was released on 7 August 2021.
v19.07.8 changes
u-boot updated 2021.07+
linux kernel updated 5.14*
updated openwrt base to 19.07.8
The current stable version series of OpenWrt is 19.07,
with v19.07.8 being the latest release of the series.
It was released on 7 August 2021.
fixed rootfs detection
simplify image names to BOARD.OpenWrt.servers.sd.VERSION.img
we can try OpenWrt 19.07.8 for Khadas Edge VIM1 VIM2 VIM3 VIM3L SBCs
I can fix temporarily .mega to detect my board correctly, but when I run your script from an ubuntu distro made with fenix and booted from an SD card, then it tries to unmount / which irrelevant because I want to write to emmc and not to SD card !!
here are some trace…
khadas@Khadas:~$ sudo bash ./.mega -A VIM1 VIM1.OpenWrt.19.07.0.servers.test.emmc.kresq > /dev/mmcblk0
[i] VIM1 detected
[w] auto detect unsafe write to mounted disk /dev/mmcblk0
[i] try umount it
[i] unmount /dev/mmcblk0p2
umount: /: target is busy.
here we go…
root@Khadas:~# curl -sfL dl.khadas.com/.mega | sh -s - -y VIM1 VIMx.OpenWrt.19.07.0.servers.test.emmc.kresq > /dev/mmcblk1
[i] VIM1 detected
[i] auto detect unsafe write to rootfs bootable device and set force system RO
[i] auto detect emmc write force system RO + autoinstall + only one image
[i] system goto RO only
[i] OUTPUT > /dev/mmcblk1
[i] download Krescue system (VIM1) from https://dl.khadas.com/Firmware/Krescue/dump/VIM1.krescue.sd.img.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21.9M 100 21.9M 0 0 1758k 0 0:00:12 0:00:12 --:–:-- 1960k
[i] download image https://dl.khadas.com/Firmware/Krescue/images/VIMx.OpenWrt.19.07.0.servers.test.emmc.kresq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 35.5M 100 35.5M 0 0 2232k 0 0:00:16 0:00:16 --:–:-- 2861k
[i] autoinstall configure (total images: 1)
root@Khadas:~#
ok, I halted my ubuntu, then removed the sd card, then pressed reset, and…
Starting kernel ...
uboot time: 2543645 us
[ 0.259632] meson8b-dwmac c9410000.ethernet: IRQ eth_wake_irq not found
[ 0.260647] meson8b-dwmac c9410000.ethernet: IRQ eth_lpi not found
[ 0.270384] gpio-keys-polled gpio-keys-polled: failed to get gpio: -2
[ 0.535549] dwc3 c9000000.usb: Failed to get clk 'ref': -2
[ 0.537902] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
domain-0 init dvfs: 4
BusyBox v1.28.4 () built-in shell (ash)
OpenWrt 18.06.3, r7798-97ae9e0ccb
__ _____ Khadas ## hyphop ##
/ //_/ _ \___ ___ ______ _____
/ ,< / , _/ -_|_-</ __/ // / -_)
/_/|_/_/|_|\__/___/\__/\_,_/\__/
extreme tiny and fast rescue system
BUILD: Mon Jan 20 01:01:35 UTC 2020
[i] POST_CONFIG: ap_ssid=Krescue ap_passw=12345678 wifi_mode=2g script=sd:launcher.sh eth_hw=C0:4A:00:C0:3F:DB booted=emmc hwver=VIM1.V12
=== WARNING! =====================================
There is no root password defined on this device!
Use the passwd command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@Krescue:/#
I rebooted from the krescue command line and then…
Starting kernel ...
uboot time: 4739848 us
[ 0.244058] meson8b-dwmac c9410000.ethernet: IRQ eth_wake_irq not found
[ 0.245066] meson8b-dwmac c9410000.ethernet: IRQ eth_lpi not found
[ 0.254852] gpio-keys-polled gpio-keys-polled: failed to get gpio: -2
[ 0.575140] dwc3 c9000000.usb: Failed to get clk 'ref': -2
[ 0.577476] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
domain-0 init dvfs: 4
[ 2.113316] block: unable to load configuration (fstab: Entry not found)
[ 2.115325] block: no usable configuration
[ 2.437732] block: unable to load configuration (fstab: Entry not found)
[ 2.439739] block: no usable configuration
BusyBox v1.30.1 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
[i] BUILD: OPENWRT 19.07.0 v0.5 VIM3L Fri Jan 10 05:03:26 UTC 2020
[i] POST_CONFIG: booted=emmc hwver=VIM1.V12 script=sd:*.sh
[i] BOOTINFO: uptime: 3.30 sec, bootup: 3.30
=== WARNING! =====================================
There is no root password defined on this device!
Use the passwd command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
[i] LAN_IP: 172.23.0.1 WAN_IP: MDNS:
WEB : http://172.23.0.1
root@openwrt-vim:/# uname -a
Linux openwrt-vim 5.4.5 #2 SMP PREEMPT Mon Dec 23 14:53:37 +09 2019 aarch64 GNU/Linux
root@openwrt-vim:/#