1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Add patches and packages needed for BPI-r2

This commit is contained in:
Ycarus 2018-09-06 13:53:51 +02:00
parent b105e79652
commit 3406c7d37b
165 changed files with 241259 additions and 29 deletions

View file

@ -33,9 +33,12 @@ define Build/sysupgrade-emmc
endef
define Build/sysupgrade-bpi-r2-sd
rm -f $@.recovery
mkfs.fat -C $@.recovery 3070
dd bs="1024" if="$(STAGING_DIR_IMAGE)/mtk-bpi-r2-preloader-sd.bin" of="$@" seek="0"
dd bs="1024" if="$(STAGING_DIR_IMAGE)/mtk-bpi-r2-uboot.bin" of="$@" seek="320"
dd bs="1024" if="$(IMAGE_KERNEL)" of="$@" seek="2048"
dd bs="1024" if="$@.recovery" of="$@" seek="33792"
dd bs="1024" if="$(IMAGE_ROOTFS)" of="$@" seek="67584"
endef
define Build/sysupgrade-bpi-r2-emmc
@ -49,7 +52,7 @@ endef
define Device/Default
PROFILES = Default $$(DEVICE_NAME)
KERNEL_NAME := zImage
FILESYSTEMS := squashfs
# FILESYSTEMS := squashfs
DEVICE_DTS_DIR := $(DTS_DIR)
IMAGES := sysupgrade.bin
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata

View file

@ -12,7 +12,7 @@ TARGET_DEVICES += 7623a-unielec-u7623-02-emmc-512m
define Device/7623n-bananapi-bpi-r2
DEVICE_TITLE := MTK7623n BananaPi R2
DEVICE_DTS := mt7623n-bananapi-bpi-r2
DEVICE_PACKAGES += uboot-mtk-bpi_r2
DEVICE_PACKAGES := wmt uboot-mtk-bpi_r2
SUPPORTED_DEVICES := bananapi,bpi-r2
IMAGES := sysupgrade.tar sysupgrade-sd.bin.gz sysupgrade-emmc.bin.gz
IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata