ath79: mikrotik: use vmlinuz (zBoot ELF)

- minimal built initramfs: 10MB vmlinux ELF -> 6MB vmlinuz
- ~5 seconds for kernel decompression, which was equivalent to the
  additional time to load the uncompressed ELF from SPI NOR.
- Removes requirement for lzma-loader, which may have been causing some
  image builds to fail to boot on Mikrotik mt7621.

Suggested-by: Thibaut VARÈNE <hacks@slashdirt.org>
Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
This commit is contained in:
John Thomson 2020-10-15 19:27:55 +10:00 committed by Chuanhong Guo
parent 254f51443d
commit e91344776b
2 changed files with 5 additions and 3 deletions

View File

@ -1,8 +1,8 @@
define Device/mikrotik
DEVICE_VENDOR := MikroTik
LOADER_TYPE := elf
KERNEL := kernel-bin | append-dtb | lzma | loader-kernel
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel
KERNEL_NAME := vmlinuz
KERNEL := kernel-bin | append-dtb-elf
KERNEL_INITRAMFS := kernel-bin | append-dtb-elf
endef
define Device/mikrotik_nor

View File

@ -1,5 +1,7 @@
BOARDNAME := MikroTik devices
FEATURES += minor nand squashfs
KERNELNAME := vmlinux vmlinuz
IMAGES_DIR := ../../..
DEFAULT_PACKAGES += wpad-basic-wolfssl