hiagofranco / tdx-info

Script to get useful information about Toradex hardware and software.
MIT License
0 stars 2 forks source link

Bootloader detection on Colibri iMX6ULL 512MB (NAND) #12

Closed griloHBG closed 2 years ago

griloHBG commented 2 years ago

Although I have U-boot installed, the logic used to get the bootloader on Colibri iMX6ULL 512MB (NAND) is giving me "Unknown" bootloader:

root@colibri-imx6ull-06388259:~# ./brict -s 

Software summary
------------------------------------------------------------
Bootloader:               Unknown
Kernel version:           5.4.161-5.6.0+git.ed9c66090d11 #1 SMP Tue Feb 15 10:27:40 UTC 2022
Kernel command line:      user_debug=30 ubi.mtd=ubi root=ubi0:rootfs rw rootfstype=ubifs ubi.fm_autoconvert=1 console=tty1 console=ttymxc0,115200n8 consoleblank=0
Distro name:              NAME="TDX Wayland with XWayland Upstream"
Distro version:           VERSION_ID=5.6.0-build.18
Hostname:                 colibri-imx6ull-06388259
------------------------------------------------------------
root@colibri-imx6ull-06388259:~# ./brict -b

Bootloader info
------------------------------------------------------------
Unknown bootloader:       -
------------------------------------------------------------

But works as expected on Apalis iMX6D 512MB (eMMC)

root@apalis-imx6-10692081:~# ./brict -s

Software summary
------------------------------------------------------------
Bootloader:               U-Boot
Kernel version:           5.4.161-5.6.0+git.0f0011824921 #1 SMP Fri Mar 25 14:27:29 UTC 2022
Kernel command line:      enable_wait_mode=off vmalloc=400M root=PARTUUID=c49561da-02 ro rootwait fec_mac=00:14:2d:a3:25:f1 consoleblank=0 no_console_suspend=1 console=tty1 console=ttymxc0,115200n8 mxc_hdmi.only_cea=1 fbmem=32M
Distro name:              NAME="TDX Wayland with XWayland"
Distro version:           VERSION_ID=5.6.0-build.18
Hostname:                 apalis-imx6-10692081
------------------------------------------------------------
root@apalis-imx6-10692081:~# ./brict -b

Bootloader info
------------------------------------------------------------
U-Boot version:           -
U-Boot vendor:            toradex
U-Boot board:             apalis_imx6
U-Boot fdt_board:         -
U-Boot soc:               mx6
U-Boot video args:        32M
U-Boot secure boot:       -
U-Boot boot delay:        1
------------------------------------------------------------

Probably all NAND based modules are presenting the same behavior.

hiagofranco commented 2 years ago

Thanks, @griloHBG. We'll need to think about a fix for NAND modules... do you have something that would fix it?

hiagofranco commented 2 years ago

Pull request #15 solves this issue.