mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-16 09:10:02 +00:00
169 lines
6.1 KiB
Diff
169 lines
6.1 KiB
Diff
From 726f583704a92493e472e1564f795817edefda82 Mon Sep 17 00:00:00 2001
|
|
From: Luo Chongjun <luochongjun@gl-inet.com>
|
|
Date: Thu, 4 May 2023 19:14:42 +0800
|
|
Subject: [PATCH] ath79 adjust nand.mk
|
|
|
|
---
|
|
target/linux/ath79/image/nand.mk | 100 ++++++++++++++++++++++++++++---
|
|
1 file changed, 92 insertions(+), 8 deletions(-)
|
|
|
|
diff --git a/target/linux/ath79/image/nand.mk b/target/linux/ath79/image/nand.mk
|
|
index 0f5b07225c..78847e6ea3 100644
|
|
--- a/target/linux/ath79/image/nand.mk
|
|
+++ b/target/linux/ath79/image/nand.mk
|
|
@@ -139,10 +139,10 @@ define Device/glinet_gl-ar300m-nand
|
|
$(Device/glinet_gl-ar300m-common-nand)
|
|
DEVICE_VARIANT := NAND
|
|
BLOCKSIZE := 128k
|
|
- IMAGES += factory.img
|
|
- IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
|
|
- IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
SUPPORTED_DEVICES += glinet,gl-ar300m-nor
|
|
+ IMAGES := factory.img sysupgrade.tar
|
|
+ IMAGE/sysupgrade.bin := sysupgrade-tar | append-gl-metadata
|
|
+ IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | append-gl-metadata
|
|
endef
|
|
TARGET_DEVICES += glinet_gl-ar300m-nand
|
|
|
|
@@ -150,9 +150,41 @@ define Device/glinet_gl-ar300m-nor
|
|
$(Device/glinet_gl-ar300m-common-nand)
|
|
DEVICE_VARIANT := NOR
|
|
SUPPORTED_DEVICES += glinet,gl-ar300m-nand gl-ar300m
|
|
+ IMAGES := sysupgrade.bin
|
|
+ IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-gl-metadata | check-size $$$$(IMAGE_SIZE)
|
|
endef
|
|
TARGET_DEVICES += glinet_gl-ar300m-nor
|
|
|
|
+define Device/glinet_gl-x300b-common
|
|
+ SOC := qca9531
|
|
+ DEVICE_VENDOR := GL.iNet
|
|
+ DEVICE_MODEL := GL-X300B
|
|
+ DEVICE_PACKAGES := kmod-usb2 block-mount
|
|
+ SUPPORTED_DEVICES += gl-x300b glinet,gl-x300b
|
|
+endef
|
|
+
|
|
+define Device/glinet_gl-x300b-nor
|
|
+ $(Device/glinet_gl-x300b-common)
|
|
+ DEVICE_VARIANT := NOR
|
|
+ IMAGE_SIZE := 16000k
|
|
+ IMAGES := sysupgrade.bin
|
|
+ IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-gl-metadata | check-size $$$$(IMAGE_SIZE)
|
|
+endef
|
|
+TARGET_DEVICES += glinet_gl-x300b-nor
|
|
+
|
|
+define Device/glinet_gl-x300b-nor-nand
|
|
+ $(Device/glinet_gl-x300b-common)
|
|
+ DEVICE_VARIANT := NOR/NAND
|
|
+ KERNEL_SIZE := 4096k
|
|
+ BLOCKSIZE := 128k
|
|
+ PAGESIZE := 2048
|
|
+ VID_HDR_OFFSET := 2048
|
|
+ IMAGES := factory.img sysupgrade.tar
|
|
+ IMAGE/sysupgrade.bin := sysupgrade-tar | append-gl-metadata
|
|
+ IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | append-gl-metadata
|
|
+endef
|
|
+TARGET_DEVICES += glinet_gl-x300b-nor-nand
|
|
+
|
|
define Device/glinet_gl-ar750s-common
|
|
SOC := qca9563
|
|
DEVICE_VENDOR := GL.iNet
|
|
@@ -166,7 +198,12 @@ define Device/glinet_gl-ar750s-nor-nand
|
|
$(Device/glinet_gl-ar750s-common)
|
|
DEVICE_VARIANT := NOR/NAND
|
|
KERNEL_SIZE := 4096k
|
|
- IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
+ BLOCKSIZE := 128k
|
|
+ PAGESIZE := 2048
|
|
+ VID_HDR_OFFSET := 2048
|
|
+ IMAGES := factory.img sysupgrade.tar
|
|
+ IMAGE/sysupgrade.tar := sysupgrade-tar | append-gl-metadata
|
|
+ IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | append-gl-metadata
|
|
SUPPORTED_DEVICES += glinet,gl-ar750s-nor
|
|
endef
|
|
TARGET_DEVICES += glinet_gl-ar750s-nor-nand
|
|
@@ -174,6 +211,7 @@ TARGET_DEVICES += glinet_gl-ar750s-nor-nand
|
|
define Device/glinet_gl-ar750s-nor
|
|
$(Device/glinet_gl-ar750s-common)
|
|
DEVICE_VARIANT := NOR
|
|
+ BLOCKSIZE := 64k
|
|
SUPPORTED_DEVICES += gl-ar750s glinet,gl-ar750s glinet,gl-ar750s-nor-nand
|
|
endef
|
|
TARGET_DEVICES += glinet_gl-ar750s-nor
|
|
@@ -182,16 +220,16 @@ define Device/glinet_gl-e750
|
|
SOC := qca9531
|
|
DEVICE_VENDOR := GL.iNet
|
|
DEVICE_MODEL := GL-E750
|
|
- DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct kmod-usb2
|
|
+ DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9887 kmod-usb2
|
|
SUPPORTED_DEVICES += gl-e750
|
|
KERNEL_SIZE := 4096k
|
|
IMAGE_SIZE := 131072k
|
|
PAGESIZE := 2048
|
|
VID_HDR_OFFSET := 2048
|
|
BLOCKSIZE := 128k
|
|
- IMAGES += factory.img
|
|
- IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
|
|
- IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
+ IMAGES += factory.img sysupgrade.tar
|
|
+ IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | append-gl-metadata
|
|
+ IMAGE/sysupgrade.bin := sysupgrade-tar | append-gl-metadata
|
|
endef
|
|
TARGET_DEVICES += glinet_gl-e750
|
|
|
|
@@ -231,6 +269,52 @@ define Device/linksys_ea4500-v3
|
|
endef
|
|
TARGET_DEVICES += linksys_ea4500-v3
|
|
|
|
+define Device/glinet_gl-xe300-nor-nand
|
|
+ SOC := qca9531
|
|
+ DEVICE_VENDOR := GL.iNet
|
|
+ DEVICE_MODEL := GL-XE300-NOR-NAND
|
|
+ DEVICE_TITLE := GL.iNet GL-XE300 (NOR/NAND)
|
|
+ DEVICE_PACKAGES := kmod-usb2 block-mount kmod-usb-serial-ch341
|
|
+ KERNEL_SIZE := 4096k
|
|
+ BLOCKSIZE := 128k
|
|
+ PAGESIZE := 2048
|
|
+ VID_HDR_OFFSET := 2048
|
|
+ IMAGES := factory.img sysupgrade.tar
|
|
+ IMAGE/sysupgrade.tar := sysupgrade-tar | append-gl-metadata
|
|
+ IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | append-gl-metadata
|
|
+ SUPPORTED_DEVICES += gl-xe300 glinet,gl-xe300
|
|
+endef
|
|
+TARGET_DEVICES += glinet_gl-xe300-nor-nand
|
|
+
|
|
+define Device/glinet_gl-ar750
|
|
+ SOC := qca9531
|
|
+ DEVICE_VENDOR := GL.iNet
|
|
+ DEVICE_MODEL := GL-AR750
|
|
+ DEVICE_PACKAGES := kmod-usb2 kmod-ath10k ath10k-firmware-qca9887 block-mount PCI_SUPPORT kmod-usb-storage
|
|
+ SUPPORTED_DEVICES += gl-ar750 glinet,gl-ar750
|
|
+ IMAGE_SIZE := 16064k
|
|
+ IMAGES := sysupgrade.bin
|
|
+ IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-gl-metadata | check-size $$$$(IMAGE_SIZE)
|
|
+endef
|
|
+TARGET_DEVICES += glinet_gl-ar750
|
|
+
|
|
+define Device/glinet_gl-x750-common
|
|
+ SOC := qca9531
|
|
+ DEVICE_VENDOR := GL.iNet
|
|
+ DEVICE_MODEL := GL-X750
|
|
+ DEVICE_PACKAGES := kmod-usb2 kmod-ath10k ath10k-firmware-qca9887 block-mount PCI_SUPPORT kmod-usb-storage
|
|
+ SUPPORTED_DEVICES += gl-x750 glinet,gl-x750
|
|
+endef
|
|
+
|
|
+define Device/glinet_gl-x750-nor
|
|
+ $(Device/glinet_gl-x750-common)
|
|
+ DEVICE_VARIANT := NOR
|
|
+ IMAGE_SIZE := 16064k
|
|
+ IMAGES := sysupgrade.bin
|
|
+ IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-gl-metadata | check-size $$$$(IMAGE_SIZE)
|
|
+endef
|
|
+TARGET_DEVICES += glinet_gl-x750-nor
|
|
+
|
|
# fake rootfs is mandatory, pad-offset 129 equals (2 * uimage_header + 0xff)
|
|
define Device/netgear_ath79_nand
|
|
DEVICE_VENDOR := NETGEAR
|
|
--
|
|
2.25.1
|
|
|