radxa / radxa-zero-images-released

14 stars 1 forks source link

False device tree file path with extlinux #6

Open MichaIng opened 2 years ago

MichaIng commented 2 years ago

As reported in #5, when extlinux is used, the device tree file is not found as the given path is wrong:

Retrieving file: /dtbs/5.10.69-4-amlogic-g37ae4051315a/amlogic/amlogic/meson-g12a-radxa-zero.dtb
Failed to load '/dtbs/5.10.69-4-amlogic-g37ae4051315a/amlogic/amlogic/meson-g12a-radxa-zero.dtb'

Reason is the doubled amlogic path element, which seems to be due to:

Since for boot.scr, the uEnv.txt is correct, I suggest to adjust extlinux.conf and the related kernel update script instead, to set devicetreedir /dtbs/<kernelversion> without the trailing /amlogic.

StephenInVamrs commented 2 years ago

Can you provide me the steps to reproduce this issue?

MichaIng commented 2 years ago
  1. Boot this image: https://github.com/radxa/radxa-zero-images-released/releases/download/radxa-zero-v20211010/zero_debian_buster_xfce4_arm64_20211010_0810-mbr.img.gz
  2. apt install linux-image-5.10.69-4-amlogic-g37ae4051315a
  3. Reboot with serial console attached
  4. Watch #5 errors first, then fallback to extlinux, then the above two error messages.