DESK-MX8M-L/pdf
History[edit | edit source]
| DESK-MX8M-L History | |||
|---|---|---|---|
| Version | Issue Date | Notes | Refers to |
| Feb 2023 | DESK-MX8M-L-2.0.0 release | ORCA | |
| SBC ORCA | |||
| MITO 8M Mini | |||
| Aug 2023 | DESK-MX8M-L-4.0.0 release | ORCA | |
| SBC ORCA | |||
| MITO 8M Mini | |||
| Apr 2024 | DESK-MX8M-L-4.1.0 release | ORCA | |
| SBC ORCA | |||
| MITO 8M Mini | |||
| Aug 2024 | DESK-MX8M-L-4.2.0 release | ORCA | |
| SBC ORCA | |||
| MITO 8M Mini | |||
| Jan 2025 | DESK-MX8M-L-4.2.1 release | ORCA | |
| SBC ORCA | |||
| MITO 8M Mini | |||
| 6.0.0 | Mar 2026 | DESK-MX8M-L-6.0.0 release | |
General Information[edit | edit source]
Contents
- 1 History
- 2 General Information
- 3 Development
- 3.1 Synchronizing the repository
- 3.2 Building Boot Image
- 3.3 Building Linux
- 3.4 Building the Yocto BSP
- 3.5 How to create a bootable SD card
- 4 Deployment
- 4.1 Boot from different storage devices
- 4.2 Standalone boot
- 4.3 How to configure the network interfaces
- 4.4 MAC Address programming
- 5 Peripherals
- 5.1 Peripheral Audio
- 5.2 Peripheral Ethernet
- 5.3 Peripheral HDMI
- 5.4 Peripheral LVDS
- 5.5 Peripheral MIPI
- 5.6 Peripheral SD
- 5.7 Peripheral UART
- 5.8 Peripheral USB-C
- 5.9 Peripheral USB1 OTG
- 5.10 Peripheral USB2 OTG
- 5.11 Peripheral PCI express
- 5.12 Peripheral GPIOs
- 5.13 Peripheral WiFi/Bluetooth
Release Notes[edit | edit source]
DAVE Embedded Systems adds to the latest Linux BSP from NXP the customization required to support the SOC platform. For this reason, most of the documentation provided by NXP remains valid for the DESK development kit.
However, some customization is required, in particular at bootloader and linux kernel levels.
The following table reports the DESK releases information.
| DESK version | |
|---|---|
| Release number | 6.0.0 |
| Release type | Major |
| Status | Released |
| Release date | Mar 2026 |
| Release notes | Ver 6.0.0 |
| Product support | ORCA, MITO 8M Mini |
| MVM (distro version) | Ubuntu 20.04 |
| U-Boot version | 2024.04-desk-mx8-l-6.0.0 |
| Linux version | 6.6.52-desk-mx8-l-6.0.0 |
| Drivers |
Audio UART |
| Manufacturer BSP version | lf-6.6.52-2.2.1 |
| Graphic libraries | N.A. |
| Build System | Yocto Scarthgap (5.0) |
DESK-MX8M-L 6.0.0[edit | edit source]
Release notes:
- update u-boot and linux to desk-mx8m-l-6.0.0
- update the meta-layer to Scarthgap
Known Limitations[edit | edit source]
The following table reports the known limitations of this DESK release:
| Issue | Description |
|---|---|
| USB-C 1 limitations | Some USB 3.2 Gen1 peripherals connected to USB-C 1 are not working on ORCA SBC when it is power-supply via USB-HUB |
| zstd package missing on MVM | zstd package is needed to build Yocto BSP on MVM, to install it run apt install zstd
|
| Ethernet naming | SBC-ORCA: the ethernet namings in the schematic are reversed with respect to the logical naming eth0 and eth1 in U-Boot and Linux logical devices
|
Downloadable binary images[edit | edit source]
All binary images for DESK-MX8M-L are hosted on DAVE Embedded System mirror server. There you can find a subdirectory for each version of this development kit.
U-Boot performs a container image providing a single file: flash.bin. The binary file must be stored into SD card using dd command.
A summary of images with a brief description can be found in the table below:
| Image | DESK version 6.0.0 | |
|---|---|---|
| Platform | ORCA SBC | SBCX MITO 8M Mini |
| Carrier Board ConfigID | 1001 | 100A |
| LCD panel | HDMI | HDMI (through LVDS to HDMI converter) |
| Touchscreen | capacitive | capacitive |
| flash.bin (SD or eMMC) |
desk-mx8m-l-6.0.0_imx8mp_flash.bin | desk-mx8m-l-6.0.0_imx8mm_flash.bin |
| Linux kernel | desk-mx8m-l-6.0.0_imx8mp_Image | desk-mx8m-l-6.0.0_imx8mm_Image |
| Device tree | imx8mp-mito8mplus-cb1001.dtb | imx8mm-mito8mmini-cb100a.dtb |
| root file system | dave-image-minimal-desk-mx8mp | dave-image-minimal-desk-mx8mm |
| wic file | dave-image-minimal-desk-mx8mp | dave-image-minimal-desk-mx8mm |
DESK-MX8M-L 4.2.1[edit | edit source]
Release notes:
- add support for AzureWave on SBC-Orca
- fix default RTC on SBC-Orca
Known Limitations[edit | edit source]
The following table reports the known limitations of this DESK release:
| Issue | Description |
|---|---|
| USB-C 1 limitations | Some USB 3.2 Gen1 peripherals connected to USB-C 1 are not working on ORCA SBC |
| Suspend mode | Waken up from suspend mode is not properly working correctly when the DWS add-on module is inserted |
| zstd package missing on MVM | zstd package is needed to build Yocto BSP on MVM, to install it run apt install zstd
|
| Ethernet naming | SBC-ORCA: the ethernet namings in the schematic are reversed with respect to the logical naming eth0 and eth1 in U-Boot and Linux logical devices
|
Downloadable binary images[edit | edit source]
All binary images for DESK-MX8M-L are hosted on DAVE Embedded System mirror server. There you can find a subdirectory for each version of this development kit.
U-Boot performs a container image providing a single file: flash.bin. The binary file must be stored into SD card using dd command.
A summary of images with a brief description can be found in the table below:
| Image | DESK version 4.2.1 | |
|---|---|---|
| Platform | ORCA SBC | SBCX MITO 8M Mini |
| Carrier Board ConfigID | 1001 | 100A |
| LCD panel | HDMI | HDMI (through LVDS to HDMI converter) |
| Touchscreen | capacitive | capacitive |
| flash.bin (SD or eMMC) |
desk-mx8m-l-4.2.1_imx8mp_flash.bin | desk-mx8m-l-4.2.1_imx8mm_flash.bin |
| Linux kernel | desk-mx8m-l-4.2.1_imx8mp_Image | desk-mx8m-l-4.2.1_imx8mm_Image |
| Device tree | imx8mp-mito8mplus-cb1001.dtb | imx8mm-mito8mmini-cb100a.dtb |
| root file system | dave-image-devel-desk-mx8mp | dave-image-devel-desk-mx8mm |
Yocto images and built-in packages[edit | edit source]
Yocto target images for DESK-MX8M-L are hosted on DAVE Embedded System mirror server. There are more build targets which include a list of built and installed packages in the root file system image.
A summary of built images and their included packages can be found in the table below:
| Image | DESK version 4.2.1 | |
|---|---|---|
| SD card image | rootfs packages list | |
| devel ORCA | desk-image-devel-mx8mp.bz2 | image-devel_installed-packages.txt |
| networking ORCA | desk-image-networking-mx8mp.bz2 | image-networking_installed-packages.txt |
| qt6 ORCA | desk-image-qt6-mx8mp.bz2 | image-qt6_installed-packages.txt |
| flutter gallery demo ORCA | desk-image-flutter-gallery-desk-mx8mp.wic.bz2 | image-flutter-gallery_installed-packages.txt |
| devel MITO 8M Mini | desk-image-devel-mx8mm.bz2 | image-devel_installed-packages.txt |
| networking MITO 8M Mini | desk-image-networking-mx8mm.bz2 | image-networking_installed-packages.txt |
| qt6 MITO 8M Mini | desk-image-qt6-mx8mm.bz2 | image-qt6_installed-packages.txt |
| flutter gallery demo MITO 8M Mini | desk-image-flutter-gallery-desk-mx8mm.wic.bz2 | image-flutter-gallery_installed-packages.txt |
| multilib MITO 8M Mini | desk-image-devel-mx8mm-multilib.bz2 | image-devel_mutilib-installed-packages.txt |
DESK-MX8M-L 4.2.0[edit | edit source]
Release notes:
- add support for Flutter Gallery on ORCA SBC and SBCX MITO 8M Mini
- update the following meta-layer to latest version of Kirkstone. With this update we include CVE fixes
- Poky to the version 4.0.20
- meta-openembedded
- meta-browser
- meta-java
- meta-timesys
- meta-clang
- meta-virtualization
- fix audio subsystem for SBCX MITO 8M Mini
- add sdio linux-firmware for AW-CM276MA
- apply patch for assign uart4 to domain 0 on SBCX MITO 8M Mini
Known Limitations[edit | edit source]
The following table reports the known limitations of this DESK release:
| Issue | Description |
|---|---|
| USB-C 1 limitations | Some USB 3.2 Gen1 peripherals connected to USB-C 1 are not working on ORCA SBC |
| Suspend mode | Waken up from suspend mode is not properly working correctly when the DWS add-on module is inserted |
| zstd package missing on MVM | zstd package is needed to build Yocto BSP on MVM, to install it run apt install zstd
|
| RTC | RTC on SBC-ORCA was not selected correctly, as a workaround you need to use the following command ln -s /dev/rtc1 /dev/rtc
|
| Ethernet naming | SBC-ORCA: the ethernet namings in the schematic are reversed with respect to the logical naming eth0 and eth1 in U-Boot and Linux logical devices
|
Downloadable binary images[edit | edit source]
All binary images for DESK-MX8M-L are hosted on DAVE Embedded System mirror server. There you can find a subdirectory for each version of this development kit.
U-Boot performs a container image providing a single file: flash.bin. The binary file must be stored into SD card using dd command.
A summary of images with a brief description can be found in the table below:
| Image | DESK version 4.2.0 | |
|---|---|---|
| Platform | ORCA SBC | SBCX MITO 8M Mini |
| Carrier Board ConfigID | 1001 | 100A |
| LCD panel | HDMI | HDMI (through LVDS to HDMI converter) |
| Touchscreen | capacitive | capacitive |
| flash.bin (SD or eMMC) |
desk-mx8m-l-4.2.0_imx8mp_flash.bin | desk-mx8m-l-4.2.0_imx8mm_flash.bin |
| Linux kernel | desk-mx8m-l-4.2.0_imx8mp_Image | desk-mx8m-l-4.2.0_imx8mm_Image |
| Device tree | imx8mp-mito8mplus-cb1001.dtb | imx8mm-mito8mmini-cb100a.dtb |
| root file system | dave-image-devel-desk-mx8mp | dave-image-devel-desk-mx8mm |
Yocto images and built-in packages[edit | edit source]
Yocto target images for DESK-MX8M-L are hosted on DAVE Embedded System mirror server. There are more build targets which include a list of built and installed packages in the root file system image.
A summary of built images and their included packages can be found in the table below:
| Image | DESK version 4.2.0 | |
|---|---|---|
| SD card image | rootfs packages list | |
| devel ORCA | desk-image-devel-mx8mp.bz2 | image-devel_installed-packages.txt |
| networking ORCA | desk-image-networking-mx8mp.bz2 | image-networking_installed-packages.txt |
| qt6 ORCA | desk-image-qt6-mx8mp.bz2 | image-qt6_installed-packages.txt |
| flutter gallery demo ORCA | desk-image-flutter-gallery-desk-mx8mp.wic.bz2 | image-flutter-gallery_installed-packages.txt |
| devel MITO 8M Mini | desk-image-devel-mx8mm.bz2 | image-devel_installed-packages.txt |
| networking MITO 8M Mini | desk-image-networking-mx8mm.bz2 | image-networking_installed-packages.txt |
| qt6 MITO 8M Mini | desk-image-qt6-mx8mm.bz2 | image-qt6_installed-packages.txt |
| flutter gallery demo MITO 8M Mini | desk-image-flutter-gallery-desk-mx8mm.wic.bz2 | image-flutter-gallery_installed-packages.txt |
| multilib MITO 8M Mini | desk-image-devel-mx8mm-multilib.bz2 | image-devel_mutilib-installed-packages.txt |
DESK-MX8M-L 4.1.0[edit | edit source]
Release notes:
- MITO 8M Mini
- add support for mipi2lvds and HDMI panel with capacitive touchscreen
- add support for AzureWave CM276NF
- add support for MULTILIB-LIB32
- refactor of device-tree hierarchy, this feature break compatibility with
desk-mx8m-l-4.0.0
- introduced KAS support for building system
- update to NXP
lf-5.15.71-2.2.2
Known Limitations[edit | edit source]
The following table reports the known limitations of this DESK release:
| Issue | Description |
|---|---|
| USB-C 1 limitations | Some USB 3.2 Gen1 peripherals connected to USB-C 1 are not working on ORCA SBC |
| Suspend mode | Waken up from suspend mode is not properly working correctly when the DWS add-on module is inserted |
| zstd package missing on MVM | zstd package is needed to build Yocto BSP on MVM, to install it run apt install zstd
|
| Audio subsystem not working correctly | Audio subsystem is not configured correctly and sound is not played with the right frequency |
Downloadable binary images[edit | edit source]
All binary images for DESK-MX8M-L are hosted on DAVE Embedded System mirror server. There you can find a subdirectory for each version of this development kit.
U-Boot performs a container image providing a single file: flash.bin. The binary file must be stored into SD card using dd command.
A summary of images with a brief description can be found in the table below:
| Image | DESK version 4.1.0 | |
|---|---|---|
| Platform | ORCA SBC | SBCX MITO 8M Mini |
| Carrier Board ConfigID | 1001 | 100A |
| LCD panel | HDMI | HDMI (through LVDS to HDMI converter) |
| Touchscreen | capacitive | capacitive |
| flash.bin (SD or eMMC) |
desk-mx8m-l-4.0.0_imx8mp_flash.bin | desk-mx8m-l-4.0.0_imx8mm_flash.bin |
| Linux kernel | Image | |
| Device tree | imx8mp-mito8mplus-cb1001.dtb | imx8mm-mito8mmini-cb100a.dtb |
| root file system | dave-image-devel-desk-mx8mp | dave-image-devel-desk-mx8mm |
Yocto images and built-in packages[edit | edit source]
Yocto target images for DESK-MX8M-L are hosted on DAVE Embedded System mirror server. There are more build targets which include a list of built and installed packages in the root file system image.
A summary of built images and their included packages can be found in the table below:
| Image | DESK version 4.1.0 | |
|---|---|---|
| root file system | packages list | |
| devel ORCA | desk-image-devel-mx8mp.bz2 | image-devel_installed-packages.txt |
| networking ORCA | desk-image-networking-mx8mp.bz2 | image-networking_installed-packages.txt |
| qt6 ORCA | desk-image-qt6-mx8mp.bz2 | image-qt6_installed-packages.txt |
| devel MITO 8M Mini | desk-image-devel-mx8mm.bz2 | image-devel_installed-packages.txt |
| networking MITO 8M Mini | desk-image-networking-mx8mm.bz2 | image-networking_installed-packages.txt |
| qt6 MITO 8M Mini | desk-image-qt6-mx8mm.bz2 | image-qt6_installed-packages.txt |
| multilib MITO 8M Mini | desk-image-devel-mx8mm-multilib.bz2 | image-devel_mutilib-installed-packages.txt |
DESK-MX8M-L 4.0.0[edit | edit source]
|
New MVM must be installed for using |
Release notes:
- Stable release based on NXP BSP 5.15.71
Known Limitations[edit | edit source]
The following table reports the known limitations of this DESK release:
| Issue | Description |
|---|---|
| USB-C 1 limitations | Some USB 3.2 Gen1 peripherals connected to USB-C 1 are not working on ORCA SBC |
| Suspend mode | Waken up from suspend mode is not properly working correctly when the DWS add-on module is inserted |
| mipi2lvds and lvds2hdmi not working on MITO 8M Mini | Display connected to mipi2lvds and lvds2hdmi is not working on MITO 8M Mini Evaluation kit |
| zstd package missing on MVM | zstd package is needed to build Yocto BSP on MVM, to install it run apt install zstd
|
| Audio subsystem not working correctly | Audio subsystem is not configured correctly and sound is not played with the right frequency |
Downloadable binary images[edit | edit source]
All binary images for DESK-MX8M-L are hosted on DAVE Embedded System mirror server. There you can find a subdirectory for each version of this development kit.
U-Boot performs a container image providing a single file: flash.bin. The binary file must be stored into SD card using dd command.
A summary of images with a brief description can be found in the table below:
| Image | DESK version 4.0.0 | |
|---|---|---|
| Platform | ORCA SBC | SBCX MITO 8M Mini |
| Carrier Board ConfigID | 1001 | 100A |
| LCD panel | HDMI | Not Avaible |
| Touchscreen | capacitive | Not Avaible |
| flash.bin (SD or eMMC) |
desk-mx8m-l-4.0.0_imx8mp_flash.bin | desk-mx8m-l-4.0.0_imx8mm_flash.bin |
| Linux kernel | Image | |
| Device tree | imx8mp-mito8mplus-cb1001.dtb | imx8mm-mito8mmini-cb100a.dtb |
| root file system | desk-image-qt6-desk-mx8mp | dave-image-devel-desk-mx8mm |
Yocto images and built-in packages[edit | edit source]
Yocto target images for DESK-MX8M-L are hosted on DAVE Embedded System mirror server. There are more build targets which include a list of built and installed packages in the root file system image.
A summary of built images and their included packages can be found in the table below:
| Image | DESK version 4.0.0 | |
|---|---|---|
| root file system | packages list | |
| devel ORCA | desk-image-devel-mx8mp.bz2 | image-devel_installed-packages.txt |
| networking ORCA | desk-image-networking-mx8mp.bz2 | image-networking_installed-packages.txt |
| qt6 ORCA | desk-image-qt6-mx8mp.bz2 | image-qt6_installed-packages.txt |
| devel MITO 8M Mini | desk-image-devel-mx8mm.bz2 | image-devel_installed-packages.txt |
| networking MITO 8M Mini | desk-image-networking-mx8mm.bz2 | image-networking_installed-packages.txt |
| qt6 MITO 8M Mini | desk-image-qt6-mx8mm.bz2 | image-qt6_installed-packages.txt |
DESK-MX8M-L 2.0.0[edit | edit source]
|
The |
Release notes:
- Stable release based on NXP BSP 5.4.70
Known Limitations[edit | edit source]
The following table reports the known limitations of this DESK release:
| Issue | Description |
|---|---|
| USB-C 1 not working in U-Boot | USB-C 1 not working in ORCA SBC |
| USB1, USB2 not working in U-Boot | USB1, USB2 not working in U-Boot for MITO 8M Mini |
Downloadable binary images[edit | edit source]
All binary images for DESK-MX8M-L are hosted on DAVE Embedded System mirror server. There you can find a subdirectory for each version of this development kit.
U-boot performs a container image providing a single file: flash.bin. The binary file must be stored into SD card using dd command.
A summary of images with a brief description can be found into the table below:
| Image | DESK version 2.0.0 | |
|---|---|---|
| Platform | ORCA SBC | SBCX MITO 8M Mini |
| Carrier Board ConfigID | 1001 | 100A |
| LCD panel | HDMI | Not Avaible |
| Touchscreen | capacitive | Not Avaible |
| bootscript | boot.scr | boot.scr |
| flash.bin (SD or eMMC) |
flash.bin | flash.bin |
| Linux kernel | Image | |
| Device tree | imx8mp-mito8mplus-cb1001.dtb | imx8mm-mito8mmini.dtb |
| root file system | desk-image-qt5-desk-mx8mp | dave-image-devel-desk-mx8mm |
DESK-MX8M-L 2.0.0-rc2[edit | edit source]
|
The |
Release notes:
- First release based on NXP BSP 5.4.70
Known Limitations[edit | edit source]
The following table reports the known limitations of this DESK release:
| Issue | Description |
|---|---|
| HDMI not working | HDMI is not working on ORCA SBC. Device tree fixing is required |
Release types[edit | edit source]
DESK release type can be:
- Major, when substantial changes are applied to the BSP (eg: major kernel version upgrades) or to the development kit (eg: new features, build system updates, ..). This usually means that a new DVDK is created for the DESK release
- Maintenance, when minor updates and bug fixes are introduced. This usually means that the DVDK remains the same provided with the previous major version, and only an update of the source tree repositories (and the tftp binaries) is required
As an example, DESK 2.1.0 is a maintenance release, so it provides the DVDK released with the 2.0.0 major release; customers can easily upgrade to the 1.1.0 release by updating the software components as described in Synchronizing git repositories.
Supported platforms[edit | edit source]
The following table reports the supported platforms in this DESK release:
| Platform | Description |
|---|---|
| SBC ORCA | Single Board Computer using ORCA SOM as Evaluation Kit |
| SBC AXEL | Single Board Computer using MITO 8M Mini SOM as Evaluation Kit |
DESK-MX8M-L/General/Managed Virtual Machine (MVM)
ConfigID[edit | edit source]
This article describes how the ConfigID is implemented in the products supported by the DESK-MX8M-L Linux Kit.
Moreover, a system is composed of the combination of a SOM and a carrier board. In this case, two ConfigIDs are used to identify the actual board configuration like it was a SOM+carrier board system.
For the sake of simplicity, the first ConfigID is denoted as SOM ConfigID, while the second one is denoted as CB ConfigID:
MITO 8M Mini[edit | edit source]
As MITO 8M Mini is a system-on-module (SOM), the typical mechanism described here is used.
... SOM ConfigID#: 00000002 SOM UniqueID#: e317318f:1b1229d4 CB ConfigID#: 0000100a CB UniqueID#: fb000030:4d8eea2d Board: MX8MM-Mito8MMini on SBCX ...
ORCA[edit | edit source]
As ORCA is a system-on-module (SOM), the typical mechanism described here is used.
... SOM ConfigID#: 00000005 SOM UniqueID#: 0002aaff:8aefcecd CB ConfigID#: 00001001 CB UniqueID#: da000011:0dd2e72d Board: MX8MP-Mito8MPlus on SBC ORCA ...
Generally speaking[edit | edit source]
- SOM ConfigID is used to identify the configuration of the basic features of the SOM
- CB ConfigID is used to identify the peripherals and the I/O interfaces.
|
NXP silicon manufacturer guarantees that processors UIDs (a.k.a. SOM UniqueID# on DESK-MX8M-L) to be unique over the whole MX8M family |
Booting from NFS[edit | edit source]
This configuration is very helpful during the software development (both for kernel and applications). The kernel image is downloaded via TFTP while the root file system is remotely mounted via NFS from the host. It is assumed that the development host:
- is connected with the target host board through an Ethernet LAN
- exports the directory containing the root file system for the target through the NFS server
- runs a TFTP server.
- has a proper subnet IP address
net_nfs configuration[edit | edit source]
DESK-MX8M-L Virtual Machine is properly configured for the TFTP and NFS debug.
In any case, some variables has to be configured on the target and the VM itself has to be configured for respect to the network environment.
Host (Virtual Machine) configuration[edit | edit source]
The DESK-MX8M-L Virtual Machine has the tftp and nfs services already running. Optionally, their configuration has to be changed according to the network configuration where the target is connected to.
Check and properly configure the items describe in VirtualBox Network Configuration
Target configuration[edit | edit source]
The IP address for server and target should be configured: an example (for a network subnet 192.168.0.x)
u-boot=> setenv serverip 192.168.10.100 u-boot=> setenv ipaddr 192.168.10.56 u-boot=> setenv gatewayip 192.168.10.254 u-boot=> setenv netmask 255.255.255.0 u-boot=> setenv netdev eth0 u-boot=> setenv ethprime eth0
serveripis the IP address of the host machine running the tftp/nfs serveripaddris the IP address of the targetgatewayipis the gateway address of the targetnetmaskis the netmask address of the targetnetdevis the name of ethernet interface of the target
For using the DVDK Virtual Machine, a static IP address configuration has been selected, to the U-Boot variable ip_dyn has to be set to no:
u-boot=> setenv ip_dyn no
The kernel and device tree files have to be selected
u-boot=> setenv bootfile desk-mx8m-l/Image
ORCA has its dtb file imx8mp-mito8mplus-cb1001.dtb
u-boot=> setenv fdtfile desk-mx8m-l/imx8mp-mito8mplus-cb1001.dtb
while MITO 8M Mini has its own dtb file imx8mm-mito8mmini.dtb
u-boot=> setenv fdtfile desk-mx8m-l/imx8mm-mito8mmini-cb100a.dtb
finally, the root file system directory on the Virtual Machine should be configured to let the kernel find the INIT
u-boot=> setenv rootpath /home/dvdk/desk-mx-l/rfs/desk-mx8m-l-6.0.0/mx8mp/
To run this configuration just issue the net_nfs command which firstly downloads the kernel and device tree using the tftp protocol
u-boot=> setenv net_nfs 'run loadk loadfdt nfsargs addip addcons addmisc; booti ${loadaddr} - ${fdtaddr}'
Here below the complete bootlog from nfs:
u-boot=> run net_nfs
ethernet@30bf0000 Waiting for PHY auto negotiation to complete....... done
Using ethernet@30bf0000 device
TFTP from server 192.168.10.100; our IP address is 192.168.10.56
Filename 'desk-mx8m-l/Image'.
Load address: 0x40400000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
################################
3.7 MiB/s
done
Bytes transferred = 35766784 (221c200 hex)
Using ethernet@30bf0000 device
TFTP from server 192.168.10.100; our IP address is 192.168.10.56
Filename 'desk-mx8m-l/imx8mp-mito8mplus-cb1001.dtb'.
Load address: 0x43000000
Loading: #####
4.8 MiB/s
done
Bytes transferred = 60459 (ec2b hex)
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
Working FDT set to 43000000
Using Device Tree in place at 0000000043000000, end 0000000043011c2a
Working FDT set to 43000000
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.6.52-desk-mx8m-l-6.0.0-lts-next-lts-next-g2a0ff5a649ed (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 13.3.0, GNU ld (GNU Binutils) 2.42.0.20240723) #1 SMP PREEMPT Fri Mar 27 10:50:36 UTC 2026
[ 0.000000] KASLR disabled due to lack of seed
[ 0.000000] Machine model: i.MX8MPlus Mito8MPlus on SBC Orca
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000c4000000, size 960 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x00000000c4000000..0x00000000ffffffff (983040 KiB) map reusable linux,cma
[ 0.000000] OF: reserved mem: 0x0000000000900000..0x000000000096ffff (448 KiB) nomap non-reusable ocram@900000
[ 0.000000] OF: reserved mem: 0x0000000055800000..0x0000000055ffffff (8192 KiB) nomap non-reusable rpmsg@55800000
[ 0.000000] OF: reserved mem: 0x0000000056000000..0x0000000057dfffff (30720 KiB) nomap non-reusable optee_core@56000000
[ 0.000000] OF: reserved mem: 0x0000000057e00000..0x0000000057ffffff (2048 KiB) nomap non-reusable optee_shm@57e00000
[ 0.000000] OF: reserved mem: 0x0000000092400000..0x00000000933fffff (16384 KiB) nomap non-reusable dsp@92400000
[ 0.000000] OF: reserved mem: 0x0000000093400000..0x00000000942effff (15296 KiB) nomap non-reusable dsp_reserved_heap@93400000
[ 0.000000] OF: reserved mem: 0x00000000942f0000..0x00000000942f7fff (32 KiB) nomap non-reusable vdev0vring0@942f0000
[ 0.000000] OF: reserved mem: 0x00000000942f8000..0x00000000942fffff (32 KiB) nomap non-reusable vdev0vring1@942f8000
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000094300000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vdev0buffer@94300000, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x0000000094300000..0x00000000943fffff (1024 KiB) nomap non-reusable vdev0buffer@94300000
[ 0.000000] OF: reserved mem: 0x0000000100000000..0x000000010fffffff (262144 KiB) nomap non-reusable gpu_reserved@100000000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000001bfffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x1bf44b6c0-0x1bf44dfff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal [mem 0x0000000100000000-0x00000001bfffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x00000000557fffff]
[ 0.000000] node 0: [mem 0x0000000055800000-0x0000000055ffffff]
[ 0.000000] node 0: [mem 0x0000000058000000-0x00000000923fffff]
[ 0.000000] node 0: [mem 0x0000000092400000-0x00000000943fffff]
[ 0.000000] node 0: [mem 0x0000000094400000-0x00000000ffffffff]
[ 0.000000] node 0: [mem 0x0000000100000000-0x000000010fffffff]
[ 0.000000] node 0: [mem 0x0000000110000000-0x00000001bfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000001bfffffff]
[ 0.000000] On node 0, zone DMA: 8192 pages in unavailable ranges
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] psci: SMC Calling Convention v1.4
[ 0.000000] percpu: Embedded 22 pages/cpu s50920 r8192 d31000 u90112
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: root=/dev/nfs rw nfsroot=192.168.10.100:/home/dvdk/desk-mx-l/rfs/desk-mx8m-l-6.0.0/mx8mp/,v3,tcp ip=192.168.10.56:192.168.10.100:192.168.0.254:255.255.255.0:desk-mx:eth0:off panic=1 console=ttymxc1,115200 panic=5 pcie_aspm=force
[ 0.000000] PCIe ASPM is forcibly enabled
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1540096
[ 0.000000] Policy zone: Normal
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] software IO TLB: area num 4.
[ 0.000000] software IO TLB: mapped [mem 0x00000000c0000000-0x00000000c4000000] (64MB)
[ 0.000000] Memory: 4747604K/6258688K available (21248K kernel code, 1648K rwdata, 7848K rodata, 4032K init, 644K bss, 528044K reserved, 983040K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 160 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: GICv3 features: 16 PPIs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[ 0.000000] ITS: No ITS available, not enabling LPIs
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[ 0.000000] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[ 0.000477] Console: colour dummy device 80x25
[ 0.000537] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[ 0.000547] pid_max: default: 32768 minimum: 301
[ 0.000609] LSM: initializing lsm=capability,integrity
[ 0.000711] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.000735] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.002197] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.002261] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.002440] rcu: Hierarchical SRCU implementation.
[ 0.002444] rcu: Max phase no-delay instances is 1000.
[ 0.003956] EFI services will not be available.
[ 0.004179] smp: Bringing up secondary CPUs ...
[ 0.004637] Detected VIPT I-cache on CPU1
[ 0.004695] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[ 0.004730] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.005246] Detected VIPT I-cache on CPU2
[ 0.005287] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[ 0.005310] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.005782] Detected VIPT I-cache on CPU3
[ 0.005825] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[ 0.005845] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.005912] smp: Brought up 1 node, 4 CPUs
[ 0.005918] SMP: Total of 4 processors activated.
[ 0.005922] CPU features: detected: 32-bit EL0 Support
[ 0.005925] CPU features: detected: 32-bit EL1 Support
[ 0.005929] CPU features: detected: CRC32 instructions
[ 0.005995] CPU: All CPU(s) started at EL2
[ 0.006017] alternatives: applying system-wide alternatives
[ 0.008424] devtmpfs: initialized
[ 0.018198] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.018217] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.043755] pinctrl core: initialized pinctrl subsystem
[ 0.046516] DMI not present or invalid.
[ 0.047106] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.048007] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[ 0.048250] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.048629] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.048676] audit: initializing netlink subsys (disabled)
[ 0.048812] audit: type=2000 audit(0.044:1): state=initialized audit_enabled=0 res=1
[ 0.049368] thermal_sys: Registered thermal governor 'step_wise'
[ 0.049372] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.049403] cpuidle: using governor menu
[ 0.049633] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.049710] ASID allocator initialised with 65536 entries
[ 0.050944] Serial: AMBA PL011 UART driver
[ 0.051020] imx mu driver is registered.
[ 0.051042] imx rpmsg driver is registered.
[ 0.058869] platform soc@0: Fixed dependency cycle(s) with /soc@0/bus@30000000/efuse@30350000/unique-id@8
[ 0.061258] platform 30330000.pinctrl: Fixed dependency cycle(s) with /soc@0/bus@30000000/pinctrl@30330000/hoggrp
[ 0.061735] imx8mp-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver
[ 0.062262] platform 30350000.efuse: Fixed dependency cycle(s) with /soc@0/bus@30000000/clock-controller@30380000
[ 0.063379] platform 30350000.efuse: Fixed dependency cycle(s) with /soc@0/bus@30000000/clock-controller@30380000
[ 0.073026] platform 32e40000.csi: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a30000/ov5640_mipi@3c
[ 0.073355] platform 32e50000.csi: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a40000/ov5640_mipi@3c
[ 0.076029] platform 32fc6000.lcd-controller: Fixed dependency cycle(s) with /soc@0/bus@30c00000/hdmi@32fd8000
[ 0.076384] platform 32fc6000.lcd-controller: Fixed dependency cycle(s) with /soc@0/bus@30c00000/hdmi@32fd8000
[ 0.076484] platform 32fd8000.hdmi: Fixed dependency cycle(s) with /soc@0/bus@30c00000/lcd-controller@32fc6000
[ 0.083151] platform connector: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a40000/typec@3d
[ 0.083214] platform connector: Fixed dependency cycle(s) with /soc@0/usb@32f10108/usb@38200000
[ 0.083725] Modules: 23856 pages in range for non-PLT usage
[ 0.083730] Modules: 515376 pages in range for PLT usage
[ 0.084365] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.084370] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[ 0.084375] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.084378] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[ 0.084384] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.084390] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.084396] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.084402] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[ 0.086378] ACPI: Interpreter disabled.
[ 0.087477] iommu: Default domain type: Translated
[ 0.087484] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.087777] SCSI subsystem initialized
[ 0.088083] usbcore: registered new interface driver usbfs
[ 0.088113] usbcore: registered new interface driver hub
[ 0.088144] usbcore: registered new device driver usb
[ 0.089436] mc: Linux media interface: v0.10
[ 0.089474] videodev: Linux video capture interface: v2.00
[ 0.089543] pps_core: LinuxPPS API ver. 1 registered
[ 0.089546] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.089560] PTP clock support registered
[ 0.089786] EDAC MC: Ver: 3.0.0
[ 0.090236] scmi_core: SCMI protocol bus registered
[ 0.090597] FPGA manager framework
[ 0.090681] Advanced Linux Sound Architecture Driver Initialized.
[ 0.091411] Bluetooth: Core ver 2.22
[ 0.091436] NET: Registered PF_BLUETOOTH protocol family
[ 0.091439] Bluetooth: HCI device and connection manager initialized
[ 0.091446] Bluetooth: HCI socket layer initialized
[ 0.091451] Bluetooth: L2CAP socket layer initialized
[ 0.091462] Bluetooth: SCO socket layer initialized
[ 0.091964] vgaarb: loaded
[ 0.092497] clocksource: Switched to clocksource arch_sys_counter
[ 0.092676] VFS: Disk quotas dquot_6.6.0
[ 0.092703] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.092863] pnp: PnP ACPI: disabled
[ 0.099876] NET: Registered PF_INET protocol family
[ 0.100103] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.105362] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.105442] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.105492] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.105913] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear)
[ 0.107767] TCP: Hash tables configured (established 65536 bind 65536)
[ 0.107874] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.108024] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.108289] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.108702] RPC: Registered named UNIX socket transport module.
[ 0.108707] RPC: Registered udp transport module.
[ 0.108710] RPC: Registered tcp transport module.
[ 0.108712] RPC: Registered tcp-with-tls transport module.
[ 0.108717] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.109723] PCI: CLS 0 bytes, default 64
[ 0.110080] kvm [1]: IPA Size Limit: 40 bits
[ 0.112237] kvm [1]: GICv3: no GICV resource entry
[ 0.112242] kvm [1]: disabling GICv2 emulation
[ 0.112259] kvm [1]: GIC system register CPU interface enabled
[ 0.112280] kvm [1]: vgic interrupt IRQ9
[ 0.112302] kvm [1]: Hyp mode initialized successfully
[ 0.113534] Initialise system trusted keyrings
[ 0.113690] workingset: timestamp_bits=42 max_order=21 bucket_order=0
[ 0.113953] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.114162] NFS: Registering the id_resolver key type
[ 0.114187] Key type id_resolver registered
[ 0.114190] Key type id_legacy registered
[ 0.114214] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.114218] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.114234] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.114437] 9p: Installing v9fs 9p2000 file system support
[ 0.148002] Key type asymmetric registered
[ 0.148007] Asymmetric key parser 'x509' registered
[ 0.148048] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[ 0.148054] io scheduler mq-deadline registered
[ 0.148058] io scheduler kyber registered
[ 0.148083] io scheduler bfq registered
[ 0.155858] EINJ: ACPI disabled.
[ 0.167016] mxs-dma 33000000.dma-apbh: initialized
[ 0.168534] SoC: i.MX8MP revision 1.1
[ 0.168981] Bus freq driver module loaded
[ 0.188660] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.191920] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 15, base_baud = 5000000) is a IMX
[ 0.192672] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 16, base_baud = 5000000) is a IMX
[ 0.193348] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 17, base_baud = 1500000) is a IMX
[ 0.193385] printk: console [ttymxc1] enabled
[ 1.609346] loop: module loaded
[ 1.614300] megasas: 07.725.01.00-rc1
[ 1.625926] tun: Universal TUN/TAP device driver, 1.6
[ 1.631203] CAN device driver interface
[ 1.636742] thunder_xcv, ver 1.0
[ 1.639999] thunder_bgx, ver 1.0
[ 1.643260] nicpf, ver 1.0
[ 1.648705] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[ 1.655937] hns3: Copyright (c) 2017 Huawei Corporation.
[ 1.661292] hclge is initializing
[ 1.664648] e1000: Intel(R) PRO/1000 Network Driver
[ 1.669533] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 1.675312] e1000e: Intel(R) PRO/1000 Network Driver
[ 1.680280] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.686229] igb: Intel(R) Gigabit Ethernet Network Driver
[ 1.691635] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.697241] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 1.703512] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 1.709643] sky2: driver version 1.30
[ 1.714047] usbcore: registered new device driver r8152-cfgselector
[ 1.720348] usbcore: registered new interface driver r8152
[ 1.726244] VFIO - User Level meta-driver version: 0.3
[ 1.734562] platform connector: Fixed dependency cycle(s) with /soc@0/usb@32f10108/usb@38200000
[ 1.743415] platform 38200000.usb: Fixed dependency cycle(s) with /connector
[ 1.750541] platform 38200000.usb: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a40000/typec@3d
[ 1.764260] usbcore: registered new interface driver uas
[ 1.769622] usbcore: registered new interface driver usb-storage
[ 1.775699] usbcore: registered new interface driver usbserial_generic
[ 1.782256] usbserial: USB Serial support registered for generic
[ 1.788298] usbcore: registered new interface driver ftdi_sio
[ 1.794076] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 1.801418] usbcore: registered new interface driver usb_serial_simple
[ 1.807973] usbserial: USB Serial support registered for carelink
[ 1.814094] usbserial: USB Serial support registered for flashloader
[ 1.820476] usbserial: USB Serial support registered for funsoft
[ 1.826515] usbserial: USB Serial support registered for google
[ 1.832466] usbserial: USB Serial support registered for hp4x
[ 1.838240] usbserial: USB Serial support registered for kaufmann
[ 1.844363] usbserial: USB Serial support registered for libtransistor
[ 1.850918] usbserial: USB Serial support registered for moto_modem
[ 1.857221] usbserial: USB Serial support registered for motorola_tetra
[ 1.863856] usbserial: USB Serial support registered for nokia
[ 1.869719] usbserial: USB Serial support registered for novatel_gps
[ 1.876105] usbserial: USB Serial support registered for siemens_mpi
[ 1.882498] usbserial: USB Serial support registered for suunto
[ 1.888447] usbserial: USB Serial support registered for vivopay
[ 1.894484] usbserial: USB Serial support registered for zio
[ 1.900175] usbcore: registered new interface driver usb_ehset_test
[ 1.911565] snvs_rtc 30370000.snvs:snvs-rtc-lp: registered as rtc0
[ 1.917809] snvs_rtc 30370000.snvs:snvs-rtc-lp: setting system clock to 2026-03-30T13:33:58 UTC (1774877638)
[ 1.927835] i2c_dev: i2c /dev entries driver
[ 1.933822] Error: Driver 'mxsfb' is already registered, aborting...
[ 1.946106] Bluetooth: HCI UART driver ver 2.3
[ 1.950573] Bluetooth: HCI UART protocol H4 registered
[ 1.955724] Bluetooth: HCI UART protocol BCSP registered
[ 1.961068] Bluetooth: HCI UART protocol LL registered
[ 1.966219] Bluetooth: HCI UART protocol ATH3K registered
[ 1.971643] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 1.978026] Bluetooth: HCI UART protocol Broadcom registered
[ 1.983719] Bluetooth: HCI UART protocol QCA registered
[ 1.989176] EDAC MC: ECC not enabled
[ 1.994369] sdhci: Secure Digital Host Controller Interface driver
[ 2.000571] sdhci: Copyright(c) Pierre Ossman
[ 2.005718] Synopsys Designware Multimedia Card Interface Driver
[ 2.012597] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.022317] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.029846] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 2.036799] usbcore: registered new interface driver usbhid
[ 2.042397] usbhid: USB HID core driver
[ 2.047609] mxc-mipi-csi2-sam 32e40000.csi: supply mipi-phy not found, using dummy regulator
[ 2.052821] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA
[ 2.056519] : mipi_csis_imx8mp_phy_reset, No remote pad found!
[ 2.068994] mxc-mipi-csi2-sam 32e40000.csi: lanes: 2, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 500000000
[ 2.079116] mxc-mipi-csi2-sam 32e50000.csi: supply mipi-phy not found, using dummy regulator
[ 2.087916] : mipi_csis_imx8mp_phy_reset, No remote pad found!
[ 2.093807] mxc-mipi-csi2-sam 32e50000.csi: lanes: 2, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 266000000
[ 2.106345] mxc-isi_v1 32e00000.isi: mxc_isi.0 registered successfully
[ 2.114067] mxc-isi_v1 32e02000.isi: mxc_isi.1 registered successfully
[ 2.126352] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 2.127477] mmc2: new HS400 Enhanced strobe MMC card at address 0001
[ 2.142019] mmcblk2: mmc2:0001 DG4008 7.28 GiB
[ 2.144318] cs_system_cfg: CoreSight Configuration manager initialised
[ 2.148035] mmcblk2: p1 p2
[ 2.154500] platform soc@0: Fixed dependency cycle(s) with /soc@0/bus@30000000/efuse@30350000
[ 2.156453] mmcblk2boot0: mmc2:0001 DG4008 4.00 MiB
[ 2.165988] optee: probing for conduit method.
[ 2.170394] mmcblk2boot1: mmc2:0001 DG4008 4.00 MiB
[ 2.173808] optee: revision 4.4 (ecea75b7fee5a3c8)
[ 2.179311] optee: dynamic shared memory is enabled
[ 2.180357] mmcblk2rpmb: mmc2:0001 DG4008 4.00 MiB, chardev (234:0)
[ 2.184458] optee: initialized driver
[ 2.201886] Galcore version 6.4.11.p2.745085
[ 2.225361] [drm] Initialized vivante 1.0.0 20170808 for 40000000.mix_gpu_ml on minor 0
[ 2.234714] hantrodec 0 : module inserted. Major = 509
[ 2.240423] hantrodec 1 : module inserted. Major = 509
[ 2.246936] hantroenc: HW at base <0000000038320000> with ID <0x80006200>
[ 2.253874] hx280enc: module inserted. Major <508>
[ 2.261706] NET: Registered PF_LLC protocol family
[ 2.266607] u32 classifier
[ 2.269355] input device check on
[ 2.273032] Actions configured
[ 2.277563] NET: Registered PF_INET6 protocol family
[ 2.285115] Segment Routing with IPv6
[ 2.288835] In-situ OAM (IOAM) with IPv6
[ 2.292820] NET: Registered PF_PACKET protocol family
[ 2.297895] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 2.310854] can: controller area network core
[ 2.315261] NET: Registered PF_CAN protocol family
[ 2.320063] can: raw protocol
[ 2.323044] can: broadcast manager protocol
[ 2.327247] can: netlink gateway - max_hops=1
[ 2.332634] Bluetooth: RFCOMM TTY layer initialized
[ 2.337532] Bluetooth: RFCOMM socket layer initialized
[ 2.342693] Bluetooth: RFCOMM ver 1.11
[ 2.346466] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.351787] Bluetooth: BNEP filters: protocol multicast
[ 2.357023] Bluetooth: BNEP socket layer initialized
[ 2.361995] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 2.367925] Bluetooth: HIDP socket layer initialized
[ 2.373944] 8021q: 802.1Q VLAN Support v1.8
[ 2.378161] lib80211: common routines for IEEE802.11 drivers
[ 2.384252] 9pnet: Installing 9P2000 support
[ 2.388666] Key type dns_resolver registered
[ 2.393704] NET: Registered PF_VSOCK protocol family
[ 2.421703] registered taskstats version 1
[ 2.425934] Loading compiled-in X.509 certificates
[ 2.455797] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 2.466230] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 2.476702] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 2.487224] gpio gpiochip3: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 2.497765] gpio gpiochip4: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 2.509416] regulator-se050-en GPIO handle specifies active low - ignored
[ 2.511082] i2c i2c-0: IMX I2C adapter registered
[ 2.538168] nxp-pca9450 0-0025: pca9450bc probed.
[ 2.550148] i2c i2c-1: IMX I2C adapter registered
[ 2.588277] platform connector: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a40000/typec@3d
[ 2.597874] platform 38200000.usb: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a40000/typec@3d
[ 2.607753] i2c 2-003d: Fixed dependency cycle(s) with /soc@0/usb@32f10108/usb@38200000
[ 2.615842] i2c 2-003d: Fixed dependency cycle(s) with /connector
[ 2.622235] i2c i2c-2: IMX I2C adapter registered
[ 2.628230] i2c i2c-5: IMX I2C adapter registered
[ 2.636967] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges:
[ 2.644289] imx6q-pcie 33800000.pcie: IO 0x001ff80000..0x001ff8ffff -> 0x0000000000
[ 2.645835] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2)
[ 2.652509] imx6q-pcie 33800000.pcie: MEM 0x0018000000..0x001fefffff -> 0x0018000000
[ 2.663169] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver
[ 2.671722] imx6q-pcie 33800000.pcie: iATU: unroll T, 4 ob, 4 ib, align 64K, limit 16G
[ 2.681377] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 2.693461] imx-drm display-subsystem: bound 32fd8000.hdmi (ops dw_hdmi_imx_ops)
[ 2.701500] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[ 3.013728] Console: switching to colour frame buffer device 240x67
[ 3.035915] imx-drm display-subsystem: [drm] fb0: imx-drmdrmfb frame buffer device
[ 3.045572] pps pps0: new PPS source ptp0
[ 3.055252] fec 30be0000.ethernet eth0: registered PHC device 0
[ 3.062189] imx-dwmac 30bf0000.ethernet: IRQ eth_lpi not found
[ 3.068645] imx-dwmac 30bf0000.ethernet: User ID: 0x10, Synopsys ID: 0x51
[ 3.075462] imx-dwmac 30bf0000.ethernet: DWMAC4/5
[ 3.080279] imx-dwmac 30bf0000.ethernet: DMA HW capability register supported
[ 3.087435] imx-dwmac 30bf0000.ethernet: RX Checksum Offload Engine supported
[ 3.094592] imx-dwmac 30bf0000.ethernet: TX Checksum insertion supported
[ 3.101311] imx-dwmac 30bf0000.ethernet: Wake-Up On Lan supported
[ 3.107471] imx-dwmac 30bf0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 3.115149] imx-dwmac 30bf0000.ethernet: Enabled L3L4 Flow TC (entries=8)
[ 3.121959] imx-dwmac 30bf0000.ethernet: Enabled RFS Flow TC (entries=10)
[ 3.128770] imx-dwmac 30bf0000.ethernet: Enabling HW TC (entries=256, max_off=256)
[ 3.136358] imx-dwmac 30bf0000.ethernet: Using 34/40 bits DMA host/device width
[ 3.150196] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 3.155749] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[ 3.163740] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x000000a001000010
[ 3.173179] xhci-hcd xhci-hcd.1.auto: irq 221, io mem 0x38100000
[ 3.179315] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 3.184820] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[ 3.192500] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 3.199888] hub 1-0:1.0: USB hub found
[ 3.203686] hub 1-0:1.0: 1 port detected
[ 3.207910] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 3.216469] hub 2-0:1.0: USB hub found
[ 3.220262] hub 2-0:1.0: 1 port detected
[ 3.226450] Hot alarm is canceled. GPU3D clock will return to 64/64
[ 3.234231] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 7 mkt segment 2 supported-hw 0x80 0x4
[ 3.246934] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[ 3.247530] sdhci-esdhc-imx 30b40000.mmc: allocated mmc-pwrseq
[ 3.251500] isi-m2m 32e00000.isi:m2m_device: Register m2m success for ISI.0
[ 3.280634] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
[ 3.300287] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA
[ 3.336154] mmc0: new high speed SDIO card at address 0001
[ 3.587053] mmc1: host does not support reading read-only switch, assuming write-enable
[ 3.599025] mmc1: new high speed SDHC card at address aaaa
[ 3.605694] mmcblk1: mmc1:aaaa SA16G 14.8 GiB
[ 3.614503] mmcblk1: p1 p2
[ 3.676813] imx6q-pcie 33800000.pcie: Phy link never came up
[ 4.685696] imx6q-pcie 33800000.pcie: Phy link never came up
[ 4.691733] imx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00
[ 4.698163] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 4.703681] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 4.709882] pci_bus 0000:00: root bus resource [mem 0x18000000-0x1fefffff]
[ 4.716804] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 4.722855] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 4.729198] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 4.735955] pci 0000:00:00.0: supports D1
[ 4.739969] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[ 4.748521] pci 0000:00:00.0: BAR 0: assigned [mem 0x18000000-0x180fffff]
[ 4.755324] pci 0000:00:00.0: BAR 6: assigned [mem 0x18100000-0x1810ffff pref]
[ 4.762572] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 4.768166] pcieport 0000:00:00.0: PME: Signaling with IRQ 225
[ 4.778501] Generic PHY 30be0000.ethernet-1:08: attached PHY driver (mii_bus:phy_addr=30be0000.ethernet-1:08, irq=POLL)
[ 8.865508] fec 30be0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 8.892801] IP-Config: Complete:
[ 8.896032] device=eth0, hwaddr=72:4a:13:f7:ea:7c, ipaddr=192.168.10.56, mask=255.255.255.0, gw=192.168.0.254
[ 8.906404] host=desk-mx, domain=, nis-domain=(none)
[ 8.911834] bootserver=192.168.10.100, rootserver=192.168.10.100, rootpath=
[ 8.911958] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 8.929895] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 8.936144] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 8.943425] clk: Disabling unused clocks
[ 8.947409] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 8.956038] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[ 8.961041] ALSA device list:
[ 8.966801] No soundcards found.
[ 9.011507] VFS: Mounted root (nfs filesystem) on device 0:22.
[ 9.018794] devtmpfs: mounted
[ 9.022593] Freeing unused kernel memory: 4032K
[ 9.027230] Run /sbin/init as init process
[ 9.569031] systemd[1]: systemd 255.4^ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -TPM2 -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[ 9.601205] systemd[1]: Detected architecture arm64.
Welcome to NXP i.MX Release Distro 6.6-scarthgap (scarthgap)!
[ 9.636160] systemd[1]: Hostname set to <desk-mx8mp>.
[ 9.652148] systemd[1]: Initializing machine ID from random generator.
[ 11.165828] systemd[1]: Queued start job for default target Graphical Interface.
[ 11.212469] systemd[1]: Created slice Slice /system/getty.
[ OK ] Created slice Slice /system/getty.
[ 11.234559] systemd[1]: Created slice Slice /system/modprobe.
[ OK ] Created slice Slice /system/modprobe.
[ 11.257929] systemd[1]: Created slice Slice /system/serial-getty.
[ OK ] Created slice Slice /system/serial-getty.
[ 11.281841] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 11.300925] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ 11.324842] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ 11.348797] systemd[1]: Reached target Path Units.
[ OK ] Reached target Path Units.
[ 11.368658] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 11.388618] systemd[1]: Reached target Slice Units.
[ OK ] Reached target Slice Units.
[ 11.408653] systemd[1]: Reached target Swaps.
[ OK ] Reached target Swaps.
[ 11.473134] systemd[1]: Listening on RPCbind Server Activation Socket.
[ OK ] Listening on RPCbind Server Activation Socket.
[ 11.492716] systemd[1]: Reached target RPC Port Mapper.
[ OK ] Reached target RPC Port Mapper.
[ 11.518206] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 11.536922] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ 11.559654] systemd[1]: Listening on Journal Audit Socket.
[ OK ] Listening on Journal Audit Socket.
[ 11.581112] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 11.601300] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 11.622900] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 11.651277] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 11.673162] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 11.694622] systemd[1]: Listening on User Database Manager Socket.
[ OK ] Listening on User Database Manager Socket.
[ 11.752749] systemd[1]: Mounting Huge Pages File System...
Mounting Huge Pages File System...
[ 11.783032] systemd[1]: Mounting POSIX Message Queue File System...
Mounting POSIX Message Queue File System...
[ 11.810583] systemd[1]: Mounting Kernel Debug File System...
Mounting Kernel[ 11.816825] systemd[1]: Kernel Trace File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/tracing).
Debug File System...
[ 11.841824] systemd[1]: Mounting Temporary Directory /tmp...
Mounting Temporary Directory /tmp...
[ 11.854131] systemd[1]: Starting Create List of Static Device Nodes...
Starting Create List of Static Device Nodes...
[ 11.894924] systemd[1]: Starting Load Kernel Module configfs...
Starting Load Kernel Module configfs...
[ 11.927087] systemd[1]: Starting Load Kernel Module drm...
Starting Load Kernel Module drm...
[ 11.938000] systemd[1]: Starting Load Kernel Module fuse...
Starting Load Kernel Module fuse...
[ 11.975360] systemd[1]: Starting RPC Bind...
Starting RPC Bind...
[ 11.993982] systemd[1]: File System Check on Root Device was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/).
[ 12.015012] systemd[1]: Starting Journal Service...
Starting Journal Service...
[ 12.050374] fuse: init (API version 7.39)
[ 12.052259] systemd[1]: Load Kernel Modules was skipped because no trigger condition checks were met.
[ 12.104779] systemd[1]: Mounting NFSD configuration filesystem...
Mounting NFSD configuration filesystem...
[ 12.133164] systemd[1]: Starting Generate network units from Kernel command line...
Starting Generate network units from Kernel command line...
[ 12.163001] systemd[1]: Starting Remount Root and Kernel File Systems...
Starting Remount Root and Kernel File Systems...
[ 12.208004] systemd-journald[142]: Collecting audit messages is enabled.
[ 12.213376] systemd[1]: Starting Apply Kernel Variables...
Starting Apply Kernel Variables...
[ 12.241647] systemd[1]: Starting Coldplug All udev Devices...
Starting Coldplug All udev Devices...
[ 12.266678] systemd[1]: Started RPC Bind.
[ OK ] Started RPC Bind.
[ 12.286213] systemd[1]: Mounted Huge Pages File System.
[ OK ] Mounted Huge Pages File System.
[ 12.309827] systemd[1]: Mounted POSIX Message Queue File System.
[ OK ] Mounted POSIX Message Queue File System.
[ 12.333040] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted Temporary Directory /tmp.
[ OK ] Finished Create List of Static Device Nodes.
[ OK ] Finished Load Kernel Module configfs.
[ OK ] Finished Load Kernel Module drm.
[ OK ] Finished Load Kernel Module fuse.
[FAILED] Failed to mount NFSD configuration filesystem.
See 'systemctl status proc-fs-nfsd.mount' for details.
[DEPEND] Dependency failed for NFS server and services.
[DEPEND] Dependency failed for NFS Mount Daemon.
[ OK ] Finished Generate network units from Kernel command line.
[ OK ] Finished Remount Root and Kernel File Systems.
[ OK ] Finished Apply Kernel Variables.
Mounting FUSE Control File System...
Mounting Kernel Configuration File System...
Starting Flush Journal to Persistent Storage...
Starting Create Static Device Nodes in /dev gracefully...
[ OK ] Mounted FUSE Control File System.
[ OK ] Mounted Kernel Configuration File System.
[ 12.752691] systemd-journald[142]: Received client request to flush runtime journal.
[ OK ] Finished Flush Journal to Persistent Storage.
[ 12.936847] audit: type=1334 audit(1774877649.516:2): prog-id=6 op=LOAD
[ 12.943537] audit: type=1334 audit(1774877649.524:3): prog-id=7 op=LOAD
[ 12.950250] audit: type=1334 audit(1774877649.532:4): prog-id=8 op=LOAD
Starting User Database Manager...
[ OK ] Finished Coldplug All udev Devices.
[ OK ] Started User Database Manager.
[ OK ] Finished Create Static Device Nodes in /dev gracefully.
Starting Create System Users...
[ OK ] Finished Create System Users.
Starting Create Static Device Nodes in /dev...
[ OK ] Finished Create Static Device Nodes in /dev.
[ OK ] Reached target Preparation for Local File Systems.
Mounting /var/volatile...
[ 13.771247] audit: type=1334 audit(1774877650.348:5): prog-id=9 op=LOAD
[ 13.778098] audit: type=1334 audit(1774877650.356:6): prog-id=10 op=LOAD
Starting Rule-based Manager for Device Events and Files...
[ OK ] Mounted /var/volatile.
Starting Load/Save OS Random Seed...
[ OK ] Reached target Local File Systems.
Starting Rebuild Dynamic Linker Cache...
Starting Create Volatile Files and Directories...
[ OK ] Started Rule-based Manager for Device Events and Files.
[ OK ] Finished Create Volatile Files and Directories.
[ 15.036346] remoteproc remoteproc0: imx-dsp-rproc is available
[ 15.071521] caam 30900000.crypto: device ID = 0x0a16040100000100 (Era 9)
[ 15.079659] caam 30900000.crypto: job rings = 1, qi = 0
Starting Rebuild Journal Catalog...
[ 15.096578] audit: type=1334 audit(1774877651.672:7): prog-id=11 op=LOAD
[ 15.105530] caam-snvs 30370000.caam-snvs: ipid matched - 0x3e
[ 15.112742] caam-snvs 30370000.caam-snvs: violation handlers armed - non-secure state
[FAILED] Failed to start Network Name Resolution.
[ 15.165127] audit: type=1334 audit(1774877651.744:8): prog-id=11 op=UNLOAD
See 'systemctl status systemd-resolved.service' for detail[ 15.179669] audit: type=1334 audit(1774877651.756:9): prog-id=12 op=LOAD
s.
[ OK ] Reached target Host and Network Name Lookups.
[FAILED] Failed to start Network Time Synchronization.
[ 15.244719] rtc-ds1307 5-0068: registered as rtc1
See 'systemctl status systemd-timesyncd.service' for detai[ 15.256946] audit: type=1334 audit(1774877651.836:10): prog-id=12 op=UNLOAD
ls.
[ 15.270191] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.276547] imx-sdma 30bd0000.dma-controller: firmware found.
[ OK ] Reached target System Time Se[ 15.292583] imx-sdma 30bd0000.dma-controller: loaded firmware 4.6
t.
[ 15.292587] mx8-img-md: Registered mxc_isi.0.capture as /dev/video1
[ 15.293165] mx8-img-md: Registered mxc_isi.1.capture as /dev/video2
[ 15.315114] imx-sdma 30e10000.dma-controller: firmware found.
[ 15.324001] mx8-img-md: Registered sensor subdevice: ov5640 2-003c (1)
[ 15.333000] mx8-img-md: Registered sensor subdevice: ov5640 1-003c (2)
[ 15.344229] mx8-img-md: created link [mxc_isi.0] => [mxc_isi.0.capture]
[ 15.351328] mx8-img-md: created link [mxc-mipi-csi2.0] => [mxc_isi.0]
[ 15.358546] mx8-img-md: created link [mxc_isi.1] => [mxc_isi.1.capture]
[ 15.365737] mx8-img-md: created link [mxc-mipi-csi2.1] => [mxc_isi.1]
[ 15.375144] mx8-img-md: created link [ov5640 1-003c] => [mxc-mipi-csi2.0]
[ 15.387077] mx8-img-md: created link [ov5640 2-003c] => [mxc-mipi-csi2.1]
[ 15.394445] mxc-md 32c00000.bus:camera: mxc_md_create_links
Starting Record System Boot/Shutdown in UTMP...
[ 15.460658] audit: type=1334 audit(1774877652.036:11): prog-id=13 op=LOAD
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[ OK ] Finished Rebuild Journal Catalog.
[ OK ] Finished Record System Boot/Shutdown in UTMP.
[ OK ] Created slice Slice /system/tee-supplicant.
[ 15.941273] caam algorithms registered in /proc/crypto
[ 15.946598] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto
[ 15.954313] caam 30900000.crypto: rng crypto API alg registered prng-caam
[ 15.961148] caam 30900000.crypto: registering rng-caam
[ 15.966491] random: crng init done
[ 15.971241] Device caam-keygen registered
[ OK ] Reached target Hardware activated USB gadget.
[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
Mounting NFSD configuration filesystem...
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
Starting Virtual Console Setup...
[ OK ] Finished Load/Save OS Random Seed.
[FAILED] Failed to mount NFSD configuration filesystem.
See 'systemctl status proc-fs-nfsd.mount' for details.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[ OK ] Finished Virtual Console Setup.
[ OK ] Finished Rebuild Dynamic Linker Cache.
Starting Update is Completed...
[ OK ] Finished Update is Completed.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily rotation of log files.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timer Units.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Listening on D-Bus System Message Bus Socket.
Starting sshd.socket...
Starting Weston socket...
[ OK ] Listening on sshd.socket.
[ OK ] Listening on Weston socket.
[ OK ] Reached target Socket Units.
[ OK ] Reached target Basic System.
[ OK ] Started Job spooling tools.
Starting Avahi mDNS/DNS-SD Stack...
[ OK ] Started Periodic Command Scheduler.
Starting D-Bus System Message Bus...
[ OK ] Started Configuration for i.MX GPU (Former rc_gpu.S).
Starting IPv6 Packet Filtering Framework...
Starting IPv4 Packet Filtering Framework...
Starting Telephony service...
[ OK ] Started System Logging Service.
[ 18.403729] kauditd_printk_skb: 15 callbacks suppressed
[ 18.403739] audit: type=1334 audit(1774877654.980:27): prog-id=21 op=LOAD
[ 18.415945] audit: type=1334 audit(1774877654.988:28): prog-id=22 op=LOAD
[ 18.415957] audit: type=1334 audit(1774877654.996:29): prog-id=23 op=LOAD
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
syslogd[285]: Error opening log file: /var/log/auth.log: No such file or directory
syslogd[285]: Error opening log file: /var/log/syslog: No such file or directory
syslogd[285]: Error opening log file: /var/log/kern.log: No such file or directory
syslogd[285]: Error opening log file: /var/log/mail.log: No such file or directory
[ OK ] Started TEE Supplicant on teepriv0.
syslogd[285]: Error opening log file: /var/log/mail.err: No such file or directory
syslogd[285]: Error opening log file: /var/log/messages: No such file or directory
Starting OpenSSH Key Generation...
[ OK ] Started D-Bus System Message Bus.
[ OK ] Finished IPv6 Packet Filtering Framework.
[ OK ] Finished IPv4 Packet Filtering Framework.
[ OK ] Reached target Preparation for Network.
Starting Load Kernel Module drm...
Starting Network Configuration...
[ OK ] Started Telephony service.
[ OK ] Started Avahi mDNS/DNS-SD Stack.
[ OK ] Finished Load Kernel Module drm.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
Starting Load Kernel Module drm...
[ OK ] Finished Load Kernel Module drm.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
Starting Load Kernel Module drm...
[ OK ] Started Network Configuration.
[ OK ] Reached target Network.
[ OK ] Started Network Time Service.
Starting Permit User Sessions...
[ OK ] Started Xinetd A Powerful Replacement For Inetd.
[ OK ] Finished Load Kernel Module drm.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
[ OK ] Finished Permit User Sessions.
[ OK ] Started Getty on tty1.
Starting Load Kernel Module drm...
[ OK ] Started Serial Getty on ttymxc1.
[ OK ] Reached target Login Prompts.
Starting Weston, a Wayland compositor, as a system service...
[ OK ] Finished Load Kernel Module drm.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
[ OK ] Reached target Multi-User System.
Starting Load Kernel Module drm...
[ OK ] Finished Load Kernel Module drm.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
[FAILED] Failed to start Weston, a Wayland compositor, as a system service.
See 'systemctl status weston.service' for details.
[ OK ] Reached target Graphical Interface.
Starting Record Runlevel Change in UTMP...
[ OK ] Finished Record Runlevel Change in UTMP.
[ OK ] Finished OpenSSH Key Generation.
NXP i.MX Release Distro 6.6-scarthgap desk-mx8mp ttymxc1
desk-mx8mp login: root
root@desk-mx8mp:~# uname -a
Linux desk-mx8mp 6.6.52-desk-mx8m-l-6.0.0-lts-next-lts-next-g2a0ff5a649ed #1 SMP PREEMPT Fri Mar 27 10:50:36 UTC 2026 aarch64 GNU/Linux
root@desk-mx8mp:~# ls -la /lib/modules/$(uname -r)
total 1256
drwxr-xr-x 4 570 502 4096 Mar 9 2018 .
drwxr-xr-x 3 570 502 4096 Mar 9 2018 ..
drwxr-xr-x 11 570 502 4096 Mar 9 2018 kernel
-rw-r--r-- 1 570 502 237748 Mar 9 2018 modules.alias
-rw-r--r-- 1 570 502 249081 Mar 9 2018 modules.alias.bin
-rw-r--r-- 1 570 502 39830 Mar 9 2018 modules.builtin
-rw-r--r-- 1 570 502 22942 Mar 9 2018 modules.builtin.alias.bin
-rw-r--r-- 1 570 502 42738 Mar 9 2018 modules.builtin.bin
-rw-r--r-- 1 570 502 255405 Mar 9 2018 modules.builtin.modinfo
-rw-r--r-- 1 570 502 53567 Mar 9 2018 modules.dep
-rw-r--r-- 1 570 502 93369 Mar 9 2018 modules.dep.bin
-rw-r--r-- 1 570 502 174 Mar 9 2018 modules.devname
-rw-r--r-- 1 570 502 34236 Mar 9 2018 modules.order
-rw-r--r-- 1 570 502 479 Mar 9 2018 modules.softdep
-rw-r--r-- 1 570 502 92092 Mar 9 2018 modules.symbols
-rw-r--r-- 1 570 502 118173 Mar 9 2018 modules.symbols.bin
drwxr-xr-x 3 570 502 4096 Mar 9 2018 updates
root@desk-mx8mp:~# cat /etc/os-release
ID=fsl-imx-wayland
NAME="NXP i.MX Release Distro"
VERSION="6.6-scarthgap (scarthgap)"
VERSION_ID=6.6-scarthgap
VERSION_CODENAME="scarthgap"
PRETTY_NAME="NXP i.MX Release Distro 6.6-scarthgap (scarthgap)"
CPE_NAME="cpe:/o:openembedded:fsl-imx-wayland:6.6-scarthgap"
BUILD_VERSION="desk-mx8m-l-6.0.0"
root@desk-mx8mp:~#
The following message appears from the VM, when the rootfs is mounted:
dvdk@vagrant:~$ cat /var/log/syslog | tail -n 2 Jul 26 11:52:45 vagrant tftpd[13249]: tftpd: trying to get file: /tftpboot/desk-mx8m-l/imx8mp-mito8mplus-cb1001.dtb Jul 26 11:52:56 vagrant rpc.mountd[808]: authenticated mount request from 192.168.10.56:1004 for /home/dvdk/desk-mx-l/rfs/desk-mx8m-l-4.0.0/mx8mp (/home)
Install Module[edit | edit source]
Host side, transfer ~/desk-mx-l/rfs/desk-mx8m-l-6.0.0_modules.tar.gz file on target.
Target side execute the follow command:
root@desk-mx8mp:~# tar xvzf desk-mx8m-l-6.0.0_modules.tar.gz -C /
To check that everything went well, run the following command:
root@desk-mx8mp:~# ls -l /lib/modules/$(uname -r) total 1152 lrwxrwxrwx 1 541 502 64 Jun 29 18:58 build -> /home/jenkins/workspace/workspace/DESK-MX8M-L-4.x.x_Linux-kernel drwxr-xr-x 10 541 502 4096 Jun 29 18:58 kernel -rw-r--r-- 1 541 502 203921 Jun 29 18:58 modules.alias -rw-r--r-- 1 541 502 208115 Jun 29 18:58 modules.alias.bin -rw-r--r-- 1 541 502 36037 Jun 29 18:58 modules.builtin -rw-r--r-- 1 541 502 70747 Jun 29 18:58 modules.builtin.alias.bin -rw-r--r-- 1 541 502 39328 Jun 29 18:58 modules.builtin.bin -rw-r--r-- 1 541 502 229962 Jun 29 18:58 modules.builtin.modinfo -rw-r--r-- 1 541 502 46720 Jun 29 18:58 modules.dep -rw-r--r-- 1 541 502 82895 Jun 29 18:58 modules.dep.bin -rw-r--r-- 1 541 502 146 Jun 29 18:58 modules.devname -rw-r--r-- 1 541 502 31093 Jun 29 18:58 modules.order -rw-r--r-- 1 541 502 366 Jun 29 18:58 modules.softdep -rw-r--r-- 1 541 502 81992 Jun 29 18:58 modules.symbols -rw-r--r-- 1 541 502 105342 Jun 29 18:58 modules.symbols.bin lrwxrwxrwx 1 541 502 64 Jun 29 18:58 source -> /home/jenkins/workspace/workspace/DESK-MX8M-L-4.x.x_Linux-kernel root@desk-mx8mp:~#
Development[edit | edit source]
Synchronizing the repository[edit | edit source]
In DESK-MX8M-L, the following source trees are clones of the correspondent DAVE Embedded Systems git repositories:
| Component | GIT Remote |
|---|---|
| MX8 mkimage | https://git.dave.eu/git/desk-mx-l/desk-mx8-mkimage/desk-mx8-mkimage.git
|
| U-Boot | https://git.dave.eu/git/desk-mx-l/u-boot-imx.git
|
| Linux kernel | https://git.dave.eu/git/desk-mx-l/linux-imx.git
|
| Yocto BSP | https://git.dave.eu/git/desk-mx-l/meta-desk-mx.git
|
For more information about the access to these repositories, please refer to this link.
Access to DAVE Embedded Systems' git repositories is granted to the development kit's owners only. Please refer to this page for detailed instructions on how to get access.
Instructions[edit | edit source]
The components listed in the table above can be kept in sync and up to date with DAVE Embedded Systems' repositories.
Once the git account has been enabled, the developer can:
- clone the repository with the
git clone <git_remote_repository> -b desk-mx8m-l-6.0.0command - synchronize a source tree entering the repository directory and launching the
git fetch origincommand.
Please note that git fetch doesn't merge the commits on the current branch. To do that, the developer should run the git merge command or replace the fetch-merge process with a single git pull command. Please note that the recommended method is the fetch-merge process. For further information on Git, please refer to the official Git Documentation
Building Boot Image[edit | edit source]
Quick reference[edit | edit source]
| Repository Information | |
|---|---|
| URL | https://git.dave.eu/git/desk-mx-l/u-boot-imx.git |
| stable branch | desk-mx8m-l-6.x.x |
| stable tag | desk-mx8m-l-6.0.0 |
Build boot image[edit | edit source]
To build the binary boot Image is pretty complex. Too much component are needed and the image structure may change if the optee or other security features are used.
To make an easier boot Image build we strongly suggest to use the Yocto build system.
Before execute the setup of Yocto, see this page.
Each time there are some changes on u-boot, the u-boot references in the Yocto recipes have to be changed. Edit the u-boot reference on:
sources/meta-desk-mx-bsp/recipes-bsp/u-boot/u-boot-imx_%.bbappendsources/meta-desk-mx/meta-desk-mx-bsp/conf/machine/include/desk-common-mx8mp.incorsources/meta-desk-mx/meta-desk-mx-bsp/conf/machine/include/desk-common-mx8mm.incbuild-*/conf/local.conf
Remember to update the follow variables:
SRCREV:pn-u-boot-imxSRCBRANCH:pn-u-boot-imxUBOOT_SRC:pn-u-boot-imx
to use the different repository/branch and revision.
After the u-boot sources has been updated, execute the build of boot binary with the following steps
- setup the Yocto environment if not already up
- execute the build of boot binary with follow command
bitbake imx-boot. - the binary generated is present on
tmp/deploy/images/<machine-name>/imx-boot.
Flash boot image[edit | edit source]
To flash the boot image on uSD execute the following steps:
- connect the uSD to the MVM
- get the device name with
lsblkcommand. - flash the binary to the uSD with follow command for SBC-Orca:
sudo dd if=imx-boot.bin of=/dev/sdX bs=1k seek=32 conv=fsync(replacesdXwith your device), for SBCX-Mito8MMini:sudo dd if=imx-boot.bin of=/dev/sdX bs=1k seek=33 conv=fsync(replacesdXwith your device)
Building Linux[edit | edit source]
Quick reference[edit | edit source]
| Repository Information | |
|---|---|
| URL | git@git.dave.eu:desk-mx-l/linux-imx.git |
| stable branch | desk-mx8m-l-6.x.x |
| stable tag | desk-mx8m-l-6.0.0 |
| Build Information | ||
|---|---|---|
| defconfig | imx_v8_desk_defconfig | |
| Kernel binary | Image | |
| Device trees | Platform | DTB |
| SBC AXEL | imx8mm-mito8mmini-cb100a.dts | |
| SBC ORCA | imx8mp-mito8mplus-cb1001.dts | |
Instructions[edit | edit source]
It is assumed that the development build environment has been set up properly as described here.
- open a terminal window and cd into Linux kernel source code
dvdk@vagrant:~$ cd ~/desk-mx-l/linux dvdk@vagrant:~/desk-mx-l/linux$
- update your local repository to the latest version
dvdk@vagrant:~/desk-mx-l/linux$ git pull dvdk@vagrant:~/desk-mx-l/linux$ git checkout desk-mx8m-l-6.0.0
- configure the build environment
dvdk@vagrant:~/desk-mx-l/linux$ source /opt/yocto/sdk/desk-mx8m-l/desk-mx8m-l-6.x.x/environment-setup-armv8a-poky-linux
- enter the source tree directory and run the following commands:
dvdk@vagrant:~/desk-mx-l/linux$ make imx_v8_desk_defconfig dvdk@vagrant:~/desk-mx-l/linux$ make Image modules freescale/imx8mp-mito8mplus-cb1001.dtb dvdk@vagrant:~/desk-mx-l/linux$ make Image modules freescale/imx8mm-mito8mmini-cb100a.dtb
NOTE: this is the default configuration suitable for the latest target.
- The former command selects the default DESK-MX8M-L configuration, while the latter builds the kernel binary image with the required u-boot header and the kernel device tree.
Default Linux kernel configuration can be changed by using the standard menuconfig, xconfig, or gconfig make target. Subsequent builds just require uImage make target to update the binary image. Once the build process is complete, the kernel binary image is stored into the arch/arm/boot/Image file. Both this file and the kernel device tree can be copied to the tftp root directory /tftpboot/desk-mx8m-l/ with the following commands:
dvdk@vagrant:~/desk-mx-l/linux$ cp arch/arm64/boot/Image /tftpboot/desk-mx8m-l/ dvdk@vagrant:~/desk-mx-l/linux$ cp arch/arm64/boot/dts/freescale/*.dtb /tftpboot/desk-mx8m-l/
Usually, kernel modules are installed with make modules_install command, but this method installs the modules into the /lib/modules directory of your MVM, which is not what you want.
A better way to deploy kernel modules while cross-compiling is
- generate a
.tar.gzarchive - install this archive into the target root file system
User can create such an archive, for example, using the following commands:
dvdk@vagrant:~/desk-mx-l/linux$ mkdir modules-install dvdk@vagrant:~/desk-mx-l/linux$ make INSTALL_MOD_PATH=modules-install modules_install dvdk@vagrant:~/desk-mx-l/linux$ cd modules-install dvdk@vagrant:~/desk-mx-l/linux/modules-install$ tar cvzf ../modules.tar.gz . && cd .. dvdk@vagrant:~/desk-mx-l/linux$
Now copy modules.tar.gz into the target root file system and install them as root with the following command
root@desk-mx8mp:~# tar xvzf modules.tar.gz -C /
Building the Yocto BSP[edit | edit source]
Quick reference[edit | edit source]
| Repository Information | ||
|---|---|---|
| Repository | Yocto BSP Layer | |
| URL | https://git.dave.eu/git/desk-mx-l/meta-desk-mx.git | |
| stable branch | desk-mx8m-l-6.x.x | |
| stable tag | desk-mx8m-l-6.0.0 | |
| Build targets | |
|---|---|
| Name | Description |
| dave-image-minimal | This image include the core image minimal distro |
Introduction[edit | edit source]
As known, in addition to a bootloader and the o.s. kernel, an embedded Linux system needs a root file system to operate. The root file system must contain everything needed to support the Linux system (applications, settings, data, etc.). The root file system is the file system that is contained on the same partition on which the root directory is located. The Linux kernel, at the end of its startup stage, mounts the root file system on the configured root device and finally launches the /sbin/init, the first user space process and "father" of all the other processes.
For more information on the Linux filesystem, please refer to http://www.thegeekstuff.com/2010/09/linux-file-system-structure/.
DESK-MX8M-L provides one (or more) pre-built root file system, that can be used during the evaluation/development/deployment cycle. For instance, the root file system included in the desk-mx8m-l-6.x.x-image-minimal image is suited for the development phase, since it provides a relatively rich set of packages including tools and libraries used to debug the application code. The pre-built root file systems are located here: /home/dvdk/<target_name>/rfs/<kit_name>/.
To generate the supported root file systems, the build of the Yocto BSP has to be run. The output of this process is an image containing the U-Boot binary file, the Linux kernel image, and the selected root file system image. The following sections describe in detail how to execute this operation.
For more general information regarding the Yocto build system, please refer the dedicated category page.
How to build the Yocto BSP images including the U-Boot binary file, the Linux kernel image, and the target root file system image with KAS[edit | edit source]
|
The following procedure requires access to the DAVE Embedded Systems' git repositories. Access to such repositories is granted to the development kit's owners. Please refer to this page for detailed instructions on how to get it. |
|
This process requires a lot of hardware resources in terms of disk storage, RAM, and processing power. For this reason, it is recommended to use a physical machine. For more details on this topic, please refer to the NXP documentation on this BSP, i.e., the i.MX Yocto Project User's Guide, which talks about the host setup for the Yocto build system |
Initialize the build environment[edit | edit source]
|
DESK-MX8M-L-6.x.x Yocto build system uses the |
Before running the build, the KAS environment must be initialized properly.
dvdk@vagrant:~/yocto/desk-mx8m-l$ virtualenv -p /usr/bin/python3 venv
created virtual environment CPython3.9.5.final.0-64 in 486ms
creator CPython3Posix(dest=/home/dvdk/yocto/desk-mx9-l/venv, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, pkg_resources=latest, via=copy, app_data_dir=/home/dvdk/.local/share/virtualenv/seed-app-data/v1.0.1.debian.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
dvdk@vagrant:~/yocto/desk-mx9-l$ source venv/bin/activate
(venv) dvdk@vagrant:~/yocto/desk-mx9-l$ pip3 install kas==4.7
Collecting kas==4.7
Downloading kas-4.7.tar.gz (63 kB)
|████████████████████████████████| 63 kB 567 kB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting GitPython<4,>=3.1.0
Downloading gitpython-3.1.46-py3-none-any.whl (208 kB)
|████████████████████████████████| 208 kB 8.4 MB/s
Collecting jsonschema<5,>=2.5.0
Downloading jsonschema-4.25.1-py3-none-any.whl (90 kB)
|████████████████████████████████| 90 kB 1.9 MB/s
Collecting kconfiglib<15,>=14.1.0
Using cached kconfiglib-14.1.0-py2.py3-none-any.whl (145 kB)
Collecting distro<2,>=1.0.0
Using cached distro-1.9.0-py3-none-any.whl (20 kB)
Collecting PyYAML<7,>=3.0
Downloading pyyaml-6.0.3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (750 kB)
|████████████████████████████████| 750 kB 19.3 MB/s
Collecting typing-extensions>=3.10.0.2; python_version < "3.10"
Downloading typing_extensions-4.15.0-py3-none-any.whl (44 kB)
|████████████████████████████████| 44 kB 479 kB/s
Collecting gitdb<5,>=4.0.1
Downloading gitdb-4.0.12-py3-none-any.whl (62 kB)
|████████████████████████████████| 62 kB 333 kB/s
Collecting rpds-py>=0.7.1
Downloading rpds_py-0.27.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (384 kB)
|████████████████████████████████| 384 kB 23.6 MB/s
Collecting attrs>=22.2.0
Using cached attrs-25.4.0-py3-none-any.whl (67 kB)
Collecting jsonschema-specifications>=2023.03.6
Downloading jsonschema_specifications-2025.9.1-py3-none-any.whl (18 kB)
Collecting referencing>=0.28.4
Downloading referencing-0.36.2-py3-none-any.whl (26 kB)
Collecting smmap<6,>=3.0.1
Downloading smmap-5.0.2-py3-none-any.whl (24 kB)
Building wheels for collected packages: kas
Building wheel for kas (PEP 517) ... done
Created wheel for kas: filename=kas-4.7-py3-none-any.whl size=73763 sha256=465037fdc498832861647c9b7f8cb8a74e536b1e82e3e1589c9c10646ab66a5c
Stored in directory: /home/dvdk/.cache/pip/wheels/cd/22/ee/45fb0ed04ab9306290a461c24882526bee2f93b76a75255fab
Successfully built kas
Installing collected packages: typing-extensions, smmap, gitdb, GitPython, rpds-py, attrs, referencing, jsonschema-specifications, jsonschema, kconfiglib, distro, PyYAML, kas
Successfully installed GitPython-3.1.46 PyYAML-6.0.3 attrs-25.4.0 distro-1.9.0 gitdb-4.0.12 jsonschema-4.25.1 jsonschema-specifications-2025.9.1 kas-4.7 kconfiglib-14.1.0 referencing-0.36.2 rpds-py-0.27.1 smmap-5.0.2 typing-extensions-4.15.0
(venv) dvdk@vagrant:~/yocto/desk-mx8m-l$
then, fetch the meta-desk-mx repositories with the proper branch:
(venv) dvdk@vagrant:~/yocto/desk-mx8m-l$ git clone https://git.dave.eu/git/desk-mx-l/meta-desk-mx.git -b desk-mx8m-l-6.0.0
Running the build[edit | edit source]
Please note that even the basic root file system requires a few hours to build on a mid/hi range desktop (4-6 cores, 8-12 GiB RAM) also depending on your Internet connection speed (all sources are fetched from the network). Nearly 200GiB of disk space is required for the build; this means that an external VDI disk should be created and mounted for a complete Yocto build. The process may be slowed down significantly since the performances of a virtual machine are reduced if compared to the physical hardware. Thus, it's recommended to check the hardware capabilities of the host system and, when building with Yocto is required, to consider the following options:
- Migrating the build system to a physical machine
- Assuming that the host system has the required resources, extending the hardware capabilities of the default MVM (e.g. adding more cores and disk space).
Once completed the initialization phase, developers can launch the Yocto image build with KAS, with the following commands:
- for build
dave-image-minimalimage withDESK-MX8MM-LorDESK-MX8MP-Lmachine
(venv) dvdk@vagrant:~/yocto/desk-mx8m-l$ cd meta-desk-mx/ (venv) dvdk@vagrant:~/yocto/desk-mx8m-l/meta-desk-mx$ kas-container --repo-rw --runtime-args "--security-opt seccomp=unconfined" build kas-ci/desk-mx8mp.yml:kas-ci/fsl-imx-wayland.yml:kas-ci/dave-image-minimal.yml Unable to find image 'ghcr.io/siemens/kas/kas:4.7' locally 4.7: Pulling from siemens/kas/kas af302e5c37e9: Pull complete 2177270d2942: Pull complete 7430531eee33: Pull complete 1a664f7db5bd: Pull complete a9153c69d46e: Pull complete 9871fdce1dd1: Pull complete Digest: sha256:d989add57fc441fe9e27bb2dd6ed98c5597b44c807928e35a72dc1cfbdda9abe Status: Downloaded newer image for ghcr.io/siemens/kas/kas:4.7 2026-02-17 14:36:35 - INFO - kas 4.7 started 2026-02-17 14:36:35 - INFO - Using /repo as root for repository meta-desk-mx 2026-02-17 14:36:35 - INFO - Cloning repository meta-dave 2026-02-17 14:36:35 - INFO - Cloning repository meta-flutter 2026-02-17 14:36:35 - INFO - Cloning repository poky ... ... ...
- in case of error due to the downloads path, please use the command below in the repository directory
export DL_DIR=./downloads
Once the build process is completed, the resulting files (the U-Boot binaries, the Linux kernel image, the device tree blob, the .tar.gz compressed root file system image, etc.) will be available in build/tmp/deploy/images/<machine_name>.
Generating the SDKs[edit | edit source]
|
Yocto SDK system uses the |
(venv) dvdk@vagrant:~/yocto/desk-mx8m-l/meta-desk-mx$ KAS_TASK="populate_sdk" kas-container --repo-rw --runtime-args "--security-opt seccomp=unconfined" build kas-ci/desk-mx8mmini.yml:kas-ci/fsl-imx-wayland.yml:kas-ci/core-image-minimal.yml
(venv) dvdk@vagrant:~/yocto/desk-mx8m-l/meta-desk-mx$ KAS_TASK="populate_sdk" kas-container --repo-rw --runtime-args "--security-opt seccomp=unconfined" build kas-ci/desk-mx8mp.yml:kas-ci/fsl-imx-wayland.yml:kas-ci/core-image-minimal.yml
Generating the Toolchain[edit | edit source]
Toolchain can be created by the following command:
- for
DESK-MX8MM-Lmachine
(venv) dvdk@vagrant:~/desk-mx-l/yocto/meta-desk-mx$ KAS_TASK="meta_toolchain" kas-container --repo-rw --runtime-args "--security-opt seccomp=unconfined" build kas-ci/desk-mx8mm.yml:kas-ci/fsl-imx-wayland.yml:kas-ci/dave-image-minimal.yml
- for
DESK-MX8MP-Lmachine
(venv) dvdk@vagrant:~/desk-mx-l/yocto/meta-desk-mx$ KAS_TASK="meta_toolchain" kas-container --repo-rw --runtime-args "--security-opt seccomp=unconfined" build kas-ci/desk-mx8mp.yml:kas-ci/fsl-imx-wayland.yml:kas-ci/dave-image-minimal.yml
Building additional packages[edit | edit source]
To build additional packages, for example memtester the user need to perform the following command
(venv) dvdk@vagrant:~/desk-mx-l/yocto/meta-desk-mx$ KAS_TARGET="memtester" kas-container --repo-rw --runtime-args "--security-opt seccomp=unconfined" build kas-ci/desk-mx8mm.yml:kas-ci/fsl-imx-wayland.yml:kas-ci/dave-image-minimal.yml
The resulting packages (the default format is deb) can be found inside build/tmp/deploy/deb.
Building with bitbake[edit | edit source]
To use the traditional bitbake instead of kas, it is possible to invoke a kas shell where using it:
(venv) dvdk@vagrant:~/yocto/desk-mx8m-l/meta-desk-mx$ kas-container --repo-rw --runtime-args "--security-opt seccomp=unconfined" shell kas-ci/desk-mx8mm.yml:kas-ci/fsl-imx-wayland.yml:kas-ci/dave-image-minimal.yml 2026-02-17 14:56:27 - INFO - kas 4.7 started 2026-02-17 14:56:27 - INFO - Using /repo as root for repository meta-desk-mx 2026-02-17 14:56:28 - INFO - Repository meta-dave already contains 988f0475300d2f5ff4cea89df5eebfb16e8ad28d as commit 2026-02-17 14:56:28 - INFO - Repository meta-flutter already contains 545eda504de8d9e7b7d2911898e891cb016b6693 as commit 2026-02-17 14:56:28 - INFO - Repository poky already contains 200d12b6a58ad961d60a7774ca0f7a9d29498724 as commit 2026-02-17 14:56:28 - INFO - Repository meta-openembedded already contains 72018ca1b1a471226917e8246e8bbf9a374ccf97 as commit 2026-02-17 14:56:28 - INFO - Repository meta-clang already contains 2b7433611d80f6d0ee1b04156fa91fc73d3c2665 as commit 2026-02-17 14:56:28 - INFO - Repository meta-freescale already contains 0627128b341cfb2bef7a0832ce8cac0ce1127f13 as commit 2026-02-17 14:56:28 - INFO - Repository meta-freescale-3rdparty already contains 6c063450d464eb2f380443c7d9af1b94ce9b9d75 as commit 2026-02-17 14:56:28 - INFO - Repository meta-freescale-distro already contains b9d6a5d9931922558046d230c1f5f4ef6ee72345 as commit 2026-02-17 14:56:28 - INFO - Repository meta-arm already contains 950a4afce46a359def2958bd9ae33fc08ff9bb0d as commit 2026-02-17 14:56:28 - INFO - Repository meta-qt6 already contains 586a6cb5aec755803a3be3cec359baafe89d6432 as commit 2026-02-17 14:56:28 - INFO - Repository meta-security already contains 459d837338ca230254baa2994f870bf6eb9d0139 as commit 2026-02-17 14:56:28 - INFO - Repository meta-timesys already contains 4dc3f4bdfde4a86904b6e1a3d58df4696e7a63fa as commit 2026-02-17 14:56:28 - INFO - Repository meta-virtualization already contains 6f3c1d8f90947408a6587be222fec575a1ca5195 as commit 2026-02-17 14:56:28 - INFO - Repository meta-imx already contains e83d4402acde050d2b2761995761c81c797b5b03 as commit 2026-02-17 14:56:28 - INFO - Repository meta-nxp-connectivity already contains f58365ec75a5768ff3e8e8bcd64f237738c93160 as commit 2026-02-17 14:56:28 - INFO - Repository meta-nxp-demo-experience already contains e8e646e22b1f926aac83bb7ad522efa9cd8ccc45 as commit 2026-02-17 14:56:28 - INFO - Repository meta-dave checked out to 988f0475300d2f5ff4cea89df5eebfb16e8ad28d 2026-02-17 14:56:28 - INFO - Repository meta-flutter checked out to 545eda504de8d9e7b7d2911898e891cb016b6693 2026-02-17 14:56:28 - INFO - Repository poky checked out to 200d12b6a58ad961d60a7774ca0f7a9d29498724 2026-02-17 14:56:28 - INFO - Repository meta-openembedded checked out to 72018ca1b1a471226917e8246e8bbf9a374ccf97 2026-02-17 14:56:28 - INFO - Repository meta-clang checked out to 2b7433611d80f6d0ee1b04156fa91fc73d3c2665 2026-02-17 14:56:28 - INFO - Repository meta-freescale checked out to 0627128b341cfb2bef7a0832ce8cac0ce1127f13 2026-02-17 14:56:28 - INFO - Repository meta-freescale-3rdparty checked out to 6c063450d464eb2f380443c7d9af1b94ce9b9d75 2026-02-17 14:56:28 - INFO - Repository meta-freescale-distro checked out to b9d6a5d9931922558046d230c1f5f4ef6ee72345 2026-02-17 14:56:28 - INFO - Repository meta-arm checked out to 950a4afce46a359def2958bd9ae33fc08ff9bb0d 2026-02-17 14:56:28 - INFO - Repository meta-qt6 checked out to 586a6cb5aec755803a3be3cec359baafe89d6432 2026-02-17 14:56:28 - INFO - Repository meta-security checked out to 459d837338ca230254baa2994f870bf6eb9d0139 2026-02-17 14:56:28 - INFO - Repository meta-timesys checked out to 4dc3f4bdfde4a86904b6e1a3d58df4696e7a63fa 2026-02-17 14:56:28 - INFO - Repository meta-virtualization checked out to 6f3c1d8f90947408a6587be222fec575a1ca5195 2026-02-17 14:56:28 - INFO - Repository meta-imx checked out to e83d4402acde050d2b2761995761c81c797b5b03 2026-02-17 14:56:28 - INFO - Repository meta-nxp-connectivity checked out to f58365ec75a5768ff3e8e8bcd64f237738c93160 2026-02-17 14:56:28 - INFO - Repository meta-nxp-demo-experience checked out to e8e646e22b1f926aac83bb7ad522efa9cd8ccc45 2026-02-17 14:56:28 - INFO - To start the default build, run: bitbake -c build dave-image-minimal builder@ddc9da079514:/build$
and then it is possible to run a typical bitbake command, like:
builder@ddc9da079514:/build$ export DL_DIR=./downloads builder@ddc9da079514:/build$ bitbake memtester Loading cache: 100% |#########################################################################################################################################################| Time: 0:00:13 Loaded 5981 entries from dependency cache. Parsing recipes: 100% |#######################################################################################################################################################| Time: 0:00:01 Parsing of 3896 .bb files complete (3894 cached, 2 parsed). 5983 targets, 633 skipped, 3 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "2.8.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "aarch64-poky-linux" MACHINE = "desk-mx93-rev1" DISTRO = "fsl-imx-wayland" DISTRO_VERSION = "6.6-scarthgap" TUNE_FEATURES = "aarch64 armv8a crc crypto" TARGET_FPU = "" meta-arm meta-arm-toolchain = "scarthgap:950a4afce46a359def2958bd9ae33fc08ff9bb0d" meta-clang = "scarthgap:2b7433611d80f6d0ee1b04156fa91fc73d3c2665" meta-dave = "scarthgap:988f0475300d2f5ff4cea89df5eebfb16e8ad28d" meta-desk-mx-app meta-desk-mx-bsp meta-desk-mx-distro = "HEAD:20fb3dbd8a525a546dbc7e72720c510a2ddde43f" meta-flutter meta-flutter-apps = "scarthgap:545eda504de8d9e7b7d2911898e891cb016b6693" meta-freescale = "scarthgap:0627128b341cfb2bef7a0832ce8cac0ce1127f13" meta-freescale-3rdparty = "scarthgap:6c063450d464eb2f380443c7d9af1b94ce9b9d75" meta-freescale-distro = "scarthgap:b9d6a5d9931922558046d230c1f5f4ef6ee72345" meta-imx-bsp meta-imx-ml meta-imx-sdk meta-imx-v2x = "HEAD:e83d4402acde050d2b2761995761c81c797b5b03" meta-nxp-matter-baseline meta-nxp-openthread = "HEAD:f58365ec75a5768ff3e8e8bcd64f237738c93160" meta-nxp-demo-experience = "HEAD:e8e646e22b1f926aac83bb7ad522efa9cd8ccc45" meta-filesystems meta-gnome meta-multimedia meta-networking meta-oe meta-python = "scarthgap:72018ca1b1a471226917e8246e8bbf9a374ccf97" meta-qt6 = "6.8:586a6cb5aec755803a3be3cec359baafe89d6432" meta-parsec meta-tpm = "scarthgap:459d837338ca230254baa2994f870bf6eb9d0139" meta-timesys = "scarthgap:4dc3f4bdfde4a86904b6e1a3d58df4696e7a63fa" meta-virtualization = "scarthgap:6f3c1d8f90947408a6587be222fec575a1ca5195" meta meta-poky = "scarthgap:200d12b6a58ad961d60a7774ca0f7a9d29498724" Checking sstate mirror object availability: 100% |############################################################################################################################| Time: 0:00:48 Sstate summary: Wanted 533 Local 0 Mirrors 523 Missed 10 Current 33 (98% match, 98% complete) NOTE: Executing Tasks ... ...
How to create a bootable SD card[edit | edit source]
This article shows how to (re)create the bootable SD card, from the binary images produced by the DESK-MX-L Yocto build, using a standard SD image flasher like balenaEtcher
The process is relatively straightforward: it consists of writing the WIC file of interest generated by Yocto onto the SD card. The following instruction explains how to use balenaEtcher on a Windows host. The procedure is similar when working with a Linux host.
- download the desired binary image to flash (
*.wicor*.wic.bz2) from the mirror binary server selecting the proper DESK-MX8M-L release- among the binaries made available in the mirror there are several
*.wic.bz2files for the available releases. In particular, there is thedave-image-devel-desk-mx8mp.wic.bz2(for ORCA) ordave-image-devel-desk-mx8mm.wic.bz2(for MITO8M Mini) files. This image is the one used to program the microSD card delivered along with the evaluation kit.
- among the binaries made available in the mirror there are several
- connect the microSD card to the PC Host
- open balenaEtcher tool
- once the tool is open:
- select the binary to flash by clicking on "Flash from file"
- select the microSD to flash by clicking on "Select target"
- flash the uSD by clicking o "Flash".
SD card structure[edit | edit source]
The created SD card has the following structure:
- raw sectors for the bootloader storage: tipically this is a 8MB raw part where storing the bootloader binaries (like
imx8mp_flash.bin) for the bootrom startup FAT32first partition: this will be mapped to the/dev/mmcblk1p1device in Linux- usually this partition contains the Linux kernel binary and the device tree blob
- the splash screen image is stored in this partition too for a splash image showing during U-Boot startup
ext4second partition: this will be mapped to the/dev/mmcblk1p2device in Linux- this partition contains the Linux root file system
Creating the SD card from binary artifacts[edit | edit source]
Even if the overall binary artifacts have been created by the Yocto build, it is highly discouraged to manually create the SD card starting from them.
The Yocto build take care about the overall binary consistance (like kernel modules and so on) avoiding to mistmatch different version.
Moreover, the SD card is intended to be used during the development process and not for the production phase (where other deployment specifications and details have to be taken into account).
DESK-MX8M-L/Development/Hello World example DESK-MX8M-L/Development/Package management with apt-get
Deployment[edit | edit source]
Boot from different storage devices[edit | edit source]
ORCA and MITO 8M Mini SOMs are designed to support different bootable storage devices.
The i.MX8M Plus and i.MX8M Mini/Nano SoCs support different boot modes. DAVE Embedded Systems SOM designs simplify and provide the following boot mode options:
- MITO 8M Mini boot modes
- ORCA boot modes
The usage of NOR flash memories, NAND devices and eMMC devices can be chosen with regard to the reliability. This is especially true when the NAND flash is used as the boot device. Several techniques such as wear leveling and bad block management have to be implemented to achieve an acceptable reliability.
Please check the ORCA or MITO 8M Mini P/N composition page for the storage devices available on the SOMs or contact our technical support for more information.
Standalone boot[edit | edit source]
Introduction[edit | edit source]
This document was written and tested with the software/hardware combination described in the history table above. However, it contains general concepts that can be adapted on any DAVE Embedded Systems' Linux platform.
|
The following programming examples are intended for laboratory usage or for preliminary deployment strategy. |
Generally speaking, it is possible to configure a <SOM> to boot in standalone mode, without the need of a system microSD card or an NFS server, for example, with three options:
- booting with NOR and NAND internal storage
- in this configuration the primary boot images will be fetched from NOR flash storage, while the root file system will be fetched from NAND flash
- booting with NAND only
- in this configuration the whole system will boot without the need of a NOR flash storage, all images and the root file system will be fetched from NAND flash
- booting with eMMC only
- in this configuration the whole system will boot without the need of a NOR/NAND flashes storage, all images and the root file system will be fetched from the eMMC flash
|
In the following paragraphs, we will take into account a real case using an embedded eMMC mounted in the ORCA or MITO 8M Mini SOMs |
Program boot images into eMMC[edit | edit source]
The flash.bin Boot Image can be created following the instructions described in the Building Boot Image wiki page, fir example:
Boot binary[edit | edit source]
Load Boot binary form a tftp server:
load='tftpboot ${loadaddr} ${serverip}:${binfile}'
binfile='desk-mx8m-l/imx8mp_flash.bin'
u-boot=> run load
Using ethernet@30be0000 device
TFTP from server 192.168.0.13; our IP address is 192.168.0.90
Filename 'desk-mx8m-l/imx8mp_flash.bin'.
Load address: 0x40480000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
########
1.8 MiB/s
done
Bytes transferred = 1304608 (13e820 hex)
u-boot=>
or load Boot binary form an SD card:
Hit ENTER within 1 seconds to stop autoboot
u-boot=> fatload mmc 1:1 ${loadaddr} imx8mp_flash.bin
1304608 bytes read in 63 ms (21.4 MiB/s)
u-boot=>
In case of MITO 8M Mini, the name of binary file to upload is imx8mm_flash.bin
ORCA SOM[edit | edit source]
Flash the Boot image[edit | edit source]
Update to the latest Boot image version allows usage of u-boot environment variables available.
mmc_update=mmc dev 2; setexpr blocks ${filesize} / 0x200; setexpr blocks ${blocks} + 1; mmc write ${loadaddr} 40 ${blocks}
u-boot=> run mmc_update switch to partitions #0, OK mmc2(part 0) is current device (eMMC) MMC write: dev # 2, block # 64, count 2809 ... 2809 blocks written: OK u-boot=>
MITO 8M Mini[edit | edit source]
Flash the Boot image[edit | edit source]
mmc_update=mmc dev 0; setexpr blocks ${filesize} / 0x200; setexpr blocks ${blocks} + 1; mmc write ${loadaddr} 42 ${blocks}
u-boot=> run mmc_update switch to partitions #0, OK mmc0(part 0) is current device (eMMC) MMC write: dev # 0, block # 66, count 2748 ... 2748 blocks written: OK u-boot=>
Configuring the u-boot environment manually[edit | edit source]
Once the Boot Image has been correctly programmed, start the system from eMMC in order to configure/program the u-boot environment variables for a correct boot sequence. U-Boot environment is already set.
kernel image and device tree[edit | edit source]
The following environment variables has to be set (or at least checked) in u-boot; depending on the formatted eMMC partition (FAT32 or ext4), the vars has to be properly modified:
FAT32[edit | edit source]
setenv mmc_loadk 'fatload mmc ${mmcdev}:1 ${loadaddr} ${image}'
setenv mmc_loadfdt 'fatload mmc ${mmcdev}:1 ${fdt_addr} ${fdt}'
ext4[edit | edit source]
setenv mmc_loadk 'ext4load mmc ${mmcdev}:1 ${loadaddr} ${image}'
setenv mmc_loadfdt 'ext4load mmc ${mmcdev}:1 ${fdt_addr} ${fdt}'
Then, u-boot uses the previously listed commands for reading the binary images and starting the Linux file system from the eMMC part 2 (which is reserved for the root-file system storage):
setenv mmcboot 'run mmcargs addcons addmisc; if run mmc_loadk; then if run mmc_loadfdt; then if run configid_fixupfdt; then booti ${loadaddr} - ${fdtaddr}; fi; fi; fi'
setenv mmcargs 'setenv bootargs root=${mmcroot}'
setenv normalboot mmcboot
boot vars[edit | edit source]
The following environment variables should be configured for u-boot properly identify the boot files, e.g.
setenv image Image
ORCA SOM[edit | edit source]
The platform dependent variable have to be properly configured:
- the proper device tree binary
setenv fdt imx8mp-mito8mplus-cb1001.dtb
- the eMMC mmcblk device
setenv mmcroot '/dev/mmcblk2p2 rootwait rw'
then save the environment and reboot the system to apply the new configuration:
u-boot=> saveenv Saving Environment to MMC... Writing to MMC(2)... done u-boot=> reset
MITO 8M Mini[edit | edit source]
The platform dependent variable have to be properly configured:
- the proper device tree binary
setenv fdt imx8mm-mito8mmini-cb100a.dtb
- the eMMC mmcblk device
setenv mmcroot '/dev/mmcblk0p2 rootwait rw'
then save the environment and reboot the system to apply the new configuration:
u-boot=> saveenv Saving Environment to MMC... Writing to MMC(0)... done u-boot=> reset
Program root file system into eMMC[edit | edit source]
- boot the system via SD or NFS as described in the e Booting from NFS
- eMMC device has to be partitioned and properly formatted choosing the
file systemfor each partition - an example of SD partitioning script is the following one:
|
In the following examples, |
Partitioning[edit | edit source]
#!/bin/sh
node=$1
# partition size in MB
BOOTLOAD_RESERVE=8
BOOT_SIZE=2048
RFS_SIZE=4096
# create the SDCARD partition
part=""
echo ${node} | grep mmcblk > /dev/null
if [ "$?" -eq "0" ]; then
part="p"
fi
# print the SD total capacity
total_size=`sfdisk -s ${node}`
total_size=`expr ${total_size} / 1024`
echo SD total size: ${total_size}KB
# calculate partition sizes
boot_start=`expr ${BOOTLOAD_RESERVE} \\* 1024 \\* 1024 / 512`
boot_size=`expr ${BOOT_SIZE} \\* 1024 \\* 1024 / 512`
rfs_start=`expr ${boot_size} + ${boot_start}`
rfs_size=`expr ${RFS_SIZE} \\* 1024 \\* 1024 / 512`
umount ${node}${part}1 > /dev/null 2>&1
umount ${node}${part}2 > /dev/null 2>&1
# call sfdisk to create partition table
{ echo ${boot_start},${boot_size},83,-; echo ${rfs_start},${rfs_size},83,-; } | sfdisk --force ${node}
# format the SDCARD partition
echo "formatting boot"
mkfs.vfat ${node}${part}1 -n boot
echo "formatting rfs"
mkfs.ext4 -F ${node}${part}2 -Lrfs
E.g.
root@desk-mx8mp:~# ./emmc_partition.sh /dev/mmcblk2
SD total size: 7457KB
[ 238.978157] mmcblk2: p1 p2 p3
Checking that no-one is using this disk right now ... OK
Disk /dev/mmcblk2: 7.29 GiB, 7820083200 bytes, 15273600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xbe0f0cf6
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/mmcblk2p1 32768 524288 491521 240M c W95 FAT32 (LBA)
/dev/mmcblk2p2 524289 12058623 11534335 5.5G 83 Linux
/dev/mmcblk2p3 12058624 15273599 3214976 1.5G 83 Linux
>>> Created a new DOS disklabel with disk identifier 0x7b310a69.
/dev/mmcblk2p1: Created a new partition 1 of type 'Linux' and of size 2 GiB.
/dev/mmcblk2p2: Created a new partition 2 of type 'Linux' and of size 4 GiB.
/dev/mmcblk2p3: Done.
New situation:
Disklabel type: dos
Disk identifier: 0x7b310a69
Device Boot Start End Sectors Size Id Type
/dev/mmcblk2p1 16384 4210687 4194304 2G 83 Linux
/dev/mmcblk2p2 4210688 12599295 8388608 4G 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
[ 239.419641] mmcblk2: p1 p2
Syncing disks.
formatting boot
mkfs.fat 4.2 (2021-01-31)
mkfs.fat: Warning: lowercase labels might not work properly on some systems
formatting rfs
mke2fs 1.45.3 (14-Jul-2019)
Discarding device blocks: done
Creating filesystem with 1048576 4k blocks and 262144 inodes
Filesystem UUID: aacf8195-ddbd-4fdc-a83e-99f57659367e
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
root@desk-mx8mp:~#
- create a mount point and mount the first partition
mkdir -p /mnt/emmc mount /dev/mmcblk2p1 /mnt/emmc
- copy kernel and dtb files from SD card
root@desk-mx8mp:~# mount /dev/mmcblk2p1 /mnt/emmc root@desk-mx8mp:~# mkdir -p /mnt/sd root@desk-mx8mp:~# mount /dev/mmcblk1p1 /mnt/sd root@desk-mx8mp:~# cp /mnt/sd/* /mnt/emmc/ root@desk-mx8mp:~# umount /mnt/emmc
- now mount the EXT4 volume in the temporary directory
E.g.:
root@desk-mx8mp:~# mount /dev/mmcblk2p2 /mnt/emmc root@desk-mx8mp:~# cd /mnt/emmc/ root@desk-mx8mp:/mnt/emmc#
- you can now extract the root file system into that directory
tar xvjf dave-image-devel-desk-mx8mp.tar.bz2
- finally, you need to cleanly umount and safely reboot or turn off the system.
root@desk-mx8mp:/mnt/emmc# cd root@desk-mx8mp:~# umount /mnt/emmc root@desk-mx8mp:~# reboot
Boot configuration[edit | edit source]
Once the system has been completely programmed, select the eMMC boot mode, reboot the system and configure U-Boot to apply for using the new configuration, i.e. to boot from internal storage:
u-boot=> setenv bootcmd run mmcboot u-boot=> saveenv u-boot=> reset
Automatically Boot[edit | edit source]
In DESK-MX8M-L-4.0.0, U-Boot default envirounment has already all command, and variables, to perform boot from eMMC, without apply any manual change to U-Boot environment. If we load binaries from boot partition of uSD to boot partition of eMMC, and if boot partition of eMMC is formatting in FAT32, well, we have the following boot.
U-Boot SPL 2022.04-desk-mx8m-l-4.0.0 (Jul 21 2023 - 14:01:51 +0200)
WARNING: SOM ConfigID on block 0 is UNLOCKED
SOM ConfigID#: 00000005
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x8000, pagesize 0x200, ivt offset 0x0
WARNING: CB ConfigID on block 0 is UNLOCKED
Failed to find node!, err: -1!
Failed to find node!, err: -1!
NOTICE: BL31: v2.6(release):desk-mx8m-l-4.0.0-rc2-0-g2b811b9b8
NOTICE: BL31: Built : 19:00:25, Jun 29 2023
U-Boot 2022.04-desk-mx8m-l-4.0.0 (Jul 21 2023 - 14:01:51 +0200), Build: desk-mx8m-l-4.0.0
CPU: Freescale i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 41C
Reset cause: POR
Model: DAVE i.MX8MPlus on SBC ORCA Rev A
DRAM: 6 GiB
Relocating to fff05000, new gd at fdbffda0, sp at fdbf5350
WARNING: CB ConfigID on block 0 is UNLOCKED
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x50]
SNK.Power1.5 on CC2
PDO 0: type 0, 5000 mV, 500 mA [RSHUDE]
PDO 1: type 0, 9000 mV, 2180 mA []
PDO 2: type 0, 12000 mV, 1880 mA []
PDO 3: type 0, 15000 mV, 1510 mA []
PDO 4: type 0, 20000 mV, 1130 mA []
PDO 5: type 3, undefined
Requesting PDO 2: 12000 mV, 1880 mA
Source accept request
PD source ready!
tcpc_pd_receive_message: Polling ALERT register, TCPC_ALERT_RX_STATUS bit failed, ret = -62
TCPC: Vendor ID [0x0], Product ID [0x202], Addr [I2C2 0x3d]
Core: 175 devices, 20 uclasses, devicetree: fit
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
Fail to setup video link
In: serial
Out: serial
Err: serial
BuildInfo:
- ATF 2b811b9
WARNING: SOM ConfigID on block 0 is UNLOCKED
SOM ConfigID#: 00000005
SOM UniqueID#: 1e261000:55aa2564:469660d3:d0c2b602
CB ConfigID#: 00001008
CB UniqueID#: b7000035:c48de62d
WARNING: SOM ConfigID on block 0 is UNLOCKED
SOM: MX8MP-Mito8MPlus on SBC-ORCA HDMI + LVDStoHDMI
switch to partitions #0, OK
mmc2(part 0) is current device (eMMC)
flash target is MMC:2
Net:
Warning: ethernet@30bf0000 (eth1) using random MAC address - ea:ec:19:9a:0a:3e
Warning: ethernet@30be0000 (eth0) using random MAC address - ba:28:4b:b7:0d:e5
eth0: ethernet@30be0000, eth1: ethernet@30bf0000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 2 ��� 1 ��� 0
switch to partitions #0, OK
mmc2(part 0) is current device (eMMC)
Failed to load 'boot.scr'
31351296 bytes read in 122 ms (245.1 MiB/s)
Booting from mmc ...
61121 bytes read in 18 ms (3.2 MiB/s)
FDT: override 'som_uniqueid' with '1e261000:55aa2564:469660d3:d0c2b602'
FDT: override 'cb_uniqueid' with 'b7000035:c48de62d'
Moving Image from 0x40480000 to 0x40600000, end=42480000
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
Using Device Tree in place at 0000000043000000, end 0000000043011fff
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.15.71-desk-mx8m-l-4.0.0+g50e18a0c8871 (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Thu Jul 20 10:56:49 UTC 2023
[ 0.000000] Machine model: i.MX8MPlus Mito8MPlus on SBC Orca - adapter LVDS HDMI
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000c4000000, size 960 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000094300000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vdev0buffer@94300000, compatible id shared-dma-pool
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000001bfffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x1bf43a800-0x1bf43cfff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal [mem 0x0000000100000000-0x00000001bfffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x00000000557fffff]
[ 0.000000] node 0: [mem 0x0000000055800000-0x0000000055ffffff]
[ 0.000000] node 0: [mem 0x0000000056000000-0x00000000923fffff]
[ 0.000000] node 0: [mem 0x0000000092400000-0x00000000a43fffff]
[ 0.000000] node 0: [mem 0x00000000a4400000-0x00000001bfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000001bfffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.2
[ 0.000000] percpu: Embedded 20 pages/cpu s41368 r8192 d32360 u81920
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1548288
[ 0.000000] Policy zone: Normal
[ 0.000000] Kernel command line: console=ttymxc1,115200 root=/dev/mmcblk2p2 rootwait rw
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0x00000000c0000000-0x00000000c4000000] (64MB)
[ 0.000000] Memory: 4784748K/6291456K available (18688K kernel code, 1560K rwdata, 7244K rodata, 3008K init, 543K bss, 523668K reserved, 983040K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 160 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[ 0.000000] ITS: No ITS available, not enabling LPIs
[ 0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[ 0.000000] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[ 0.000455] Console: colour dummy device 80x25
[ 0.000521] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[ 0.000537] pid_max: default: 32768 minimum: 301
[ 0.000595] LSM: Security Framework initializing
[ 0.000691] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.000720] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.002080] rcu: Hierarchical SRCU implementation.
[ 0.003321] EFI services will not be available.
[ 0.003519] smp: Bringing up secondary CPUs ...
[ 0.003941] Detected VIPT I-cache on CPU1
[ 0.003968] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[ 0.004002] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.004467] Detected VIPT I-cache on CPU2
[ 0.004486] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[ 0.004506] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.004922] Detected VIPT I-cache on CPU3
[ 0.004943] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[ 0.004960] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.005027] smp: Brought up 1 node, 4 CPUs
[ 0.005053] SMP: Total of 4 processors activated.
[ 0.005061] CPU features: detected: 32-bit EL0 Support
[ 0.005065] CPU features: detected: 32-bit EL1 Support
[ 0.005075] CPU features: detected: CRC32 instructions
[ 0.012530] CPU: All CPU(s) started at EL2
[ 0.012565] alternatives: patching kernel code
[ 0.014270] devtmpfs: initialized
[ 0.022591] KASLR disabled due to lack of seed
[ 0.022732] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.022749] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.048412] pinctrl core: initialized pinctrl subsystem
[ 0.048904] DMI not present or invalid.
[ 0.049473] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.054524] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[ 0.055000] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.055563] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.055655] audit: initializing netlink subsys (disabled)
[ 0.055855] audit: type=2000 audit(0.052:1): state=initialized audit_enabled=0 res=1
[ 0.056416] thermal_sys: Registered thermal governor 'step_wise'
[ 0.056421] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.056702] cpuidle: using governor menu
[ 0.056887] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.056968] ASID allocator initialised with 65536 entries
[ 0.058077] Serial: AMBA PL011 UART driver
[ 0.058136] imx mu driver is registered.
[ 0.058158] imx rpmsg driver is registered.
[ 0.069095] imx8mp-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver
[ 0.078570] platform 32c00000.bus:ldb@32ec005c: Fixing up cyclic dependency with 32e90000.lcd-controller
[ 0.085104] platform 32fd8000.hdmi: Fixing up cyclic dependency with 32fc6000.lcd-controller
[ 0.107321] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.107338] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.107345] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.107353] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.108512] cryptd: max_cpu_qlen set to 1000
[ 0.111530] ACPI: Interpreter disabled.
[ 0.112295] iommu: Default domain type: Translated
[ 0.112303] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.112463] vgaarb: loaded
[ 0.112735] SCSI subsystem initialized
[ 0.113036] usbcore: registered new interface driver usbfs
[ 0.113072] usbcore: registered new interface driver hub
[ 0.113103] usbcore: registered new device driver usb
[ 0.114239] mc: Linux media interface: v0.10
[ 0.114262] videodev: Linux video capture interface: v2.00
[ 0.114335] pps_core: LinuxPPS API ver. 1 registered
[ 0.114341] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.114359] PTP clock support registered
[ 0.114530] EDAC MC: Ver: 3.0.0
[ 0.115626] FPGA manager framework
[ 0.115704] Advanced Linux Sound Architecture Driver Initialized.
[ 0.116197] Bluetooth: Core ver 2.22
[ 0.116223] NET: Registered PF_BLUETOOTH protocol family
[ 0.116232] Bluetooth: HCI device and connection manager initialized
[ 0.116241] Bluetooth: HCI socket layer initialized
[ 0.116248] Bluetooth: L2CAP socket layer initialized
[ 0.116263] Bluetooth: SCO socket layer initialized
[ 0.117028] clocksource: Switched to clocksource arch_sys_counter
[ 0.117165] VFS: Disk quotas dquot_6.6.0
[ 0.117306] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.117453] pnp: PnP ACPI: disabled
[ 0.123483] NET: Registered PF_INET protocol family
[ 0.123725] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.126613] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.126723] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.126741] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.127150] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[ 0.128017] TCP: Hash tables configured (established 65536 bind 65536)
[ 0.128120] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.128275] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.128539] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.128966] RPC: Registered named UNIX socket transport module.
[ 0.128974] RPC: Registered udp transport module.
[ 0.128978] RPC: Registered tcp transport module.
[ 0.128985] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.129696] PCI: CLS 0 bytes, default 64
[ 0.130342] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.131129] kvm [1]: IPA Size Limit: 40 bits
[ 0.132769] kvm [1]: GICv3: no GICV resource entry
[ 0.132776] kvm [1]: disabling GICv2 emulation
[ 0.132790] kvm [1]: GIC system register CPU interface enabled
[ 0.132872] kvm [1]: vgic interrupt IRQ9
[ 0.132980] kvm [1]: Hyp mode initialized successfully
[ 0.136270] Initialise system trusted keyrings
[ 0.136444] workingset: timestamp_bits=42 max_order=21 bucket_order=0
[ 0.142443] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.143021] NFS: Registering the id_resolver key type
[ 0.143051] Key type id_resolver registered
[ 0.143058] Key type id_legacy registered
[ 0.143128] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.143135] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.143155] jffs2: version 2.2. (NAND) � 2001-2006 Red Hat, Inc.
[ 0.143474] 9p: Installing v9fs 9p2000 file system support
[ 0.179192] Key type asymmetric registered
[ 0.179201] Asymmetric key parser 'x509' registered
[ 0.179249] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[ 0.179256] io scheduler mq-deadline registered
[ 0.179265] io scheduler kyber registered
[ 0.186321] EINJ: ACPI disabled.
[ 0.196940] imx-sdma 30bd0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
[ 0.196961] imx-sdma 30bd0000.dma-controller: Falling back to sysfs fallback for: imx/sdma/sdma-imx7d.bin
[ 0.198702] mxs-dma 33000000.dma-apbh: initialized
[ 0.200393] SoC: i.MX8MP revision 1.1
[ 0.200971] Bus freq driver module loaded
[ 0.207293] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.209656] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 31, base_baud = 5000000) is a IMX
[ 0.210132] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 32, base_baud = 5000000) is a IMX
[ 0.210528] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 33, base_baud = 1500000) is a IMX
[ 1.300270] printk: console [ttymxc1] enabled
[ 1.319984] loop: module loaded
[ 1.324570] megasas: 07.717.02.00-rc1
[ 1.329980] imx ahci driver is registered.
[ 1.335857] SPI driver spidev has no spi_device_id for spidev
[ 1.341618] SPI driver spidev has no spi_device_id for dave,sbcx-exp
[ 1.352148] tun: Universal TUN/TAP device driver, 1.6
[ 1.357386] CAN device driver interface
[ 1.362621] thunder_xcv, ver 1.0
[ 1.365889] thunder_bgx, ver 1.0
[ 1.369150] nicpf, ver 1.0
[ 1.374410] hclge is initializing
[ 1.377750] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[ 1.384981] hns3: Copyright (c) 2017 Huawei Corporation.
[ 1.390352] e1000: Intel(R) PRO/1000 Network Driver
[ 1.395238] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 1.401033] e1000e: Intel(R) PRO/1000 Network Driver
[ 1.406003] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.411973] igb: Intel(R) Gigabit Ethernet Network Driver
[ 1.417378] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.422983] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 1.429261] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 1.435379] sky2: driver version 1.30
[ 1.439749] usbcore: registered new interface driver r8152
[ 1.445496] VFIO - User Level meta-driver version: 0.3
[ 1.456312] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.462921] ehci-pci: EHCI PCI platform driver
[ 1.467410] ehci-platform: EHCI generic platform driver
[ 1.472880] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.479085] ohci-pci: OHCI PCI platform driver
[ 1.483574] ohci-platform: OHCI generic platform driver
[ 1.489742] usbcore: registered new interface driver uas
[ 1.495111] usbcore: registered new interface driver usb-storage
[ 1.501191] usbcore: registered new interface driver usbserial_generic
[ 1.507744] usbserial: USB Serial support registered for generic
[ 1.513781] usbcore: registered new interface driver ftdi_sio
[ 1.519546] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 1.526892] usbcore: registered new interface driver usb_serial_simple
[ 1.533437] usbserial: USB Serial support registered for carelink
[ 1.539551] usbserial: USB Serial support registered for zio
[ 1.545231] usbserial: USB Serial support registered for funsoft
[ 1.551259] usbserial: USB Serial support registered for flashloader
[ 1.557633] usbserial: USB Serial support registered for google
[ 1.563575] usbserial: USB Serial support registered for libtransistor
[ 1.570124] usbserial: USB Serial support registered for vivopay
[ 1.576154] usbserial: USB Serial support registered for moto_modem
[ 1.582442] usbserial: USB Serial support registered for motorola_tetra
[ 1.589080] usbserial: USB Serial support registered for nokia
[ 1.594935] usbserial: USB Serial support registered for novatel_gps
[ 1.601311] usbserial: USB Serial support registered for hp4x
[ 1.607083] usbserial: USB Serial support registered for suunto
[ 1.613029] usbserial: USB Serial support registered for siemens_mpi
[ 1.619419] usbcore: registered new interface driver usb_ehset_test
[ 1.630449] snvs_rtc 30370000.snvs:snvs-rtc-lp: registered as rtc0
[ 1.636668] snvs_rtc 30370000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01T00:00:00 UTC (0)
[ 1.645868] i2c_dev: i2c /dev entries driver
[ 1.652315] Driver for 1-wire Dallas network protocol.
[ 1.660853] Bluetooth: HCI UART driver ver 2.3
[ 1.665327] Bluetooth: HCI UART protocol H4 registered
[ 1.670479] Bluetooth: HCI UART protocol BCSP registered
[ 1.675814] Bluetooth: HCI UART protocol LL registered
[ 1.680960] Bluetooth: HCI UART protocol ATH3K registered
[ 1.686382] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 1.692757] Bluetooth: HCI UART protocol Broadcom registered
[ 1.698445] Bluetooth: HCI UART protocol QCA registered
[ 1.703906] EDAC MC: ECC not enabled
[ 1.708995] sdhci: Secure Digital Host Controller Interface driver
[ 1.715197] sdhci: Copyright(c) Pierre Ossman
[ 1.720424] Synopsys Designware Multimedia Card Interface Driver
[ 1.727260] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.735386] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.742377] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 1.749315] usbcore: registered new interface driver usbhid
[ 1.754895] usbhid: USB HID core driver
[ 1.764404] cs_system_cfg: CoreSight Configuration manager initialised
[ 1.766495] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA
[ 1.775104] Galcore version 6.4.3.p4.398061
[ 1.870047] mmc2: new HS400 Enhanced strobe MMC card at address 0001
[ 1.877250] mmcblk2: mmc2:0001 DG4008 7.28 GiB
[ 1.882961] mmcblk2: p1 p2
[ 1.886234] mmcblk2boot0: mmc2:0001 DG4008 4.00 MiB
[ 1.892847] mmcblk2boot1: mmc2:0001 DG4008 4.00 MiB
[ 1.894333] [drm] Initialized vivante 1.0.0 20170808 for 40000000.mix_gpu_ml on minor 0
[ 1.899316] mmcblk2rpmb: mmc2:0001 DG4008 4.00 MiB, chardev (234:0)
[ 1.907266] hantrodec 0 : module inserted. Major = 510
[ 1.917734] hantrodec 1 : module inserted. Major = 510
[ 1.924313] hantroenc: HW at base <0000000038320000> with ID <0x80006200>
[ 1.931242] hx280enc: module inserted. Major <509>
[ 1.939660] NET: Registered PF_LLC protocol family
[ 1.944964] NET: Registered PF_INET6 protocol family
[ 1.952488] Segment Routing with IPv6
[ 1.956201] In-situ OAM (IOAM) with IPv6
[ 1.960171] NET: Registered PF_PACKET protocol family
[ 1.965257] can: controller area network core
[ 1.969654] NET: Registered PF_CAN protocol family
[ 1.974469] can: raw protocol
[ 1.977450] can: broadcast manager protocol
[ 1.981649] can: netlink gateway - max_hops=1
[ 1.987084] Bluetooth: RFCOMM TTY layer initialized
[ 1.992013] Bluetooth: RFCOMM socket layer initialized
[ 1.997195] Bluetooth: RFCOMM ver 1.11
[ 2.000951] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.006270] Bluetooth: BNEP filters: protocol multicast
[ 2.011507] Bluetooth: BNEP socket layer initialized
[ 2.016479] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 2.022411] Bluetooth: HIDP socket layer initialized
[ 2.028396] 8021q: 802.1Q VLAN Support v1.8
[ 2.032616] lib80211: common routines for IEEE802.11 drivers
[ 2.038736] 9pnet: Installing 9P2000 support
[ 2.043039] tsn generic netlink module v1 init...
[ 2.047848] Key type dns_resolver registered
[ 2.052989] Loading compiled-in X.509 certificates
[ 2.082252] regulator-se050-en GPIO handle specifies active low - ignored
[ 2.156940] nxp-pca9450 0-0025: pca9450bc probed.
[ 2.161765] i2c i2c-0: IMX I2C adapter registered
[ 2.167865] i2c 1-003c: Fixing up cyclic dependency with 32e40000.csi
[ 2.174632] ov5640 1-003c: supply DOVDD not found, using dummy regulator
[ 2.181433] ov5640 1-003c: supply AVDD not found, using dummy regulator
[ 2.188103] ov5640 1-003c: supply DVDD not found, using dummy regulator
[ 2.197081] i2c i2c-1: IMX I2C adapter registered
[ 2.202907] i2c 2-003c: Fixing up cyclic dependency with 32e50000.csi
[ 2.209662] ov5640 2-003c: supply DOVDD not found, using dummy regulator
[ 2.216460] ov5640 2-003c: supply AVDD not found, using dummy regulator
[ 2.223129] ov5640 2-003c: supply DVDD not found, using dummy regulator
[ 2.235890] i2c i2c-2: IMX I2C adapter registered
[ 2.241755] i2c 5-004c: Fixing up cyclic dependency with 32c00000.bus:ldb@32ec005c
[ 2.332690] i2c i2c-5: IMX I2C adapter registered
[ 2.338356] imx8mq-usb-phy 381f0040.usb-phy: supply vbus not found, using dummy regulator
[ 2.346880] imx8mq-usb-phy 382f0040.usb-phy: supply vbus not found, using dummy regulator
[ 2.357420] imx6q-pcie 33800000.pcie: supply epdev_on not found, using dummy regulator
[ 2.365705] imx6q-pcie 33800000.pcie: EXT REF_CLK is used!.
[ 2.371906] imx6q-pcie 33800000.pcie: PCIe PHY PLL clock is locked.
[ 2.378876] pps pps0: new PPS source ptp0
[ 2.391630] fec 30be0000.ethernet eth0: registered PHC device 0
[ 2.398472] imx-dwmac 30bf0000.ethernet: IRQ eth_lpi not found
[ 2.405484] imx-dwmac 30bf0000.ethernet: User ID: 0x10, Synopsys ID: 0x51
[ 2.409393] imx6q-pcie 33800000.pcie: PCIe PLL is locked.
[ 2.412292] imx-dwmac 30bf0000.ethernet: DWMAC4/5
[ 2.417733] imx6q-pcie 33800000.pcie: iATU unroll: enabled
[ 2.422479] imx-dwmac 30bf0000.ethernet: DMA HW capability register supported
[ 2.427961] imx6q-pcie 33800000.pcie: Detected iATU regions: 4 outbound, 4 inbound
[ 2.435097] imx-dwmac 30bf0000.ethernet: RX Checksum Offload Engine supported
[ 2.442672] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges:
[ 2.449803] imx-dwmac 30bf0000.ethernet: TX Checksum insertion supported
[ 2.457039] imx6q-pcie 33800000.pcie: No bus range found for /soc@0/pcie@33800000, using [bus 00-ff]
[ 2.463725] imx-dwmac 30bf0000.ethernet: Wake-Up On Lan supported
[ 2.473059] imx6q-pcie 33800000.pcie: IO 0x001ff80000..0x001ff8ffff -> 0x0000000000
[ 2.479174] imx-dwmac 30bf0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 2.487316] imx6q-pcie 33800000.pcie: MEM 0x0018000000..0x001fefffff -> 0x0018000000
[ 2.494963] imx-dwmac 30bf0000.ethernet: Enabled L3L4 Flow TC (entries=8)
[ 2.503218] imx6q-pcie 33800000.pcie: iATU unroll: enabled
[ 2.509928] imx-dwmac 30bf0000.ethernet: Enabled RFS Flow TC (entries=8)
[ 2.515416] imx6q-pcie 33800000.pcie: Detected iATU regions: 4 outbound, 4 inbound
[ 2.522157] imx-dwmac 30bf0000.ethernet: Enabling HW TC (entries=256, max_off=256)
[ 2.537277] imx-dwmac 30bf0000.ethernet: Using 34 bits DMA width
[ 2.547844] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 2.553374] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[ 2.561377] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x0000002001010010
[ 2.570813] xhci-hcd xhci-hcd.1.auto: irq 77, io mem 0x38100000
[ 2.576863] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 2.582368] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[ 2.590040] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 2.597389] hub 1-0:1.0: USB hub found
[ 2.601173] hub 1-0:1.0: 1 port detected
[ 2.605413] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.614567] hub 2-0:1.0: USB hub found
[ 2.618351] hub 2-0:1.0: 1 port detected
[ 2.621648] imx6q-pcie 33800000.pcie: Link up
[ 2.625148] gpio-42 (onewire): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[ 2.637329] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 7 mkt segment 2 supported-hw 0x80 0x4
[ 2.647021] Hot alarm is canceled. GPU3D clock will return to 64/64
[ 2.657065] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[ 2.657604] mxc-mipi-csi2-sam 32e40000.csi: supply mipi-phy not found, using dummy regulator
[ 2.663612] w1_master_driver w1_bus_master1: Attaching one wire slave 2d.000035c48de6 crc b7
[ 2.670851] : mipi_csis_imx8mp_phy_reset, No remote pad found!
[ 2.684918] mxc-mipi-csi2-sam 32e40000.csi: lanes: 2, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 500000000
[ 2.693135] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
[ 2.695652] mxc-mipi-csi2-sam 32e50000.csi: supply mipi-phy not found, using dummy regulator
[ 2.710529] : mipi_csis_imx8mp_phy_reset, No remote pad found!
[ 2.716428] mxc-mipi-csi2-sam 32e50000.csi: lanes: 2, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 266000000
[ 2.725040] imx6q-pcie 33800000.pcie: Link up
[ 2.727861] isi-capture 32e00000.isi:cap_device: deferring 32e00000.isi:cap_device device registration
[ 2.730627] imx6q-pcie 33800000.pcie: Link up, Gen2
[ 2.745627] mxc-isi 32e00000.isi: mxc_isi.0 registered successfully
[ 2.753251] isi-capture 32e02000.isi:cap_device: deferring 32e02000.isi:cap_device device registration
[ 2.762684] mxc-isi 32e02000.isi: mxc_isi.1 registered successfully
[ 2.771602] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2)
[ 2.781679] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver
[ 2.790000] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 2.797970] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops)
[ 2.806149] imx-drm display-subsystem: bound 32c00000.bus:ldb@32ec005c (ops imx8mp_ldb_ops)
[ 2.814531] imx-drm display-subsystem: bound 32fd8000.hdmi (ops dw_hdmi_imx_ops)
[ 2.822196] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[ 2.837044] imx6q-pcie 33800000.pcie: Link up
[ 2.841520] imx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00
[ 2.841635] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA
[ 2.847906] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 2.860427] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 2.861035] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 2.866612] pci_bus 0000:00: root bus resource [mem 0x18000000-0x1fefffff]
[ 2.878184] mmc0: queuing unknown CIS tuple 0x01 [d9 01 ff] (3 bytes)
[ 2.880040] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 2.892461] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 2.894218] mmc0: queuing unknown CIS tuple 0x1a [01 01 00 02 07] (5 bytes)
[ 2.898735] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 2.909061] mmc0: queuing unknown CIS tuple 0x1b [c1 41 30 30 ff ff 32 00] (8 bytes)
[ 2.912454] pci 0000:00:00.0: supports D1
[ 2.920816] mmc0: queuing unknown CIS tuple 0x14 [] (0 bytes)
[ 2.924149] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[ 2.932050] mmc0: new high speed SDIO card at address 0001
[ 2.938644] pci 0000:01:00.0: [1912:0015] type 00 class 0x0c0330
[ 2.947817] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[ 2.954972] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 2.974971] pci 0000:00:00.0: BAR 0: assigned [mem 0x18000000-0x180fffff]
[ 2.981787] pci 0000:00:00.0: BAR 14: assigned [mem 0x18100000-0x181fffff]
[ 2.988672] pci 0000:00:00.0: BAR 6: assigned [mem 0x18200000-0x1820ffff pref]
[ 2.995906] pci 0000:01:00.0: BAR 0: assigned [mem 0x18100000-0x18101fff 64bit]
[ 3.003255] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 3.008489] pci 0000:00:00.0: bridge window [mem 0x18100000-0x181fffff]
[ 3.015611] pcieport 0000:00:00.0: PME: Signaling with IRQ 242
[ 3.021566] pci 0000:01:00.0: enabling device (0000 -> 0002)
[ 3.078007] hub 1-1:1.0: USB hub found
[ 3.082426] hub 1-1:1.0: 4 ports detected
[ 3.195831] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[ 3.351589] hub 2-1:1.0: USB hub found
[ 3.353662] hub 2-1:1.0: 4 ports detected
[ 3.471897] Console: switching to colour frame buffer device 160x45
[ 3.501810] imx-drm display-subsystem: [drm] fb0: imx-drmdrmfb frame buffer device
[ 3.513556] isi-m2m 32e00000.isi:m2m_device: Register m2m success for ISI.0
[ 3.520680] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 3.532577] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 3.541091] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 3.549713] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[ 3.558642] ALSA device list:
[ 3.561625] No soundcards found.
[ 3.572590] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[ 3.582433] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 3.590422] devtmpfs: mounted
[ 3.593979] Freeing unused kernel memory: 3008K
[ 3.605677] Run /sbin/init as init process
[ 3.695221] systemd[1]: System time before build time, advancing clock.
[ 3.710195] systemd[1]: systemd 250.5+ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid)
[ 3.741876] systemd[1]: Detected architecture arm64.
Welcome to NXP i.MX Release Distro 5.15-kirkstone (kirkstone)!
[ 3.818113] systemd[1]: Hostname set to <desk-mx8mp>.
[ 3.873108] systemd-sysv-generator[195]: SysV service '/etc/init.d/single' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 3.897675] systemd-sysv-generator[195]: SysV service '/etc/init.d/sendsigs' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 3.922244] systemd-sysv-generator[195]: SysV service '/etc/init.d/umountfs' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 3.946500] systemd-sysv-generator[195]: SysV service '/etc/init.d/halt' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 3.970078] systemd-sysv-generator[195]: SysV service '/etc/init.d/umountnfs.sh' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 3.994614] systemd-sysv-generator[195]: SysV service '/etc/init.d/reboot' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 4.018363] systemd-sysv-generator[195]: SysV service '/etc/init.d/save-rtc.sh' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 4.257376] systemd[1]: Queued start job for default target Multi-User System.
[ 4.299980] systemd[1]: Created slice Slice /system/getty.
[ OK ] Created slice Slice /system/getty.
[ 4.322835] systemd[1]: Created slice Slice /system/modprobe.
[ OK ] Created slice Slice /system/modprobe.
[ 4.346835] systemd[1]: Created slice Slice /system/serial-getty.
[ OK ] Created slice Slice /system/serial-getty.
[ 4.370622] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 4.393404] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password …ts to Console Directory Watch.
[ 4.417341] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password R�uests to Wall Directory Watch.
[ 4.441785] systemd[1]: Reached target Path Units.
[ OK ] Reached target Path Units.
[ 4.461180] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 4.481152] systemd[1]: Reached target Slice Units.
[ OK ] Reached target Slice Units.
[ 4.501500] systemd[1]: Reached target Swaps.
[ OK ] Reached target Swaps.
[ 4.521642] systemd[1]: Listening on RPCbind Server Activation Socket.
[ OK ] Listening on RPCbind Server Activation Socket.
[ 4.545290] systemd[1]: Reached target RPC Port Mapper.
[ OK ] Reached target RPC Port Mapper.
[ 4.565521] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 4.585400] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ 4.610005] systemd[1]: Listening on Journal Audit Socket.
[ OK ] Listening on Journal Audit Socket.
[ 4.633746] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 4.657809] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 4.677810] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 4.703573] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 4.725674] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 4.750077] systemd[1]: Listening on User Database Manager Socket.
[ OK ] Listening on User Database Manager Socket.
[ 4.776540] systemd[1]: Mounting Huge Pages File System...
Mounting Huge Pages File System...
[ 4.800197] systemd[1]: Mounting POSIX Message Queue File System...
Mounting POSIX Message Queue File System...
[ 4.824282] systemd[1]: Mounting Kernel Debug File System...
Mounting Kernel Debug File System...
[ 4.841812] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
[ 4.858313] systemd[1]: Mounting Temporary Directory /tmp...
Mounting Temporary Directory /tmp...
[ 4.881557] systemd[1]: Starting Create List of Static Device Nodes...
Starting Create List of Static Device Nodes...
[ 4.908977] systemd[1]: Starting Load Kernel Module configfs...
Starting Load Kernel Module configfs...
[ 4.932975] systemd[1]: Starting Load Kernel Module drm...
Starting Load Kernel Module drm...
[ 4.961320] systemd[1]: Starting Load Kernel Module fuse...
Starting Load Kernel Module fuse...
[ 4.973568] fuse: init (API version 7.34)
[ 4.984699] systemd[1]: Starting RPC Bind...
Starting RPC Bind...
[ 5.001892] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
[ 5.014886] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[ 5.027788] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[ 5.039822] systemd[1]: Starting Journal Service...
Starting Journal Service...
[ 5.063356] systemd[1]: Load Kernel Modules was skipped because all trigger condition checks failed.
[ 5.075669] systemd[1]: Starting Generate network units from Kernel command line...
Starting Generate network �ts from Kernel command line...
[ 5.104001] systemd[1]: Starting Remount Root and Kernel File Systems...
Starting Remount Root and Kernel File Systems...
[ 5.118020] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null). Quota mode: none.
[ 5.128392] systemd[1]: Starting Apply Kernel Variables...
Starting Apply Kernel Variables...
[ 5.148228] systemd[1]: Starting Coldplug All udev Devices...
Starting Coldplug All udev Devices...
[ 5.174853] systemd[1]: Started RPC Bind.
[ OK ] Started RPC Bind.
[ 5.197849] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
[ OK ] Mounted Huge Pages File System.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted Temporary Directory /tmp.
[ OK ] Finished Create List of Static Device Nodes.
[ OK ] Finished Load Kernel Module configfs.
[ OK ] Finished Load Kernel Module drm.
[ OK ] Finished Load Kernel Module fuse.
[ OK ] Finished Generate network units from Kernel command line.
[ OK ] Finished Remount Root and Kernel File Systems.
[ OK ] Finished Apply Kernel Variables.
Mounting FUSE Control File System...
Mounting Kernel Configuration File System...
Starting Flush Journal to Persistent Storage...
[ 5.457700] systemd-journald[207]: Received client request to flush runtime journal.
Starting Create Static Device Nodes in /dev...
[ OK ] Mounted FUSE Control File System.
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Finished Flush Journal to Persistent Storage.
[ OK ] Finished Create Static Device Nodes in /dev.
[ OK ] Reached target Preparation for Local File Systems.
Mounting /var/volatile...
Starting Rule-based Manage�for Device Events and Files...
[ OK ] Mounted /var/volatile.
Starting Load/Save Random Seed...
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
[ OK ] Started Rule-based Manager for Device Events and Files.
[ OK ] Finished Coldplug All udev Devices.
[ OK ] Finished Create Volatile Files and Directories.
Starting Network Time Synchronization...
Starting Record System Boot/Shutdown in UTMP...
[ OK ] Finished Record System Boot/Shutdown in UTMP.
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Initialization.
[ 6.025059] remoteproc remoteproc0: imx-dsp-rproc is available
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target System Time Set.
[ 6.055034] caam-snvs 30370000.caam-snvs: violation handlers armed - init state
[ OK ] Started Daily rotation of log files.
[ 6.081366] caam 30900000.crypto: Entropy delay = 3200
[ OK ] Reached target Timer Units.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Listening on dropbear.socket.
[ OK ] Reached targe[ 6.159066] caam 30900000.crypto: failed to acquire DECO 0
t Socket Units.
[ 6.166378] caam 30900000.crypto: failed to instantiate RNG
[ OK ] Reached target Basic System.
[ 6.199084] wlan: loading out-of-tree module taints kernel.
[ OK ] Started Job spooling tools.
[ OK ] Started Periodic Command Scheduler.
[ 6.306983] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.
Starting D-Bus System Message Bus...
[ 6.331177] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[ 6.342232] mx8-img-md: Registered mxc_isi.0.capture as /dev/video1
[ 6.349045] mx8-img-md: Registered mxc_isi.1.capture as /dev/video2
[ 6.352316] wlan: loading driver v4.5.25.46
[ 6.355582] mx8-img-md: Registered sensor subdevice: ov5640 2-003c (1)
[ 6.358178] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[ 6.373153] mx8-img-md: Registered sensor subdevice: ov5640 1-003c (2)
[ 6.376648] hifDeviceInserted: Dumping clocks (50000000,200000000)
[ 6.379831] mx8-img-md: created link [mxc_isi.0] => [mxc_isi.0.capture]
[ 6.392632] mx8-img-md: created link [mxc-mipi-csi2.0] => [mxc_isi.0]
[ 6.392646] mx8-img-md: created link [mxc_isi.1] => [mxc_isi.1.capture]
[ 6.392651] mx8-img-md: created link [mxc-mipi-csi2.1] => [mxc_isi.1]
[ 6.392656] mx8-img-md: created link [ov5640 1-003c] => [mxc-mipi-csi2.0]
[ 6.392666] mx8-img-md: created link [ov5640 2-003c] => [mxc-mipi-csi2.1]
Starting IPv6 P[ 6.425941] mxc-md 32c00000.bus:camera: mxc_md_create_links
acket Filtering Framework...
Starting IPv4 Packet Filtering Framework...
Starting Lighttpd Daemon...
Starting Telephony service...
[ OK ] Started System Logging Service.
Starting User Login Management...
[ OK ] Started TEE Supplicant.
[ OK ] Started D-Bus System Message Bus.
[ OK ] Finished IPv6 Packet Filtering Framework.
[ OK ] Finished IPv4 Packet Filtering Framework.
[ OK ] Started Lighttpd Daemon.
[ OK ] Started Telephony service.
[ OK ] Started User Login Management.
[ OK ] Reached target Preparation for Network.
[ OK ] Reached target Hardware activated USB gadget.
[ OK ] Listening on Load/Save RF �itch Status /dev/rfkill Watch.
Starting Network Configuration...
Starting Load/Save RF Kill Switch Status...
[ OK ] Started Network Configuration.
Starting Network Name Resolution...
[ OK ] Started Load/Save RF Kill Switch Status.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Network.
[ OK ] Reached target Host and Network Name Lookups.
Starting Avahi mDNS/DNS-SD Stack...
Starting DNS forwarder and DHCP server...
[ OK ] Started NFS status monitor for NFSv2/3 locking..
[ OK ] Started Respond to IPv6 Node Information Queries.
Starting Network Time Service...
Starting Postfix Mail Transport Agent...
[ OK ] Started Network Router Discovery Daemon.
Starting Permit User Sessions...
[ OK ] Started Vsftpd ftp daemon.
[ OK ] Started Xinetd A Powerful Replacement For Inetd.
[ OK ] Started Network Time Service.
[ OK ] Finished Permit User Sessions.
[ OK ] Started DNS forwarder and DHCP server.
[ OK ] Started Avahi mDNS/DNS-SD Stack.
[ OK ] Started Getty on tty1.
[ OK ] Started Serial Getty on ttymxc1.
[ OK ] Reached target Login Prompts.
[ OK ] Started Postfix Mail Transport Agent.
[ OK ] Reached target Multi-User System.
Starting Record Runlevel Change in UTMP...
[ OK ] Finished Record Runlevel Change in UTMP.
[ OK ] Finished Load/Save Random Seed.
NXP i.MX Release Distro 5.15-kirkstone desk-mx8mp ttymxc1
desk-mx8mp login: root
root@desk-mx8mp:~# uname -a
Linux desk-mx8mp 5.15.71-desk-mx8m-l-4.0.0+g50e18a0c8871 #1 SMP PREEMPT Thu Jul 20 10:56:49 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
root@desk-mx8mp:~# shutdown -h now
Stopping Session c1 of User root...
[ OK ] Removed slice Slice /system/modprobe.
[ OK ] Stopped target Multi-User System.
[ OK ] Stopped target Login Prompts.
[ OK ] Stopped target RPC Port Mapper.
[ OK ] Stopped target Timer Units.
[ OK ] Stopped Daily rotation of log files.
[ OK ] Stopped Daily Cleanup of Temporary Directories.
[ OK ] Stopped target System Time Set.
[ OK ] Stopped target Hardware activated USB gadget.
[ OK ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
Stopping Job spooling tools...
Stopping Avahi mDNS/DNS-SD Stack...
Stopping Periodic Command Scheduler...
Stopping DNS forwarder and DHCP server...
Stopping Getty on tty1...
Stopping Lighttpd Daemon...
Stopping NFS status monitor for NFSv2/3 locking....
Stopping Respond to IPv6 Node Information Queries...
Stopping Network Time Service...
Stopping Telephony service...
Stopping Postfix Mail Transport Agent...
Stopping Network Router Discovery Daemon...
Stopping Serial Getty on ttymxc1...
Stopping System Logging Service...
Stopping Load/Save Random Seed...
Stopping Vsftpd ftp daemon...
Stopping Xinetd A Powerful Replacement For Inetd...
[ OK ] Stopped Job spooling tools.
[ OK ] Stopped Periodic Command Scheduler.
[ OK ] Stopped Telephony service.
[ OK ] Stopped System Logging Service.
[ OK ] Stopped Lighttpd Daemon.
[ OK ] Stopped Avahi mDNS/DNS-SD Stack.
[ OK ] Stopped NFS status monitor for NFSv2/3 locking..
[ OK ] Stopped Respond to IPv6 Node Information Queries.
[ OK ] Stopped Network Router Discovery Daemon.
[ OK ] Stopped Network Time Service.
[ OK ] Stopped Vsftpd ftp daemon.
[ OK ] Stopped Xinetd A Powerful Replacement For Inetd.
[ OK ] Stopped Getty on tty1.
[ OK ] Stopped Serial Getty on ttymxc1.
[ OK ] Stopped DNS forwarder and DHCP server.
[ OK ] Stopped Postfix Mail Transport Agent.
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Stopped Session c1 of User root.
[ OK ] Removed slice Slice /system/getty.
[ OK ] Removed slice Slice /system/serial-getty.
[ OK ] Stopped target Host and Network Name Lookups.
Stopping User Login Management...
Stopping User Manager for UID 0...
[ OK ] Stopped User Manager for UID 0.
Stopping User Runtime Directory /run/user/0...
[ OK ] Unmounted /run/user/0.
[ OK ] Stopped User Runtime Directory /run/user/0.
[ OK ] Removed slice User Slice of UID 0.
Stopping D-Bus System Message Bus...
Stopping Permit User Sessions...
[ OK ] Stopped User Login Management.
[ OK ] Stopped D-Bus System Message Bus.
[ OK ] Stopped Permit User Sessions.
[ OK ] Stopped target Network.
[ OK ] Stopped target Remote File Systems.
Stopping Network Name Resolution...
[ OK ] Stopped Network Name Resolution.
Stopping Network Configuration...
[ OK ] Stopped Network Configuration.
[ OK ] Stopped target Preparation for Network.
[ OK ] Stopped IPv6 Packet Filtering Framework.
[ OK ] Stopped IPv4 Packet Filtering Framework.
[ OK ] Stopped target Basic System.
[ OK ] Stopped target Path Units.
[ OK ] Stopped Dispatch Password �ts to Console Directory Watch.
[ OK ] Stopped Forward Password R�uests to Wall Directory Watch.
[ OK ] Stopped target Slice Units.
[ OK ] Removed slice User and Session Slice.
[ OK ] Stopped target Socket Units.
[ OK ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Closed D-Bus System Message Bus Socket.
[ OK ] Closed dropbear.socket.
[ OK ] Stopped target System Initialization.
[ OK ] Closed Syslog Socket.
[ OK ] Closed Network Service Netlink Socket.
[ OK ] Stopped Apply Kernel Variables.
Stopping Network Time Synchronization...
[ OK ] Stopped Network Time Synchronization.
[ OK ] Stopped Create Volatile Files and Directories.
[ OK ] Stopped target Local File Systems.
Unmounting Temporary Directory /tmp...
Unmounting /var/volatile...
[ OK ] Unmounted Temporary Directory /tmp.
[ OK ] Unmounted /var/volatile.
[ OK ] Stopped target Preparation for Local File Systems.
[ OK ] Stopped target Swaps.
[ OK ] Reached target Unmount All Filesystems.
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Stopped Create Static Device Nodes in /dev.
[ OK ] Reached target System Shutdown.
[ OK ] Reached target Late Shutdown Services.
[ OK ] Finished System Power Off.
[ OK ] Reached target System Power Off.
[ 52.155590] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 52.175955] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 52.201827] systemd-journald[207]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 52.213839] audit: type=1335 audit(1651167793.516:3): pid=207 uid=0 auid=4294967295 tty=(none) ses=4294967295 comm="systemd-journal" exe="/lib/systemd/systemd-journald" nl-mcgrp=1 op=disconnect res=1
[ 60.411143] imx-sdma 30e10000.dma-controller: firmware found.
[ 60.411433] imx-sdma 30bd0000.dma-controller: firmware found.
[ 60.422840] imx-sdma 30bd0000.dma-controller: loaded firmware 4.6
[ 62.203259] systemd-shutdown[1]: Waiting for process: 224 (systemd-udevd), 243 (systemd-udevd)
[ 64.477453] cfg80211: failed to load regulatory.db
[ 66.525432] xhci_hcd 0000:01:00.0: failed to load firmware renesas_usb_fw.mem, fallback to ROM
[ 66.534140] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 66.539406] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[ 66.552111] xhci_hcd 0000:01:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x0000001100000090
[ 66.561888] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 66.567127] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 4
[ 66.574547] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 66.581837] hub 3-0:1.0: USB hub found
[ 66.585614] hub 3-0:1.0: 2 ports detected
[ 66.589887] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 66.598583] hub 4-0:1.0: USB hub found
[ 66.602356] hub 4-0:1.0: 2 ports detected
[ 66.629359] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 66.646040] systemd-shutdown[1]: Unmounting file systems.
[ 66.653423] [443]: Remounting '/' read-only with options 'n/a'.
[ 66.669965] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null). Quota mode: none.
[ 66.680878] systemd-shutdown[1]: All filesystems unmounted.
[ 66.686583] systemd-shutdown[1]: Deactivating swaps.
[ 66.691853] systemd-shutdown[1]: All swaps deactivated.
[ 66.697213] systemd-shutdown[1]: Detaching loop devices.
[ 66.704975] systemd-shutdown[1]: All loop devices detached.
[ 66.710574] systemd-shutdown[1]: Stopping MD devices.
[ 66.715875] systemd-shutdown[1]: All MD devices stopped.
[ 66.721199] systemd-shutdown[1]: Detaching DM devices.
[ 66.726563] systemd-shutdown[1]: All DM devices detached.
[ 66.731975] systemd-shutdown[1]: All filesystems, swaps, loop devices, MD devices and DM devices detached.
[ 66.748076] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 66.755091] systemd-shutdown[1]: Powering off.
[ 66.759580] kvm: exiting hardware virtualization
[ 66.849341] usb 3-2: new full-speed USB device number 2 using xhci_hcd
[ 67.037260] reboot: Power down
How to configure the network interfaces[edit | edit source]
For deploying an Embedded System, one of the most important configuration is the Network Interface configuration.
Once the Embedded Device is finally configured for stand-alone bootstrap, the network interface should be configured for reaching the device remotely via network connections like ssh, telnet, ftp, http, etc.
This Application Note briefly describes how it is possible to simply configure the network interfaces on systemd
Resources[edit | edit source]
For further details on network configuration, please refer - for example - to:
Examples[edit | edit source]
The following configuration assumptions are used in the paragraphs shown below:
- IP address range of the LAN network 192.168.1.0 - 192.168.1.255
- IP address of the gateway 192.168.1.254
- IP address of the device 192.168.1.100
systemd[edit | edit source]
The network configuration for systemd are basically found in the /etc/systemd/network/ directory.
The most simply way for configuring the network interface is to create/edit the file /etc/systemd/network/20-eth0.network as per the following paragraphs. In the event that there are another network interface, then this must be create/edit as /etc/systemd/network/20-eth1.network. For more example and usage hints on systemd, please refer to our wiki page.
Static IP address[edit | edit source]
SBC ORCA has two network interfaces, below is shown how to configure them both through a static IP. In the case of SBCX MINI there is only one ethernet interface, consequently going to configure only eth0 interface.
Example for ethernet interface 0.
[Match] Name=eth0 # Prevent the interface loading if the kernel boots from nfs KernelCommandLine=!nfsroot [Network] Address=192.168.1.100 Gateway=192.168.1.254 DNS=192.168.1.1
Example for ethernet interface 1.
[Match] Name=eth1 # Prevent the interface loading if the kernel boots from nfs KernelCommandLine=!nfsroot [Network] Address=192.168.1.101 Gateway=192.168.1.254 DNS=192.168.1.1
Once modified, the networkd service should be resarted:
systemctl restart systemd-networkd
Dynamic IP addres (DHCP)[edit | edit source]
SBC ORCA has two network interfaces, below is shown how to configure them both through DHCP. In the case of SBCX MINI there is only one ethernet interface, consequently going to configure only eth0 interface.
The network interface is configured - using a proper DHCP server on the network - by using the DHCP key in the configuration file as the following:
[Match] Name=eth0 # Prevent the interface loading if the kernel boots from nfs KernelCommandLine=!nfsroot [Network] DHCP=yes
In the event that there are another network interface, the configuration file as the following:
[Match] Name=eth1 # Prevent the interface loading if the kernel boots from nfs KernelCommandLine=!nfsroot [Network] DHCP=yes
When systemd network starts, it tries to use a DHCP server present in the network to configure the interface.
DNS[edit | edit source]
The DNS key (in the configuration file) is used only if the systemd-resolved service is enabled and the /etc/resolv.conf has a symbolic link to /run/systemd/resolve/stub-resolv.conf
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
Once modified, the resolved service should be resarted:
systemctl restart systemd-resolved
loopback network interface[edit | edit source]
systemd contains native implementations of various tasks that need to be executed as part of the boot process.
For example, it sets the hostname or configures the loopback network device.
Apply configuration changes[edit | edit source]
After editing the above files, changes are applied after reboot or by restarting systemd-networkd.service:
root@desk-mx8mp:~# systemctl restart systemd-networkd.service
MAC Address programming[edit | edit source]
Every network adapter has a Media Access Control address (usually shortened to MAC address). A MAC address is a six-byte identifying number permanently embedded in the firmware of the adapter, and is readable by the network and the operating system of the device on which the adapter is installed.
The address must follow the standards set by the Institute of Electrical and Electronics Engineers (IEEE), which sets computer networking standards.
The MAC address is a six-pair set of hexadecimal numbers, for example a1-c2-e3-44-5f-6d. Specifically, in Ethernet, the MAC address is known as the Ethernet Address, which is the unique ID serial number of the Ethernet device in one's computer. MAC Addresses are used in a Local Area Network (LAN) by computers to communicate with each other. Every adapter has a unique MAC address.
Platform supported[edit | edit source]
In this Application Note, we will describe how to use the i.MX8M eFuse for programming and using the MAC address(es) and it applies to the following DAVE i.MX8M family products:
|
This Application Note has been validated in the ORCA SOM. The commands used have been not validated in the other platform yet. |
Obtaining a MAC address[edit | edit source]
To obtain a MAC address for your organization, please refer to our Setting the MAC address wiki page with the overall information about this topic.
Permanent storage areas[edit | edit source]
Some SOCs provide programmable OTPs for security, MAC address, boot modes, etc. Usually, some of these are general-purpose registers and can be managed by the user.
In other cases, an external permanent storage device can be used for storing permanent settings like the MAC address: for the i.MX8M product family, DAVE proposes to use the General Purposes eFuses (OTP blocks) on SoC itself for storing permanently the MAC address(es).
MAC address programming on i.MX8M family[edit | edit source]
MAC address configuration in u-boot[edit | edit source]
If the MAC address is not already programmed in the OTPs and the ethaddr u-boot variable is not set, u-boot assignes a random value (different at every power on cycle):
Net: Warning: ethernet@30be0000 (eth0) using random MAC address - 6e:e5:6d:a2:ea:e5 eth0: ethernet@30be0000
If the ethaddr is set and saved in the u-boot environment, its value is used as the MAC Address:
u-boot=> setenv ethaddr 00:50:c2:1e:af:a8 u-boot=> saveenv Saving Environment to MMC... Writing to MMC(1)... OK u-boot=>
eFuse bank registers[edit | edit source]
i.MX8M family uses the Bank9 Word0, Word1 and Word2 (if the SoC has two ethernet interfaces) for storing the MAC addresses. The MAC values should be properly divided into the three registers for correct programming.
The related HW_OCOTP_MAC_ADDR0, HW_OCOTP_MAC_ADDR1, HW_OCOTP_MAC_ADDR2 OTP registers will be used for the purposes illustrated in this AN.
|
Warning!! eFuse programming is a permanent and non reversible action. Pay attention to the values and commands used during MAC programming. |
eth0 eFuse programming[edit | edit source]
U-Boot uses the fuse prog command for writing the MAC address into the eFuse. The MAC address should be divided in high 16 bit and low 32 bits, for example MAC address AB:CD:12:34:56:78 for eth0 is then divided into :
fuse prog -y 9 0 0x12345678 fuse prog -y 9 1 0xABCD
In the following example the MAC address 00:50:c2:1e:af:a8 is stored in the SOC:
- (in case of presence) clear the
ethaddru-boot variable
u-boot=> setenv ethaddr u-boot=> saveenv Saving Environment to MMC... Writing to MMC(1)... OK
- program the MAC address in the OPTs with the following commands:
u-boot=> fuse prog 9 0 c21eafa8
Programming bank 9 word 0x00000000 to 0xc21eafa8...
Warning: Programming fuses is an irreversible operation!
This may brick your system.
Use this command only if you are sure of what you are doing!
Really perform this fuse programming? <y/N>
y
u-boot=> fuse prog 9 1 0050
Programming bank 9 word 0x00000001 to 0x00000050...
Warning: Programming fuses is an irreversible operation!
This may brick your system.
Use this command only if you are sure of what you are doing!
Really perform this fuse programming? <y/N>
y
u-boot=>
If you want to write the eFuse value directly without confirmation, uses the -y parameter with the fuse prog command, as per the previous example:
u-boot=> fuse prog -y 9 0 c21eafa8 u-boot=> fuse prog -y 9 1 0050
At the next boot, the ethaddr value wil be read from the OPTs:
Warning: ethernet@30be0000 using MAC address from ROM eth0: ethernet@30be0000 Fastboot: Normal Normal Boot Hit any key to stop autoboot: 0 u-boot=> print ethaddr ethaddr=00:50:c2:1e:af:a8 u-boot=>
The warning message informs that the ethaddr is not present in the u-boot environment and it has been set using the value read from the OTPs. For clearing the warning, it is enough to save the environment with saveenv.
u-boot=> saveenv
eth1 eFuse programming[edit | edit source]
For the second ethernet interface, the above procedure should be repeated in a similar way, except of the correct eFuse register should be used:
The MAC address should be divided in low 16 bit and high 32 bits, for example MAC address 00:50:c2:1e:af:a9 is stored in the SOC using:
fuse prog -y 9 1 afa90000 fuse prog -y 9 2 0050c21e
|
Be Careful!! Register |
The eth1addr U-Boot variable is then used for the second ethernet interface MAC address management.
eFuse locking[edit | edit source]
The OTP eFuse registers should be locked in order to avoid unwanted registers (and then MAC addresses) modifications. OTP lock grants the MAC values cannot be modified anymore.
|
If not locked yet, OTP bits can be set to '1' but not reversed to '0' value, so some modifications can be applied if the eFuse registers are not locked. For more information see, for example, the i.MX6 Dual Lite Reference Manual chap. 47.3.1.3 |
The two MAC addresses - even if sharing register bank:9 word:1 - can be programmed at different times.
At the opposite, eFuse lock should be performed for both simultaneously. The registers lock can be forced using the following command:
fuse prog -y 0 0 c000
eFuse reading[edit | edit source]
The eFuse registers can be read - after programming - for checking the written values:
u-boot=> fuse read 9 0 Reading bank 9: Word 0x00000000: c21eafa8 u-boot=> fuse read 9 1 Reading bank 9: Word 0x00000001: afa90050 u-boot=> fuse read 9 2 Reading bank 9: Word 0x00000002: 0050c21e u-boot=>
Linux kernel MAC address[edit | edit source]
The MAC Address configured in u-boot is passed to the kernel which configures the eth0 and eth1 peripherals with the correct values:
root@desk-mx8mp:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:c2:1e:af:a8
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth1 Link encap:Ethernet HWaddr 00:50:c2:1e:af:a9
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:43
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:82 errors:0 dropped:0 overruns:0 frame:0
TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6220 (6.0 KiB) TX bytes:6220 (6.0 KiB)
root@desk-mx8mp:~#
Peripherals[edit | edit source]
Peripheral Audio[edit | edit source]
Access to the audio interface is provided by ALSA (Advanced Linux Sound Architecture), which consists in a kernel driver and a users space library for application developers. A set of standard tools (alsa-utils) can be used for simple management of the audio codec.
Device tree configuration[edit | edit source]
MITO 8M Mini[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for MITO 8M Mini:
From imx8mm-mito8mmini.dtsi it is possible to find the Serial Audio Interface configuration:
...
&sai2 {
#sound-dai-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai2>;
assigned-clocks = <&clk IMX8MM_CLK_SAI2>;
assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
assigned-clock-rates = <24576000>;
fsl,sai-mclk-direction-output;
status = "disabled";
};
...
&iomuxc {
...
pinctrl_sai2: sai2grp {
fsl,pins = <
MX8MM_IOMUXC_SAI2_MCLK_SAI2_MCLK 0xd6
MX8MM_IOMUXC_SAI2_TXFS_SAI2_TX_SYNC 0xd6
MX8MM_IOMUXC_SAI2_TXC_SAI2_TX_BCLK 0xd6
MX8MM_IOMUXC_SAI2_TXD0_SAI2_TX_DATA0 0xd6
MX8MM_IOMUXC_SAI2_RXFS_SAI2_RX_SYNC 0xd6
MX8MM_IOMUXC_SAI2_RXC_SAI2_RX_BCLK 0xd6
MX8MM_IOMUXC_SAI2_RXD0_SAI2_RX_DATA0 0xd6
>;
};
...
From imx8mm-mito8mmini-sbcx.dts it is possible to find the codec SSI interface configuration:
...
...
sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "SBCX_TLV320";
simple-audio-card,bitclock-master = <&cpu_dai>;
simple-audio-card,frame-master = <&cpu_dai>;
simple-audio-card,widgets =
"Headphone", "Headphone Jack",
"Line", "Line In",
"Microphone", "Mic Jack";
simple-audio-card,routing =
"Speaker", "SPK",
"Headphone Jack", "HPL",
"Headphone Jack", "HPR",
"MIC1LP", "Line In",
"MIC1LM", "Line In",
"MIC1RP", "Mic Jack",
"Mic Jack", "MICBIAS";
simple-audio-card,mclk-fs = <256>;
cpu_dai: simple-audio-card,cpu {
sound-dai = <&sai2>;
};
codec_dai: simple-audio-card,codec {
sound-dai = <&codec>;
system-clock-frequency = <12288000>;
};
};
...
&sai2 {
pinctrl-names = "default";
status = "okay";
};
...
&iomuxc {
...
pinctrl_codec_en: codecen {
fsl,pins = <
MX8MM_IOMUXC_SAI3_RXFS_GPIO4_IO28 0x19
>;
};
...
...
Accessing the peripheral[edit | edit source]
Linux messages at boot time[edit | edit source]
To list the audio sound cards just use the aplay utility:
root@desk-mx8mm:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: SBCXTLV320 [SBCX_TLV320], device 0: 30020000.sai-tlv320aic31xx-hifi tlv320aic31xx-hifi-0 [30020000.sai-tlv320aic31xx-hifi tlv320aic31xx-hifi-0] Subdevices: 1/1 Subdevice #0: subdevice #0 root@desk-mx8mm:~#
Usage alsa-utils[edit | edit source]
In order to unmute the speaker the amixer utility can be used.
root@desk-mx8mm:~# amixer sset 'Speaker',0 on Simple mixer control 'Speaker',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] root@desk-mx8mm:~# amixer sset 'Speaker Analog',0 108 Simple mixer control 'Speaker Analog',0 Capabilities: pvolume pvolume-joined Playback channels: Mono Limits: Playback 0 - 127 Mono: Playback 108 [85%] [-9.50dB] root@desk-mx8mm:~# amixer sset 'Speaker Driver',0 on Simple mixer control 'Speaker Driver',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 3 Mono: Playback 0 [0%] [6.00dB] [on] root@desk-mx8mm:~# amixer sset 'Speaker Driver',0 2 Simple mixer control 'Speaker Driver',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 3 Mono: Playback 2 [67%] [18.00dB] [on] root@desk-mx8mm:~# amixer sset 'DAC',0 155 Simple mixer control 'DAC',0 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 175 Mono: Front Left: Playback 155 [89%] [14.00dB] Front Right: Playback 155 [89%] [14.00dB] root@desk-mx8mm:~# amixer sset 'Output Left From Left DAC',0 on Simple mixer control 'Output Left From Left DAC',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] root@desk-mx8mm:~#
To perform a sound, execute the command:
root@desk-mx8mm:~# speaker-test -c 1 -t wav speaker-test 1.2.6 Playback device is default Stream parameters are 48000Hz, S16_LE, 1 channels WAV file(s) Rate set to 48000Hz (requested 48000Hz) Buffer size range from 3840 to 5760 Period size range from 1920 to 1920 Using max buffer size 5760 Periods = 4 was set period_size = 1920 was set buffer_size = 5760 0 - Front Left ...
Additional information[edit | edit source]
Information about alsa-utils can be found on ALSA project wiki pages
Peripheral Ethernet[edit | edit source]
The ethernet interface is made available through the i.MX8M fec interface which should be initialized on the device tree.
Device tree configuration[edit | edit source]
ORCA SOM[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the ORCA SOM:
From imx8mp-mito8mplus-cb1001.dts :
&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec>;
phy-mode = "rgmii-id";
phy-handle = <ðphy1>;
fsl,magic-packet;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy1: ethernet-phy@8 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <8>;
eee-broken-1000t;
eee-broken-100tx;
};
};
};
From imx8mp-mito8mplus.dtsi :
&eqos {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_eqos>;
phy-mode = "rgmii-id";
phy-handle = <ðphy0>;
status = "okay";
mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@7 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <7>;
eee-broken-1000t;
eee-broken-100tx;
};
};
};
...
...
&iomuxc {
...
...
pinctrl_eqos: eqosgrp {
fsl,pins = <
MX8MP_IOMUXC_ENET_MDC__ENET_QOS_MDC 0x3
MX8MP_IOMUXC_ENET_MDIO__ENET_QOS_MDIO 0x3
MX8MP_IOMUXC_ENET_RD0__ENET_QOS_RGMII_RD0 0x91
MX8MP_IOMUXC_ENET_RD1__ENET_QOS_RGMII_RD1 0x91
MX8MP_IOMUXC_ENET_RD2__ENET_QOS_RGMII_RD2 0x91
MX8MP_IOMUXC_ENET_RD3__ENET_QOS_RGMII_RD3 0x91
MX8MP_IOMUXC_ENET_RXC__CCM_ENET_QOS_CLOCK_GENERATE_RX_CLK 0x91
MX8MP_IOMUXC_ENET_RX_CTL__ENET_QOS_RGMII_RX_CTL 0x91
MX8MP_IOMUXC_ENET_TD0__ENET_QOS_RGMII_TD0 0x1f
MX8MP_IOMUXC_ENET_TD1__ENET_QOS_RGMII_TD1 0x1f
MX8MP_IOMUXC_ENET_TD2__ENET_QOS_RGMII_TD2 0x1f
MX8MP_IOMUXC_ENET_TD3__ENET_QOS_RGMII_TD3 0x1f
MX8MP_IOMUXC_ENET_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x1f
MX8MP_IOMUXC_ENET_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK 0x1f
MX8MP_IOMUXC_GPIO1_IO10__GPIO1_IO10 0x19
>;
};
pinctrl_fec: fecgrp {
fsl,pins = <
MX8MP_IOMUXC_SAI1_RXD2__ENET1_MDC 0x3
MX8MP_IOMUXC_SAI1_RXD3__ENET1_MDIO 0x3
MX8MP_IOMUXC_SAI1_RXD4__ENET1_RGMII_RD0 0x91
MX8MP_IOMUXC_SAI1_RXD5__ENET1_RGMII_RD1 0x91
MX8MP_IOMUXC_SAI1_RXD6__ENET1_RGMII_RD2 0x91
MX8MP_IOMUXC_SAI1_RXD7__ENET1_RGMII_RD3 0x91
MX8MP_IOMUXC_SAI1_TXC__ENET1_RGMII_RXC 0x91
MX8MP_IOMUXC_SAI1_TXFS__ENET1_RGMII_RX_CTL 0x91
MX8MP_IOMUXC_SAI1_TXD0__ENET1_RGMII_TD0 0x1f
MX8MP_IOMUXC_SAI1_TXD1__ENET1_RGMII_TD1 0x1f
MX8MP_IOMUXC_SAI1_TXD2__ENET1_RGMII_TD2 0x1f
MX8MP_IOMUXC_SAI1_TXD3__ENET1_RGMII_TD3 0x1f
MX8MP_IOMUXC_SAI1_TXD4__ENET1_RGMII_TX_CTL 0x1f
MX8MP_IOMUXC_SAI1_TXD5__ENET1_RGMII_TXC 0x1f
MX8MP_IOMUXC_SAI1_RXD0__GPIO4_IO02 0x19
>;
};
...
...
};
MITO 8M Mini[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the MITO 8M Mini SOM:
From imx8mm-mito8mmini.dts :
...
...
&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec1>, <&pinctrl_enet_reset>, <&pinctrl_enet_irq>;
phy-mode = "rgmii-id";
phy-handle = <ðphy0>;
fsl,magic-packet;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@7 {
compatible = "ethernet-phy-ieee802.3-c22";
txc-skew-ps = <1860>;
txen-skew-ps = <0>;
txd0-skew-ps = <0>;
txd1-skew-ps = <0>;
txd2-skew-ps = <0>;
txd3-skew-ps = <0>;
rxc-skew-ps = <1740>;
reg = <7>;
};
};
};
...
...
&iomuxc {
...
...
pinctrl_enet_irq: enet_irqgrp {
fsl,pins = <
MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x41 /* ETH0_INTn */
>;
};
pinctrl_enet_reset: enet_resetgrp {
fsl,pins = <
MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1 0x19 /* ETH0_RESETn */
>;
};
pinctrl_fec1: fec1grp {
fsl,pins = <
MX8MM_IOMUXC_ENET_MDC_ENET1_MDC 0x3
MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO 0x3
MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f
MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f
MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f
MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f
MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91
MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91
MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91
MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91
MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f
MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91
MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91
MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f
>;
};
...
...
};
Accessing the peripheral in ORCA SOM[edit | edit source]
ORCA SOM provides the network interface mapped as eth0 and eth1.
Linux messages at boot time[edit | edit source]
eth0
... ... [ 2.063873] fec 30be0000.ethernet eth0: registered PHC device 0 ... [ 14.263053] Generic PHY 30be0000.ethernet-1:08: attached PHY driver (mii_bus:phy_addr=30be0000.ethernet-1:08, irq=POLL)
eth1
[ 14.249319] imx-dwmac 30bf0000.ethernet eth1: PHY [stmmac-1:07] driver [Microchip KSZ9131 Gigabit PHY] (irq=POLL) [ 14.250685] imx-dwmac 30bf0000.ethernet eth1: Register MEM_TYPE_PAGE_POOL RxQ-0 [ 14.251110] imx-dwmac 30bf0000.ethernet eth1: No Safety Features support found [ 14.251133] imx-dwmac 30bf0000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported [ 14.252851] imx-dwmac 30bf0000.ethernet eth1: registered PTP clock [ 14.255249] imx-dwmac 30bf0000.ethernet eth1: FPE workqueue start [ 14.255267] imx-dwmac 30bf0000.ethernet eth1: configuring for phy/rgmii-id link mode
Cable connection:
... ... [ 18.346266] fec 30be0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off [ 18.353884] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Check the interface with ifconfig[edit | edit source]
root@desk-mx8mp:~# ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.118 netmask 255.255.255.0 broadcast 192.168.10.255
inet6 fe80::8449:5cff:fe4a:2840 prefixlen 64 scopeid 0x20<link>
ether 86:49:5c:4a:28:40 txqueuelen 1000 (Ethernet)
RX packets 56295 bytes 9105391 (8.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 225 bytes 23810 (23.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@desk-mx8mp:~# ifconfig eth1
eth1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b2:79:b4:e1:19:40 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 48
root@desk-mx8mp:~#
Test with iperf3[edit | edit source]
root@desk-mx8mp:~# iperf3 -t 5 -c 192.168.4.100 Connecting to host 192.168.4.100, port 5201 [ 5] local 192.168.10.118 port 51394 connected to 192.168.4.100 port 5201 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 114 MBytes 956 Mbits/sec 0 680 KBytes [ 5] 1.00-2.00 sec 111 MBytes 933 Mbits/sec 0 771 KBytes [ 5] 2.00-3.00 sec 112 MBytes 944 Mbits/sec 0 786 KBytes [ 5] 3.00-4.00 sec 111 MBytes 933 Mbits/sec 0 829 KBytes [ 5] 4.00-5.00 sec 111 MBytes 933 Mbits/sec 0 829 KBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-5.00 sec 560 MBytes 940 Mbits/sec 0 sender [ 5] 0.00-5.00 sec 558 MBytes 936 Mbits/sec receiver iperf Done. root@desk-mx8mp:~#
Accessing the peripheral in MITO 8M Mini[edit | edit source]
MIN SOM provides the network interface mapped as eth0.
Linux messages at boot time[edit | edit source]
... [ 2.909811] fec 30be0000.ethernet eth0: registered PHC device 0 ... [ 16.285429] Micrel KSZ9031 Gigabit PHY 30be0000.ethernet-1:07: attached PHY driver (mii_bus:phy_addr=30be0000.ethernet-1:07, irq=POLL) ...
Cable connection:
... [ 20.386519] fec 30be0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 20.394322] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready ...
Check the interface with ifconfig[edit | edit source]
root@desk-mx8mm:~# ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.4.153 netmask 255.255.255.0 broadcast 192.168.4.255
inet6 fe80::80c9:10ff:fe49:b0ee prefixlen 64 scopeid 0x20<link>
ether 82:c9:10:49:b0:ee txqueuelen 1000 (Ethernet)
RX packets 65495 bytes 4562086 (4.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 558 bytes 134716 (131.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@desk-mx8mm:~#
Test with iperf3[edit | edit source]
root@desk-mx8mm:~# iperf3 -t 5 -c 192.168.4.100 Connecting to host 192.168.4.100, port 5201 [ 5] local 192.168.4.153 port 50938 connected to 192.168.4.100 port 5201 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 113 MBytes 951 Mbits/sec 0 457 KBytes [ 5] 1.00-2.00 sec 112 MBytes 941 Mbits/sec 0 499 KBytes [ 5] 2.00-3.00 sec 113 MBytes 948 Mbits/sec 0 525 KBytes [ 5] 3.00-4.00 sec 112 MBytes 941 Mbits/sec 0 525 KBytes [ 5] 4.00-5.00 sec 112 MBytes 939 Mbits/sec 0 525 KBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-5.00 sec 563 MBytes 944 Mbits/sec 0 sender [ 5] 0.00-5.00 sec 560 MBytes 939 Mbits/sec receiver iperf Done. root@desk-mx8mm:~#
MAC Address[edit | edit source]
For the MAC Address programming, refers to the following wiki page
Peripheral HDMI[edit | edit source]
Device tree configuration[edit | edit source]
ORCA SOM[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the ORCA SOM:
From imx8mp-mito8mplus-cb1001.dts:
...
...
sound-hdmi {
compatible = "fsl,imx-audio-cdnhdmi";
model = "audio-hdmi";
audio-cpu = <&aud2htx>;
hdmi-out;
constraint-rate = <44100>,
<88200>,
<176400>,
<32000>,
<48000>,
<96000>,
<192000>;
status = "okay";
};
...
...
&irqsteer_hdmi {
status = "okay";
};
&hdmi_blk_ctrl {
status = "okay";
};
&hdmi_pavi {
status = "okay";
};
&hdmi {
status = "okay";
};
&hdmiphy {
status = "okay";
};
From imx8mp-mito8mplus.dtsi:
&iomuxc {
...
...
pinctrl_hog: hoggrp {
fsl,pins = <
MX8MP_IOMUXC_HDMI_DDC_SCL__HDMIMIX_HDMI_SCL 0x400001c3
MX8MP_IOMUXC_HDMI_DDC_SDA__HDMIMIX_HDMI_SDA 0x400001c3
MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD 0x40000019
MX8MP_IOMUXC_HDMI_CEC__HDMIMIX_HDMI_CEC 0x40000019
>;
};
...
...
};
MITO 8M Mini[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the MITO 8M Mini SOM:
From imx8mm-mito8mmini.dtsi:
...
...
&i2c1 {
...
mipi_to_lvds: sn65dsi83@2c {
compatible = "ti,sn65dsi83";
reg = <0x2c>;
enable-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
interrupts-extended = <&gpio1 5 GPIO_ACTIVE_HIGH>;
clocks = <&mipi_dsi 0>, <&clk IMX8MM_CLK_LCDIF_PIXEL>;
clock-names = "mipi_clk", "pixel_clock";
display = <&display_subsystem>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1_sn65dsi83>;
sync-delay = <512>;
dsi-lanes = <4>;
status = "okay";
lvds_ports: ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
lvds_in: endpoint {
remote-endpoint = <&mipi_out>;
data-lanes = <1 2 3 4>;
};
};
};
};
...
};
&lcdif {
status = "okay";
};
&mipi_dsi {
#clock-cells = <1>;
status = "okay";
port@1 {
mipi_out: endpoint {
remote-endpoint = <&lvds_in>;
attach-bridge;
};
};
};
&vpu_g1 {
status = "okay";
};
&vpu_g2 {
status = "okay";
};
&vpu_h1 {
status = "okay";
};
&gpu {
status = "okay";
};
...
...
From imx8mm-mito8mmini-cb100a.dts :
...
®ulators {
reg_lvds_pwr: lvds_pwr {
compatible = "regulator-fixed";
pinctrl-names = "default";
regulator-name = "lvds_pwr_en";
pinctrl-0 = <&pinctrl_lcd_3v3_enable>;
gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
regulator-always-on;
};
reg_5v_bl: 5v_bl {
compatible = "regulator-fixed";
pinctrl-names = "default";
regulator-name = "5v_bl_en";
pinctrl-0 = <&pinctrl_lcd_5v_enable>;
gpio = <&gpio5 5 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
regulator-always-on;
};
};
&i2c3 {
lvds-to-hdmi-bridge@4c {
compatible = "ite,it6263";
reg = <0x4c>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_it6263_en>;
reset-gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
status = "okay";
port {
it6263_in: endpoint {
remote-endpoint = <&lvds_out>;
};
};
};
};
&display_subsystem {
status = "okay";
};
&lvds_ports {
port@2 {
reg = <2>;
lvds_out: endpoint {
remote-endpoint = <&it6263_in>;
attach-bridge;
};
};
};
&iomuxc {
pinctrl_lcd_3v3_enable: lcd_3v3_en {
fsl,pins = <
MX8MM_IOMUXC_SAI3_RXC_GPIO4_IO29 0x19
>;
};
pinctrl_lcd_5v_enable: lcd_5v_en {
fsl,pins = <
MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0x19
>;
};
pinctrl_it6263_en: it6263_en {
fsl,pins = <
MX8MM_IOMUXC_SAI3_MCLK_GPIO5_IO2 0x19
>;
};
};
Accessing the peripheral in ORCA SOM[edit | edit source]
Linux messages at boot time[edit | edit source]
... ... [ 0.336013] platform 32fd8000.hdmi: Fixing up cyclic dependency with 32fc6000.lcd-controller [ 2.352266] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2) [ 2.352931] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver [ 2.414060] imx-drm display-subsystem: bound 32fd8000.hdmi (ops dw_hdmi_imx_ops) ... ...
Additional information[edit | edit source]
HDMI framebuffer can be accessed through the modetest utility accessing the imx-drm DRM device for NXP i.MX SoCs.
Here below an example of SBC ORCA configured for HDMI and LVDS outputs:
root@desk-mx8mp:~# modetest -M imx-drm
Encoders:
id crtc type possible crtcs possible clones
37 33 LVDS 0x00000001 0x00000001
39 36 TMDS 0x00000002 0x00000002
Connectors:
id encoder status name size (mm) modes encoders
38 37 connected HDMI-A-1 340x190 2 37
modes:
index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot
#0 1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
#1 1280x720 50.00 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver
props:
1 EDID:
flags: immutable blob
blobs:
value:
00ffffffffffff002074560100000000
141f010380221378fe6435a5544f9e27
125054bfea0061400101010101010101
010101010101021900a050d015203020
780059c21000001e000000fc00543038
30410a20202020202020000000ff0030
303030303030300a20202020000000fd
00304b545413010a20202020202001c9
020334f1461202030401132309070783
01000067030c001000384467d85dc401
448001681a00000109283ce6e50f0000
0600e200ff0000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
000000000000000000000000000000ca
2 DPMS:
flags: enum
enums: On=0 Standby=1 Suspend=2 Off=3
value: 0
5 link-status:
flags: enum
enums: Good=0 Bad=1
value: 0
6 non-desktop:
flags: immutable range
values: 0 1
value: 0
4 TILE:
flags: immutable blob
blobs:
value:
40 39 connected HDMI-A-2 600x340 33 39
modes:
index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot
#0 1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: preferred, driver
#1 3840x2160 30.00 3840 4016 4104 4400 2160 2168 2178 2250 297000 flags: phsync, pvsync; type: driver
#2 3840x2160 25.00 3840 4896 4984 5280 2160 2168 2178 2250 297000 flags: phsync, pvsync; type: driver
#3 3840x2160 24.00 3840 5116 5204 5500 2160 2168 2178 2250 297000 flags: phsync, pvsync; type: driver
#4 2560x1080 60.00 2560 2808 2852 3000 1080 1084 1089 1100 198000 flags: phsync, pvsync; type: driver
#5 2560x1080 50.00 2560 3108 3152 3300 1080 1084 1089 1125 185625 flags: phsync, pvsync; type: driver
#6 2560x1080 30.00 2560 3328 3372 3520 1080 1084 1089 1125 118800 flags: phsync, pvsync; type: driver
#7 2560x1080 25.00 2560 3008 3052 3200 1080 1084 1089 1125 90000 flags: phsync, pvsync; type: driver
#8 2560x1080 24.00 2560 3558 3602 3750 1080 1084 1089 1100 99000 flags: phsync, pvsync; type: driver
#9 2048x1152 60.00 2048 2074 2154 2250 1152 1153 1156 1200 162000 flags: phsync, pvsync; type: driver
#10 1920x1200 59.95 1920 1968 2000 2080 1200 1203 1209 1235 154000 flags: phsync, nvsync; type: driver
#11 1920x1080 120.00 1920 2008 2052 2200 1080 1084 1089 1125 297000 flags: phsync, pvsync; type: driver
#12 1920x1080 59.94 1920 2008 2052 2200 1080 1084 1089 1125 148352 flags: phsync, pvsync; type: driver
#13 1920x1080 50.00 1920 2448 2492 2640 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
#14 1920x1080 30.00 1920 2008 2052 2200 1080 1084 1089 1125 74250 flags: phsync, pvsync; type: driver
#15 1920x1080 29.97 1920 2008 2052 2200 1080 1084 1089 1125 74176 flags: phsync, pvsync; type: driver
#16 1920x1080 25.00 1920 2448 2492 2640 1080 1084 1089 1125 74250 flags: phsync, pvsync; type: driver
#17 1920x1080 24.00 1920 2558 2602 2750 1080 1084 1089 1125 74250 flags: phsync, pvsync; type: driver
#18 1920x1080 23.98 1920 2558 2602 2750 1080 1084 1089 1125 74176 flags: phsync, pvsync; type: driver
#19 1280x1024 75.02 1280 1296 1440 1688 1024 1025 1028 1066 135000 flags: phsync, pvsync; type: driver
#20 1280x1024 60.02 1280 1328 1440 1688 1024 1025 1028 1066 108000 flags: phsync, pvsync; type: driver
#21 1152x864 75.00 1152 1216 1344 1600 864 865 868 900 108000 flags: phsync, pvsync; type: driver
#22 1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
#23 1280x720 59.94 1280 1390 1430 1650 720 725 730 750 74176 flags: phsync, pvsync; type: driver
#24 1280x720 50.00 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver
#25 1440x576 50.00 1440 1464 1592 1728 576 581 586 625 54000 flags: nhsync, nvsync; type: driver
#26 800x600 60.32 800 840 968 1056 600 601 605 628 40000 flags: phsync, pvsync; type: driver
#27 800x600 56.25 800 824 896 1024 600 601 603 625 36000 flags: phsync, pvsync; type: driver
#28 720x576 50.00 720 732 796 864 576 581 586 625 27000 flags: nhsync, nvsync; type: driver
#29 720x480 60.00 720 736 798 858 480 489 495 525 27027 flags: nhsync, nvsync; type: driver
#30 720x480 59.94 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
#31 640x480 60.00 640 656 752 800 480 490 492 525 25200 flags: nhsync, nvsync; type: driver
#32 640x480 59.94 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
props:
1 EDID:
flags: immutable blob
blobs:
value:
00ffffffffffff00588f666601010101
06200103803c22782e3f3ba95047b025
105155bfef80e1c0d1fcd100d1c0b300
9500818081c0023a801871382d40582c
450058542100001e000000ff00363656
4944454f0a2020202020000000fd0018
4b0f8c3c000a202020202020000000fc
00504154482e4844520a2020202001e9
020353f35961605f5e5d100504030213
1f203f22215a595857561d1e11122c09
17071117503d07c0510700830100006d
030c002000107820006001020367d85d
c401788801e305e001e20f17e6060701
61600008e80030f2705a80b0588a00b9
882100001e565e00a0a0a02950302035
0055502100001e000000000000000058
2 DPMS:
flags: enum
enums: On=0 Standby=1 Suspend=2 Off=3
value: 0
5 link-status:
flags: enum
enums: Good=0 Bad=1
value: 0
6 non-desktop:
flags: immutable range
values: 0 1
value: 0
4 TILE:
flags: immutable blob
blobs:
value:
41 max bpc:
flags: range
values: 8 16
value: 16
CRTCs:
id fb pos size
33 49 (0,0) (1280x720)
#0 1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0
36 52 (0,0) (1920x1080)
#0 1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: preferred, driver
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0
Planes:
id crtc fb CRTC x,y x,y gamma size possible crtcs
31 33 49 0,0 0,0 0 0x00000001
formats: XR24 AR24 RG16 XB24 AB24 AR15 XR15
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1
32 zpos:
flags: immutable range
values: 0 0
value: 0
34 36 52 0,0 0,0 0 0x00000002
formats: XR24 AR24 RG16 XB24 AB24 AR15 XR15
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1
35 zpos:
flags: immutable range
values: 0 0
value: 0
Frame buffers:
id size pitch
root@desk-mx8mp:~#
The connectors DRM names are: HDMI-A-1 and LVDS-1. The releated device card is:
root@desk-mx8mp:~# ls -la /dev/dri/card* crw-rw---- 1 root video 226, 0 Jul 26 05:52 /dev/dri/card0 crw-rw---- 1 root video 226, 1 Jul 26 05:52 /dev/dri/card1 root@desk-mx8mp:~#
Accessing the peripheral in MITO 8M Mini[edit | edit source]
Linux messages at boot time[edit | edit source]
... ... [ 3.466020] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops) [ 3.759770] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops) [ 3.775867] imx-drm 32c00000.bus:display-subsystem: bound 32e10000.mipi_dsi (ops imx_sec_dsim_ops) [ 3.785440] [drm] Initialized imx-drm 1.0.0 20120507 for 32c00000.bus:display-subsystem on minor 1 ... [ 6.341483] imx-drm 32c00000.bus:display-subsystem: [drm] fb0: imx-drmdrmfb frame buffer device ... ...
Additional information[edit | edit source]
HDMI framebuffer can be accessed through the modetest utility accessing the imx-drm DRM device for NXP i.MX SoCs.
Here below an example of MITO 8M Mini configured for HDMI and LVDS outputs:
root@desk-mx8mm:~# modetest -M imx-drm
Encoders:
id crtc type possible crtcs possible clones
34 33 DSI 0x00000001 0x00000001
Connectors:
id encoder status name size (mm) modes encoders
35 34 connected HDMI-A-1 340x190 5 34
modes:
index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot
#0 1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
#1 1280x720 50.00 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver
#2 800x600 75.00 800 816 896 1056 600 601 604 625 49500 flags: phsync, pvsync; type: driver
#3 640x480 75.00 640 656 720 840 480 481 484 500 31500 flags: nhsync, nvsync; type: driver
#4 640x480 72.81 640 664 704 832 480 489 492 520 31500 flags: nhsync, nvsync; type: driver
props:
1 EDID:
flags: immutable blob
blobs:
value:
00ffffffffffff002074560100000000
141f010380221378fe6435a5544f9e27
125054bfea0061400101010101010101
010101010101021900a050d015203020
780059c21000001e000000fc00543038
30410a20202020202020000000ff0030
303030303030300a20202020000000fd
00304b545413010a20202020202001c9
020334f1461202030401132309070783
01000067030c001000384467d85dc401
448001681a00000109283ce6e50f0000
0600e200ff0000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
000000000000000000000000000000ca
2 DPMS:
flags: enum
enums: On=0 Standby=1 Suspend=2 Off=3
value: 0
5 link-status:
flags: enum
enums: Good=0 Bad=1
value: 0
6 non-desktop:
flags: immutable range
values: 0 1
value: 0
4 TILE:
flags: immutable blob
blobs:
value:
CRTCs:
id fb pos size
33 39 (0,0) (1280x720)
#0 1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0
Planes:
id crtc fb CRTC x,y x,y gamma size possible crtcs
31 33 39 0,0 0,0 0 0x00000001
formats: XR24 AR24 RG16 XB24 AB24 RX24 RA24 AR15 XR15 AB15 XB15 BG16
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1
32 zpos:
flags: immutable range
values: 0 0
value: 0
Frame buffers:
id size pitch
root@desk-mx8mm:~#
The connectors DRM names are: HDMI-A-1 and LVDS-1. The releated device card is:
root@desk-mx8mm:~# ls -la /dev/dri/card* crw-rw---- 1 root video 226, 0 Apr 29 00:39 /dev/dri/card0 crw-rw---- 1 root video 226, 1 Apr 29 00:39 /dev/dri/card1
Peripheral LVDS[edit | edit source]
Device tree configuration[edit | edit source]
ORCA SOM[edit | edit source]
Here below an example of device tree modification on standard DAVE's kit for the ORCA SOM:
Example of definition aboud LVDS to HDMI convert from imx8mp-mito8mplus-cb1008.dts
...
...
reg_lvds_en: regulator_lcd_3V3_en {
compatible = "regulator-fixed";
regulator-name = "lvds_enable";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lcd_3v3_enable>;
gpio = <&gpio1 6 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
regulator-always-on;
};
reg_vccbkl_en: regulator_lcd_5V_en {
compatible = "regulator-fixed";
regulator-name = "vddbkl_enable";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lcd_5v_enable>;
gpio = <&gpio1 8 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
regulator-always-on;
};
...
...
&i2c6 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c6>;
status = "okay";
lvds_bridge: lvds-to-hdmi-bridge@4c {
compatible = "ite,it6263";
reg = <0x4c>;
reset-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
status = "okay";
port {
it6263_in: endpoint {
remote-endpoint = <&lvds0_out>;
};
};
};
};
...
...
&lcdif2 {
status = "okay";
};
...
...
&ldb {
status = "okay";
lvds-channel@0 {
fsl,data-mapping = "jeida";
fsl,data-width = <24>;
status = "okay";
port@1 {
reg = <1>;
lvds0_out: endpoint {
remote-endpoint = <&it6263_in>;
};
};
};
};
...
...
&ldb_phy {
status = "okay";
};
...
...
&iomuxc {
pinctrl_lcd_3v3_enable: lcd_3v3_en {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06 0x19
>;
};
pinctrl_lcd_5v_enable: lcd_5v_en {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO08__GPIO1_IO08 0x19
>;
};
};
Accessing the peripheral[edit | edit source]
Linux messages at boot time[edit | edit source]
... ... [ 1.487645] [drm] Initialized vivante 1.0.0 20170808 for 40000000.mix_gpu_ml on minor 0 [ 2.443613] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops) [ 2.453352] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops) [ 2.461529] imx-drm display-subsystem: bound 32c00000.bus:ldb@32ec005c (ops imx8mp_ldb_ops) [ 2.469910] imx-drm display-subsystem: bound 32fd8000.hdmi (ops dw_hdmi_imx_ops) [ 2.477563] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1 [ 3.377095] imx-drm display-subsystem: [drm] fb0: imx-drmdrmfb frame buffer device ... ...
DRM access[edit | edit source]
DRM framework can be accessed using the modetest DRM utility.
root@desk-mx8mp:~# modetest -M imx-drm Encoders: id crtc type possible crtcs possible clones 37 33 LVDS 0x00000001 0x00000001 39 0 TMDS 0x00000002 0x00000002 Connectors: id encoder status name size (mm) modes encoders 38 37 connected HDMI-A-1 340x190 2 37 modes: index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot #0 1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver #1 1280x720 50.00 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver props: 1 EDID: flags: immutable blob blobs: value: 00ffffffffffff002074560100000000 141f010380221378fe6435a5544f9e27 125054bfea0061400101010101010101 010101010101021900a050d015203020 780059c21000001e000000fc00543038 30410a20202020202020000000ff0030 303030303030300a20202020000000fd 00304b545413010a20202020202001c9 020334f1461202030401132309070783 01000067030c001000384467d85dc401 448001681a00000109283ce6e50f0000 0600e200ff0000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 000000000000000000000000000000ca 2 DPMS: flags: enum enums: On=0 Standby=1 Suspend=2 Off=3 value: 0 5 link-status: flags: enum enums: Good=0 Bad=1 value: 0 6 non-desktop: flags: immutable range values: 0 1 value: 0 4 TILE: flags: immutable blob blobs: value: 40 0 disconnected HDMI-A-2 0x0 0 39 props: 1 EDID: flags: immutable blob blobs: value: 2 DPMS: flags: enum enums: On=0 Standby=1 Suspend=2 Off=3 value: 0 5 link-status: flags: enum enums: Good=0 Bad=1 value: 0 6 non-desktop: flags: immutable range values: 0 1 value: 0 4 TILE: flags: immutable blob blobs: value: 41 max bpc: flags: range values: 8 16 value: 0 CRTCs: id fb pos size 33 46 (0,0) (1280x720) #0 1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver props: 24 VRR_ENABLED: flags: range values: 0 1 value: 0 36 0 (0,0) (0x0) #0 nan 0 0 0 0 0 0 0 0 0 flags: ; type: props: 24 VRR_ENABLED: flags: range values: 0 1 value: 0 Planes: id crtc fb CRTC x,y x,y gamma size possible crtcs 31 33 46 0,0 0,0 0 0x00000001 formats: XR24 AR24 RG16 XB24 AB24 AR15 XR15 props: 8 type: flags: immutable enum enums: Overlay=0 Primary=1 Cursor=2 value: 1 32 zpos: flags: immutable range values: 0 0 value: 0 34 0 0 0,0 0,0 0 0x00000002 formats: XR24 AR24 RG16 XB24 AB24 AR15 XR15 props: 8 type: flags: immutable enum enums: Overlay=0 Primary=1 Cursor=2 value: 1 35 zpos: flags: immutable range values: 0 0 value: 0 Frame buffers: id size pitch root@desk-mx8mp:~#
Additional information[edit | edit source]
For some information on DRM/KMS framework, see the DRM-KMS kernel documentation.
Peripheral MIPI[edit | edit source]
Device tree configuration[edit | edit source]
ORCA SOM[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the ORCA SOM:
From imx8mp-mito8mplus-cb1001.dts:
&mipi_csi_0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@0 {
reg = <0>;
mipi_csi0_ep: endpoint {
remote-endpoint = <&ov5640_mipi_0_ep>;
data-lanes = <2>;
csis-hs-settle = <13>;
csis-clk-settle = <2>;
csis-wclk;
};
};
};
&mipi_csi_1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@1 {
reg = <1>;
mipi_csi1_ep: endpoint {
remote-endpoint = <&ov5640_mipi_1_ep>;
data-lanes = <2>;
csis-hs-settle = <13>;
csis-clk-settle = <2>;
csis-wclk;
};
};
};
From imx8mp-mito8mplus.dtsi:
&iomuxc {
...
...
pinctrl_mipi_dsi_en: mipi_dsi_en {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO08__GPIO1_IO08 0x16
>;
};
...
...
};
MITO 8M Mini[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the MINI SOM:
From imx8mm-mito8mmini-sbcx.dts:
...
...
regulators {
...
...
reg_csi_en: regulator-csi-en {
compatible = "regulator-fixed";
regulator-name = "csi_enable";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi_pwn>;
gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-always-on;
};
...
...
&csi1_bridge {
fsl,mipi-mode;
status = "okay";
port {
csi1_ep: endpoint {
remote-endpoint = <&csi1_mipi_ep>;
};
};
};
...
...
&i2c3 {
...
...
/* Digilent Pcam 5C */
ov5640_mipi: ov5640_mipi@3c {
compatible = "ovti,ov5640_mipi";
reg = <0x3c>;
status = "okay";
pinctrl-names = "default";
clocks = <&clk IMX8MM_CLK_CLKO1>;
clock-names = "csi_mclk";
assigned-clocks = <&clk IMX8MM_CLK_CLKO1>;
assigned-clock-parents = <&clk IMX8MM_CLK_24M>;
assigned-clock-rates = <24000000>;
csi_id = <0>;
mclk = <24000000>;
mclk_source = <0>;
port {
ov5640_mipi1_ep: endpoint {
remote-endpoint = <&mipi1_sensor_ep>;
};
};
...
...
&mipi_csi_1 {
...
...
port {
mipi1_sensor_ep: endpoint@1 {
remote-endpoint = <&ov5640_mipi1_ep>;
data-lanes = <2>;
csis-hs-settle = <13>;
csis-clk-settle = <2>;
csis-wclk;
};
csi1_mipi_ep: endpoint@2 {
remote-endpoint = <&csi1_ep>;
};
};
...
...
&iomuxc {
...
...
pinctrl_csi_pwn: csi_pwn_grp {
fsl,pins = <
MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19
>;
};
...
...
Accessing the peripheral in ORCA SOM[edit | edit source]
Linux messages at boot time[edit | edit source]
MIPI CSI-2 driver initialized:
... ... [ 2.296546] mxc-mipi-csi2-sam 32e40000.csi: supply mipi-phy not found, using dummy regulator [ 2.324079] mxc-mipi-csi2-sam 32e40000.csi: lanes: 2, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 500000000 [ 2.334821] mxc-mipi-csi2-sam 32e50000.csi: supply mipi-phy not found, using dummy regulator [ 2.355562] mxc-mipi-csi2-sam 32e50000.csi: lanes: 2, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 266000000 ... ...
and if a MIPI camera is inserted, it has been recognized and its video driver loaded:
... ... [ 7.018212] mx8-img-md: Registered sensor subdevice: ov5640 2-003c (1) [ 7.025152] mx8-img-md: Registered sensor subdevice: ov5640 1-003c (2) [ 7.059219] mx8-img-md: created link [ov5640 1-003c] => [mxc-mipi-csi2.0] [ 7.068913] mx8-img-md: created link [ov5640 2-003c] => [mxc-mipi-csi2.1] ... ...
Then check that the camera are correctly recognized.
root@desk-mx8mp:~# ls -la /dev/video[1-2] crw-rw---- 1 root video 81, 1 Jul 26 05:52 /dev/video1 crw-rw---- 1 root video 81, 2 Jul 26 05:52 /dev/video2 root@desk-mx8mp:~#
Usage with gstreamer[edit | edit source]
- Video capture, encoding and file save using Pcam 5C OV5640 MIPI camera:
root@desk-mx8mp:~# gst-launch-1.0 v4l2src device=/dev/video1 ! "video/x-raw,width=1920,height=1080" ! queue ! videorate ! vpuenc_h264 ! avimux ! filesink location=camera_test.avi
Setting pipeline to PAUSED ...
====== VPUENC: 4.7.2 build on Sep 1 2022 09:49:28. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Aug 31 2022 01:28:14)
vpulib: 1.1.1
firmware: 1.1.1.43690
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 1130.711257] bypass csc
[ 1130.713690] input fmt YUV4
[ 1130.716433] output fmt YUYV
Redistribute latency...
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:01:17.622451702
Setting pipeline to NULL ...
Freeing pipeline ...
root@desk-mx8mp:~#
- Video capture and display using Pcam 5C OV5640 MIPI camera:
root@desk-mx8mp:~# gst-launch-1.0 v4l2src device=/dev/video1 ! "video/x-raw,width=1920,height=1080" ! waylandsink [ 146.867054] mxc-mipi-csi2.1: mipi_csis_imx8mp_phy_reset, No remote pad found! [ 146.976442] mxc-mipi-csi2.1: mipi_csis_imx8mp_phy_reset, No remote pad found! Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock [ 147.732519] bypass csc [ 147.734895] input fmt YUV4 [ 147.737628] output fmt YUYV Redistribute latency... 0:00:02.0 / 99:99:99.
Accessing the peripheral in MITO 8M Mini[edit | edit source]
Linux messages at boot time[edit | edit source]
MIPI CSI-2 driver initialized:
... ... [ 1.830708] mxc_mipi-csi 32e30000.mipi_csi: supply mipi-phy not found, using dummy regulator [ 1.839449] mxc_mipi-csi 32e30000.mipi_csi: mipi csi v4l2 device registered [ 1.846428] CSI: Registered sensor subdevice: mxc_mipi-csi.0 [ 1.852112] mxc_mipi-csi 32e30000.mipi_csi: lanes: 2, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 333000000 [ 2.998491] mxc_mipi-csi 32e30000.mipi_csi: Registered sensor subdevice: ov5640_mipi 2-003c ... ...
and if a MIPI camera is inserted, it has been recognized and its video driver loaded:
... ... [ 1.789827] ov5640_mipi 2-003c: No pin available [ 1.794462] ov5640_mipi 2-003c: No sensor pwdn pin available [ 1.800135] ov5640_mipi 2-003c: No sensor reset pin available [ 1.805926] ov5640_mipi 2-003c: supply DOVDD not found, using dummy regulator [ 1.813173] ov5640_mipi 2-003c: supply DVDD not found, using dummy regulator [ 1.820266] ov5640_mipi 2-003c: supply AVDD not found, using dummy regulator [ 2.859688] ov5640_mipi 2-003c: Camera is found [ 3.029304] mxc_mipi-csi 32e30000.mipi_csi: Registered sensor subdevice: ov5640_mipi 2-003c [ 3.008055] ov5640_mipi 2-003c: Camera is found ... ...
Subsequently check that the driver has made the bind.
root@desk-mx8mm:~# ls -la /sys/bus/i2c/drivers/ov5640_mipi/2-003c lrwxrwxrwx 1 root root 0 Jul 26 06:14 /sys/bus/i2c/drivers/ov5640_mipi/2-003c -> ../../../../devices/platform/soc@0/30800000.bus/30a40000.i2c/i2c-2/2-003c
Additional information[edit | edit source]
More information about gstreamer on its web site.
More information about i.MX gstreamer plugin on the gstreamer-imx web site
Peripheral SD[edit | edit source]
Device tree configuration[edit | edit source]
N.B. The USDHC interface is re-configured on carrier device tree because of the Card Detect pin (which is related to the real board hardware implementation).
ORCA SOM[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the ORCA SOM:
From imx8mp-mito8mplus-cb1001.dts:
&usdhc2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
bus-width = <4>;
status = "okay";
};
From imx8mp-mito8mplus.dtsi:
&iomuxc {
...
...
pinctrl_usdhc2_gpio: usdhc2grp-gpio {
fsl,pins = <
MX8MP_IOMUXC_SD2_CD_B__GPIO2_IO12 0x1c4
>;
};
pinctrl_usdhc2: usdhc2grp {
fsl,pins = <
MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x190
MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d0
MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d0
MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d0
MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d0
MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d0
>;
};
...
...
};
MITO 8M Mini[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the MITO 8M Mini SOM:
From imx8mm-mito8mmini-sbcx.dts :
...
...
&usdhc2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
no-1-8-v;
bus-width = <4>;
status = "okay";
};
...
...
&iomuxc {
...
...
pinctrl_usdhc2_gpio: usdhc2grpgpio {
fsl,pins = <
MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x159
MX8MM_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x41
>;
};
...
...
From imx8mm-mito8mmini.dtsi:
...
...
&iomuxc {
...
...
pinctrl_usdhc2: usdhc2grp {
fsl,pins = <
MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x190
MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0
MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0
MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0
MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0
MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0
>;
};
...
...
};
Accessing the peripheral in ORCA SOM[edit | edit source]
Once initialized, the SD device is mapped to the standard /dev/mmcblk1pX block device, depending on how many partition are created on the SD card.
Linux messages at boot time[edit | edit source]
If the microSd card is inserted at boot time, the kernel - once the USDHC interface has been initialized - prints the device information and the partition detected like p1, p2, etc.:
... ... [ 1.999812] sdhci: Secure Digital Host Controller Interface driver [ 2.006013] sdhci: Copyright(c) Pierre Ossman [ 2.018039] sdhci-pltfm: SDHCI platform and OF driver helper ... ... [ 2.056527] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA [ 2.145811] mmc2: new HS400 Enhanced strobe MMC card at address 0001 [ 2.164099] mmcblk2: mmc2:0001 DG4008 7.28 GiB [ 2.171495] mmcblk2: p1 p2 [ 2.177272] mmcblk2boot0: mmc2:0001 DG4008 4.00 MiB [ 2.188332] mmcblk2boot1: mmc2:0001 DG4008 4.00 MiB [ 2.197573] mmcblk2rpmb: mmc2:0001 DG4008 4.00 MiB, chardev (234:0) [ 3.639133] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO [ 3.639657] sdhci-esdhc-imx 30b40000.mmc: allocated mmc-pwrseq [ 3.672666] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA [ 3.680554] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA [ 3.714316] mmc0: new high speed SDIO card at address 0001 [ 3.717859] mmc1: host does not support reading read-only switch, assuming write-enable [ 3.721153] mmc1: new high speed SDHC card at address aaaa [ 3.738538] mmcblk1: mmc1:aaaa SA16G 14.8 GiB [ 3.746022] mmcblk1: p1 p2 [ 5.136125] EXT4-fs (mmcblk1p2): mounted filesystem b1ceb8fb-311e-4b63-ab4c-a713e8e2579e r/w with ordered data mode. Quota mode: none. [ 7.440962] EXT4-fs (mmcblk1p2): re-mounted b1ceb8fb-311e-4b63-ab4c-a713e8e2579e r/w. Quota mode: none. ... ...
Accessing the peripheral in MITO 8M Mini[edit | edit source]
Once initialized, the SD device is mapped to the standard /dev/mmcblk1pX block device, depending on how many partition are created on the SD card.
Linux messages at boot time[edit | edit source]
If the microSd card is inserted at boot time, the kernel - once the USDHC interface has been initialized - prints the device information and the partition detected like p1, p2, etc.:
... ... [ 1.910278] sdhci: Secure Digital Host Controller Interface driver [ 1.916480] sdhci: Copyright(c) Pierre Ossman [ 1.927992] sdhci-pltfm: SDHCI platform and OF driver helper ... ... [ 1.970025] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA [ 2.053725] mmc0: new HS400 Enhanced strobe MMC card at address 0001 [ 2.064929] mmcblk0: mmc0:0001 DG4008 7.28 GiB [ 2.075727] mmcblk0: p1 p2 [ 2.080364] mmcblk0boot0: mmc0:0001 DG4008 4.00 MiB [ 2.090239] mmcblk0boot1: mmc0:0001 DG4008 4.00 MiB [ 2.108263] mmcblk0rpmb: mmc0:0001 DG4008 4.00 MiB, chardev (234:0) [ 3.375369] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO [ 3.430689] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA [ 3.571031] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA [ 3.725861] mmc1: host does not support reading read-only switch, assuming write-enable [ 3.737665] mmc1: new high speed SDHC card at address aaaa [ 3.744111] mmcblk1: mmc1:aaaa SA16G 14.8 GiB [ 3.752294] mmcblk1: p1 p2 ... ... [ 6.434299] EXT4-fs (mmcblk1p2): mounted filesystem 9f6bc0c5-ccf9-465e-aeae-12e1c938040b r/w with ordered data mode. Quota mode: none. [ 8.827416] EXT4-fs (mmcblk1p2): re-mounted 9f6bc0c5-ccf9-465e-aeae-12e1c938040b r/w. Quota mode: none. ... ...
Additional information[edit | edit source]
If the root file system configuration does not automatically mount the partition, it is possible to mount the device using the following command:
root@desk-mx8mp:~# mkdir -p /mnt/boot root@desk-mx8mp:~# mkdir -p /mnt/rfs root@desk-mx8mp:~# mount /dev/mmcblk1p1 /mnt/boot/ root@desk-mx8mp:~# mount /dev/mmcblk1p2 /mnt/rfs/ root@desk-mx8mp:~# ls /mnt/boot/ Image boot.scr imx8mp-mito8mplus-cb1001.dtb imx8mp-mito8mplus-cb1004.dtb imx8mp-mito8mplus-cb1005.dtb imx8mp-mito8mplus-cb1001.dtb splash_image.bmp stress_m7.bin tee.bin root@desk-mx8mp:~# ls /mnt/rfs/ bin boot dev etc home lib lost+found media mnt opt proc run sbin srv sys tmp unit_tests usr var root@desk-mx8mp:~#
and then the mounted partition are available on the /mnt/boot and /mnt/rfs root file system directories.
This instruction can be performed both on ORCA and MITO 8M MINI.
Peripheral UART[edit | edit source]
Device tree configuration[edit | edit source]
ORCA SOM[edit | edit source]
Here below an example of device tree modifications to standard DAVE's kit for the ORCA SOM:
From imx8mp-mito8mplus.dtsi:
...
...
&uart4 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart4_j8>;
assigned-clocks = <&clk IMX8MP_CLK_UART4>;
assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_80M>;
/*fsl,uart-has-rtscts;*/
status = "disabled";
};
...
...
&iomuxc {
...
...
pinctrl_uart4: uart4grp {
fsl,pins = <
MX8MP_IOMUXC_ECSPI2_SCLK__UART4_DCE_RX 0x140
MX8MP_IOMUXC_ECSPI2_MOSI__UART4_DCE_TX 0x140
MX8MP_IOMUXC_ECSPI2_MISO__UART4_DCE_CTS 0x140
MX8MP_IOMUXC_ECSPI2_SS0__UART4_DCE_RTS 0x140
>;
};
pinctrl_uart4_j8: uart4grp {
fsl,pins = <
MX8MP_IOMUXC_UART4_TXD__UART4_DCE_TX 0x140
MX8MP_IOMUXC_UART4_RXD__UART4_DCE_RX 0x140
>;
};
...
MITO 8M Mini[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the MITO 8M Mini SOM:
From imx8mm-mito8mmini.dtsi:
...
...
&uart1 {
assigned-clocks = <&clk IMX8MM_CLK_UART1>;
assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
status = "disabled";
};
...
...
&iomuxc {
...
...
pinctrl_uart1: uart1grp {
fsl,pins = <
MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140
MX8MM_IOMUXC_UART3_RXD_UART1_DCE_CTS_B 0x140
MX8MM_IOMUXC_UART3_TXD_UART1_DCE_RTS_B 0x140
>;
};
...
...
From imx8mm-mito8mmini-sbcx.dts:
...
...
/ {
regulators: regulators {
...
...
/* enable ISL3330IAZ on SBCX at boot */
reg_uart1_en: uart1_en {
compatible = "regulator-fixed";
regulator-name = "uart1_en";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1_en>;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio3 24 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-always-on;
regulator-boot-on;
};
...
...
};
};
...
...
&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>;
fsl,uart-has-rtscts;
status = "okay";
};
...
...
&iomuxc {
...
...
pinctrl_uart1_en: uart1_en {
fsl,pins = <
MX8MM_IOMUXC_SAI5_RXD3_GPIO3_IO24 0x19
>;
};
...
...
Accessing the peripheral in ORCA SOM[edit | edit source]
Linux messages at boot time[edit | edit source]
... ... [ 0.836042] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 31, base_baud = 5000000) is a IMX [ 0.843116] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 32, base_baud = 5000000) is a IMX [ 0.851863] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 33, base_baud = 1500000) is a IMX [ 0.860354] printk: console [ttymxc1] enabled ... ...
Usage with stty[edit | edit source]
N.B. UART mapping respect to ttymxcX is the following one:
UART1 (RS232) <-> ttymxc0 UART2 (Serial Port) <-> ttymxc1 UART3 (UART) <-> ttymxc2 UART4 (RS485) <-> ttymxc3 ...
root@desk-mx8mp:~# stty -F /dev/ttymxc0 115200 -echo -raw root@desk-mx8mp:~# cat /dev/ttymxc0 > test_ttymxc0.log & [1] 1868 root@desk-mx8mp:~# echo "Test loopback" > /dev/ttymxc0 root@desk-mx8mp:~# cat test_ttymxc0.log Test loopback root@desk-mx8mp:~#
Accessing the peripheral in MITO 8M Mini[edit | edit source]
Linux messages at boot time[edit | edit source]
... ... [ 0.812632] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 40, base_baud = 5000000) is a IMX [ 0.860368] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 42, base_baud = 1500000) is a IMX [ 0.869035] printk: console [ttymxc1] enabled ... ...
Usage with stty[edit | edit source]
N.B. UART mapping respect to ttymxcX is the following one:
UART1 (RS232/RS485/RS422 port DB9) <-> ttymxc0 UART2 (Serial Port) <-> ttymxc1 UART3 (PMOD) <-> ttymxc2 UART4 (UART for Cortex-M4) <-> ttymxc3 ...
root@desk-mx8mm:~# stty -F /dev/ttymxc0 115200 -echo -raw root@desk-mx8mm:~# cat /dev/ttymxc0 > test_ttymxc0.log & [1] 1313 root@desk-mx8mm:~# echo "Test loopback" > /dev/ttymxc0 root@desk-mx8mm:~# cat test_ttymxc0.log Test loopback root@desk-mx8mm:~#
Additional information[edit | edit source]
Serial ports can be used through the standard serial programming API.
For detailed information, please refer to the Serial Programming HOWTO at Serial-Programming-HOWTO
Peripheral USB-C[edit | edit source]
SBC ORCA[edit | edit source]
In SBC Orca two USB-C ports were mounted, that is:
- USB-C 1
- USB-C 2
USB-C 1[edit | edit source]
The USB-C 1 port is used to power-supply the board and for the transfer of data by Downstream-Facing Port (DFP) mode. The connector that is inserted in this port works in both side.
In U-Boot you can use this port only to power-supply the board and not for data transfer. In Linux you can use this port for data transfer.
For more information, refer to the example in USB1 OTG.
USB-C 2[edit | edit source]
The USB-C 2 port is used for data transfer. The connector that is inserted in this port works in both side.
In U-Boot you can use this port to transmit data with an external device, Downstream-Facing Port (DFP) mode, and to use the UUU functionality of NXP. In Linux you can use the Dual-Role Data mode (DRD).
For more information, refer to the example in USB2 OTG.
Device tree configuration in ORCA SOM[edit | edit source]
From imx8mp-mito8mplus-cb1001.dts:
&iomuxc {
pinctrl_ptn5150: ptn5150grp {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00 0x156
MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14 0x16
>;
};
...
...
extcon_usbotg2: typec@3d {
compatible = "nxp,ptn5150";
reg = <0x3d>;
int-gpios = <&gpio1 00 GPIO_ACTIVE_LOW>;
vbus-gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ptn5150>;
status = "okay";
};
...
...
Peripheral USB1 OTG[edit | edit source]
Device tree configuration[edit | edit source]
ORCA SOM[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the ORCA SOM:
From imx8mp-mito8mplus-cb1001.dts:
...
...
&usb3_phy0 {
vbus-power-supply = <&ptn5110>;
vbus-supply = <&dummy_reg>;
fsl,phy-tx-vref-tune-percent = <122>;
fsl,phy-tx-preemp-amp-tune-microamp = <1800>;
fsl,phy-tx-vboost-level-microvolt = <1156>;
fsl,phy-comp-dis-tune-percent = <115>;
fsl,phy-pcs-tx-deemph-3p5db-attenuation-db = <33>;
fsl,phy-pcs-tx-swing-full-percent = <100>;
status = "okay";
};
&usb3_0 {
status = "okay";
};
&usb_dwc3_0 {
dr_mode = "host";
snps,dis-u1-entry-quirk;
snps,dis-u2-entry-quirk;
status = "okay";
port {
usb3_drd_sw: endpoint {
remote-endpoint = <&typec_dr_sw>;
};
};
};
...
...
MITO 8M Mini[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the MITO 8M Mini:
From imx8mm-mito8mmini.dtsi:
...
...
&usbotg1 {
dr_mode = "otg";
picophy,pre-emp-curr-control = <3>;
picophy,dc-vol-level-adjust = <7>;
disable-over-current;
srp-disable;
hnp-disable;
adp-disable;
status = "disabled";
};
...
...
From imx8mm-mito8mmini-sbcx.dts:
...
...
&usbotg1 {
status = "okay";
};
...
...
Accessing the peripheral SBC ORCA[edit | edit source]
Linux messages in host mode[edit | edit source]
When a USB2.0 peripheral is inserted, in the following example a memory mass storage device, the kernel recognizes the device (i.e. class, vendor id, product id, etc.)
root@desk-mx8mp:~# [ 2778.596667] usb 1-1.2: new high-speed USB device number 4 using xhci-hcd [ 2778.733583] usb-storage 1-1.2:1.0: USB Mass Storage device detected [ 2778.741662] scsi host0: usb-storage 1-1.2:1.0 [ 2780.854831] scsi 0:0:0:0: Direct-Access Fanxiang F206 1100 PQ: 0 ANSI: 4 [ 2780.864795] sd 0:0:0:0: [sda] 61440000 512-byte logical blocks: (31.5 GB/29.3 GiB) [ 2780.875879] sd 0:0:0:0: [sda] Write Protect is off [ 2780.882883] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 [ 2780.883777] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 2780.902324] sda: sda1 [ 2780.908573] sd 0:0:0:0: [sda] Attached SCSI removable disk
When a USB3.0 peripheral is inserted, in the following example a memory mass storage device, the kernel recognizes the device (i.e. class, vendor id, product id, etc.)
root@desk-mx8mp:~# [ 2786.628638] usb 2-1.2: new SuperSpeed USB device number 4 using xhci-hcd [ 2786.663569] usb-storage 2-1.2:1.0: USB Mass Storage device detected [ 2786.670261] scsi host0: usb-storage 2-1.2:1.0 [ 2787.695351] scsi 0:0:0:0: Direct-Access Wilk USB DISK 3.0 PMAP PQ: 0 ANSI: 6 [ 2787.719089] sd 0:0:0:0: [sda] 60628992 512-byte logical blocks: (31.0 GB/28.9 GiB) [ 2787.727267] sd 0:0:0:0: [sda] Write Protect is off [ 2787.732132] sd 0:0:0:0: [sda] Mode Sense: 45 00 00 00 [ 2787.733341] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 2787.818114] sda: [ 2787.822985] sd 0:0:0:0: [sda] Attached SCSI removable disk
Additional information[edit | edit source]
If the root file system configuration does not automatically mount the partition, it is possible to mount the device using the following command:
root@desk-mx8mp:~# mkdir -p /mnt/usb root@desk-mx8mp:~# mount /dev/sda1 /mnt/usb root@desk-mx8mp:~# ls -la /mnt/usb total 104 drwxr-xr-x 5 root root 4096 Jul 26 06:58 . drwxr-xr-x 3 root root 4096 Jul 26 06:45 .. drwxr-xr-x 2 root root 4096 Jul 26 06:57 boot -rw-r--r-- 1 root root 33432 Jul 26 06:57 boot.scr -rw-r--r-- 1 root root 0 Jul 26 06:57 config.txt drwx------ 2 root root 16384 Jul 26 06:54 lost+found drwxr-xr-x 2 root root 4096 Jul 26 06:58 rfs -rw-r--r-- 1 root root 33432 Jul 26 06:58 settings.txt
Accessing the peripheral MITO 8M Mini[edit | edit source]
Usage with mass-storage[edit | edit source]
root@desk-mx8mm:~# dd if=/dev/zero of=mass_storage count=256 bs=1M 256+0 records in 256+0 records out 268435456 bytes (268 MB, 256 MiB) copied, 0.844688 s, 318 MB/s root@desk-mx8mp:~# mkfs.msdos mass_storage mkfs.fat 4.1 (2017-01-24) root@desk-mx8mm:~# mkdir loop root@desk-mx8mm:~# mount -o loop mass_storage loop root@desk-mx8mm:~# echo "Test USB OTG with mass storage device" > loop/usb.txt root@desk-mx8mm:~# umount loop root@desk-mx8mm:~#
then insert the g_mass_storage kernel module driver enabling an Windows PC to see it as a removable device
root@desk-mx8mm:~# modprobe g_mass_storage removable=y file=mass_storage [ 128.240835] Mass Storage Function, version: 2009/09/11 [ 128.246113] LUN: removable file: (no medium) [ 128.250510] LUN: removable file: /home/root/mass_storage [ 128.255874] Number of LUNs=1 [ 128.259140] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11 [ 128.266151] g_mass_storage gadget: userspace failed to provide iSerialNumber [ 128.273216] g_mass_storage gadget: g_mass_storage ready root@desk-mx8mm:~#
Once the USB cable is connected to the PC, the kernel prints the following messages:
root@desk-mx8mm:~# [ 892.036840] g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
and the Windows PC activate the driver and the disk is available as a Drive Unit (with the usb.txt file available).
Peripheral USB2 OTG[edit | edit source]
Device tree configuration[edit | edit source]
ORCA SOM[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the ORCA SOM:
From imx8mp-mito8mplus-cb1001.dts:
...
...
/ {
...
connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
usb_c_0_hs_ep: endpoint {
remote-endpoint = <&dwc3_0_hs_ep>;
};
};
port@1 {
reg = <1>;
usb_c_0_ss_ep: endpoint {
remote-endpoint = <&ptn5150_in_ep>;
};
};
};
};
...
...
};
...
...
&usb3_phy1 {
vbus-supply = <&dummy_reg>;
fsl,phy-tx-preemp-amp-tune-microamp = <1800>;
fsl,phy-tx-vref-tune-percent = <116>;
status = "okay";
};
&usb3_1 {
status = "okay";
};
&usb_dwc3_1 {
dr_mode = "otg";
extcon = <&extcon_usbotg2>;
hnp-disable;
srp-disable;
adp-disable;
rsp-disable;
disable-over-current;
status = "okay";
port {
#address-cells = <1>;
#size-cells = <0>;
dwc3_0_hs_ep: endpoint@0 {
reg = <0>;
remote-endpoint = <&usb_c_0_hs_ep>;
};
dwc3_0_ss_ep: endpoint@1 {
reg = <1>;
remote-endpoint = <&ptn5150_out_ep>;
};
};
};
...
...
MITO 8M Mini[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the MITO 8M Mini:
From imx8mm-mito8mmini.dtsi:
...
...
&usbotg2 {
dr_mode = "host";
picophy,pre-emp-curr-control = <3>;
picophy,dc-vol-level-adjust = <7>;
status = "disabled";
};
...
...
From imx8mm-mito8mmini-sbcx.dts:
...
...
/ {
regulators: regulators {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
reg_usb_pwr: usb_pwr {
compatible = "regulator-fixed";
regulator-name = "usb_pwr_en";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
...
...
};
};
...
...
&usbotg2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb_pwr>;
vbus-supply = <®_usb_pwr>;
status = "okay";
};
...
...
&iomuxc {
...
...
pinctrl_usb_pwr: usbpwrgrp {
fsl,pins = <
MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x19
>;
};
...
...
};
... ...
Accessing the peripheral SBC ORCA[edit | edit source]
Linux messages in host mode[edit | edit source]
When a USB 2.0 peripheral is inserted, in the following example a memory mass storage device, the kernel recognizes the device (i.e. class, vendor id, product id, etc.)
root@desk-mx8mp:~# [ 949.406404] [ 6491.481175] usb 3-1: new high-speed USB device number 3 using xhci-hcd [ 6491.639810] usb-storage 3-1:1.0: USB Mass Storage device detected [ 6491.646905] scsi host0: usb-storage 3-1:1.0 [ 6493.775259] scsi 0:0:0:0: Direct-Access Fanxiang F206 1100 PQ: 0 ANSI: 4 [ 6493.786654] sd 0:0:0:0: [sda] 61440000 512-byte logical blocks: (31.5 GB/29.3 GiB) [ 6493.795475] sd 0:0:0:0: [sda] Write Protect is off [ 6493.801799] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 6493.818546] sda: sda1 [ 6493.824653] sd 0:0:0:0: [sda] Attached SCSI removable disk root@desk-mx8mp:~#
When a USB 3.0 peripheral is inserted, in the following example a memory mass storage device, the kernel recognizes the device (i.e. class, vendor id, product id, etc.)
root@desk-mx8mp:~# [ 6798.669673] usb 4-1: new SuperSpeed USB device number 3 using xhci-hcd [ 6798.703673] usb-storage 4-1:1.0: USB Mass Storage device detected [ 6798.710479] scsi host1: usb-storage 4-1:1.0 [ 6799.719808] scsi 1:0:0:0: Direct-Access Wilk USB DISK 3.0 PMAP PQ: 0 ANSI: 6 [ 6799.732902] sd 1:0:0:0: [sdb] 60628992 512-byte logical blocks: (31.0 GB/28.9 GiB) [ 6799.741747] sd 1:0:0:0: [sdb] Write Protect is off [ 6799.747177] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 6799.934800] sdb: [ 6799.940848] sd 1:0:0:0: [sdb] Attached SCSI removable disk
Usage in device mode with mass-storage[edit | edit source]
root@desk-mx8mp:~# dd if=/dev/zero of=mass_storage count=256 bs=1M 256+0 records in 256+0 records out 268435456 bytes (268 MB, 256 MiB) copied, 0.987911 s, 272 MB/s root@desk-mx8mp:~# mkfs.msdos mass_storage mkfs.fat 4.2 (2021-01-31) root@desk-mx8mp:~# mkdir loop root@desk-mx8mp:~# mount -o loop mass_storage loop [ 6664.248804] loop0: detected capacity change from 0 to 524288 root@desk-mx8mp:~# echo "Test USB OTG with mass storage device" > loop/usb.txt root@desk-mx8mp:~# umount loop root@desk-mx8mp:~#
then insert the g_mass_storage kernel module driver enabling an Windows PC to see it as a removable device
root@desk-mx8mp:~# modprobe g_mass_storage removable=y file=mass_storage [ 6677.844877] Mass Storage Function, version: 2009/09/11 [ 6677.850190] LUN: removable file: (no medium) [ 6677.854585] LUN: removable file: /home/root/mass_storage [ 6677.859933] Number of LUNs=1 [ 6677.863239] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11 [ 6677.870221] g_mass_storage gadget: userspace failed to provide iSerialNumber [ 6677.877281] g_mass_storage gadget: g_mass_storage ready root@desk-mx8mp:~#
Once the USB cable is connected to the PC, the kernel prints the following messages:
root@desk-mx8mp:~# [ 1493.477167] g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
and the Windows PC activate the driver and the disk is available as a Drive Unit (with the usb.txt file available).
Accessing the peripheral MITO 8M Mini[edit | edit source]
Linux messages[edit | edit source]
When a USB 2.0 peripheral is inserted, in the following example a memory mass storage device, the kernel recognizes the device (i.e. class, vendor id, product id, etc.)
root@desk-mx8mm:~# [ 22.858909] usb 1-1: new high-speed USB device number 2 using ci_hdrc [ 23.022240] usb-storage 1-1:1.0: USB Mass Storage device detected [ 23.028819] scsi host0: usb-storage 1-1:1.0 [ 24.045317] scsi 0:0:0:0: Direct-Access SanDisk Cruzer Force 1.00 PQ: 0 ANSI: 6 [ 24.055280] sd 0:0:0:0: [sda] 60088320 512-byte logical blocks: (30.8 GB/28.7 GiB) [ 24.063993] sd 0:0:0:0: [sda] Write Protect is off [ 24.069617] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 24.142194] sda: sda1 [ 24.150358] sd 0:0:0:0: [sda] Attached SCSI removable disk
Additional information in host mode[edit | edit source]
If the root file system configuration does not automatically mount the partition, it is possible to mount the device using the following command:
root@desk-mx8mp:~# mkdir -p /mnt/usb root@desk-mx8mp:~# mount /dev/sda1 /mnt/usb [ 1245.415662] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. root@desk-mx8mp:~# ls -la /mnt/usb total 128 drwxr-xr-x 10 root root 4096 Jan 1 1970 . drwxr-xr-x 3 root root 4096 Dec 30 11:24 .. drwxr-xr-x 2 root root 4096 May 13 2021 System Volume Information drwxr-xr-x 2 root root 4096 Nov 17 15:27 boot -rwxr-xr-x 1 root root 8016 Nov 17 15:27 boot.scr -rwxr-xr-x 1 root root 1712 Dec 10 16:16 config.txt drwxr-xr-x 2 root root 4096 Nov 17 15:27 rfs -rwxr-xr-x 1 root root 57458 Nov 17 15:27 run-system-update.sh -rwxr-xr-x 1 root root 531 Nov 17 15:27 settings.txt
Peripheral PCI express[edit | edit source]
Device tree configuration[edit | edit source]
ORCA SOM[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the ORCA SOM:
From imx8mp-mito8mplus-cb1001.dts:
&pcie {
status = "okay";
};
&pcie_phy {
fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
clocks = <&pcie0_refclk>;
clock-names = "ref";
status = "okay";
};
MITO 8M Mini[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the MITO 8M Mini:
From imx8mm-mito8mmini.dtsi:
...
...
pcie0_refclk: pcie0-refclk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <100000000>;
};
...
...
&pcie_phy {
clocks = <&clk IMX8MM_CLK_PCIE1_PHY>;
clock-names = "ref";
fsl,clkreq-unsupported;
fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_OUTPUT>;
fsl,tx-deemph-gen1 = <0x2d>;
fsl,tx-deemph-gen2 = <0xf>;
status = "okay";
};
&pcie0 {
clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>,
<&clk IMX8MM_CLK_PCIE1_AUX>,
<&clk IMX8MM_CLK_PCIE1_PHY>,
<&pcie0_refclk>;
clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus";
assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
<&clk IMX8MM_CLK_PCIE1_PHY>,
<&clk IMX8MM_CLK_PCIE1_CTRL>;
assigned-clock-rates = <10000000>, <100000000>, <250000000>;
assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
<&clk IMX8MM_SYS_PLL2_100M>,
<&clk IMX8MM_SYS_PLL2_250M>;
ext_osc = <0>;
status = "disabled";
};
...
...
From imx8mm-mito8mmini-sbcx.dts:
...
...
regulators {
...
reg_pcie_pwr: pcie_pwr {
compatible = "regulator-fixed";
regulator-name = "PCIe_PWREN";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
gpio = <&gpio2 20 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
...
...
&pcie0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pcie0>;
disable-gpio = <&gpio5 20 GPIO_ACTIVE_LOW>;
reset-gpio = <&gpio5 21 GPIO_ACTIVE_LOW>;
wake-gpio = <&gpio3 20 GPIO_ACTIVE_HIGH>;
status = "okay";
};
...
...
&iomuxc {
...
...
pinctrl_pcie0: pcie0grp {
fsl,pins = <
MX8MM_IOMUXC_I2C4_SCL_GPIO5_IO20 0x19
MX8MM_IOMUXC_I2C4_SDA_GPIO5_IO21 0x19
MX8MM_IOMUXC_SD2_WP_GPIO2_IO20 0x19
MX8MM_IOMUXC_SAI5_RXC_GPIO3_IO20 0x19
>;
};
...
...
Accessing the peripheral in ORCA SOM[edit | edit source]
Linux messages at boot time[edit | edit source]
PCIe driver initialized:
... ... [ 1.036587] ehci-pci: EHCI PCI platform driver [ 1.052769] ohci-pci: OHCI PCI platform driver [ 1.998472] imx6q-pcie 33800000.pcie: supply epdev_on not found, using dummy regulator [ 2.006801] imx6q-pcie 33800000.pcie: EXT REF_CLK is used!. [ 2.012998] imx6q-pcie 33800000.pcie: PCIe PHY PLL clock is locked. [ 2.054543] imx6q-pcie 33800000.pcie: PCIe PLL is locked. [ 2.061522] imx6q-pcie 33800000.pcie: iATU unroll: enabled [ 2.074094] imx6q-pcie 33800000.pcie: Detected iATU regions: 4 outbound, 4 inbound [ 2.088808] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges: [ 2.102731] imx6q-pcie 33800000.pcie: No bus range found for /soc@0/pcie@33800000, using [bus 00-ff] [ 2.118147] imx6q-pcie 33800000.pcie: IO 0x001ff80000..0x001ff8ffff -> 0x0000000000 [ 2.133976] imx6q-pcie 33800000.pcie: MEM 0x0018000000..0x001fefffff -> 0x0018000000 [ 2.149011] imx6q-pcie 33800000.pcie: iATU unroll: enabled [ 2.161122] imx6q-pcie 33800000.pcie: Detected iATU regions: 4 outbound, 4 inbound [ 2.261489] imx6q-pcie 33800000.pcie: Link up ... ...
The PCIe usage is strictly related to the peripheral type connected to the PCIe slot. Then, the peripheral type defines the linux commands used for the accessing (hiding the PCIe bus commands)
PCIe to USB3 example[edit | edit source]
Using a PCIe to USB card, like the following one:
... ... [ 2.370224] imx6q-pcie 33800000.pcie: Link up, Gen2 [ 2.490193] imx6q-pcie 33800000.pcie: Link up [ 2.496941] imx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00 [ 2.503342] pci_bus 0000:00: root bus resource [bus 00-ff] [ 2.508847] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 2.515037] pci_bus 0000:00: root bus resource [mem 0x18000000-0x1fefffff] [ 2.528514] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400 [ 2.534560] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff] [ 2.540846] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref] [ 2.547588] pci 0000:00:00.0: supports D1 [ 2.551605] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold [ 2.560332] pci 0000:01:00.0: [1912:0015] type 00 class 0x0c0330 [ 2.566431] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit] [ 2.573586] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold [ 2.592170] pci 0000:00:00.0: BAR 0: assigned [mem 0x18000000-0x180fffff] [ 2.598991] pci 0000:00:00.0: BAR 14: assigned [mem 0x18100000-0x181fffff] [ 2.605889] pci 0000:00:00.0: BAR 6: assigned [mem 0x18200000-0x1820ffff pref] [ 2.613153] pci 0000:01:00.0: BAR 0: assigned [mem 0x18100000-0x18101fff 64bit] [ 2.620514] pci 0000:00:00.0: PCI bridge to [bus 01-ff] [ 2.625771] pci 0000:00:00.0: bridge window [mem 0x18100000-0x181fffff] [ 2.632899] pcieport 0000:00:00.0: PME: Signaling with IRQ 242 [ 2.638881] pci 0000:01:00.0: enabling device (0000 -> 0002) [ 8.404360] input: wch.cn USB2IIC_CTP_CONTROL as /devices/platform/soc@0/33800000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb5/5-1/5-1:1.0/0003:222A:0001.0001/input/input0 [ 8.560392] input: wch.cn USB2IIC_CTP_CONTROL as /devices/platform/soc@0/33800000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb5/5-1/5-1:1.0/0003:222A:0001.0001/input/input1 ... ...
the PCIe to USB 3 bridge is detected:
root@desk-mx8mp:~# lspci 00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01) 01:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02) root@desk-mx8mp:~#
and the two additional USB3 ports will be available:
root@desk-mx8mp:~# dmesg | grep -i usb | grep xhci [ 2.192089] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1 [ 2.221094] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2 [ 2.228770] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed [ 2.510185] usb 1-1: new high-speed USB device number 2 using xhci-hcd [ 2.862133] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd [ 2.996133] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 3 [ 3.025229] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 4 [ 3.032900] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed root@desk-mx8mp:~#
Inserting an USB key in the second USB3 port:
root@desk-mx8mp:~# [ 7565.281085] usb 6-2: new SuperSpeed USB device number 2 using xhci_hcd [ 7565.321526] usb-storage 6-2:1.0: USB Mass Storage device detected [ 7565.329534] scsi host1: usb-storage 6-2:1.0 [ 7566.342855] scsi 1:0:0:0: Direct-Access Wilk USB DISK 3.0 PMAP PQ: 0 ANSI: 6 [ 7566.352069] sd 1:0:0:0: [sdb] 60628992 512-byte logical blocks: (31.0 GB/28.9 GiB) [ 7566.360342] sd 1:0:0:0: [sdb] Write Protect is off [ 7566.365788] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 7566.555051] sdb: [ 7566.559628] sd 1:0:0:0: [sdb] Attached SCSI removable disk root@desk-mx8mp:~#
Accessing the peripheral in MITO 8M Mini[edit | edit source]
Linux messages at boot time[edit | edit source]
PCIe driver initialized:
... ... [ 3.113356] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges: [ 3.120666] imx6q-pcie 33800000.pcie: IO 0x001ff80000..0x001ff8ffff -> 0x0000000000 [ 3.136403] imx6q-pcie 33800000.pcie: MEM 0x0018000000..0x001fefffff -> 0x0018000000 [ 3.367242] imx6q-pcie 33800000.pcie: iATU: unroll T, 4 ob, 4 ib, align 64K, limit 4G [ 3.475167] imx6q-pcie 33800000.pcie: PCIe Gen.1 x1 link up [ 3.486778] imx6q-pcie 33800000.pcie: PCIe Gen.1 x1 link up [ 3.499318] imx6q-pcie 33800000.pcie: Link up, Gen1 [ 3.499325] imx6q-pcie 33800000.pcie: PCIe Gen.1 x1 link up [ 3.499623] imx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00 [ 3.512654] pci_bus 0000:00: root bus resource [bus 00-ff] [ 3.525392] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 3.556119] pci_bus 0000:00: root bus resource [mem 0x18000000-0x1fefffff] [ 3.563027] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400 [ 3.569047] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff] [ 3.575327] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref] [ 3.575375] pci 0000:00:00.0: supports D1 [ 3.593113] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold [ 3.601152] pci 0000:01:00.0: [1b4b:2b42] type 00 class 0x020000 [ 3.607267] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref] [ 3.614546] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x000fffff 64bit pref] [ 3.622243] pci 0000:01:00.0: supports D1 D2 [ 3.632493] pci 0000:01:00.0: PME# supported from D0 D1 D3hot D3cold [ 3.639040] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link) [ 3.663160] pci 0000:00:00.0: BAR 0: assigned [mem 0x18000000-0x180fffff] [ 3.669968] pci 0000:00:00.0: BAR 15: assigned [mem 0x18100000-0x182fffff pref] [ 3.677301] pci 0000:00:00.0: BAR 6: assigned [mem 0x18300000-0x1830ffff pref] [ 3.684534] pci 0000:01:00.0: BAR 0: assigned [mem 0x18100000-0x181fffff 64bit pref] [ 3.692326] pci 0000:01:00.0: BAR 2: assigned [mem 0x18200000-0x182fffff 64bit pref] [ 3.700117] pci 0000:00:00.0: PCI bridge to [bus 01-ff] [ 3.705351] pci 0000:00:00.0: bridge window [mem 0x18100000-0x182fffff pref] [ 3.713008] pcieport 0000:00:00.0: PME: Signaling with IRQ 217 ... ...
Check which are the devices connected to the PCIe.
root@desk-mx8mm:~# lspci 00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01) 01:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb) root@desk-mx8mm:~#
Additional information[edit | edit source]
Peripheral GPIOs[edit | edit source]
i.MX8 can handle external pins in many different ways and most of them can be configured as GPIOs. When a pin is set as a GPIO, it is possible to read its value, change its direction or change output value directly from the shell.
Device tree configuration[edit | edit source]
ORCA SOM[edit | edit source]
Here below a simple example of device tree configuration for using a GPIO on DAVE's kit for the ORCA SOM with gpio-leds sysfs interface:
From imx8mp-mito8mplus-cb1001.dts:
leds {
compatible = "gpio-leds";
ptn36043_gpio {
/* this gpio set the USB-C crossbar switch direction.
* As the connected peripheral would always be the power source of
* the system, hotplug is not possible.
* It's status is configured by the bootloader according to the CC
* direction and has only to be preserved during the execution.
* see usb_dwc3_0 for more details */
gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
};
...
...
&iomuxc {
...
...
pinctrl_gpio_led: gpioledgrp {
fsl,pins = <
MX8MP_IOMUXC_NAND_READY_B__GPIO3_IO16 0x19
>;
};
...
...
};
Accessing the peripheral in ORCA SOM[edit | edit source]
Linux messages at boot time[edit | edit source]
With the previous leds configuration for the GPIOs, it is possible to find them on sysfs under /sys/class/leds sub-directory:
root@desk-mx8mp:~# ls -la /sys/class/leds/ total 0 drwxr-xr-x 2 root root 0 Jul 26 05:52 . drwxr-xr-x 87 root root 0 Jul 26 05:52 .. lrwxrwxrwx 1 root root 0 Jul 26 05:52 mmc0:: -> ../../devices/platform/soc@0/30800000.bus/30b40000.mmc/leds/mmc0:: lrwxrwxrwx 1 root root 0 Jul 26 05:52 mmc1:: -> ../../devices/platform/soc@0/30800000.bus/30b50000.mmc/leds/mmc1:: lrwxrwxrwx 1 root root 0 Jul 26 05:52 mmc2:: -> ../../devices/platform/soc@0/30800000.bus/30b60000.mmc/leds/mmc2:: lrwxrwxrwx 1 root root 0 Jul 26 05:52 ptn36043_gpio -> ../../devices/platform/leds/leds/ptn36043_gpio root@desk-mx8mp:~#
Usage as led function[edit | edit source]
Setting the brightness node, it is possible to change the GPIO status:
- read actual led/GPIO status
root@desk-mx8mp:~# cat /sys/class/leds/ptn36043_gpio/brightness 1 root@desk-mx8mp:~#
- change led/GPIO status to Low (0)
root@desk-mx8mp:~# echo 0 > /sys/class/leds/ptn36043_gpio/brightness root@desk-mx8mp:~# [ 7970.890896] usb 2-1: USB disconnect, device number 2
- change led/GPIO status to High (1)
root@desk-mx8mp:~# echo 1 > /sys/class/leds/ptn36043_gpio/brightness root@desk-mx8mp:~# [ 7978.902356] usb 2-1: new SuperSpeed USB device number 5 using xhci-hcd [ 7979.060143] hub 2-1:1.0: USB hub found [ 7979.064524] hub 2-1:1.0: 4 ports detected root@desk-mx8mp:~#
GPIO sysfs deprecated[edit | edit source]
| sysfs GPIO ABI has been deprecated. See more information here about it. A character device access has to be used, more information here |
Information about GPIOs library libgpiod - C library and tools - can be found on git.kernel.org
Peripheral WiFi/Bluetooth[edit | edit source]
Device tree configuration[edit | edit source]
ORCA SOM[edit | edit source]
Here below an example of device tree configuration used on standard DAVE's kit for the ORCA SOM:
From imx8mp-mito8mplus-cb1001.dts:
/ {
...
usdhc1_pwrseq: usdhc1_pwrseq {
compatible = "mmc-pwrseq-simple";
reset-gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
};
...
};
...
...
/* AW-CM276MA SDIOUART */
&usdhc1 {
pinctrl-names = "default", "state_100mhz", "state_200mhz";
pinctrl-0 = <&pinctrl_usdhc1>;
pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
keep-power-in-suspend;
non-removable;
wakeup-source;
mmc-pwrseq = <&usdhc1_pwrseq>;
fsl,sdio-async-interrupt-enabled;
no-1-8-v;
max-frequency = <24000000>;
status = "okay";
};
and from imx8mp-mito8mplus.dtsi:
pinctrl_usdhc1: usdhc1grp {
fsl,pins = <
MX8MP_IOMUXC_SD1_CLK__USDHC1_CLK 0x190
MX8MP_IOMUXC_SD1_CMD__USDHC1_CMD 0x1d0
MX8MP_IOMUXC_SD1_DATA0__USDHC1_DATA0 0x1d0
MX8MP_IOMUXC_SD1_DATA1__USDHC1_DATA1 0x1d0
MX8MP_IOMUXC_SD1_DATA2__USDHC1_DATA2 0x1d0
MX8MP_IOMUXC_SD1_DATA3__USDHC1_DATA3 0x1d0
MX8MP_IOMUXC_SD1_DATA6__GPIO2_IO08 0x10
>;
};
pinctrl_usdhc1_100mhz: usdhc1grp-100mhz {
fsl,pins = <
MX8MP_IOMUXC_SD1_CLK__USDHC1_CLK 0x194
MX8MP_IOMUXC_SD1_CMD__USDHC1_CMD 0x1d4
MX8MP_IOMUXC_SD1_DATA0__USDHC1_DATA0 0x1d4
MX8MP_IOMUXC_SD1_DATA1__USDHC1_DATA1 0x1d4
MX8MP_IOMUXC_SD1_DATA2__USDHC1_DATA2 0x1d4
MX8MP_IOMUXC_SD1_DATA3__USDHC1_DATA3 0x1d4
MX8MP_IOMUXC_SD1_DATA6__GPIO2_IO08 0x10
>;
};
pinctrl_usdhc1_200mhz: usdhc1grp-200mhz {
fsl,pins = <
MX8MP_IOMUXC_SD1_CLK__USDHC1_CLK 0x196
MX8MP_IOMUXC_SD1_CMD__USDHC1_CMD 0x1d6
MX8MP_IOMUXC_SD1_DATA0__USDHC1_DATA0 0x1d6
MX8MP_IOMUXC_SD1_DATA1__USDHC1_DATA1 0x1d6
MX8MP_IOMUXC_SD1_DATA2__USDHC1_DATA2 0x1d6
MX8MP_IOMUXC_SD1_DATA3__USDHC1_DATA3 0x1d6
MX8MP_IOMUXC_SD1_DATA6__GPIO2_IO08 0x10
>;
};
BT[edit | edit source]
|
Bluetooth interface uses the same uart pads used in the RS485 L9 connector. By default, |
In the imx8mp-mito8mplus-cb1001.dts file:
/* AW-CM276MA Bluetooth UART */
&uart3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart3_bt>;
assigned-clocks = <&clk IMX8MP_CLK_UART3>;
assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_80M>;
fsl,uart-has-rtscts;
status = "okay";
};
MITO 8M Mini[edit | edit source]
For device-tree configuration, please take a look to PCIe page for DESK-MX8M-L
Accessing the peripheral SBC ORCA[edit | edit source]
|
The Wifi module used in the ORCA Evaluation Kit S/N SB8MU6120B2R version is the DWS: for the related usage information, please refer to this wiki page |
Linux messages at boot time[edit | edit source]
- load the
moalwlan driver for the NXP/Marvell SD8997 chipset
... ... root@desk-mx8mp:~# modprobe moal mod_para=nxp/wifi_mod_para.conf [ 498.786741] mlan: loading out-of-tree module taints kernel. [ 498.885649] wlan: Loading MWLAN driver [ 498.890341] wlan: Register to Bus Driver... [ 498.900372] vendor=0x02DF device=0x9141 class=0 function=1 [ 498.905978] Attach moal handle ops, card interface type: 0x104 [ 498.911852] rps set to 0 from module param [ 498.918054] SD8997: init module param from usr cfg [ 498.922883] card_type: SD8997, config block: 0 [ 498.927343] cfg80211_wext=0xf [ 498.930310] max_vir_bss=1 [ 498.932940] cal_data_cfg=none [ 498.935916] ps_mode = 1 [ 498.938361] auto_ds = 1 [ 498.940817] host_mlme=enable [ 498.943707] fw_name=nxp/sdiouart8997_combo_v4.bin [ 498.948435] SDIO: max_segs=128 max_seg_size=65535 [ 498.953149] rx_work=1 cpu_num=4 [ 498.956299] Enable moal_recv_amsdu_packet [ 498.960333] Attach mlan adapter operations.card_type is 0x104. [ 498.966551] wlan: Enable TX SG mode [ 498.970062] wlan: Enable RX SG mode [ 498.974881] Request firmware: nxp/sdiouart8997_combo_v4.bin [ 499.820295] Wlan: FW download over, firmwarelen=633976 downloaded 624880 [ 500.552030] WLAN FW is active [ 500.555024] on_time is 500552257533 [ 500.614101] VDLL image: len=9096 [ 500.617593] FW country code WW does not match with US [ 500.622943] fw_cap_info=0x587c6fa3, dev_cap_mask=0xffffffff [ 500.628547] max_p2p_conn = 8, max_sta_conn = 8 [ 500.663706] Register NXP 802.11 Adapter mlan0 [ 500.668362] wlan: uap%d set max_mtu 2000 [ 500.675963] Register NXP 802.11 Adapter uap0 [ 500.695587] Register NXP 802.11 Adapter wfd0 [ 500.699983] wlan: version = SD8997----16.92.21.p137.4-MM6X16505.p4-GPL-(FP92) [ 500.708793] wlan: Register to Bus Driver Done [ 500.713233] wlan: Driver loaded successfully ... ...
WiFi[edit | edit source]
Setup for static connection[edit | edit source]
- check that the interface has been properly intialized
root@desk-mx8mp:~# ifconfig mlan0
mlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 48:e7:da:78:33:6b txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- setup the
wpa_supplicant.confconfiguration file for handling the WiFi connection, for example:
root@desk-mx8mp:~# cat /etc/wpa_supplicant.conf
network={
ssid="ZyXEL"
key_mgmt=NONE
}
- apply the
wpa_supplicant.confconfiguration file manually starting thewpa_supplicant:
root@desk-mx8mp:~# wpa_supplicant -i mlan0 -c /etc/wpa_supplicant.conf -B Successfully initialized wpa_supplicant root@desk-mx8mp:~# [ 102.732838] wlan: mlan0 START SCAN [ 107.685985] wlan: SCAN COMPLETED: scanned AP count=5 [ 107.694267] wlan: HostMlme mlan0 send auth to bssid fc:XX:XX:XX:03:90 [ 107.929571] mlan0: [ 107.929585] wlan: HostMlme Auth received from fc:XX:XX:XX:03:90 [ 108.101873] wlan: HostMlme mlan0 Connected to bssid fc:XX:XX:XX:03:90 successfully [ 108.110851] IPv6: ADDRCONF(NETDEV_CHANGE): mlan0: link becomes ready Successfully initialized wpa_supplicant ...
- set the
mlan0IP address:
root@desk-mx8mp:~# ip addr add 192.168.11.89/255.255.255.0 dev mlan0
- then, the network access is enabled
root@desk-mx8mp:~# ping 192.168.11.243 -c 4 PING 192.168.11.243 (192.168.11.243) 56(84) bytes of data. 64 bytes from 192.168.11.243: icmp_seq=1 ttl=64 time=108 ms 64 bytes from 192.168.11.243: icmp_seq=2 ttl=64 time=23.3 ms 64 bytes from 192.168.11.243: icmp_seq=3 ttl=64 time=80.4 ms 64 bytes from 192.168.11.243: icmp_seq=4 ttl=64 time=31.9 ms --- 192.168.11.243 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3005ms rtt min/avg/max/mdev = 23.333/60.832/107.753/34.737 ms root@desk-mx8mp:~#
DHCP connection[edit | edit source]
- check the interface has been properly recognized
root@desk-mx8mp:~# ifconfig mlan0
mlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether e8:fb:1c:e1:80:65 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- add the
systemd-networkdnetwork configuration file formlan0network interface
root@desk-mx8mp:~# cat /etc/systemd/network/21-mlan0.network [Match] Name=mlan0 # Prevent the interface loading if the kernel boots from nfs KernelCommandLine=!nfsroot [Network] DHCP=yes
- setup your
wpa_supplicant.confconfiguration file for handle WiFi connection
root@desk-mx8mp:~# cat /etc/wpa_supplicant.conf
network={
ssid="daveguest"
psk="******"
}
Once the system has reboot, manually start the wpa_supplicant using the mlan0 interface and the wpa_supplicant.conf configuration file
Successfully initialized wpa_supplicant root@desk-mx8mp:~# [ 37.959411] wlan: mlan0 START SCAN [ 43.231759] wlan: SCAN COMPLETED: scanned AP count=5 [ 43.246886] wlan: HostMlme mlan0 send auth to bssid d0:XX:XX:XX:87:e8 [ 43.257254] mlan0: [ 43.257264] wlan: HostMlme Auth received from d0:XX:XX:XX:87:e8 [ 43.280121] wlan: HostMlme mlan0 Connected to bssid d0:XX:XX:XX:87:e8 successfully [ 43.291872] mlan0: [ 43.291919] wlan: Send EAPOL pkt to d0:XX:XX:XX:87:e8 [ 43.312739] mlan0: [ 43.312752] wlan: Send EAPOL pkt to d0:XX:XX:XX:87:e8 [ 43.320857] IPv6: ADDRCONF(NETDEV_CHANGE): mlan0: link becomes ready [ 43.327719] woal_cfg80211_set_rekey_data return: gtk_rekey_offload is DISABLE
- the interface will be properly configured and the network access is enabled
root@desk-mx8mp:~# ping www.dave.eu -c 4 PING www.dave.eu (51.91.120.202) 56(84) bytes of data. 64 bytes from 202.ip-51-91-120.eu (51.91.120.202): icmp_seq=1 ttl=48 time=42.2 ms 64 bytes from 202.ip-51-91-120.eu (51.91.120.202): icmp_seq=2 ttl=48 time=216 ms 64 bytes from 202.ip-51-91-120.eu (51.91.120.202): icmp_seq=3 ttl=48 time=146 ms 64 bytes from 202.ip-51-91-120.eu (51.91.120.202): icmp_seq=4 ttl=48 time=66.0 ms --- www.dave.eu ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3004ms rtt min/avg/max/mdev = 42.243/117.484/215.939/68.572 ms root@desk-mx8mp:~#
BT[edit | edit source]
- using the
hcitoolsattache the peripheral
root@desk-mx8mp:~# hciattach /dev/ttymxc2 any 115200 flow <flow> option FLOW_CTL on Setting TTY to N_HCI line discipline Device setup complete root@desk-mx8mp:~#
- check the
rfkillstatus
root@desk-mx8mp:~# rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
- activate the
hci0interface
root@desk-mx8mp:~# hciconfig hci0 up
- scan and discovery the nearby bluetooth devices
root@desk-mx8mp:~# bluetoothctl Agent registered [CHG] Controller E8:FB:1C:E1:57:04 Pairable: yes [bluetooth]# scan on Discovery started [CHG] Controller E8:FB:1C:E1:57:04 Discovering: yes [NEW] Device 4B:AE:F9:22:0F:9D 4B-AE-F9-22-0F-9D [NEW] Device 76:57:7A:09:E8:CF 76-57-7A-09-E8-CF [NEW] Device 5B:58:7D:BB:FC:68 iPhone [CHG] Device 76:57:7A:09:E8:CF ManufacturerData Key: 0x004c [CHG] Device 76:57:7A:09:E8:CF ManufacturerData Value: 10 07 56 1f c4 3a ac 36 28 ..V..:.6( [NEW] Device 72:D6:AF:D1:30:64 72-D6-AF-D1-30-64 [CHG] Device 76:57:7A:09:E8:CF ManufacturerData Key: 0x004c [CHG] Device 76:57:7A:09:E8:CF ManufacturerData Value: 10 07 16 1f c4 3a ac 36 58 .....:.6X [DEL] Device 72:D6:AF:D1:30:64 72-D6-AF-D1-30-64 [DEL] Device 5B:58:7D:BB:FC:68 iPhone [bluetooth]# scan off [CHG] Device 76:57:7A:09:E8:CF TxPower is nil [CHG] Device 76:57:7A:09:E8:CF RSSI is nil [CHG] Device 4B:AE:F9:22:0F:9D TxPower is nil [CHG] Device 4B:AE:F9:22:0F:9D RSSI is nil [CHG] Controller E8:FB:1C:E1:57:04 Discovering: no Discovery stopped [bluetooth]# exit
Accessing the peripheral MITO 8M Mini[edit | edit source]
Linux messages at boot time[edit | edit source]
- Check that WiFi module is available as PCIe device:
root@desk-mx8mm:~# lspci 00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01) 01:00.0 Ethernet controller: Marvell Technology Group Ltd. Device 2b42 (rev 11) root@desk-mx8mm:~#
- load the
moalwlan driver for the NXP/Marvell PCIE8997 chipset
... ... root@desk-mx8mm:~# modprobe moal mod_para=nxp/wifi_mod_para.conf [ 23.159116] mlan: loading out-of-tree module taints kernel. [ 23.259159] wlan: Loading MWLAN driver [ 23.263788] wlan: Register to Bus Driver... [ 23.268263] wlan_pcie 0000:01:00.0: enabling device (0000 -> 0002) [ 23.274577] PCI memory map Virt0: 0000000060b55e16 PCI memory map Virt2: 000000001636df70 [ 23.282834] Attach moal handle ops, card interface type: 0x204 [ 23.288693] rps set to 0 from module param [ 23.294900] PCIE8997: init module param from usr cfg [ 23.299921] card_type: PCIE8997, config block: 0 [ 23.304558] cfg80211_wext=0xf [ 23.307547] max_vir_bss=1 [ 23.310171] cal_data_cfg=none [ 23.313151] ps_mode = 1 [ 23.315615] auto_ds = 1 [ 23.318068] host_mlme=enable [ 23.320961] fw_name=nxp/pcieuart8997_combo_v4.bin [ 23.325734] rx_work=1 cpu_num=4 [ 23.328944] Enable moal_recv_amsdu_packet [ 23.332993] Attach mlan adapter operations.card_type is 0x204. [ 23.342986] Request firmware: nxp/pcieuart8997_combo_v4.bin [ 23.969807] FW download over, size 621604 bytes [ 24.691058] WLAN FW is active [ 24.694041] on_time is 24691337750 [ 24.741126] VDLL image: len=9096 [ 24.745099] FW country code WW does not match with US [ 24.750323] fw_cap_info=0x587c6fa3, dev_cap_mask=0xffffffff [ 24.755949] max_p2p_conn = 8, max_sta_conn = 8 [ 24.787806] Register NXP 802.11 Adapter mlan0 [ 24.792393] wlan: uap%d set max_mtu 2000 [ 24.798334] Register NXP 802.11 Adapter uap0 [ 24.814259] Register NXP 802.11 Adapter wfd0 [ 24.819634] wlan: version = PCIE8997--16.92.21.p137.4-MM6X16505.p4-GPL-(FP92) [ 24.828664] wlan: Register to Bus Driver Done [ 24.833414] wlan: Driver loaded successfully root@desk-mx8mm:~# ... ...
Setup for static connection[edit | edit source]
Check that the interface is properly intialized:
root@desk-mx8mm:~# ifconfig mlan0
mlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether e8:fb:1c:e1:80:65 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Setup the wpa_supplicant.conf configuration file for handling the WiFi connection, for example:
root@desk-mx8mm:~# cat /etc/wpa_supplicant.conf
network={
ssid="ZyXEL"
key_mgmt=NONE
}
Apply the wpa_supplicant.conf configuration file manually starting the wpa_supplicant:
root@desk-mx8mm:~# wpa_supplicant -i mlan0 -c /etc/wpa_supplicant.conf -B Successfully initialized wpa_supplicant ... root@desk-mx8mm:~#
Add the mlan0 IP address:
root@desk-mx8mm:~# ip addr add 192.168.11.165/255.255.255.0 dev mlan0
Then the network access is enabled:
root@desk-mx8mm:~# ping 192.168.11.243 -c 4 PING 192.168.11.243 (192.168.11.243) 56(84) bytes of data. 64 bytes from 192.168.11.243: icmp_seq=1 ttl=64 time=2.93 ms 64 bytes from 192.168.11.243: icmp_seq=2 ttl=64 time=2.96 ms 64 bytes from 192.168.11.243: icmp_seq=3 ttl=64 time=1.97 ms 64 bytes from 192.168.11.243: icmp_seq=4 ttl=64 time=2.77 ms --- 192.168.11.243 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3005ms rtt min/avg/max/mdev = 1.969/2.657/2.962/0.404 ms root@desk-mx8mm:~#
Setup for DHCP connection[edit | edit source]
Check that the interface is properly recognized:
root@desk-mx8mm:~# ifconfig mlan0
mlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether e8:fb:1c:e1:80:65 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Add the network configuration for systemd-networkd
root@desk-mx8mm:~# cat /etc/systemd/network/21-mlan0.network [Match] Name=mlan0 # Prevent the interface loading if the kernel boots from nfs KernelCommandLine=!nfsroot [Network] DHCP=yes
Setup your wpa_supplicant.conf configuration file for handle WiFi connection:
root@desk-mx8mm:~# cat /etc/wpa_supplicant.conf
network={
ssid="daveguest"
psk="******"
}
Reboot the system and manually start the wpa_supplicant using the mlan0 interface and the wpa_supplicant.conf configuration file:
root@desk-mx8mm:~# wpa_supplicant -i mlan0 -c /etc/wpa_supplicant.conf -B Successfully initialized wpa_supplicant ... [ 131.877506] ieee80211 phy0: mwifiex_cfg80211_sched_scan_start : Invalid Sched_scan parameters root@desk-mx8mm:~# [ 134.728825] mwifiex_pcie 0000:01:00.0: info: trying to associate to bssid d0:21:f9:35:87:e8 [ 134.754118] mwifiex_pcie 0000:01:00.0: info: associated to bssid d0:21:f9:35:87:e8 successfully [ 134.778115] IPv6: ADDRCONF(NETDEV_CHANGE): mlan0: link becomes ready
Then the interface will be properly configured and the network access is enabled:
root@desk-mx8mm:~# ping www.dave.eu -c 4 PING www.dave.eu (51.91.120.202) 56(84) bytes of data. 64 bytes from 202.ip-51-91-120.eu (51.91.120.202): icmp_seq=1 ttl=48 time=332 ms 64 bytes from 202.ip-51-91-120.eu (51.91.120.202): icmp_seq=2 ttl=48 time=254 ms 64 bytes from 202.ip-51-91-120.eu (51.91.120.202): icmp_seq=3 ttl=48 time=174 ms 64 bytes from 202.ip-51-91-120.eu (51.91.120.202): icmp_seq=4 ttl=48 time=94.2 ms --- www.dave.eu ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3004ms rtt min/avg/max/mdev = 94.197/213.585/332.136/88.720 ms root@desk-mx8mm:~#