Previous attempts of generating an "IMAGES" based approaches
to provide a ready-to-go image that can be flashed through
the vendor firmware's WEB-UI or via the bootloader Option 1
in order to perform a serial-console-less installation all
had the downsides. Either they rendered the INITRAMFS unusable
for the bootloader option 2, or broke the IMAGEBUILDER.
This hopefully does neither. The IMAGE_SIZE was changed to
account for the added 64 Byte U-Boot header.
WARNING: Hmm, this could/did break if the initramfs isn't available...
(But let's not forget it again that this is dangerous)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
SOC := qcom-ipq4018
BLOCKSIZE := 128k
PAGESIZE := 2048
- IMAGE_SIZE := 20439364
+ IMAGE_SIZE := 20439300
FILESYSTEMS := squashfs
# Someone - in their infinite wisdom - decided to put the firmware
# version in front of the image name \03\00\00\04 => Version 3.0.0.4
# to add a version... or we are very careful not to add '\0' into that
# string and call it a day.... Yeah, we do the latter!
UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC58U')
+ ARTIFACTS := install.trx
+ ARTIFACT/install.trx := copy-file $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) \
+ | pad-to $$$$(IMAGE_SIZE) | uImage none
DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
kmod-usb-ledtrig-usbport
endef