Skip to content

Commit d62bdca

Browse files
committed
qualcommax: ipq60xx: add Redmi AX5 JDCloud
tools/mkimage: update to v2024.04 Update to latest version. Refresh patches: - 030-allow-to-use-different-magic.patch - 095-tools-disable-TOOLS_FIT_FULL_CHECK.patch Signed-off-by: Nick Hainke <vincent@systemli.org> qualcommax: ipq60xx: add Redmi AX5 JDCloud
1 parent 54b2506 commit d62bdca

File tree

11 files changed

+53
-26
lines changed

11 files changed

+53
-26
lines changed

package/boot/uboot-envtools/files/qualcommax_ipq60xx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ netgear,wax214)
2626
[ -n "$idx" ] && \
2727
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
2828
;;
29+
redmi,ax5-jdcloud|\
2930
jdc,ax1800-pro)
3031
mmcpart="$(find_mmc_part 0:APPSBLENV)"
3132
[ -n "$mmcpart" ] && \

package/firmware/ipq-wifi/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ ALLWIFIBOARDS:= \
5151
qnap_301w \
5252
qihoo_v6 \
5353
redmi_ax5 \
54+
redmi_ax5-jdcloud \
5455
redmi_ax6 \
5556
wallys_dr40x9 \
5657
xiaomi_ax1800 \
@@ -63,7 +64,7 @@ ALLWIFIBOARDS:= \
6364
zte_mf269 \
6465
zte_mf287 \
6566
zte_mf287plus \
66-
zyxel_nbg7815 \
67+
zyxel_nbg7815
6768

6869
ALLWIFIPACKAGES:=$(foreach BOARD,$(ALLWIFIBOARDS),ipq-wifi-$(BOARD))
6970

@@ -177,6 +178,7 @@ $(eval $(call generate-ipq-wifi-package,qnap_301w,QNAP 301w))
177178
$(eval $(call generate-ipq-wifi-package,prpl_haze,prpl Haze))
178179
$(eval $(call generate-ipq-wifi-package,qihoo_v6,Qihoo V6))
179180
$(eval $(call generate-ipq-wifi-package,redmi_ax5,Redmi AX5))
181+
$(eval $(call generate-ipq-wifi-package,redmi_ax5-jdcloud,Redmi AX5 JDCloud))
180182
$(eval $(call generate-ipq-wifi-package,redmi_ax6,Redmi AX6))
181183
$(eval $(call generate-ipq-wifi-package,wallys_dr40x9,Wallys DR40X9))
182184
$(eval $(call generate-ipq-wifi-package,xiaomi_ax1800,Xiaomi AX1800))
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2+
3+
/dts-v1/;
4+
5+
#include "ipq6018-xiaomi.dtsi"
6+
7+
/ {
8+
model = "Redmi AX5 JDCloud";
9+
compatible = "redmi,ax5-jdcloud", "qcom,ipq6018";
10+
11+
chosen {
12+
bootargs-append = " rootfstype=squashfs,ext4 swiotlb=1 coherent_pool=2M";
13+
};
14+
};
15+
16+
&sdhc_1 {
17+
status = "okay";
18+
19+
// reference: https://github.com/openwrt/openwrt/blob/c1ad783/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-301w.dts#L311-L317
20+
/delete-property/ mmc-hs400-1_8v;
21+
mmc-hs200-1_8v;
22+
mmc-ddr-1_8v;
23+
};
24+
25+
&wifi {
26+
qcom,ath11k-calibration-variant = "Redmi-AX5-JDCloud";
27+
};

target/linux/qualcommax/image/ipq60xx.mk

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,20 @@ define Device/redmi_ax5
8888
endef
8989
TARGET_DEVICES += redmi_ax5
9090

91+
define Device/redmi_ax5-jdcloud
92+
$(call Device/FitImage)
93+
$(call Device/EmmcImage)
94+
DEVICE_VENDOR := Redmi
95+
DEVICE_MODEL := AX5 JDCloud
96+
DEVICE_DTS_CONFIG := config@cp03-c1
97+
SOC := ipq6018
98+
DEVICE_PACKAGES := ipq-wifi-redmi_ax5-jdcloud
99+
#BLOCKSIZE := 64k
100+
KERNEL_SIZE := 6144k
101+
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-rootfs | append-metadata
102+
endef
103+
TARGET_DEVICES += redmi_ax5-jdcloud
104+
91105
define Device/xiaomi_ax1800
92106
$(call Device/FitImage)
93107
$(call Device/UbiFit)

target/linux/qualcommax/ipq60xx/base-files/etc/board.d/01_leds

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ case "$board" in
1717
ucidef_set_led_netdev "wlan2g" "WLAN2G" "blue:wlan2g" "wlan1"
1818
ucidef_set_led_netdev "wlan5g" "WLAN5G" "blue:wlan5g" "wlan0"
1919
;;
20+
redmi,ax5-jdcloud|\
2021
jdc,ax1800-pro)
2122
ucidef_set_led_netdev "wan" "WAN" "net_blue" "eth3"
2223
;;

target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11-caldata

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ case "$FIRMWARE" in
2222
xiaomi,ax1800)
2323
caldata_extract "0:art" 0x1000 0x10000
2424
;;
25+
redmi,ax5-jdcloud|\
2526
jdc,ax1800-pro)
2627
caldata_extract_mmc "0:ART" 0x1000 0x10000
2728
;;

target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata

Lines changed: 0 additions & 20 deletions
This file was deleted.

target/linux/qualcommax/ipq60xx/base-files/lib/upgrade/platform.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ platform_do_upgrade() {
4343
netgear,wax214)
4444
nand_do_upgrade "$1"
4545
;;
46+
redmi,ax5-jdcloud|\
4647
jdc,ax1800-pro)
4748
kernelname="0:HLOS"
4849
rootfsname="rootfs"

tools/mkimage/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
include $(TOPDIR)/rules.mk
88

99
PKG_NAME:=mkimage
10-
PKG_VERSION:=2024.01
10+
PKG_VERSION:=2024.04
1111

1212
PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2
1313
PKG_SOURCE_URL:= \
1414
https://mirror.cyberbits.eu/u-boot \
1515
https://ftp.denx.de/pub/u-boot \
1616
ftp://ftp.denx.de/pub/u-boot
17-
PKG_HASH:=b99611f1ed237bf3541bdc8434b68c96a6e05967061f992443cb30aabebef5b3
17+
PKG_HASH:=18a853fe39fad7ad03a90cc2d4275aeaed6da69735defac3492b80508843dd4a
1818

1919
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION)
2020

tools/mkimage/patches/030-allow-to-use-different-magic.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This patch makes it possible to set a custom image magic.
2424
" -a ==> set load address to 'addr' (hex)\n"
2525
" -e ==> set entry point to 'ep' (hex)\n"
2626
" -n ==> set image name to 'name'\n"
27-
@@ -159,7 +161,7 @@ static int add_content(int type, const c
27+
@@ -160,7 +162,7 @@ static int add_content(int type, const c
2828
}
2929

3030
static const char optstring[] =
@@ -33,7 +33,7 @@ This patch makes it possible to set a custom image magic.
3333

3434
static const struct option longopts[] = {
3535
{ "load-address", required_argument, NULL, 'a' },
36-
@@ -302,6 +304,14 @@ static void process_args(int argc, char
36+
@@ -303,6 +305,14 @@ static void process_args(int argc, char
3737
case 'l':
3838
params.lflag = 1;
3939
break;

tools/mkimage/patches/095-tools-disable-TOOLS_FIT_FULL_CHECK.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ https://github.com/u-boot/u-boot/commit/3f04db891a353f4b127ed57279279f851c6b4917
1414

1515
--- a/tools/Kconfig
1616
+++ b/tools/Kconfig
17-
@@ -31,7 +31,7 @@ config TOOLS_FIT
17+
@@ -36,7 +36,7 @@ config TOOLS_FIT
1818
Enable FIT support in the tools builds.
1919

2020
config TOOLS_FIT_FULL_CHECK

0 commit comments

Comments
 (0)