I must be doing something wrong here, but i cant seem to find the issue.
I try to recreate a custom device tree however to get things working i first want to be able to use the the default ones and have them working so i can compare.
Im using the step by step way of custom OS creation with the following commands:
mkdir -p ~/tcbdir/ && cd ~/tcbdir/
wget https://raw.githubusercontent.com/toradex/tcb-env-setup/master/tcb-env-setup.sh
source tcb-env-setup.sh
wget https://docs.toradex.com/108979-docker-compose-example-arm64.yml
mv 108979-docker-compose-example-arm64.yml docker-compose.yml
torizoncore-builder bundle --platform=linux/arm64 docker-compose.yml --bundle-directory bundle
torizoncore-builder images download --remote-host 192.168.1.96 --remote-username torizon --remote-password torizon123
git clone https://github.com/toradex/device-trees.git
torizoncore-builder dt apply device-trees/dts-arm64/imx8mp-verdin-wifi-dev.dts
torizoncore-builder union custom-branch
torizoncore-builder deploy custom-branch --output-directory torizon-core-docker-verdin-imx8mp-Tezi_6.4.0+build.5.CUSTOM
torizoncore-builder combine torizon-core-docker-verdin-imx8mp-Tezi_6.4.0+build.5.CUSTOM/ --bundle-directory bundle torizon-core-docker-verdin-imx8mp-Tezi_6.4.0+build.5.CUSTOM-WITH-CONTAINERS/
torizoncore-builder deploy custom-branch --remote-host 192.168.1.96 --remote-username torizon --remote-password torizon123 --reboot
Using the above commands results into a non booting OS with the following output on console (after some times it reverts to its known good state):
U-Boot SPL 2020.04-5.7.2+git.33bb8e968332 (Jan 01 1970 - 00:00:00 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
Training FAILED
Quad die, dual rank failed, attempting dual die, single rank configuration.
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from BOOTROM
Find FIT header 0x4803a600, size 969
Need continue download 1024
Download 840704, total fit 842192
NOTICE: BL31: v2.2(release):toradex_imx_5.4.70_2.3.0-g2fa8c6349e
NOTICE: BL31: Built : 00:00:00, Jan 1 1970
U-Boot 2020.04-5.7.2+git.33bb8e968332 (Jan 01 1970 - 00:00:00 +0000)
CPU: i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 39C
Reset cause: POR
DRAM: 4 GiB
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Model: Toradex Verdin iMX8M Plus Quad 4GB Wi-Fi / BT IT V1.1A, Serial# 15036630
get_tdx_eeprom: cannot find EEPROM by node
MISSING TORADEX CARRIER CONFIG BLOCKS
get_tdx_eeprom: cannot find EEPROM by node
BuildInfo:
- ATF 2fa8c63
- U-Boot 2020.04-5.7.2+git.33bb8e968332
flash target is MMC:2
Net: eth1: ethernet@30be0000, eth0: ethernet@30bf0000 [PRIME]
Fastboot: Normal
Saving Environment to MMC... Writing to MMC(2)... OK
Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc2(part 0) is current device
Scanning mmc 2:1...
Found U-Boot script /boot.scr
973 bytes read in 6 ms (158.2 KiB/s)
## Executing script at 47000000
5243 bytes read in 11 ms (464.8 KiB/s)
82603 bytes read in 15 ms (5.3 MiB/s)
14 bytes read in 13 ms (1000 Bytes/s)
12197548 bytes read in 50 ms (232.6 MiB/s)
Uncompressed size: 30724608 = 0x1D4D200
9311633 bytes read in 41 ms (216.6 MiB/s)
## Flattened Device Tree blob at 44000000
Booting using the fdt blob at 0x44000000
Loading Device Tree to 00000000fdbbc000, end 00000000fdbf3fff ... OK
Starting kernel ...
switch failed 1/183/0x2 !
switch failed 1/183/0x0 !
switch failed 1/183/0x2 !
switch failed 1/183/0x0 !
switch failed 1/183/0x1 !
switch failed 1/183/0x0 !
switch failed 1/183/0x0 !
switch failed 1/183/0x0 !
switch failed 1/183/0x2 !
switch failed 1/183/0x0 !
switch failed 1/183/0x1 !
switch failed 1/183/0x0 !
switch failed 1/183/0x0 !
switch failed 1/183/0x0 !
switch failed 1/183/0x2 !
switch failed 1/183/0x0 !
switch failed 1/183/0x1 !
switch failed 1/183/0x0 !
switch failed 1/183/0x0 !
switch failed 1/183/0x0 !
unable to select a mode
device_remove: Device 'mmc@30b60000.blk' failed to remove, but children are gone
U-Boot SPL 2020.04-5.7.2+git.33bb8e968332 (Jan 01 1970 - 00:00:00 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
Training FAILED
Quad die, dual rank failed, attempting dual die, single rank configuration.
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from BOOTROM
Find FIT header 0x4803a600, size 969
Need continue download 1024
Download 840704, total fit 842192
NOTICE: BL31: v2.2(release):toradex_imx_5.4.70_2.3.0-g2fa8c6349e
NOTICE: BL31: Built : 00:00:00, Jan 1 1970
U-Boot 2020.04-5.7.2+git.33bb8e968332 (Jan 01 1970 - 00:00:00 +0000)
CPU: i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 39C
Reset cause: POR
DRAM: 4 GiB
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Model: Toradex Verdin iMX8M Plus Quad 4GB Wi-Fi / BT IT V1.1A, Serial# 15036630
get_tdx_eeprom: cannot find EEPROM by node
MISSING TORADEX CARRIER CONFIG BLOCKS
get_tdx_eeprom: cannot find EEPROM by node
BuildInfo:
- ATF 2fa8c63
- U-Boot 2020.04-5.7.2+git.33bb8e968332
flash target is MMC:2
Net: eth1: ethernet@30be0000, eth0: ethernet@30bf0000 [PRIME]
Fastboot: Normal
Saving Environment to MMC... Writing to MMC(2)... OK
Normal Boot
Warning: Bootlimit (3) exceeded. Using altbootcmd.
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc2(part 0) is current device
Scanning mmc 2:1...
Found U-Boot script /boot.scr
973 bytes read in 6 ms (158.2 KiB/s)
## Executing script at 47000000
Saving Environment to MMC... Writing to MMC(2)... OK
5243 bytes read in 11 ms (464.8 KiB/s)
Rollback enabled. Booting previously deployed version.
88891 bytes read in 14 ms (6.1 MiB/s)
86 bytes read in 12 ms (6.8 KiB/s)
Applying Overlay: verdin-imx8mp_native-hdmi_overlay.dtbo
1860 bytes read in 16 ms (113.3 KiB/s)
Applying Overlay: verdin-imx8mp_lt8912_overlay.dtbo
1987 bytes read in 16 ms (121.1 KiB/s)
12197548 bytes read in 53 ms (219.5 MiB/s)
Uncompressed size: 30724608 = 0x1D4D200
9171560 bytes read in 43 ms (203.4 MiB/s)
## Flattened Device Tree blob at 44000000
Booting using the fdt blob at 0x44000000
Loading Device Tree to 00000000fdbba000, end 00000000fdbf2fff ... OK
Starting kernel ...
switch failed 1/183/0x2 !
switch failed 1/183/0x0 !
switch failed 1/183/0x2 !
switch failed 1/183/0x0 !
switch failed 1/183/0x1 !
switch failed 1/183/0x0 !
switch failed 1/183/0x0 !
switch failed 1/183/0x0 !
switch failed 1/183/0x2 !
switch failed 1/183/0x0 !
switch failed 1/183/0x1 !
switch failed 1/183/0x0 !
switch failed 1/183/0x0 !
switch failed 1/183/0x0 !
switch failed 1/183/0x2 !
switch failed 1/183/0x0 !
switch failed 1/183/0x1 !
switch failed 1/183/0x0 !
switch failed 1/183/0x0 !
switch failed 1/183/0x0 !
unable to select a mode
device_remove: Device 'mmc@30b60000.blk' failed to remove, but children are gone
I am using the Verdin Development board V1.1 but most trivial jumpers (I2C to the board eeprom) are disconnected and the setup is wired like the custom board will be wired.
(I triend with torizon 6 and later in 5 thats why no checkout is used since its not present in 6)