
Hi Manuel
Please note that Philippe is no longer with Toradex.
On Mon, 2023-05-08 at 13:49 +0200, Manuel Traut wrote:
Hi,
I am not able to run u-boot for the Toradex Verdin i.MX8MMini.
We call it the Verdin iMX8M Mini.
I am not sure if I built/using u-boot as intended for this platform.
I would advice to stick to the documentation [1].
DDR firmware used from: https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.19.bin and arm-trusted-firmware 2.8.0
u-boot was built with the following commands:
--8<-- debian$ export CROSS_COMPILE=aarch64-linux-gnu- debian$ export ARCH=arm64 BL31=/usr/lib/arm-trusted-firmware/imx8mm/bl31.bin debian$ make verdin-imx8mm_defconfig debian$ make -j6 flash.bin --8<--
- running via serial download:
Please note that we never integrated/validated USB device support on Verdin iMX8M Mini (and Plus for that matter). So one really can NOT use UUU with upstream U-Boot so far and does have to stick to what we document.
===============================
--8<-- debian$ sudo uuu SDP: boot -f flash.bin uuu (Universal Update Utility) for nxp imx chips -- lib1.4.193
Success 0 Failure 0
1:4 1/ 1 [=================100%=================] SDP: boot -f flash.bin Okay --8<--
Produces the following output:
--8<-- U-Boot SPL 2023.07-rc1-00199-g1917a1a8a8 (May 08 2023 - 13:11:50 +0200) WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout) SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ### --8<--
- running from SDCard:
As all our SoMs are factory fused to boot from their on-module eMMC storage one can NOT boot them from an SD card.
=======================
--8<-- debian$ sudo dd if=flash.bin of=/dev/sdb bs=1024 seek=33 1206+1 records in 1206+1 records out 1234992 bytes (1.2 MB, 1.2 MiB) copied, 0.260789 s, 4.7 MB/s debian$ sync --8<--
Pressing the 'recovery' switch while reseting the board: Boots into Serial Download Mode
Just reseting the board: Boots into Serial Download Mode
- running from eMMC:
Please stick to the documentation and skip 2 blocks when writing to the first hardware area boot partition.
=====================
(no sdcard plugged in)
--8<-- imx8mm$ echo 0 > /sys/block/mmcblk1boot0/force_ro imx8mm$ dd if=flash.bin of=/dev/mmcblk1boot0 imx8mm$ echo 1 > /sys/block/mmcblk1boot0/force_ro imx8mm$ reboot --8<--
Boots into Serial Download Mode
If anything goes wrong the boot ROM usually falls back to serial download mode. There are ways to look at what exactly you may have done wrong see e.g. [2].
Any ideas?
Kind regards Manuel
[1] https://source.denx.de/u-boot/u-boot/-/blob/master/doc/board/toradex/verdin-... [2] https://www.nxp.com/webapp/Download?colCode=AN12853
Cheers
Marcel