meta-meson icon indicating copy to clipboard operation
meta-meson copied to clipboard

s905-autoscript question

Open graugans opened this issue 2 years ago • 5 comments

From my understanding the packages s905-autoscript and s905-autoscript-multiboot are intended to support the vendor U-Boot boot process. Like described in the README

This layer aims to support all mainline supported boards, but some of them have a vendor U-Boot loaded on the eMMC and can only be booted by pressing the "update" button.

But when I do flash the image amlogic-image-headless-sd the file aml_autoscript is missing on the boot partition. This is added by amlogic-s9xxx.inc which is only included in amlogic-s9xxx.conf which looks like a base for boards which do run a mainline U-Boot and not a vendor one.

Or did I understood it wrong?

graugans avatar Jun 07 '22 16:06 graugans

Those are installed in https://github.com/superna9999/meta-meson/blob/f3c65574a5c9f02e6c9a9223d49f92b298561b66/conf/machine/include/amlogic-legacy-boot.inc#L7

This boot scheme is selected in <board>-sdboot.conf machine names, I didn't finish adding the -sdboot.conf variants for all board.

superna9999 avatar Jun 07 '22 17:06 superna9999

Yes, you are right. I was only search half way. I am not sure if this is may related to my set-up but when checking the amlogic-image-headless-sd.env file in the image folder the variable IMAGE_BOOT_FILES only contains the device tree entry.

I will investigate this further.

graugans avatar Jun 07 '22 19:06 graugans

Looks like the order is important.

require conf/machine/include/amlogic-legacy-boot.inc
require conf/machine/include/amlogic-s905x2.inc
require conf/machine/include/amediatech-x96-max-dtb.inc

works for me.

graugans avatar Jun 07 '22 20:06 graugans

Interesting, it doesn't make sense, could you provide a fix in a PR ?

superna9999 avatar Jun 13 '22 07:06 superna9999

Sorry I was a few days offline, I will do more investigation. But this week will be loaded with other stuff.

graugans avatar Jun 20 '22 05:06 graugans