ipq807x: image: fix eMMC flashing/recovery from within initramfs
Having initramfs image built with same config as on buildbots: CONFIG_TARGET_MULTI_PROFILE=y CONFIG_TARGET_ALL_PROFILES=y CONFIG_TARGET_PER_DEVICE_ROOTFS=y Its currently impossible to flash/recover the device using that image as losetup is missing: root@OpenWrt:/# sysupgrade -v /tmp/openwrt-ipq807x-generic-prpl_haze-squashfs-sysupgrade.bin ... /lib/upgrade/do_stage2: line 38: losetup: not found Failed to detach all loop devices. Skip this try. So lets fix it by including the needed utils for sysupgrade in DEFAULT_PACKAGES set. Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
parent
2e910039dd
commit
07fe8bc62a
@ -16,6 +16,7 @@ DEFAULT_PACKAGES += \
|
|||||||
kmod-leds-gpio kmod-gpio-button-hotplug \
|
kmod-leds-gpio kmod-gpio-button-hotplug \
|
||||||
kmod-phy-aquantia kmod-qca-nss-dp \
|
kmod-phy-aquantia kmod-qca-nss-dp \
|
||||||
ath11k-firmware-ipq8074 kmod-ath11k-ahb \
|
ath11k-firmware-ipq8074 kmod-ath11k-ahb \
|
||||||
wpad-basic-mbedtls uboot-envtools
|
wpad-basic-mbedtls uboot-envtools \
|
||||||
|
e2fsprogs kmod-fs-ext4 losetup
|
||||||
|
|
||||||
$(eval $(call BuildTarget))
|
$(eval $(call BuildTarget))
|
||||||
|
@ -14,7 +14,6 @@ define Device/EmmcImage
|
|||||||
IMAGES += factory.bin sysupgrade.bin
|
IMAGES += factory.bin sysupgrade.bin
|
||||||
IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
|
IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
|
||||||
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
||||||
DEVICE_PACKAGES := e2fsprogs kmod-fs-ext4 losetup
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Device/UbiFit
|
define Device/UbiFit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user