I have a MVEBU EspressoBin Board in official 19.07.03 for emmc v7.
I want to add some feature to the kernel (lxc, quota, acl) so I build my own OpenWRT firmware image from the 19.07. branch.
I get n error while trying to flash my image :
What am I making bad ?
If I try to make a force upgrade, nothing is flashed at all...
let me guess... the image you are trying to flash ( via luci sysupgrade ) has;
img
no sysupgrade
and
sdcard
in it's name?
2 Likes
the name was the default one, I reflash with a hard command line :
zcat /dev/mmcblk0 < img.gz
openwrt-mvebu-cortexa53-globalscale_espressobin-v7-emmc-ext4-sdcard.img.gz
Still unflashable from a 19.07-master and also a 19.07.3 self built !?
OpenWrt 19.07.3, r11063-85e04e9f46
root@NAS:~# cat /tmp/sysinfo/model
Globalscale Marvell ESPRESSOBin Board V7 (eMMC)
...
openwrt-19.07.3-mvebu-cortexa53-globalscale_espressobin-v7-emmc-ext4-sdcard.img.gz: OK
Checksum passed
Unable to determine upgrade device
Image check failed.
From an official 19.07.3 espressobin-v7-emmc
OpenWrt 19.07.3, r11063-85e04e9f46
root@LPM:~# wget http://downloads.openwrt.org/releases/19.07.3/targets/mvebu/cortexa53/openwrt-19.07.3-mvebu-cortexa53-globalscale_espressobin-v7-emmc-ext4-sdcard.img.gz
...
2020-08-24 17:26:19 (454 KB/s) - 'openwrt-19.07.3-mvebu-cortexa53-globalscale_espressobin-v7-emmc-ext4-sdcard.img.gz' saved [6702816/6702816]
root@LPM:~# sysupgrade -T -v openwrt-19.07.3-mvebu-cortexa53-globalscale_espressobin-v7-emmc-ext4-sdcard.img.gz
Image not in /tmp, copying...
Reading partition table from bootdisk...
Reading partition table from image...
=OK
from my own 19.07.3 build on a same espressobin-v7 emmc
OpenWrt 19.07.3, r11063-85e04e9f46
root@NAS:~# wget http://downloads.openwrt.org/releases/19.07.3/targets/mvebu/cortexa53/openwrt-19.07.3-mvebu-cortexa53-globalscale_espressobin-v7-emmc-ext4-sdcard.img.gz
...
openwrt-19.07.3-mveb 100% |*******************************| 6545k 0:00:00 ETA
Download completed (6702816 bytes)
root@NAS:~# sysupgrade -v -T openwrt-19.07.3-mvebu-cortexa53-globalscale_espressobin-v7-emmc-ext4-sdcard.img.gz
Image not in /tmp, copying...
Unable to determine upgrade device
Image check failed.
root@NAS:~#
=KO
unflashable board :
root@NAS:~# cat /proc/cmdline
console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000 root=/dev/mmcblk0p2 rw ip=0.0.0.0:0.0.0.0:10.4.50.254:255.255.255.0:marvell:eth0:none nfsroot=0.0.0.0:/dev/mmcblk0p2
correct board :
root@LPM:~# cat /proc/cmdline
console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000 root=/dev/mmcblk0p2 rw rootwait net.ifnames=0 biosdevname=0
test :
root@NAS:~# fw_setenv bootcmd 'mmc dev 1; ext4load mmc 1:1 $kernel_addr $image_name; ext4load mmc 1:1 $fdt_addr $fdt_name; setenv bootargs $console root=/dev/mmcblk0p2 rw rootwait net.ifnames=0 biosdevname=0; booti $kernel_addr - $fdt_addr'
reboot
then:
root@NAS:~# cat /proc/cmdline
console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000 root=/dev/mmcblk0p2 rw rootwait net.ifnames=0 biosdevname=0
root@NAS:~# sysupgrade -T openwrt-19.07.3-mvebu-cortexa53-globalscale_espressobin-v7-emmc-ext4-sdcard.img.gz
Image not in /tmp, copying...
Reading partition table from bootdisk...
Reading partition table from image...
root@NAS:~#
OK = fixed !
issue opened :
https://bugs.openwrt.org/index.php?do=details&task_id=3304
FS#3304 - MVEBU - sysupgrade may not correctly detect device from bootcmd
system
Closed
September 3, 2020, 6:21pm
11
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.