I’m trying to flash Easy Installer without entering the recovery mode, just over tftp, but I’m getting the following error:
Apalis iMX8 # tftp ${loadaddr} boot.scr && source ${loadaddr}
Using ethernet@5b040000 device
TFTP from server 192.168.100.2; our IP address is 192.168.100.5
Filename 'boot.scr'.
Load address: 0x87000000
Loading: ################################################## 2.2 KiB
218.8 KiB/s
done
Bytes transferred = 2246 (8c6 hex)
## Executing script at 87000000
Loading hdp firmware from 0x000000009c000000 offset 0x0000000000002000
Loading hdp firmware Complete
Apalis iMX8 # tftp ${loadaddr} tezi.itb
Using ethernet@5b040000 device
TFTP from server 192.168.100.2; our IP address is 192.168.100.5
Filename 'tezi.itb'.
Load address: 0x87000000
Loading: ################################################## 35.7 MiB
2.4 MiB/s
done
Bytes transferred = 37484020 (23bf5f4 hex)
Apalis iMX8 # bootm
## Loading kernel from FIT Image at 87000000 ...
Using 'config@freescale_fsl-imx8qm-apalis-eval.dtb' configuration
Trying 'kernel@1' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x87000108
Data Size: 6692001 Bytes = 6.4 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x80280000
Entry Point: 0x80280000
Hash algo: sha1
Hash value: 111af7938d46a303b97fd98dad14c33e578fd183
Verifying Hash Integrity ... sha1+ OK
## Loading ramdisk from FIT Image at 87000000 ...
Using 'config@freescale_fsl-imx8qm-apalis-eval.dtb' configuration
Trying 'ramdisk@1' ramdisk subimage
Description: tezi-initramfs
Type: RAMDisk Image
Compression: uncompressed
Data Start: 0x876b0e54
Data Size: 30466048 Bytes = 29.1 MiB
Architecture: AArch64
OS: Linux
Load Address: 0xa0000000
Entry Point: unavailable
Hash algo: sha1
Hash value: 38505de86917dc08cba734226fa3814071d6160c
Verifying Hash Integrity ... sha1+ OK
Loading ramdisk from 0x876b0e54 to 0xa0000000
## Loading fdt from FIT Image at 87000000 ...
Using 'config@freescale_fsl-imx8qm-apalis-eval.dtb' configuration
Trying 'fdt@freescale_fsl-imx8qm-apalis-eval.dtb' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x87661ec8
Data Size: 107691 Bytes = 105.2 KiB
Architecture: AArch64
Hash algo: sha1
Hash value: 2cf7178e56012780551f08e27b71bfa4b7c14b88
Verifying Hash Integrity ... sha1+ OK
Booting using the fdt blob at 0x87661ec8
Uncompressing Kernel Image
Loading Ramdisk to fb941000, end fd64f000 ... OK
Loading Device Tree to 00000000fb923000, end 00000000fb9404aa ... OK
sc_rm_set_master_sid: resource:1776 sid:17: res:3
config_smmu_resource_sid rsrc[-43710736] not owned
sc_rm_set_master_sid: resource:1776 sid:17: res:3
config_smmu_resource_sid rsrc[-43710736] not owned
sc_rm_set_master_sid: resource:1776 sid:17: res:3
config_smmu_resource_sid rsrc[-43710736] not owned
sc_rm_set_master_sid: resource:1776 sid:18: res:3
config_smmu_resource_sid rsrc[-43710736] not owned
sc_rm_set_master_sid: resource:1776 sid:18: res:3
config_smmu_resource_sid rsrc[-43710736] not owned
sc_rm_set_master_sid: resource:1776 sid:19: res:3
config_smmu_resource_sid rsrc[-43710736] not owned
Starting kernel ...
[ 0.324341] clk: couldn't set hdmi_lis_ipg_clk clk rate to 100000000 (-22), current rate: 0
[ 0.443889] dmi: Firmware registration failed.
[ 0.539184] imx6q-pcie 5f000000.pcie: pcie_ext clock source missing or invalid
[ 0.541651] imx6q-pcie 5f010000.pcie: pcie_ext clock source missing or invalid
[ 0.590753] Can't support > 32 bit dma.
[ 0.675559] i.mx8-hdp 56268000.hdmi: invalid resource
[ 3.681144] [drm:hdp_fw_init] *ERROR* CDN_API_CheckAlive failed - check firmware!
[ 3.688645] [drm:imx_hdp_imx_bind] *ERROR* Failed to initialise HDP firmware
[ 3.695743] imx-drm display-subsystem: failed to bind 56268000.hdmi (ops imx_hdp_imx_ops): -6
[ 3.721378] ahci-imx 5f020000.sata: can't get per_clk0 clock.
[ 3.753329] Can't support > 32 bit dma.
[ 3.977307] atmel_mxt_ts 4-004a: __mxt_read_reg: i2c transfer failed (-5)
[ 3.984273] atmel_mxt_ts 4-004a: mxt_bootloader_read: i2c recv failed (-5)
[ 3.991320] atmel_mxt_ts 4-004a: mxt_bootloader_read: i2c recv failed (-5)
[ 4.881167] imx6q-pcie 5f010000.pcie: phy link never came up
[ 4.886879] imx6q-pcie 5f010000.pcie: failed to initialize host
[ 4.892816] imx6q-pcie 5f010000.pcie: unable to add pcie port.
Running /etc/rc.local...
TDX_VER_ID="Apalis-iMX8_ToradexEasyInstaller_2.0b8-nightly-20210416"
Starting udev
System time was Thu Jul 15 11:29:21 UTC 2021.
Setting the System Clock using the Hardware Clock as reference...
System Clock set. System local time is now Thu Jul 15 11:29:20 UTC 2021.
Welcome to the Toradex Easy Installer
This is a Linux based installer for Toradex modules. Currently, the installer
does not have a serial console interface. You can use the Toradex Easy Installer
via any of the available display interfaces using USB mouse/keyboard or via a
network connection using VNC. Use:
# ip addr show eth0
to display the Ethernet IP address or use USB RNDIS at IP 192.168.11.1.
Check our documentation at:
https://developer.toradex.com/software/toradex-easy-installer
/ # [ 14.309152] mmc1: Timeout waiting for hardware interrupt. retries left=0 opcode=0
[ 14.309158] mmc0: Timeout waiting for hardware interrupt. retries left=0 opcode=0
[ 14.309170] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 14.316662] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 14.324145] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000002
[ 14.330581] mmc1: sdhci: Sys addr: 0x00000000 | Version: 0x00000002
[ 14.337018] mmc0: sdhci: Blk size: 0x00000200 | Blk cnt: 0x00000001
[ 14.343455] mmc1: sdhci: Blk size: 0x00000008 | Blk cnt: 0x00000001
[ 14.349896] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 14.356330] mmc1: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
[ 14.362768] mmc0: sdhci: Present: 0x01fd8a0a | Host ctl: 0x00000011
[ 14.369205] mmc1: sdhci: Present: 0x01f88a0a | Host ctl: 0x00000011
[ 14.375646] mmc0: sdhci: Power: 0x00000002 | Blk gap: 0x00000080
[ 14.382089] mmc1: sdhci: Power: 0x00000002 | Blk gap: 0x00000080
[ 14.388529] mmc0: sdhci: Wake-up: 0x00000008 | Clock: 0x000020ff
[ 14.394972] mmc1: sdhci: Wake-up: 0x00000008 | Clock: 0x000010ff
[ 14.401412] mmc0: sdhci: Timeout: 0x0000008f | Int stat: 0x00000000
[ 14.407855] mmc1: sdhci: Timeout: 0x0000008f | Int stat: 0x00000000
[ 14.414296] mmc0: sdhci: Int enab: 0x117f100b | Sig enab: 0x117f100b
[ 14.420740] mmc1: sdhci: Int enab: 0x117f100b | Sig enab: 0x117f100b
[ 14.427179] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000502
[ 14.433614] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000502
[ 14.440054] mmc0: sdhci: Caps: 0x07eb0000 | Caps_1: 0x8000b407
[ 14.446489] mmc1: sdhci: Caps: 0x07eb0000 | Caps_1: 0x8000b407
[ 14.452927] mmc0: sdhci: Cmd: 0x0000083a | Max curr: 0x00ffffff
[ 14.459364] mmc1: sdhci: Cmd: 0x0000333a | Max curr: 0x00ffffff
[ 14.465801] mmc0: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0xffc003ff
[ 14.472238] mmc1: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00734f7f
[ 14.478677] mmc0: sdhci: Resp[2]: 0x328f5903 | Resp[3]: 0x00d07f01
[ 14.485114] mmc1: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 14.491553] mmc0: sdhci: Host ctl2: 0x00000000
[ 14.497988] mmc1: sdhci: Host ctl2: 0x00000000
[ 14.504427] mmc0: sdhci: ADMA Err: 0x00000009 | ADMA Ptr: 0xfffff200
[ 14.508865] mmc1: sdhci: ADMA Err: 0x00000009 | ADMA Ptr: 0xffffe200
[ 14.513306] mmc0: sdhci: ============================================
[ 14.519740] mmc1: sdhci: ============================================
[ 14.526288] mmc0: error -110 whilst initialising MMC card
[ 14.532718] mmc1: error -110 whilst initialising SD card
ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq qlen 1000
link/ether 00:14:2d:67:d3:2c brd ff:ff:ff:ff:ff:ff
Despite the message “Welcome to the Toradex Easy Installer” I can’t see eth0 IP address and access VNC.
Is it possible to flash Easy Installer that way or the only way to do it is hardware enter recovery mode (I tried this method and it works, but now I want to avoid doing it)?
I’ve managed to run Easy Installer 5.3.0, but now VNC refuses connection.
Here is my boot.cmd:
env set ramdisk_addr_r 0x8a000000
env set hdp_addr 0x9c000000
env set vidargs 'video=LVDS-1:d video=HDMI-A-1:640x480-16@60D'
env set bootargs quiet ${vidargs} initcall_blacklist=vpu_driver_init rootfstype=squashfs root=/dev/ram autoinstall clk_ignore_unused pci=nomsi ${teziargs}
env set fdt_high
env set fdt_resize true
env set fitconf_fdt_overlays
tftp ${hdp_addr} hdmitxfw.bin
hdp load ${hdp_addr}
tftp ${ramdisk_addr_r} tezi.itb
bootm ${ramdisk_addr_r}#config@${fdtfile}
Then I’m able to do flash:
Apalis iMX8 # setenv fdtfile freescale_imx8qm-apalis-v1.1-eval.dtb
Apalis iMX8 # run bootcmd_dhcp
starting USB...
Bus usb@5b0d0000: usb dr_mode not found
Port not available.
Bus usbh3: XHCI-imx8 init hccr 0x000000005b130000 and hcor 0x000000005b130080 hc_length 128
Register 2000820 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usbh3 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
BOOTP broadcast 1
DHCP client bound to address 192.168.100.5 (6 ms)
Using ethernet@5b040000 device
TFTP from server 192.168.100.2; our IP address is 192.168.100.5
Filename 'boot.scr'.
Load address: 0x83100000
Loading: ################################################## 546 Bytes
14.6 KiB/s
done
Bytes transferred = 546 (222 hex)
## Executing script at 83100000
Using ethernet@5b040000 device
TFTP from server 192.168.100.2; our IP address is 192.168.100.5
Filename 'hdmitxfw.bin'.
Load address: 0x9c000000
Loading: ################################################## 104 KiB
2.5 MiB/s
done
Bytes transferred = 106496 (1a000 hex)
Loading hdp firmware from 0x000000009c000000 offset 0x0000000000002000
Loading hdp firmware Complete
Using ethernet@5b040000 device
TFTP from server 192.168.100.2; our IP address is 192.168.100.5
Filename 'tezi.itb'.
Load address: 0x8a000000
Loading: ################################################## 44.9 MiB
3.1 MiB/s
done
Bytes transferred = 47056280 (2ce0598 hex)
## Loading kernel from FIT Image at 8a000000 ...
Using 'config@freescale_imx8qm-apalis-v1.1-eval.dtb' configuration
Trying 'kernel@1' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x8a000108
Data Size: 10387783 Bytes = 9.9 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x80280000
Entry Point: 0x80280000
Hash algo: sha1
Hash value: 9ec98f5e7eeeecc1d1b2299d92dc3f16c3325d1f
Verifying Hash Integrity ... sha1+ OK
## Loading ramdisk from FIT Image at 8a000000 ...
Using 'config@freescale_imx8qm-apalis-v1.1-eval.dtb' configuration
Trying 'ramdisk@1' ramdisk subimage
Description: tezi-initramfs
Type: RAMDisk Image
Compression: uncompressed
Data Start: 0x8aa90680
Data Size: 35975168 Bytes = 34.3 MiB
Architecture: AArch64
OS: Linux
Load Address: 0xa0000000
Entry Point: unavailable
Hash algo: sha1
Hash value: 21f3b94d0ab142ad61bc13c77914b93ea2fca232
Verifying Hash Integrity ... sha1+ OK
Loading ramdisk from 0x8aa90680 to 0xa0000000
## Loading fdt from FIT Image at 8a000000 ...
Using 'config@freescale_imx8qm-apalis-v1.1-eval.dtb' configuration
Trying 'fdt@freescale_imx8qm-apalis-v1.1-eval.dtb' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x8aa39b84
Data Size: 166313 Bytes = 162.4 KiB
Architecture: AArch64
Load Address: 0x87000000
Hash algo: sha1
Hash value: 098d286bc5e6f8dd839430b8bf8c8328696d9094
Verifying Hash Integrity ... sha1+ OK
Loading fdt from 0x8aa39b84 to 0x87000000
Booting using the fdt blob at 0x87000000
Uncompressing Kernel Image
Loading Ramdisk to fb3ff000, end fd64e000 ... OK
Loading Device Tree to 00000000fb3d3000, end 00000000fb3fe9a8 ... OK
Starting kernel ...
[ 0.140134] No BMan portals available!
[ 0.141357] No QMan portals available!
[ 0.550539] ahci-imx 5f020000.sata: can't get sata_ext clock.
[ 0.738056] imx-audmix imx-audmix.0: failed to find SAI platform device
[ 0.825405] imx6q-pcie 5f000000.pcie: pcie_ext clock source missing or invalid
[ 0.825479] imx6q-pcie 5f010000.pcie: pcie_ext clock source missing or invalid
[ 1.284762] debugfs: Directory '59050000.sai' with parent 'apalis-imx8qm-sgtl5000' already present!
[ 2.440041] imx6q-pcie 5f010000.pcie: failed to initialize host
[ 2.446015] imx6q-pcie 5f010000.pcie: unable to add pcie port.
Running /etc/rc.local...
Toradex Easy Installer 5.3.0+build.3 ()
Starting udev
System time was Tue Jul 20 09:21:41 UTC 2021.
Setting the System Clock using the Hardware Clock as reference...
System Clock set. System local time is now Tue Jul 20 09:21:41 UTC 2021.
Welcome to the Toradex Easy Installer
This is a Linux based installer for Toradex modules. Currently, the installer
does not have a serial console interface. You can use the Toradex Easy Installer
via any of the available display interfaces using USB mouse/keyboard or via a
network connection using VNC. Use:
# ip addr show eth0
to display the Ethernet IP address or use USB RNDIS at IP 192.168.11.1.
Check our documentation at:
https://developer.toradex.com/software/toradex-easy-installer
/ # ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq qlen 1000
link/ether 00:14:2d:67:d3:2c brd ff:ff:ff:ff:ff:ff
inet 192.168.100.5/24 brd 192.168.100.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::214:2dff:fe67:d32c/64 scope link
valid_lft forever preferred_lft forever
From tezi.log:
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: linuxfb, minimal, offscreen, vnc, wayland.
And weston.log:
Date: 2021-07-20 UTC
[09:21:41.066] weston 9.0.0
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 9.0.0
[09:21:41.066] Command line: /usr/bin/weston --tty=2 --current-mode
[09:21:41.066] OS: Linux, 5.4.115-5.3.0+git.dbdbcabf0f98, #1 SMP PREEMPT Wed Jul 7 17:20:57 UTC 2021, aarch64
[09:21:41.068] Using config file '/etc/xdg/weston/weston.ini'
[09:21:41.068] Output repaint window is 7 ms maximum.
[09:21:41.070] Loading module '/usr/lib/libweston-9/drm-backend.so'
[09:21:41.072] initializing drm backend
[09:21:41.073] no drm device found
[09:21:41.074] fatal: failed to create compositor backend
Internal warning: debug scope 'drm-backend' has not been destroyed.
Our community was “read-only” due to the platform switch. Now we are back online.
Can you please confirm?
When you install the Toradex Easy Installer by doing a hardware recovery and reflash the image this way, you get a VNC connection up and running.
But if you use the TFTP method, the VNC connection can not be established? Am I understanding this right?
And this is happening with the Toradex Easy Installer 5.3 installed right?
Or is there any other issue that I did not recognize?