IMX8Plus IoT Gate

Did someone succesfully run OpenWrt on that Hardware (Compulab IoT Gate IMX8Plus)

Which target image is to use?

/targets/armsr/armv8/
/targets/imx/cortexa7/

figure out which device(s) use the same SoC using https://openwrt.org/toh/views/toh_extended_all

Actuall I have follwing problem:

[    1.296547] Waiting 5 sec before mounting root device...
[    1.320562] mmc2: new HS400 Enhanced strobe MMC card at address 0001
[    1.327434] mmcblk2: mmc2:0001 eMMC   29.1 GiB
[    1.333536] Alternate GPT is invalid, using primary GPT.
[    1.338888]  mmcblk2: p1 p2 p128
[    1.342695] mmcblk2boot0: mmc2:0001 eMMC   4.00 MiB
[    1.348176] mmcblk2boot1: mmc2:0001 eMMC   4.00 MiB
[    1.353456] mmcblk2rpmb: mmc2:0001 eMMC   4.00 MiB, chardev (247:0)

and then the boot proccess stopped

the root device is root=/dev/mmcblk2p2 in the grub.cfg

What could be the reason for that problem?

SOLVED:
IMX8Plus and OpenWrt are marriaged :slight_smile:

The cause was an problem with the CPU idle time management

nice!

might want to post what you've done, for others to use.

I will publish it when everything runs stabily and all hardware components (usb, wifi, BT, lan) are detected

1 Like

I have problems with detecting USB Ports.

 dmesg | grep usb
[    0.064941] usbcore: registered new interface driver usbfs
[    0.064976] usbcore: registered new interface driver hub
[    0.065004] usbcore: registered new device driver usb
[    0.087518] imx8mq-usb-phy 381f0040.usb-phy: failed to get imx8mq usb phy clock
[    0.087548] imx8mq-usb-phy: probe of 381f0040.usb-phy failed with error -2
[    0.087591] imx8mq-usb-phy 382f0040.usb-phy: failed to get imx8mq usb phy clock
[    0.087604] imx8mq-usb-phy: probe of 382f0040.usb-phy failed with error -2
[    1.090858] dwc3 38100000.usb: Configuration mismatch. dr_mode forced to host
[    1.099154] usbcore: registered new interface driver usb-storage
[    1.145200] usbcore: registered new interface driver usbhid
[    1.150796] usbhid: USB HID core driver
[    1.217913] gpio-42 (usb_hub_reset): hogged as output/high
[    1.225514] gpio-116 (usb2_host_vbus): hogged as output/high
[    1.291088] dwc3 38100000.usb: Configuration mismatch. dr_mode forced to host
[    1.299630] dwc3 38100000.usb: Configuration mismatch. dr_mode forced to host
[    1.375397] dwc3 38100000.usb: Configuration mismatch. dr_mode forced to host
[    1.728116] usbcore: registered new interface driver uas
[    5.317765] dwc3 38100000.usb: Configuration mismatch. dr_mode forced to host
[    5.512826] usbcore: registered new interface driver btusb
[    5.519150] usbcore: registered new interface driver cdc_acm
[    5.533638] usbcore: registered new interface driver cdc_wdm
[    5.602814] hso: drivers/net/usb/hso.c: Option Wireless
[    5.608161] usbcore: registered new interface driver hso
[    5.614482] usbcore: registered new interface driver lan78xx
[    5.633983] usbcore: registered new interface driver pegasus
[    5.641060] usbcore: registered new interface driver r8152
[    5.662404] usbcore: registered new interface driver rtl8150
[    5.677859] usbcore: registered new interface driver usbserial_generic
[    5.684480] usbserial: USB Serial support registered for generic
[    5.691653] usbcore: registered new interface driver cdc_xr_usb_serial
[    5.698225] xr_usb_serial_common: Exar USB UART (serial port) driver
[    5.705690] usbcore: registered new interface driver asix
[    5.712081] usbcore: registered new interface driver ax88179_178a
[    5.718788] usbcore: registered new interface driver cdc_eem
[    5.725330] usbcore: registered new interface driver cdc_ether
[    5.732340] usbcore: registered new interface driver cdc_ncm
[    5.738608] usbcore: registered new interface driver cdc_subset
[    5.763062] usbcore: registered new interface driver dm9601
[    5.769326] usbcore: registered new interface driver huawei_cdc_ncm
[    5.789763] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    5.797835] usbcore: registered new interface driver mct_u232
[    5.803671] usbserial: USB Serial support registered for MCT U232
[    5.842070] usbcore: registered new interface driver qmi_wwan
[    5.848882] usbcore: registered new interface driver rndis_host
[    5.855864] usbcore: registered new interface driver smsc95xx
[    5.862751] usbcore: registered new interface driver sr9700
[    5.868940] usbcore: registered new interface driver usb_serial_simple
[    5.875577] usbserial: USB Serial support registered for carelink
[    5.881788] usbserial: USB Serial support registered for flashloader
[    5.888242] usbserial: USB Serial support registered for funsoft
[    5.894329] usbserial: USB Serial support registered for google
[    5.900362] usbserial: USB Serial support registered for hp4x
[    5.906197] usbserial: USB Serial support registered for kaufmann
[    5.912380] usbserial: USB Serial support registered for libtransistor
[    5.919012] usbserial: USB Serial support registered for moto_modem
[    5.925371] usbserial: USB Serial support registered for motorola_tetra
[    5.932093] usbserial: USB Serial support registered for nokia
[    5.938020] usbserial: USB Serial support registered for novatel_gps
[    5.944465] usbserial: USB Serial support registered for siemens_mpi
[    5.950925] usbserial: USB Serial support registered for suunto
[    5.956924] usbserial: USB Serial support registered for vivopay
[    5.963038] usbserial: USB Serial support registered for zio
[    5.985366] usbcore: registered new interface driver cdc_mbim
[    5.993684] usbcore: registered new interface driver option
[    5.999369] usbserial: USB Serial support registered for GSM modem (1-port)

No /ttyUSB or ttyACM or /dev/sdX and so one

/dev# ls
console             tty                 tty5
cpu_dma_latency     tty0                tty50
efi_capsule_loader  tty1                tty51
fd                  tty10               tty52
full                tty11               tty53
gpiochip0           tty12               tty54
gpiochip1           tty13               tty55
gpiochip2           tty14               tty56
gpiochip3           tty15               tty57
gpiochip4           tty16               tty58
hwrng               tty17               tty59
i2c-0               tty18               tty6
i2c-1               tty19               tty60
i2c-2               tty2                tty61
i2c-4               tty20               tty62
kmsg                tty21               tty63
kvm                 tty22               tty7
log                 tty23               tty8
loop-control        tty24               tty9
loop0               tty25               ttyS0
loop1               tty26               ttyS1
loop2               tty27               ttyS10
loop3               tty28               ttyS11
loop4               tty29               ttyS12
loop5               tty3                ttyS13
loop6               tty30               ttyS14
loop7               tty31               ttyS15
mmcblk2             tty32               ttyS2
mmcblk2boot0        tty33               ttyS3
mmcblk2boot1        tty34               ttyS4
mmcblk2p1           tty35               ttyS5
mmcblk2p128         tty36               ttyS6
mmcblk2p2           tty37               ttyS7
mmcblk2rpmb         tty38               ttyS8
null                tty39               ttyS9
port                tty4                ttymxc1
ppp                 tty40               urandom
pps0                tty41               vcs
ptmx                tty42               vcs1
ptp0                tty43               vcsa
pts                 tty44               vcsa1
random              tty45               vcsu
shm                 tty46               vcsu1
stderr              tty47               watchdog
stdin               tty48               watchdog0
stdout              tty49               zero

U-Boot regcognize it

 BuildInfo:
  - ATF 3c1583b

switch to partitions #0, OK
mmc2(part 0) is current device
flash target is MMC:2
Net:   eth0: ethernet@30be0000 [PRIME], eth1: ethernet@30bf0000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0
starting USB...
Bus usb@38100000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus usb@38200000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@38100000 for devices... 1 USB Device(s) found
scanning bus usb@38200000 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Device 0: Vendor: Samsung  Rev: 0    Prod: PSSD T7 Shield
            Type: Hard Disk
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
... is now current device
** Unrecognized filesystem type **
MMC Device 1 not found
no mmc device at slot 1
switch to partitions #0, OK
mmc2(part 0) is current device
Scanning mmc 2:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk mmc@30b60000.blk...
Scanning disk usb_mass_storage.lun0...
** Unrecognized filesystem type **
Found 5 disks
** Unable to read file ubootefi.var **
Failed to load EFI variables
ERROR: invalid device tree
Found EFI removable media binary efi/boot/bootaa64.efi
716800 bytes read in 4 ms (170.9 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Booting /efi\boot\bootaa64.efi

Welcome to GRUB!!!

Do you have an idea what can be the reason therefore?