aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/image
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2020-07-16 09:16:34 +0200
committerJohn Crispin <john@phrozen.org>2020-07-16 09:16:34 +0200
commit5a5031e70b3eefc4d4bf1be4f4529e2cfa159f98 (patch)
treeac71ac4f9bf3f90661fff22bf3719dfce327507a /target/linux/mediatek/image
parentea2884e018a61a1d45ed9b7cfc916be35c3198e1 (diff)
downloadupstream-5a5031e70b3eefc4d4bf1be4f4529e2cfa159f98.tar.gz
upstream-5a5031e70b3eefc4d4bf1be4f4529e2cfa159f98.tar.bz2
upstream-5a5031e70b3eefc4d4bf1be4f4529e2cfa159f98.zip
mediatek: generate UBI images for the rev board
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/image')
-rw-r--r--target/linux/mediatek/image/mt7622.mk20
1 files changed, 19 insertions, 1 deletions
diff --git a/target/linux/mediatek/image/mt7622.mk b/target/linux/mediatek/image/mt7622.mk
index 218bf0dc93..dee340accf 100644
--- a/target/linux/mediatek/image/mt7622.mk
+++ b/target/linux/mediatek/image/mt7622.mk
@@ -1,4 +1,4 @@
-KERNEL_LOADADDR := 0x41080000
+KERNEL_LOADADDR := 0x44080000
define Device/bpi_bananapi-r64
DEVICE_VENDOR := Bpi
@@ -40,3 +40,21 @@ define Device/mediatek_mt7622-rfb1
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-ata-ahci-mtk
endef
TARGET_DEVICES += mediatek_mt7622-rfb1
+
+define Device/mediatek_mt7622-ubi
+ DEVICE_VENDOR := MediaTek
+ DEVICE_MODEL := MTK7622 AP (UBI)
+ DEVICE_DTS := mt7622-rfb1-ubi
+ DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
+ UBINIZE_OPTS := -E 5
+ BLOCKSIZE := 128k
+ PAGESIZE := 2048
+ KERNEL_SIZE := 4194304
+ IMAGE_SIZE := 32768k
+ IMAGES += factory.bin
+ IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
+ check-size $$$$(IMAGE_SIZE)
+ IMAGE/sysupgrade.bin := sysupgrade-tar
+ DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-ata-ahci-mtk
+endef
+TARGET_DEVICES += mediatek_mt7622-ubi