diff options
| author | Christian Lamparter | 2022-01-08 18:29:13 +0000 |
|---|---|---|
| committer | Christian Lamparter | 2022-05-19 14:39:11 +0000 |
| commit | 394db1b0f019aecad9512808531577ba2d57c2af (patch) | |
| tree | 69ad7d9573b2a3c9c9fe59ad3eb32e60e6dbc523 | |
| parent | 0a7a4a0f77a26009eb6429674b83e544761d74c9 (diff) | |
| download | chunkeey-394db1b0f019aecad9512808531577ba2d57c2af.tar.gz | |
ipq40xx: RT-AC58U: Try ARTIFACTS for install.trx
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>
| -rw-r--r-- | target/linux/ipq40xx/image/generic.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk index 82df4472c9..be313e672d 100644 --- a/target/linux/ipq40xx/image/generic.mk +++ b/target/linux/ipq40xx/image/generic.mk @@ -236,7 +236,7 @@ define Device/asus_rt-ac58u 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 @@ -244,6 +244,9 @@ define Device/asus_rt-ac58u # 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 |