mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-12 19:31:52 +00:00
Add bpi-r4 config
This commit is contained in:
parent
4dd43784ad
commit
2d47118221
4 changed files with 80 additions and 18 deletions
|
@ -83,6 +83,10 @@ define Build/append-gl-metadata
|
||||||
}
|
}
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/append-openwrt-one-eeprom
|
||||||
|
dd if=$(STAGING_DIR_IMAGE)/mt7981_eeprom_mt7976_dbdc.bin >> $@
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/zyxel-nwa-fit-filogic
|
define Build/zyxel-nwa-fit-filogic
|
||||||
$(TOPDIR)/scripts/mkits-zyxel-fit-filogic.sh \
|
$(TOPDIR)/scripts/mkits-zyxel-fit-filogic.sh \
|
||||||
$@.its $@ "80 e1 ff ff ff ff ff ff ff ff"
|
$@.its $@ "80 e1 ff ff ff ff ff ff ff ff"
|
||||||
|
@ -204,23 +208,23 @@ define Device/smartrg_sdg-8733
|
||||||
$(call Device/adtran_smartrg)
|
$(call Device/adtran_smartrg)
|
||||||
DEVICE_MODEL := SDG-8733
|
DEVICE_MODEL := SDG-8733
|
||||||
DEVICE_DTS := mt7988a-smartrg-SDG-8733
|
DEVICE_DTS := mt7988a-smartrg-SDG-8733
|
||||||
DEVICE_PACKAGES += kmod-mt7996-firmware kmod-phy-aquantia kmod-usb3
|
DEVICE_PACKAGES += kmod-mt7996-firmware kmod-phy-aquantia kmod-usb3 mt7988-wo-firmware
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += smartrg_sdg-8733
|
TARGET_DEVICES += smartrg_sdg-8733
|
||||||
|
|
||||||
#define Device/smartrg_sdg-8733a
|
define Device/smartrg_sdg-8733a
|
||||||
#$(call Device/adtran_smartrg)
|
$(call Device/adtran_smartrg)
|
||||||
# DEVICE_MODEL := SDG-8733A
|
DEVICE_MODEL := SDG-8733A
|
||||||
# DEVICE_DTS := mt7988d-smartrg-SDG-8733A
|
DEVICE_DTS := mt7988d-smartrg-SDG-8733A
|
||||||
# DEVICE_PACKAGES += mt7988-2p5g-phy-firmware kmod-mt7996-firmware kmod-phy-aquantia
|
DEVICE_PACKAGES += mt7988-2p5g-phy-firmware kmod-mt7996-233-firmware kmod-phy-aquantia mt7988-wo-firmware
|
||||||
#endef
|
endef
|
||||||
#TARGET_DEVICES += smartrg_sdg-8733a
|
TARGET_DEVICES += smartrg_sdg-8733a
|
||||||
|
|
||||||
define Device/smartrg_sdg-8734
|
define Device/smartrg_sdg-8734
|
||||||
$(call Device/adtran_smartrg)
|
$(call Device/adtran_smartrg)
|
||||||
DEVICE_MODEL := SDG-8734
|
DEVICE_MODEL := SDG-8734
|
||||||
DEVICE_DTS := mt7988a-smartrg-SDG-8734
|
DEVICE_DTS := mt7988a-smartrg-SDG-8734
|
||||||
DEVICE_PACKAGES += kmod-mt7996-firmware kmod-phy-aquantia kmod-sfp kmod-usb3
|
DEVICE_PACKAGES += kmod-mt7996-firmware kmod-phy-aquantia kmod-sfp kmod-usb3 mt7988-wo-firmware
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += smartrg_sdg-8734
|
TARGET_DEVICES += smartrg_sdg-8734
|
||||||
|
|
||||||
|
@ -250,6 +254,30 @@ define Device/asus_tuf-ax4200
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += asus_tuf-ax4200
|
TARGET_DEVICES += asus_tuf-ax4200
|
||||||
|
|
||||||
|
define Device/arcadyan_mozart
|
||||||
|
DEVICE_VENDOR := Arcadyan
|
||||||
|
DEVICE_MODEL := Mozart
|
||||||
|
DEVICE_DTS := mt7988a-arcadyan-mozart
|
||||||
|
DEVICE_DTS_DIR := ../dts
|
||||||
|
DEVICE_DTC_FLAGS := --pad 4096
|
||||||
|
DEVICE_DTS_LOADADDR := 0x45f00000
|
||||||
|
DEVICE_PACKAGES := kmod-hwmon-pwmfan e2fsprogs f2fsck mkf2fs kmod-mt7996-firmware
|
||||||
|
KERNEL_LOADADDR := 0x46000000
|
||||||
|
KERNEL := kernel-bin | gzip
|
||||||
|
KERNEL_INITRAMFS := kernel-bin | lzma | \
|
||||||
|
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
|
||||||
|
KERNEL_INITRAMFS_SUFFIX := .itb
|
||||||
|
IMAGE_SIZE := $$(shell expr 64 + $$(CONFIG_TARGET_ROOTFS_PARTSIZE))m
|
||||||
|
IMAGES := sysupgrade.itb
|
||||||
|
IMAGE/sysupgrade.itb := append-kernel | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-with-rootfs | pad-rootfs | append-metadata
|
||||||
|
ARTIFACTS := emmc-preloader.bin emmc-bl31-uboot.fip emmc-gpt.bin
|
||||||
|
ARTIFACT/emmc-gpt.bin := mt798x-gpt emmc
|
||||||
|
ARTIFACT/emmc-preloader.bin := mt7988-bl2 emmc-comb
|
||||||
|
ARTIFACT/emmc-bl31-uboot.fip := mt7988-bl31-uboot arcadyan_mozart
|
||||||
|
SUPPORTED_DEVICES += arcadyan,mozart
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += arcadyan_mozart
|
||||||
|
|
||||||
define Device/asus_tuf-ax6000
|
define Device/asus_tuf-ax6000
|
||||||
DEVICE_VENDOR := ASUS
|
DEVICE_VENDOR := ASUS
|
||||||
DEVICE_MODEL := TUF-AX6000
|
DEVICE_MODEL := TUF-AX6000
|
||||||
|
@ -373,8 +401,8 @@ define Device/bananapi_bpi-r4-common
|
||||||
DEVICE_DTS_LOADADDR := 0x45f00000
|
DEVICE_DTS_LOADADDR := 0x45f00000
|
||||||
DEVICE_DTS_OVERLAY:= mt7988a-bananapi-bpi-r4-emmc mt7988a-bananapi-bpi-r4-rtc mt7988a-bananapi-bpi-r4-sd mt7988a-bananapi-bpi-r4-wifi-mt7996a
|
DEVICE_DTS_OVERLAY:= mt7988a-bananapi-bpi-r4-emmc mt7988a-bananapi-bpi-r4-rtc mt7988a-bananapi-bpi-r4-sd mt7988a-bananapi-bpi-r4-wifi-mt7996a
|
||||||
DEVICE_DTC_FLAGS := --pad 4096
|
DEVICE_DTC_FLAGS := --pad 4096
|
||||||
DEVICE_PACKAGES := kmod-hwmon-pwmfan kmod-i2c-mux-pca954x kmod-eeprom-at24 kmod-mt7996-firmware \
|
DEVICE_PACKAGES := kmod-hwmon-pwmfan kmod-i2c-mux-pca954x kmod-eeprom-at24 kmod-mt7996-firmware kmod-mt7996-233-firmware \
|
||||||
kmod-rtc-pcf8563 kmod-sfp kmod-usb3 e2fsprogs f2fsck mkf2fs
|
kmod-rtc-pcf8563 kmod-sfp kmod-usb3 e2fsprogs f2fsck mkf2fs mt7988-wo-firmware
|
||||||
IMAGES := sysupgrade.itb
|
IMAGES := sysupgrade.itb
|
||||||
KERNEL_LOADADDR := 0x46000000
|
KERNEL_LOADADDR := 0x46000000
|
||||||
KERNEL_INITRAMFS_SUFFIX := -recovery.itb
|
KERNEL_INITRAMFS_SUFFIX := -recovery.itb
|
||||||
|
@ -1047,10 +1075,6 @@ define Device/openembed_som7981
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += openembed_som7981
|
TARGET_DEVICES += openembed_som7981
|
||||||
|
|
||||||
define Build/append-openwrt-one-eeprom
|
|
||||||
dd if=$(STAGING_DIR_IMAGE)/mt7981_eeprom_mt7976_dbdc.bin >> $@
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Device/openwrt_one
|
define Device/openwrt_one
|
||||||
DEVICE_VENDOR := OpenWrt
|
DEVICE_VENDOR := OpenWrt
|
||||||
DEVICE_MODEL := One
|
DEVICE_MODEL := One
|
||||||
|
@ -1090,7 +1114,9 @@ define Device/openwrt_one
|
||||||
UBINIZE_OPTS := -E 5
|
UBINIZE_OPTS := -E 5
|
||||||
BLOCKSIZE := 128k
|
BLOCKSIZE := 128k
|
||||||
PAGESIZE := 2048
|
PAGESIZE := 2048
|
||||||
UBINIZE_PARTS := fip=:$(STAGING_DIR_IMAGE)/mt7981_openwrt_one-snand-u-boot.fip recovery=:$(KDIR)/tmp/openwrt-mediatek-filogic-openwrt_one-initramfs.itb \
|
UBINIZE_PARTS := fip=:$(STAGING_DIR_IMAGE)/mt7981_openwrt_one-snand-u-boot.fip \
|
||||||
|
$(if $(IB),recovery=:$(STAGING_DIR_IMAGE)/mediatek-filogic-openwrt_one-initramfs.itb,\
|
||||||
|
recovery=:$(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE)) \
|
||||||
$(if $(wildcard $(TOPDIR)/openwrt-mediatek-filogic-openwrt_one-calibration.itb), calibration=:$(TOPDIR)/openwrt-mediatek-filogic-openwrt_one-calibration.itb)
|
$(if $(wildcard $(TOPDIR)/openwrt-mediatek-filogic-openwrt_one-calibration.itb), calibration=:$(TOPDIR)/openwrt-mediatek-filogic-openwrt_one-calibration.itb)
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += openwrt_one
|
TARGET_DEVICES += openwrt_one
|
||||||
|
@ -1404,7 +1430,6 @@ define Device/yuncore_ax835
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += yuncore_ax835
|
TARGET_DEVICES += yuncore_ax835
|
||||||
|
|
||||||
|
|
||||||
define Device/zbtlink_zbt-z8102ax
|
define Device/zbtlink_zbt-z8102ax
|
||||||
DEVICE_VENDOR := Zbtlink
|
DEVICE_VENDOR := Zbtlink
|
||||||
DEVICE_MODEL := ZBT-Z8102AX
|
DEVICE_MODEL := ZBT-Z8102AX
|
||||||
|
|
5
build.sh
5
build.sh
|
@ -638,6 +638,11 @@ if [ "$OMR_KERNEL" = "5.4" ]; then
|
||||||
NOT_SUPPORTED="1"
|
NOT_SUPPORTED="1"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if ([ "$OMR_TARGET" = "bpi-r4" ] || [ "$OMR_TARGET" = "bpi-r4-poe" ]); then
|
||||||
|
echo "Sorry but kernel 5.4 is not supported on your arch"
|
||||||
|
NOT_SUPPORTED="1"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
if ([ "$OMR_TARGET" = "z8102ax_128m" ] || [ "$OMR_TARGET" = "z8102ax_64m" ]); then
|
if ([ "$OMR_TARGET" = "z8102ax_128m" ] || [ "$OMR_TARGET" = "z8102ax_64m" ]); then
|
||||||
echo "Sorry but kernel 5.4 is not supported on your arch yet"
|
echo "Sorry but kernel 5.4 is not supported on your arch yet"
|
||||||
NOT_SUPPORTED="1"
|
NOT_SUPPORTED="1"
|
||||||
|
|
16
config-bpi-r4
Normal file
16
config-bpi-r4
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
CONFIG_TARGET_mediatek=y
|
||||||
|
CONFIG_TARGET_mediatek_filogic=y
|
||||||
|
CONFIG_TARGET_mediatek_filogic_DEVICE_bananapi_bpi-r4=y
|
||||||
|
CONFIG_KERNEL_ARM64_MODULE_PLTS=y
|
||||||
|
CONFIG_KERNEL_TCP_CONG_BBR2=y
|
||||||
|
CONFIG_PACKAGE_z8102=y
|
||||||
|
CONFIG_PACKAGE_kmod-mt76=y
|
||||||
|
CONFIG_TARGET_ROOTFS_PARTSIZE=128
|
||||||
|
CONFIG_TARGET_INITRAMFS_COMPRESSION_NONE=y
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_GZIP is not set
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_BZIP2 is not set
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA is not set
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_LZO is not set
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_LZ4 is not set
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_XZ is not set
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD is not set
|
16
config-bpi-r4-poe
Normal file
16
config-bpi-r4-poe
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
CONFIG_TARGET_mediatek=y
|
||||||
|
CONFIG_TARGET_mediatek_filogic=y
|
||||||
|
CONFIG_TARGET_mediatek_filogic_DEVICE_bananapi_bpi-r4-poe=y
|
||||||
|
CONFIG_KERNEL_ARM64_MODULE_PLTS=y
|
||||||
|
CONFIG_KERNEL_TCP_CONG_BBR2=y
|
||||||
|
CONFIG_PACKAGE_z8102=y
|
||||||
|
CONFIG_PACKAGE_kmod-mt76=y
|
||||||
|
CONFIG_TARGET_ROOTFS_PARTSIZE=128
|
||||||
|
CONFIG_TARGET_INITRAMFS_COMPRESSION_NONE=y
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_GZIP is not set
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_BZIP2 is not set
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA is not set
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_LZO is not set
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_LZ4 is not set
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_XZ is not set
|
||||||
|
# CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD is not set
|
Loading…
Reference in a new issue