@ -2,44 +2,50 @@ define Device/mikrotik
PROFILES := Default
DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
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
LOADER_TYPE := elf
KERNEL_NAME := vmlinux.bin.lzma
KERNEL := kernel-bin | loader-kernel
KERNEL_INITRAMFS_NAME := vmlinux-initramfs.bin.lzma
MIKROTIK_CHUNKSIZE :=
IMAGE/sysupgrade.bin/squashfs :=
e n d e f
DEVICE_VARS += MIKROTIK_CHUNKSIZE
d e f i n e D e v i c e / n a n d - 6 4 m
d e f i n e D e v i c e / m i k r o t i k - n a n d
$( Device/mikrotik)
IMAGE/sysupgrade.bin/squashfs = append-kernel | \
kernel2minor -s $$ ( MIKROTIK_CHUNKSIZE) -e -c | sysupgrade-tar kernel = $$ $$ @
e n d e f
d e f i n e D e v i c e / n a n d - 6 4 m
$( Device/mikrotik-nand)
MIKROTIK_CHUNKSIZE := 512
DEVICE_TITLE := MikroTik RouterBoard ( 64 MB NAND)
KERNEL := kernel-bin | kernel2minor -s 512 -e -c
e n d e f
TARGET_DEVICES += nand-64m
d e f i n e D e v i c e / n a n d - l a r g e
$( Device/mikrotik)
$( Device/mikrotik-nand)
MIKROTIK_CHUNKSIZE := 2048
DEVICE_TITLE := MikroTik RouterBoard ( >= 128 MB NAND)
KERNEL := kernel-bin | kernel2minor -s 2048 -e -c
e n d e f
TARGET_DEVICES += nand-large
d e f i n e D e v i c e / n a n d - l a r g e - a c
$( Device/mikrotik)
$( Device/mikrotik-nand)
MIKROTIK_CHUNKSIZE := 2048
DEVICE_TITLE := MikroTik RouterBoard ( >= 128 MB NAND, 802.11ac)
DEVICE_PACKAGES += kmod-ath10k ath10k-firmware-qca988x
KERNEL := kernel-bin | kernel2minor -s 2048 -e -c
SUPPORTED_DEVICES := rb-921gs-5hpacd-r2
e n d e f
TARGET_DEVICES += nand-large-ac
d e f i n e D e v i c e / r b - n o r - f l a s h - 1 6 M
$( Device/mikrotik)
DEVICE_TITLE := MikroTik RouterBoard ( 16 MB SPI NOR)
DEVICE_PACKAGES := rbcfg rssileds -nand-utils kmod-ledtrig-gpio
IMAGE_SIZE := 16000k
LOADER_TYPE := elf
KERNEL_INSTALL := 1
KERNEL := kernel-bin | lzma | loader-kernel
SUPPORTED_DEVICES := rb-750-r2 rb-750up-r2 rb-750p-pbr2 rb-911-2hn rb-911-5hn rb-941-2nd rb-951ui-2nd rb-952ui-5ac2nd rb-962uigs-5hact2hnt rb-lhg-5nd rb-map-2nd rb-mapl-2nd rb-wap-2nd rb-wapr-2nd
IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 -e | pad-to $$ $$ ( BLOCKSIZE) | \
append-rootfs | pad-rootfs | append-metadata | check-size $$ $$ ( IMAGE_SIZE)