Here my resolution:

1- Update u-boot on SPI - Booting from SD card using Krescue:


copy tux@yoda:~/Downloads/VIM3.u-boot.spi.bin to SD card /downloads

root@vim3-b2501:/tmp/mounts/dumps/downloads# spi_update < VIM3.u-boot.spi.bin
[i] disabled mmc / enable spi
[i] spiupdate => /dev/mtdblock0 (16777216 - 4096)
###  all blks wrtd same
007 0325 4096 0027 0298
[i] enable mmc / disable spi
SPI flash update DONE


---


First boot from SD card:


=> fatls mmc 1:2 /EFI/BOOT/            
            ./
            ../
  2402160   BOOTAA64.EFI
      121   grub.cfg

2 file(s), 2 dir(s)


=> load mmc 1:2 $kernel_addr_r /EFI/BOOT/bootaa64.efi
2402160 bytes read in 105 ms (21.8 MiB/s)


=> bootefi $kernel_addr_r
Booting /\EFI\BOOT\bootaa64.efi
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete....... done
Speed: 1000, full duplex

Please press 't' to show the boot menu on this console


---


2- Install required amlogic dtb file(s):


khadas:/boot # zypper in -y dtb-amlogic


---


3- Add custom Grub2 menu entry including "devicetree" option and reboot:


khadas:~ # cat /etc/grub.d/40_custom 
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
#
menuentry 'openSUSE Tumbleweed - dtb'  --class opensuse --class gnu-linux 
--class gnu --class os $menuentry_id_option 
'gnulinux-simple-9ae36c7d-34da-4b03-b6ee-99cffa9ac395' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        search --no-floppy --fs-uuid --set=root 
9ae36c7d-34da-4b03-b6ee-99cffa9ac395
        echo    'Loading Linux ...'
        linux   /boot/Image root=UUID=9ae36c7d-34da-4b03-b6ee-99cffa9ac395 
mitigations=auto
        echo    'Loading /boot/dtb/amlogic/meson-g12b-a311d-khadas-vim3.dtb ...'
        devicetree /boot/dtb/amlogic/meson-g12b-a311d-khadas-vim3.dtb 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd
}


khadas:~ # grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/Image-6.17.8-1-default
Found initrd image: /boot/initrd-6.17.8-1-default
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot 
entries.
837.369636 | DM multipath kernel driver not loaded
Adding boot menu entry for UEFI Firmware Settings ...
done


---


4- Verify HDMI connection:


khadas:~ # for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n 
"${con#*/card?-}: "; cat $p; done
HDMI-A-1: connected

Reply via email to