mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-14 19:04:39 +00:00
ath79: mikrotik: use OpenWrt loader for initram image
Return to using the OpenWrt kernel loader to decompress and load kernel
initram image.
Continue to use the vmlinuz kernel for squashfs.
Mikrotik's bootloader RouterBOOT on some ath79 devices is
failing to boot the current initram, due to the size of the initram image.
On the ath79 wAP-ac:
a 5.7MiB initram image would fail to boot
After this change:
a 6.6MiB initram image successfully loads
This partially reverts commit e91344776b
.
An alternative of using RouterBOOT's capability of loading an initrd ELF
section was investigated, but the OpenWrt kernel loader allows larger image.
Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
This commit is contained in:
parent
9423fc424c
commit
62b72eafe4
@ -1,8 +1,10 @@
|
||||
define Device/mikrotik
|
||||
DEVICE_VENDOR := MikroTik
|
||||
LOADER_TYPE := elf
|
||||
KERNEL_NAME := vmlinuz
|
||||
KERNEL := kernel-bin | append-dtb-elf
|
||||
KERNEL_INITRAMFS := kernel-bin | append-dtb-elf
|
||||
KERNEL_INITRAMFS_NAME := vmlinux-initramfs
|
||||
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel
|
||||
endef
|
||||
|
||||
define Device/mikrotik_nor
|
||||
|
Loading…
Reference in New Issue
Block a user