diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-01-08 14:27:38 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-01-16 20:40:12 +0100 |
commit | 9db9072d6767e5910e01b8962171c89359ab7a14 (patch) | |
tree | c4a15bf6709870dac99d2faa3f34adfe66f0398f /target/linux/ar71xx/image | |
parent | 0e547400fbcc4b6610d3b810f123d4963f9b2ea7 (diff) | |
download | upstream-9db9072d6767e5910e01b8962171c89359ab7a14.tar.gz upstream-9db9072d6767e5910e01b8962171c89359ab7a14.tar.bz2 upstream-9db9072d6767e5910e01b8962171c89359ab7a14.zip |
ar71xx: convert mikrotik routerboard support to UBI
Remove the wget2nand script, drop the need for manual installation,
use sysupgrade instead.
There are now two different NAND images, one for 64 MiB flashes, the
other for >= 128 MiB
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/ar71xx/image')
-rw-r--r-- | target/linux/ar71xx/image/Makefile | 3 | ||||
-rw-r--r-- | target/linux/ar71xx/image/mikrotik.mk | 22 |
2 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index b9c3fc350f..8eac5fc997 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -21,6 +21,9 @@ endif ifeq ($(SUBTARGET),nand) include ./nand.mk endif +ifeq ($(SUBTARGET),mikrotik) +include ./mikrotik.mk +endif include ./legacy.mk define Build/netgear-squashfs diff --git a/target/linux/ar71xx/image/mikrotik.mk b/target/linux/ar71xx/image/mikrotik.mk new file mode 100644 index 0000000000..000253b622 --- /dev/null +++ b/target/linux/ar71xx/image/mikrotik.mk @@ -0,0 +1,22 @@ +define Device/mikrotik + PROFILES := Default + BOARD_NAME := routerboard + KERNEL_INITRAMFS := + KERNEL_NAME := loader-generic.elf + KERNEL := kernel-bin | kernel2minor -s 2048 -e -c + FILESYSTEMS := squashfs + IMAGES := sysupgrade.bin + IMAGE/sysupgrade.bin := sysupgrade-tar +endef + +define Device/nand-64m +$(Device/mikrotik) + KERNEL := kernel-bin | kernel2minor -s 512 -e -c +endef + +define Device/nand-large +$(Device/mikrotik) + KERNEL := kernel-bin | kernel2minor -s 2048 -e -c +endef + +TARGET_DEVICES += nand-64m nand-large |