Просмотр исходного кода

mvebu: fix initramfs/kernel image for CZNIC Turris Omnia

This adds DTB to kernel and that way makes it possible to easily boot
initramfs image and also kernel.

The sequence to boot initramfs on Omnia is then just:
  env set bootargs earlyprintk console=ttyS0,115200
  dhcp 0x1000000 192.168.1.1:openwrt-mvebu-cortexa9-cznic_turris-omnia-initramfs-kernel.bin
  bootz 0x1000000

Without this change kernel boot won't proceed and is stuck on "Starting
kernel".

Signed-off-by: Karel Kočí <[email protected]>
[fixed From: to match with SoB:]
Signed-off-by: Petr Štetiar <[email protected]>
Karel Kočí 5 лет назад
Родитель
Сommit
e401a2a42e
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      target/linux/mvebu/image/cortexa9.mk

+ 1 - 2
target/linux/mvebu/image/cortexa9.mk

@@ -32,8 +32,7 @@ define Device/cznic_turris-omnia
   DEVICE_VENDOR := CZ.NIC
   DEVICE_MODEL := Turris Omnia
   KERNEL_INSTALL := 1
-  KERNEL := kernel-bin
-  KERNEL_INITRAMFS := kernel-bin
+  KERNEL := kernel-bin | append-dtb
   DEVICE_PACKAGES :=  \
     mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
     wpad-basic-wolfssl kmod-ath9k kmod-ath10k-ct ath10k-firmware-qca988x-ct \