From 00d40a40acf39555bab1ae67e733f0a62bb58bd5 Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Sun, 12 Apr 2020 12:04:02 +0800 Subject: [PATCH] ipq40xx: fix support for Asus RT-AC1300UHP in 4.19 (#4285) RT-AC1300UHP has 256M memory and does not need to use ath10k-ct-smallbuffers. Signed-off-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> --- .../arm/boot/dts/qcom-ipq4018-rt-ac58u.dts | 4 ++-- target/linux/ipq40xx/image/Makefile | 20 ++++++++++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-rt-ac58u.dts b/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-rt-ac58u.dts index a0030f77c..bf49e8b6a 100644 --- a/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-rt-ac58u.dts +++ b/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-rt-ac58u.dts @@ -6,12 +6,12 @@ #include / { - model = "ASUS RT-AC58U"; + model = "ASUS RT-AC58U / RT-AC1300UHP"; compatible = "asus,rt-ac58u"; memory { device_type = "memory"; - reg = <0x80000000 0x8000000>; + reg = <0x80000000 0x10000000>; }; aliases { diff --git a/target/linux/ipq40xx/image/Makefile b/target/linux/ipq40xx/image/Makefile index 197d4a03f..f9c844b1d 100644 --- a/target/linux/ipq40xx/image/Makefile +++ b/target/linux/ipq40xx/image/Makefile @@ -75,7 +75,7 @@ TARGET_DEVICES += asus_map-ac2200 define Device/asus_rt-ac58u $(call Device/FitImageLzma) DEVICE_VENDOR := ASUS - DEVICE_MODEL := RT-AC58U / RT-AC1300UHP + DEVICE_MODEL := RT-AC58U DEVICE_DTS := qcom-ipq4018-rt-ac58u BLOCKSIZE := 128k PAGESIZE := 2048 @@ -96,6 +96,24 @@ define Device/asus_rt-ac58u endef TARGET_DEVICES += asus_rt-ac58u +define Device/asus_rt-ac1300uhp + $(call Device/FitImageLzma) + DEVICE_VENDOR := ASUS + DEVICE_MODEL := RT-AC1300UHP + DEVICE_DTS := qcom-ipq4018-rt-ac58u + BLOCKSIZE := 128k + PAGESIZE := 2048 + DTB_SIZE := 65536 + IMAGE_SIZE := 20439364 + FILESYSTEMS := squashfs + UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC58U') + KERNEL_INITRAMFS := $$(KERNEL) | uImage none + KERNEL_INITRAMFS_SUFFIX := -factory.trx + IMAGES := sysupgrade.bin + DEVICE_PACKAGES := kmod-usb-ledtrig-usbport +endef +TARGET_DEVICES += asus_rt-ac1300uhp + define Device/asus_rt-acrh17 $(call Device/FitImageLzma) DEVICE_VENDOR := ASUS