vmlinuz-5.10.105-olimex not booted

Started by gregh, September 07, 2022, 03:37:14 pm

Previous topic - Next topic

gregh

I was trying to install the olimex kernel to a stock Debian Buster install on an A20-Micro board, but it does not boot the olimex one.

cat /etc/apt/sources.list.d/olimex.list
deb http://repository.olimex.com buster main
deb-src http://repository.olimex.com buster main

apt update
apt install linux-image-olimex

the following error accured:

Kernel does not match any of the expected flavors (armmp armmp-lpae), therefore not writing it to flash.

it still boots the old debian kernel.
In /boot there is the olimex kernel but u-boot still boots the stock debian kernel.

How to properly install the olimex kernel?

gregh

The problem seems to be in the naming of the kernel:

# flash-kernel
Using DTB: sun7i-a20-olinuxino-micro.dtb
Installing /usr/lib/linux-image-5.10.105-olimex/sun7i-a20-olinuxino-micro.dtb into /boot/dtbs/5.10.105-olimex/./sun7i-a20-olinuxino-micro.dtb
Taking backup of sun7i-a20-olinuxino-micro.dtb.
Installing new sun7i-a20-olinuxino-micro.dtb.
Kernel /boot/vmlinuz-5.10.105-olimex does not match any of the expected flavors (armmp armmp-lpae), therefore not writing it to flash.

It seems to be that the kernel name has to end with the flavor:

https://plethora.debian.net/viewtopic.php?p=755752&sid=e0e6aaf76fe442839f17d90b73ddd409#p755752

gregh

I managed to workaround the problem by overriding the kernel flavor:

$ cat /etc/flash-kernel/db
# To override fields include the Machine field and the fields you wish to
# override.
#
# e.g. to override Boot-Device on the Dreamplug to sdb rather than sda
#
#Machine: Globalscale Technologies Dreamplug
#Boot-Device: /dev/sdb1

Machine: Olimex A20-Olinuxino Micro
Kernel-Flavors: any

$ flash-kernel


@olimex: Please consider to name the olimex kernel with the flavor.

gregh

better and safer:

$ cat /etc/flash-kernel/db
# To override fields include the Machine field and the fields you wish to
# override.
#
# e.g. to override Boot-Device on the Dreamplug to sdb rather than sda
#
#Machine: Globalscale Technologies Dreamplug
#Boot-Device: /dev/sdb1

Machine: Olimex A20-Olinuxino Micro
Kernel-Flavors: armmp armmp-lpae olimex