mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Kernel 5.4 RUTX support
This commit is contained in:
parent
839fcf1cab
commit
cfce9f52b2
7376 changed files with 3902 additions and 546 deletions
|
@ -82,6 +82,19 @@ define Build/UbootFw
|
|||
fi
|
||||
endef
|
||||
|
||||
define Build/UbootFw-rutx
|
||||
$(CP) ./uboot_fw/ $(STAGING_DIR_HOST)/
|
||||
if [ -e $(STAGING_DIR_HOST)/uboot_fw/tz.mbn ]; then \
|
||||
$(SED) 's~file\.ubi~$@~g' $(STAGING_DIR_HOST)/uboot_fw/norplusnand-flash.conf; \
|
||||
$(SED) 's~file\.elf~$(BIN_DIR)/openwrt-ipq40xx-u-boot-stripped.elf~g' $(STAGING_DIR_HOST)/uboot_fw/norplusnand-flash.conf; \
|
||||
python $(TOPDIR)/target/linux/ipq40xx/image/uboot_fw/pack.py -t norplusnand -B -F boardconfig_premium_tlt -o $@ $(STAGING_DIR_HOST)/uboot_fw; \
|
||||
else \
|
||||
$(SED) 's~file\.ubi~$@~g' $(STAGING_DIR_HOST)/uboot_fw/norplusnand-apps-flash.conf; \
|
||||
$(SED) 's~file\.elf~$(BIN_DIR)/openwrt-ipq40xx-u-boot-stripped.elf~g' $(STAGING_DIR_HOST)/uboot_fw/norplusnand-apps-flash.conf; \
|
||||
python $(TOPDIR)/target/linux/ipq40xx/image/uboot_fw/pack.py -t norplusnand -B -F appsboardconfig_premium_tlt -o $@ $(STAGING_DIR_HOST)/uboot_fw; \
|
||||
fi
|
||||
endef
|
||||
|
||||
define Build/mkmylofw_32m
|
||||
$(eval device_id=$(word 1,$(1)))
|
||||
$(eval revision=$(word 2,$(1)))
|
||||
|
@ -840,9 +853,11 @@ define Device/teltonika_rutx
|
|||
FILESYSTEMS := squashfs
|
||||
KERNEL_IN_UBI := 1
|
||||
IMAGES := sysupgrade.bin
|
||||
IMAGE/sysupgrade.bin := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
|
||||
#IMAGE/sysupgrade.bin := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
|
||||
#IMAGE/sysupgrade.bin := append-ubi | UbootFw-rutx | append-rutx-metadata
|
||||
IMAGE/sysupgrade.bin := append-ubi | UbootFw-rutx | append-metadata
|
||||
#DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth kmod-r2ec sysupgrade-helper
|
||||
DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth sysupgrade-helper
|
||||
DEVICE_PACKAGES := uboot-ipq40xx ipq-wifi-teltonika_rutx kmod-bluetooth sysupgrade-helper
|
||||
HW_SUPPORT := io_expander%stm32:shiftreg_1
|
||||
endef
|
||||
TARGET_DEVICES += teltonika_rutx
|
||||
|
|
80
5.4/target/linux/ipq40xx/image/uboot_fw/appsboardconfig_premium_tlt
Executable file
80
5.4/target/linux/ipq40xx/image/uboot_fw/appsboardconfig_premium_tlt
Executable file
|
@ -0,0 +1,80 @@
|
|||
[ipq40xx]
|
||||
dirname=ipq40xx
|
||||
nand_available=true
|
||||
nor_available=true
|
||||
emmc_available=true
|
||||
spi_nand_available=true
|
||||
norplusnand_available=true
|
||||
norplusemmc_available=false
|
||||
nand_pagesize=2048
|
||||
nand_pages_per_block=64
|
||||
nand_total_blocks=4096
|
||||
nand_partition=nand-partition.xml
|
||||
nor_pagesize=256
|
||||
nor_pages_per_block=256
|
||||
nor_total_blocks=512
|
||||
nor_partition=nor-partition.xml
|
||||
bootconfig=bootconfig.xml
|
||||
nand_bootconfig=nand_bootconfig.bin
|
||||
nor_bootconfig=nor_bootconfig.bin
|
||||
bootconfig1=bootconfig1.xml
|
||||
nand_bootconfig1=nand_bootconfig1.bin
|
||||
nor_bootconfig1=nor_bootconfig1.bin
|
||||
emmc_pagesize=512
|
||||
emmc_blocksize=512
|
||||
emmc_total_blocks=7634944
|
||||
emmc_partition=emmc-partition.xml
|
||||
smem_info=["smem-ipq40xx.xml"]
|
||||
cdt_info=["pcddr_40xx.xml"]
|
||||
cdt_info_default=pcddr_40xx.xml
|
||||
nand_partition_mbn=nand-system-partition-ipq40xx.bin
|
||||
nor_partition_mbn=nor-system-partition-ipq40xx.bin
|
||||
emmc_partition_mbn=gpt_main0.bin
|
||||
nand_flash_conf=nand-apps-flash.conf
|
||||
nor_flash_conf=nor-apps-flash.conf
|
||||
emmc_flash_conf=emmc-apps-flash.conf
|
||||
machid=0x8010000
|
||||
norplusnand_partition=nor-plus-nand-parition.xml
|
||||
norplusnand_flash_conf=norplusnand-apps-flash.conf
|
||||
norplusnand_partition_mbn=norplusnand-system-partition-ipq40xx.bin
|
||||
|
||||
|
||||
[AP.DK01.1-C2]
|
||||
dirname=AP.DK01.1-C2
|
||||
nand_available=false
|
||||
nor_available=false
|
||||
emmc_available=false
|
||||
spi_nand_available=true
|
||||
norplusnand_available=true
|
||||
norplusemmc_available=false
|
||||
nand_pagesize=2048
|
||||
nand_pages_per_block=64
|
||||
nand_total_blocks=4096
|
||||
nand_partition=nand-partition.xml
|
||||
nor_pagesize=256
|
||||
nor_pages_per_block=256
|
||||
nor_total_blocks=512
|
||||
nor_partition=nor-partition.xml
|
||||
bootconfig=bootconfig.xml
|
||||
nand_bootconfig=nand_bootconfig.bin
|
||||
nor_bootconfig=nor_bootconfig.bin
|
||||
bootconfig1=bootconfig1.xml
|
||||
nand_bootconfig1=nand_bootconfig1.bin
|
||||
nor_bootconfig1=nor_bootconfig1.bin
|
||||
emmc_pagesize=512
|
||||
emmc_blocksize=512
|
||||
emmc_total_blocks=7634944
|
||||
emmc_partition=emmc-partition.xml
|
||||
smem_info=["smem-AP.DK01.1-C2.xml"]
|
||||
cdt_info=["pcddr_AP.DK01.1-C2_64M16.xml", "pcddr_AP.DK01.1-C2_128M16.xml", "pcddr_AP.DK01.1-C2_256M16.xml"]
|
||||
cdt_info_default=pcddr_AP.DK01.1-C2.xml
|
||||
nand_partition_mbn=nand-system-partition-ipq40xx.bin
|
||||
nor_partition_mbn=nor-system-partition-ipq40xx.bin
|
||||
emmc_partition_mbn=gpt_main0.bin
|
||||
nand_flash_conf=nand-apps-flash.conf
|
||||
nor_flash_conf=nor-apps-flash.conf
|
||||
emmc_flash_conf=emmc-apps-flash.conf
|
||||
machid=0x8010100
|
||||
norplusnand_partition=nor-plus-nand-parition.xml
|
||||
norplusnand_flash_conf=norplusnand-apps-flash.conf
|
||||
norplusnand_partition_mbn=norplusnand-system-partition-ipq40xx.bin
|
79
5.4/target/linux/ipq40xx/image/uboot_fw/boardconfig_premium_tlt
Executable file
79
5.4/target/linux/ipq40xx/image/uboot_fw/boardconfig_premium_tlt
Executable file
|
@ -0,0 +1,79 @@
|
|||
[ipq40xx]
|
||||
dirname=ipq40xx
|
||||
nand_available=true
|
||||
nor_available=true
|
||||
emmc_available=true
|
||||
spi_nand_available=true
|
||||
norplusnand_available=true
|
||||
norplusemmc_available=false
|
||||
nand_pagesize=2048
|
||||
nand_pages_per_block=64
|
||||
nand_total_blocks=4096
|
||||
nand_partition=nand-partition.xml
|
||||
nor_pagesize=256
|
||||
nor_pages_per_block=256
|
||||
nor_total_blocks=512
|
||||
nor_partition=nor-partition.xml
|
||||
bootconfig=bootconfig.xml
|
||||
nand_bootconfig=nand_bootconfig.bin
|
||||
nor_bootconfig=nor_bootconfig.bin
|
||||
bootconfig1=bootconfig1.xml
|
||||
nand_bootconfig1=nand_bootconfig1.bin
|
||||
nor_bootconfig1=nor_bootconfig1.bin
|
||||
emmc_pagesize=512
|
||||
emmc_blocksize=512
|
||||
emmc_total_blocks=7634944
|
||||
emmc_partition=emmc-partition.xml
|
||||
smem_info=["smem-ipq40xx.xml"]
|
||||
cdt_info=["pcddr_40xx.xml"]
|
||||
cdt_info_default=pcddr_40xx.xml
|
||||
nand_partition_mbn=nand-system-partition-ipq40xx.bin
|
||||
nor_partition_mbn=nor-system-partition-ipq40xx.bin
|
||||
emmc_partition_mbn=gpt_main0.bin
|
||||
nand_flash_conf=nand-flash.conf
|
||||
nor_flash_conf=nor-flash.conf
|
||||
emmc_flash_conf=emmc-flash.conf
|
||||
machid=0x8010000
|
||||
norplusnand_partition=nor-plus-nand-parition.xml
|
||||
norplusnand_flash_conf=norplusnand-flash.conf
|
||||
norplusnand_partition_mbn=norplusnand-system-partition-ipq40xx.bin
|
||||
|
||||
[AP.DK01.1-C2]
|
||||
dirname=AP.DK01.1-C2
|
||||
nand_available=false
|
||||
nor_available=false
|
||||
emmc_available=false
|
||||
spi_nand_available=true
|
||||
norplusnand_available=true
|
||||
norplusemmc_available=false
|
||||
nand_pagesize=2048
|
||||
nand_pages_per_block=64
|
||||
nand_total_blocks=4096
|
||||
nand_partition=nand-partition.xml
|
||||
nor_pagesize=256
|
||||
nor_pages_per_block=256
|
||||
nor_total_blocks=512
|
||||
nor_partition=nor-partition.xml
|
||||
bootconfig=bootconfig.xml
|
||||
nand_bootconfig=nand_bootconfig.bin
|
||||
nor_bootconfig=nor_bootconfig.bin
|
||||
bootconfig1=bootconfig1.xml
|
||||
nand_bootconfig1=nand_bootconfig1.bin
|
||||
nor_bootconfig1=nor_bootconfig1.bin
|
||||
emmc_pagesize=512
|
||||
emmc_blocksize=512
|
||||
emmc_total_blocks=7634944
|
||||
emmc_partition=emmc-partition.xml
|
||||
smem_info=["smem-AP.DK01.1-C2.xml"]
|
||||
cdt_info=["pcddr_AP.DK01.1-C2_64M16.xml", "pcddr_AP.DK01.1-C2_128M16.xml", "pcddr_AP.DK01.1-C2_256M16.xml"]
|
||||
cdt_info_default=pcddr_AP.DK01.1-C2.xml
|
||||
nand_partition_mbn=nand-system-partition-ipq40xx.bin
|
||||
nor_partition_mbn=nor-system-partition-ipq40xx.bin
|
||||
emmc_partition_mbn=gpt_main0.bin
|
||||
nand_flash_conf=nand-flash.conf
|
||||
nor_flash_conf=nor-flash.conf
|
||||
emmc_flash_conf=emmc-flash.conf
|
||||
machid=0x8010100
|
||||
norplusnand_partition=nor-plus-nand-parition.xml
|
||||
norplusnand_flash_conf=norplusnand-flash.conf
|
||||
norplusnand_partition_mbn=norplusnand-system-partition-ipq40xx.bin
|
|
@ -0,0 +1,17 @@
|
|||
[ubi]
|
||||
partition = rootfs
|
||||
filename = file.ubi
|
||||
|
||||
[ubi_1]
|
||||
partition = rootfs_1
|
||||
filename = file.ubi
|
||||
primary = ubi
|
||||
|
||||
[u-boot]
|
||||
partition = 0:APPSBL
|
||||
filename = file.elf
|
||||
|
||||
[u-boot_1]
|
||||
partition = 0:APPSBL_1
|
||||
filename = file.elf
|
||||
primary = u-boot
|
|
@ -0,0 +1,53 @@
|
|||
[mibib]
|
||||
partition = 0:MIBIB
|
||||
filename = norplusnand-system-partition-ipq40xx.bin
|
||||
|
||||
[sbl1]
|
||||
partition = 0:SBL1
|
||||
filename = sbl1_nor.mbn
|
||||
|
||||
[bootconfig]
|
||||
partition = 0:BOOTCONFIG
|
||||
filename = nor_bootconfig.bin
|
||||
|
||||
[bootconfig_1]
|
||||
partition = 0:BOOTCONFIG1
|
||||
filename = nor_bootconfig1.bin
|
||||
|
||||
[ddr-teltonika,rutx]
|
||||
partition = 0:CDT
|
||||
filename = cdt-AP.DK01.1-C2.bin
|
||||
if_machid = 0x8010100
|
||||
|
||||
[ddr-teltonika,rutx_1]
|
||||
partition = 0:CDT_1
|
||||
filename = cdt-AP.DK01.1-C2.bin
|
||||
if_machid = 0x8010100
|
||||
primary = ddr-teltonika,rutx
|
||||
|
||||
[tz]
|
||||
partition = 0:QSEE
|
||||
filename = tz.mbn
|
||||
|
||||
[tz_1]
|
||||
partition = 0:QSEE_1
|
||||
filename = tz.mbn
|
||||
primary = tz
|
||||
|
||||
[u-boot]
|
||||
partition = 0:APPSBL
|
||||
filename = file.elf
|
||||
|
||||
[u-boot_1]
|
||||
partition = 0:APPSBL_1
|
||||
filename = file.elf
|
||||
primary = u-boot
|
||||
|
||||
[ubi]
|
||||
partition = rootfs
|
||||
filename = file.ubi
|
||||
|
||||
[ubi_1]
|
||||
partition = rootfs_1
|
||||
filename = file.ubi
|
||||
primary = ubi
|
BIN
5.4/target/linux/ipq40xx/image/uboot_fw/norplusnand-system-partition-ipq40xx.bin
Executable file
BIN
5.4/target/linux/ipq40xx/image/uboot_fw/norplusnand-system-partition-ipq40xx.bin
Executable file
Binary file not shown.
1908
5.4/target/linux/ipq40xx/image/uboot_fw/pack.py
Executable file
1908
5.4/target/linux/ipq40xx/image/uboot_fw/pack.py
Executable file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue