Is it possible to do that?
Rename ****-sysupgrade.bin to ****-sysupgrade.tar and unpack.
2 Likes
Nice but doesn't work on my older device
Kernel is quite easy like add in .mk file
KERNEL := kernel-bin | append-dtb | uImage none
If you like to have separate filesystem in .tgz Some method scripts are required.
Please look into image/Makefile and if they're not as required. Just define new one:
define Build/rootfs-tgz
(rm -fR $@-fw)
$(CP) $(TARGET_DIR)/* $@-fw
$(TAR) -cvzp --numeric-owner --owner=0 --group=0 --sort=name \
$(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
-f $(KDIR_TMP)/$(DEVICE_IMG_PREFIX)-squashfs-firmware.tgz -C $@-fw .
endef
I've needed similar for my WD cloud gen2 PR .... take a look
Nevermind didn't need to do that, did something else and it worked.