1
0
Fork 0
forked from mirror/openwrt

ramips: mt7621: mikrotik: initram use lzma loader

Use OpenWrt's lzma loader for initramfs image
Due to mips kernel self extractor inability to relocate,
and RouterBoot on 760igs refusing to netboot an ELF with:
Entry point address:               0x80b91000
or greater: 0x80b81000 and below okay.

Note that this is only a bootloader ELF entry point limitation,
a 50MiB Linux + initramfs vmlinux will boot fine on 760igs.

With this lzma loader, netboot will occasionally freeze after
decompressing the kernel, but before starting vmlinux. It was considered
that an occasional netboot freeze was simpler to workaround than an
image that refuses to boot unless minimized.

Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
This commit is contained in:
John Thomson 2022-10-27 20:56:05 +10:00 committed by Arne Zachlod
parent a65b45d8c4
commit 3b42f2f4c3

View file

@ -2092,6 +2092,9 @@ define Device/MikroTik
DEVICE_PACKAGES := kmod-usb3 -uboot-envtools DEVICE_PACKAGES := kmod-usb3 -uboot-envtools
KERNEL_NAME := vmlinuz KERNEL_NAME := vmlinuz
KERNEL := kernel-bin | append-dtb-elf KERNEL := kernel-bin | append-dtb-elf
LOADER_TYPE := elf
KERNEL_INITRAMFS_NAME := vmlinux-initramfs
KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel
IMAGE/sysupgrade.bin := append-kernel | yaffs-filesystem -L | \ IMAGE/sysupgrade.bin := append-kernel | yaffs-filesystem -L | \
pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size | \ pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size | \
append-metadata append-metadata