Open main menu

DAVE Developer's Wiki β

DESK-MX6UL-L/pdf

< DESK-MX6UL-L
Revision as of 11:57, 16 March 2022 by U0007 (talk | contribs)



HistoryEdit

DESK-MX6UL-L History
Version Issue Date Notes Refers to

1.0.1

Jun 2021 First DESK release AXEL ULite SOM
SDV04
SBC Lynx SBC

3.0.0

Mar 2022 Update to NXP 5.10.35 AXEL ULite SOM
SDV04
SBC Lynx SBC

4.0.0

Mar 2023 Update to NXP 5.15.71 AXEL ULite SOM
SDV04
SBC Lynx SBC
4.0.1 Jun 2023 Minor update  AXEL ULite SOM
 SDV04
 SBC Lynx SBC


General InformationEdit

Release NotesEdit

DAVE Embedded Systems adds to the 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 4.0.1
Release type Minor
Status Released
Release date Jun 2023
Release notes Ver 4.0.1
Product support AXEL ULite
MVM (distro version) Ubuntu 20.04
U-Boot version 2022.04-desk-mx6ul-l-4.0.0
Linux version 5.15.71-desk-mx6ul-l-4.0.0
Drivers

SPI NOR Flash (boot)
NAND
UART debug (2-wire)
USB Host
SD/MMC1
LCD
Splash screen

RTC
RS232
RS485
Audio
I2C
SPI
ConfigID

Manufacturer BSP version lf-5.15.71-2.2.0
Graphic libraries Qt 6.3.2
Build System Yocto Kirkstone (4.0)

DESK-MX6UL-L 4.0.1Edit

Release notes:

  • Minor change to DESK-MX6UL-L-4.0.0
  • add missing linuxfb platform for iMX6UL
  • add missing fonts and Qt6 examples

Known IssuesEdit

The limitations are the same of DESK-MX6UL-L-4.0.0

Downloadable binary imagesEdit

All binary images for DESK-MX6UL-L are hosted on DAVE Embedded System mirror server. There you can find a sub directory for each version of this development kit.

U-Boot performs 2-stage bootloader providing two files: SPL and u-boot.img. Both two files 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-MX6UL-L 4.0.1
Platform SDV04 - SDV0400011C2R SBC Lynx - SXUB4000I3R
Carrier Board ConfigID 003a 002f
LCD panel Ampire 800 x 480 7" LVDS 262K colors N.A.
SPL SPL SPL
u-boot.img u-boot.img u-boot.img
Linux kernel uImage
Device tree imx6ul-axelulite-cb003a.dtb imx6ul-lynx-som0013-cb002f.dtb
root file system dave-image-devel-desk-mx6ul-axelulite dave-image-devel-desk-mx6ul-lynx

DESK-MX6UL-L 4.0.0Edit

New MVM must be installed for using DESK-MX6UL-L-4.0.0. The VM is available for download on DAVE's XELK Reserved Area for registered users.

Release notes:

  • Major change to NXP BSP 5.15.71
  • Updated U-Boot and kernel versions
  • Updated Yocto version
  • Updated Qt version

Known IssuesEdit

The following table reports the known limitations of this DESK release:

Issue Description
Linux kernel xconfig make xconfig does not work

Downloadable binary imagesEdit

All binary images for DESK-MX6UL-L are hosted on DAVE Embedded System mirror server. There you can find a sub directory for each version of this development kit.

U-Boot performs 2-stage bootloader providing two files: SPL and u-boot.img. Both two files 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-MX6UL-L 4.0.0
Platform SDV04 - SDV0400011C2R SBC Lynx - SXUB4000I3R
Carrier Board ConfigID 003a 002f
LCD panel Ampire 800 x 480 7" LVDS 262K colors N.A.
SPL SPL SPL
u-boot.img u-boot.img u-boot.img
Linux kernel uImage
Device tree imx6ul-axelulite-cb003a.dtb imx6ul-lynx-som0013-cb002f.dtb
root file system dave-image-devel

DESK-MX6UL-L 3.0.0Edit

New MVM must be installed for using DESK-MX6UL-L-3.0.0. The VM is available for download on DAVE's XELK Reserved Area for registered users.

Release notes:

  • Major change to NXP BSP 5.10.35
  • Updated U-Boot and kernel versions
  • Updated Yocto version
  • Updated Qt version

Known IssuesEdit

The following table reports the known limitations of this DESK release:

Issue Description
Qt5 linuxfb not working platform linuxfb is not present on desk-image-qt5 image target
Linux kernel xconfig make xconfig does not work

Downloadable binary imagesEdit

All binary images for DESK-MX6UL-L are hosted on DAVE Embedded System mirror server. There you can find a sub directory for each version of this development kit.

U-Boot performs 2-stage bootloader providing two files: SPL and u-boot.img. Both two files 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-MX6UL-L 3.0.0
Platform SDV04 - SDV0400011C2R SBC Lynx - SXUB4000I3R
Carrier Board ConfigID 003a 002f
LCD panel Ampire 800 x 480 7" LVDS 262K colors N.A.
SPL SPL SPL
u-boot.img u-boot.img u-boot.img
Linux kernel uImage
Device tree imx6ul-axelulite-cb003a.dtb imx6ul-lynx-som0013-cb002f.dtb
root file system dave-image-devel

DESK-MX6UL-L 1.0.1Edit

New MVM must be installed for using DESK-MX6UL-L-1.0.1. The VM is available for download on DAVE's XELK Reserved Area for registered users.

Release notes:

  • Major change to NXP BSP 4.14.98
  • Updated U-Boot and kernel versions
  • Updated Yocto version
  • Updated Qt version

Known IssuesEdit

The following table reports the known limitations of this DESK release:

Issue Description
Qt5 linuxfb not working platform linuxfb is not present on desk-image-qt5 image target
Linux kernel xconfig make xconfig does not work

Downloadable binary imagesEdit

All binary images for DESK-MX6UL-L are hosted on DAVE Embedded System mirror server. There you can find a sub directory for each version of this development kit.

U-Boot performs 2-stage bootloader providing two files: SPL and u-boot.img. Both two files 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-MX6UL-L 1.0.1
Platform SDV04 - SDV0400011C2R SBC Lynx - SXUB4000I3R
Carrier Board ConfigID 003a 002f
LCD panel Ampire 800 x 480 7" LVDS 262K colors N.A.
bootscript boot.scr
SPL SPL SPL
u-boot.img u-boot.img u-boot.img
Linux kernel uImage
Device tree imx6ul-axelulite-cb003a.dtb imx6ul-lynx-som0013-cb002f.dtb
root file system dave-image-devel

Release typesEdit

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 1.1.0 is a maintenance release, so it provides the DVDK released with the 1.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 platformsEdit

The following table reports the supported platforms in this DESK release:

Platform Description
SBC Lynx Single Board Computer using the i.MX6UL SOC
SDV04 Single Board Computer using AXEL_ULite SOM as Evaluation Kit


Virtual MachineEdit

DESK-MX6UL-L contains all the required software and documentation to start developing Linux application on the AXEL ULite platform. In particular, DESK-MX6UL-L provides a virtual machine, called DVDK, with the following features:

  • VirtualBox virtual machine (.OVA archive)
  • based on Lubuntu 20.04 LTS (64-bit version)
  • pre-installed VirtualBox Guest Additions
  • LXDE desktop environment
  • boot disk with the distro and pre-configured basic Linux services:
    • TFTP: with base directory /srv/tftp/
    • NFS: configured through the /etc/exports file
  • secondary disk containing source code and tools:
    • bootloader (u-boot) source tree cloned from DAVE Embedded Systems public git repository
    • Linux kernel source tree cloned from DAVE Embedded Systems public git repository
    • external pre-built toolchain
    • Yocto BSP for AXEL ULite SOM
  • pre-installed Yocto-based root file systems with setup scripts, makefiles, example applications, ...
  • administrator account (dvdk) with autologin. Please note that the user account credentials are provided with the development kit (you can find them in the README file contained in the sw/dvdk folder of the kit distribution)
    • user: dvdk
    • password: dvdk

Please note that u-boot and kernel source trees are derived from the official trees released by NXP/Freescale; these trees have been customized to add support for the AXEL ULite SOM.

Guest AddictionsEdit

Guest Addictions installation may fail if the VirtualBox version is different from the VM linux kernel version.

In case of VBox error message:

Error: kernel headers not found

as suggested here, install the correct kernel header using the following command:

sudo apt-get install linux-headers-`uname -r`

and the run the Guest Addictions install

dvdk@vagrant:/media/dvdk/VBox_GAs_6.1.18$ sudo ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.18 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.16 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-4.4.0-197-generic
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 4.4.0-197-generic.
update-initramfs: Generating /boot/initrd.img-4.4.0-197-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted
dvdk@vagrant:/media/dvdk/VBox_GAs_6.1.18$ 

Host setupEdit

As stated previously, AXEL ULite SOM host tools are based on a Managed Virtual Machine. MVM OVA files can be downloaded here. For accessing DESK Reserved area please contact our helpdesk support channel

To install it, please refer to this page.

It is worth remembering that access to git repositories is required to download target source code. To enable it, please refer to this page.



ConfigID and UniqueIDEdit

ConfigIDEdit

ConfigID is a new feature of DAVE Embedded Systems products. Its main purpose is providing an automatic mechanism for the identification of the product model and configuration.

With ConfigID, we aim at:

  • completing the hardware configuration information that the software can't normally auto-detect (i.e. RAM chip version,...), implementing a dedicated reliable detect procedure
  • when required, overriding the auto-detected hardware configuration information

When implemented, this mechanism allows for:

  • initializing in the proper way the hardware platform, based on the specific features and parameters of the product, using a common software base (eg: a typical case is the SDRAM controller parameters, which must be configured by U-Boot depending on the particular memory chip, which can be different for the various SOM models)
  • getting the complete hardware configuration (combining ConfigID with the information collectable at runtime) of a product deployed on the field

In simple words, model identification means the capability of reading a numerical code, stored in an available device (SOC's OTP , I2C EEPROM, 1-wire memories, protected NOR flash, etc.)

There are two ConfigIDs:

  • SOM ConfigID: which reflects the characteristics of the SOM (stored on the SOM itself)
  • Carrier Board (CB) ConfigID: which reflects the characteristics of the carrier board that hosts the SOM (stored on the carrier board itself and read by the SOM at boot time)

UniqueIDEdit

An additional attribute is UniqueID, which is a read-only code which univocally identifies a single product and is used for traceability.


It is worth remembering that ConfigID and UniqueID are independent from product serial number.

Customer's actionEdit

DAVE Embedded Systems recommends to be up-to-date with Official SOM's BSPs for taking advantages of ConfigID/UniqueId features: this is the only required action.

  • ConfigID advantage: to allow U-Boot bootloader to be executed only with the correct configuration (if the U-Boot loaded is not the proper one, it may stop execution avoiding incorrect behaviour)
  • UniqueID advantage: to trace univocally each individual SOMs and, in turn, all the on-the-field equipments

ConfigID valuesEdit

ConfigID is a N-bit (typically N>8) signed integer, that can have the following values:

  • < 0: error
    • -1: not initialized
  • = 0: ConfigID legacy
    • for prototypes (ConfigID not yet defined) or for products manufactured before the introduction of the ConfigID feature
  • > 0: valid ConfigID
    • values are reported accordingly with the specific product table

Hardware implementations of the ConfigIDEdit

The following paragraphs briefly describe the available solutions for storing the ConfigID.

OTP on the SOCEdit

Some SOCs provides programmable OTPs (eg. for security, MAC address, boot modes, etc). Usually, some of these are general purpose registers and can be managed by the user.

This is the ideal implementation, because:

  • ConfigID is stored in the most important component of the SOM
  • the component that hosts the ConfigID is NOT optional
  • typically, a very selective lock can be forced. In general, for reliability and/or security reasons, OTP areas used to store ConfigIDs may be locked during the manufacturing process.

OTP 1-wire memoryEdit

This implementation requires a 1-wire memory chip.

I2C EepromEdit

This implementation requires connecting an EEPROM to an I2C bus of the SOC. Moreover, routing a write protect pin to the SOM connector is required.

NOR Flash SPIEdit

This implementation requires a NOR flash connected to the SPI bus of the SOC.

DAVE Embedded Systems' hardware implementationEdit

DAVE's SOCs implement the ConfigID feature depending on hardware Capabilities of the SOCs. The following list shows the priority used for its implementation:

  1. OTPs
    1. example: AXEL family processor (i.MX6) implements ConfigID using processor's OTP
    2. AXEL uses GP1 eFuse register to store ConfigID
  2. NOR Flash SPI
    1. example: DIVA family processor (AM335x) implements ConfigID using NOR SPI (if present)
    2. DIVA and BORA use the first 32bytes OTP block on NOR SPI to store ConfigID (and its CRC32), UniqueID (and its CRC32)
  3. I2C Eeprom
    1. example: DIVA family processor (AM335x) or BORA Lite processor (ZYNQ) implements ConfigID using I2C Eeprom when NOR SPI is not present (module boots from NAND or SD)
    2. DIVA and BORA Lite use the first 32bytes on I2C EPROM to store ConfigID (and its CRC32), UniqueID (and its CRC32)
  4. 1-wire
    1. example: latest AXEL Lite, AXEL ULite and BORA/BORA Xpress/BORA Lite Evaluation Kits implement CB ConfigID using the onboard 1-wire device (DS2431)

Software implementationEdit

U-BootEdit

u-boot integrates the software routines for reading and displaying the ConfigID: hereunder an example of SOM ConfigID at startup:

U-Boot 2013.04-00010-gcb05b30 (Jun 26 2015 - 12:49:26)-xelk-2.1.0

CPU:   Freescale i.MX6Q rev1.5 at 792 MHz
CPU:   Temperature 47 C, limits (-40 C, 125 C), calibration data: 0xc0
Reset cause: POR
Environment: SPI Flash
I2C:   ready
DRAM:  2 GiB
Now running in RAM - U-Boot at: 8ff35000
NAND:  512 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected S25FL256S with page size 64 KiB, total 32 MiB
In:    serial
Out:   serial
Err:   serial
Power: found PFUZE100 (devid=10, revid=21)
SOM ConfigID#: 00000003
SOM UniqueID#: df646299:0b0579d4

For accessing these information on Linux procfs, the device tree must be modified (using u-boot fdt command): for example:

DIVA# setenv fdtfixup 'fdt addr ${fdtaddr}; run fdtfixup_configid'
DIVA# setenv fdtfixup_configid 'fdt set / som_configid ${som_configid#}; fdt set / som_uniqueid ${som_uniqueid#}; fdt set / cb_configid ${cb_configid#}; fdt set / cb_uniqueid ${cb_uniqueid#}'
LinuxEdit

It is possible to read the ConfigID/UniqueID via procfs; for example:

root@axel-lite:~# cat /proc/device-tree/som/configid && echo
00000003
root@axel-lite:~# cat /proc/device-tree/som/uniqueid && echo
df646299:0b0579d4
root@axel-lite:~#

Legacy device tree, has a sightly different procfs structure:

root@axel-lite:~# cat /proc/device-tree/som_configid && echo
00000003
root@axel-lite:~# cat /proc/device-tree/som_uniqueid && echo
df646299:0b0579d4
root@axel-lite:~#

A real case example of ConfigID benefitEdit

The ConfigID benefit is clear when:

  • there is a number of products deployed on the field
  • the products deployed on the field needs a SW update

The ideal scenario is that all products are equal and there are no differences on the Bill Of Material (BOM):

In this case there are no problems to deploy a new SW update on the field: all products have the same HW configuration, then the same SW configuration.

Unfortunately, this is an ideal scenario. The reality is that:

  • component obsolescence
  • product shortage
  • second source strategies

force to have an on-the-field different version of product (with same functionalities but with different HW configuration) which doesn't permit to realize what proposed in the ideal case.


The usage of the ConfigID technique, allows the running SW to identify the underlying HW configuration and automatically adapt the BSP (i.e. the driver layer) to properly use the HW subsystems: this, maintaining the overall product features identical to the final User point-of-view.

With a scenario, like the one described above, if you would like to update the SW you need to implement a strategy for understanding what platform version is going to be updated. The Config ID is used exactly for this goal.

The ConfigID provides to the software update routine the information on which product version is so the update can be adapted to the exact product version.

In this way, you can distribute one single version of the software update which will automatically adapt itself to the currently running platform.

How to handle After Sales with Config IDEdit

One of the mos common questions about Config ID is how to handle the Config ID issue. Below is described with an example how to handle it.

This product is returned from the field with a problem on the display:

 
Config ID A

After Sales Dept analizes the product and decide to substitute the display. The problem is that the existing display is not available - because of is End Of Life (EOL) - and it is required to move to a different display: in the product a different Config ID will be written because of the 2 displays requires a dedicated SW version and cannot be distinguished automatically during the startup. The final result is to have the similar product:

 
Config ID B

As indicated, the new display requires a different Config ID (from A to B) so it can be updated with an easy software routine before start the SW update. This Config ID update routine can be implemented in manufacturing facility typically using a dedicated USB pen drive which modify the saved ConfigID to the new one depending on the storage memory in use



ConfigIDEdit

This article describes how the ConfigID is implemented in the products supported by the DESK-MX6UL-L Linux Kit.

AXEL ULiteEdit

As AXEL ULite is a system-on-module (SOM), the typical mechanism described here is used.

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:

...
SOM ConfigID#: 00000014
SOM UniqueID#: ee6ac309:171411d4
CB ConfigID#: 0000003a
CB UniqueID#: 00000000:00000000
Board: MX6UL AXEL ULite rev.A on SDV04
...

Generally speaking:

  • 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-MX6UL-L) to be unique over the whole MX6UL family



Booting from NFSEdit

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 configurationEdit

DESK-MX6UL-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) configurationEdit

The DESK-MX6UL-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 configurationEdit

The IP address for server and target should be configured: an example (for a network subnet 192.168.0.x)

=> setenv serverip 192.168.0.125
=> setenv ipaddr 192.168.0.90
  • serverip is the IP address of the host machine running the tftp/nfs server
  • ipaddr is the IP address of the target

The kernel and device tree files has to be selected

=> setenv bootfile desk-mx-l/uImage
=> setenv fdtfile desk-mx-l/imx6ul-lynx-som0013-cb002f.dtb

finally, the root file system directory on the Virtual Machine should be configured for let the kernel to find the INIT

=> setenv rootpath /home/dvdk/desk-mx-l/rfs/desk-mx6ul-l/

To run this configuration just issue the net_nfs command which firstly download the kernel and device tree using the tftp protocol

U-Boot SPL 2022.04-desk-mx6ul-l-4.0.0 (Apr 14 2023 - 10:13:15 +0200)
SOM ConfigID#: 00000014
Trying to boot from MMC1


U-Boot 2022.04-desk-mx6ul-l-4.0.0 (Apr 14 2023 - 10:13:15 +0200)

CPU:   Freescale i.MX6UL rev1.2 528 MHz (running at 396 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 58C
Reset cause: WDOG
I2C:   ready
DRAM:  256 MiB
Relocating to 8ff57000, new gd at 8fb56ec0, sp at 8fb56ea0
Core:  2 devices, 2 uclasses
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11
NAND:  128 MiB
MMC:   FSL_SDHC: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

No panel detected: default to MI0700AJT-30
Display: MI0700AJT-30 (800x480)
Video: 800x480x18
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc0 is current device (SD)
SOM ConfigID#: 00000014
SOM UniqueID#: ee6ac309:2f3211d4
CB ConfigID#: 0000003a
CB UniqueID#: 00000000:00000000
Board: MX6UL AXEL ULite rev.A on SDV04
Net:   FEC0
Warning: FEC0 (eth0) using random MAC address - 12:bd:8b:55:c9:fd

Normal Boot
Hit any key to stop autoboot:  3 ��� 0 
=> run net_nfs
Using FEC0 device
TFTP from server 192.168.0.125; our IP address is 192.168.0.90
Filename 'desk-mx6ul-l/uImage'.
Load address: 0x80800000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ######
	 1.9 MiB/s
done
Bytes transferred = 8016520 (7a5288 hex)
Using FEC0 device
TFTP from server 192.168.0.167; our IP address is 192.168.0.165
Filename 'desk-mx6ul-l/imx6ul-axelulite-cb003a.dtb'.
Load address: 0x83000000
Loading: #######
	 1.5 MiB/s
done
Bytes transferred = 32964 (80c4 hex)
FDT: override 'som_uniqueid' with 'ee6ac309:2f3211d4'
FDT: override 'cb_uniqueid' with '00000000:00000000'
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   Linux-5.15.71-desk-mx6ul-l-4.0.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    8016456 Bytes = 7.6 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Loading Kernel Image
   Using Device Tree in place at 83000000, end 8300bfff

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.71-desk-mx6ul-l-4.0.0 (jenkins@focalbakery) (arm-poky-linux-gnueabi-gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Mon Apr 3 18:11:32 CEST 2023
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: AxelULite on SFCZG
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x000000008fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000008fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008fffffff]
[    0.000000] percpu: Embedded 12 pages/cpu s17036 r8192 d23924 u49152
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.167:/home/dvdk/desk-mx-l/rfs/desk-mx6ul-l,v3,tcp ip=192.168.0.165:192.168.0.167::255.255.255.0:lynx:eth0:off panic=1 fec_mac=12:bd:8b:55:c9:fd console=ttymxc0,115200 vmalloc=400M mtdparts=gpmi-nand:2M(nand-SPL),6M(nand-uboot),1M(nand-env1),1M(nand-env2),1M(nand-fdt),1M(nand-spare),8M(nand-kernel),4M(nand-splash),-(nand-ubi);spi0.0:64k(spi-SPL),960k(spi-uboot),256k(spi-env1),256k(spi-env2),512k(spi-dtb),8M(spi-kernel),4M(spi-splash),-(spi-free)
[    0.000000] Unknown kernel command line parameters "fec_mac=12:bd:8b:55:c9:fd", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 241540K/262144K available (12288K kernel code, 1353K rwdata, 2332K rodata, 1024K init, 407K bss, 20604K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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=4 to nr_cpu_ids=1.
[    0.000000] 	Trampoline variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] Switching to timer-based delay loop, resolution 41ns
[    0.000003] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000056] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.002940] Console: colour dummy device 80x30
[    0.003055] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.003114] pid_max: default: 32768 minimum: 301
[    0.003496] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003561] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.005206] CPU: Testing write buffer coherency: ok
[    0.005901] CPU0: update cpu_capacity 1024
[    0.005957] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.008385] Setting up static identity map for 0x80100000 - 0x80100060
[    0.008814] rcu: Hierarchical SRCU implementation.
[    0.011506] smp: Bringing up secondary CPUs ...
[    0.011557] smp: Brought up 1 node, 1 CPU
[    0.011592] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.011623] CPU: All CPU(s) started in SVC mode.
[    0.012672] devtmpfs: initialized
[    0.025295] Duplicate name in lcdif@21c8000, renamed to "display#1"
[    0.029731] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.030464] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.030541] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.030796] pinctrl core: initialized pinctrl subsystem
[    0.034466] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.035249] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.038239] thermal_sys: Registered thermal governor 'step_wise'
[    0.038271] thermal_sys: Registered thermal governor 'user_space'
[    0.039142] cpuidle: using governor menu
[    0.039595] CPU identified as i.MX6UL, silicon rev 1.2
[    0.039637] Use WDOG1 as reset source
[    0.067130] vdd3p0: supplied by regulator-dummy
[    0.068251] cpu: supplied by regulator-dummy
[    0.069846] vddsoc: supplied by regulator-dummy
[    0.104132] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.104200] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.107255] imx6ul-pinctrl 20e0000.pinctrl: initialized IMX pinctrl driver
[    0.110386] imx mu driver is registered.
[    0.111452] imx rpmsg driver is registered.
[    0.195510] vgaarb: loaded
[    0.196988] SCSI subsystem initialized
[    0.198278] usbcore: registered new interface driver usbfs
[    0.198431] usbcore: registered new interface driver hub
[    0.198569] usbcore: registered new device driver usb
[    0.201260] i2c i2c-0: IMX I2C adapter registered
[    0.203230] i2c i2c-1: IMX I2C adapter registered
[    0.204124] mc: Linux media interface: v0.10
[    0.204248] videodev: Linux video capture interface: v2.00
[    0.204463] pps_core: LinuxPPS API ver. 1 registered
[    0.204496] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.204559] PTP clock support registered
[    0.206556] MIPI CSI2 driver module loaded
[    0.206704] Advanced Linux Sound Architecture Driver Initialized.
[    0.208560] Bluetooth: Core ver 2.22
[    0.208720] NET: Registered PF_BLUETOOTH protocol family
[    0.208750] Bluetooth: HCI device and connection manager initialized
[    0.208805] Bluetooth: HCI socket layer initialized
[    0.208840] Bluetooth: L2CAP socket layer initialized
[    0.208945] Bluetooth: SCO socket layer initialized
[    0.210477] clocksource: Switched to clocksource mxc_timer1
[    0.210925] VFS: Disk quotas dquot_6.6.0
[    0.211118] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.233278] NET: Registered PF_INET protocol family
[    0.233839] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.235590] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.235700] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.235747] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.235829] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.235936] TCP: Hash tables configured (established 2048 bind 2048)
[    0.236145] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.236232] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.236660] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.238380] RPC: Registered named UNIX socket transport module.
[    0.238438] RPC: Registered udp transport module.
[    0.238466] RPC: Registered tcp transport module.
[    0.238491] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.240914] PCI: CLS 0 bytes, default 64
[    0.242146] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.245880] Bus freq driver module loaded
[    0.248247] Initialise system trusted keyrings
[    0.249569] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.263190] NFS: Registering the id_resolver key type
[    0.263347] Key type id_resolver registered
[    0.263378] Key type id_legacy registered
[    0.263496] ntfs: driver 2.1.32 [Flags: R/W].
[    0.264336] fuse: init (API version 7.34)
[    0.497238] Key type asymmetric registered
[    0.497298] Asymmetric key parser 'x509' registered
[    0.497468] io scheduler mq-deadline registered
[    0.497506] io scheduler kyber registered
[    0.512527] imx-sdma 20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2
[    0.512600] imx-sdma 20ec000.sdma: Falling back to sysfs fallback for: imx/sdma/sdma-imx6q.bin
[    0.517038] mxs-dma 1804000.dma-apbh: initialized
[    0.527760] pfuze100-regulator 0-0008: Full layer: 1, Metal layer: 1
[    0.528598] pfuze100-regulator 0-0008: FAB: 0, FIN: 0
[    0.528644] pfuze100-regulator 0-0008: pfuze3000 found.
[    0.556142] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.561409] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 30, base_baud = 5000000) is a IMX
[    1.351768] printk: console [ttymxc0] enabled
[    1.358703] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 65, base_baud = 5000000) is a IMX
[    1.371437] imx sema4 driver is registered.
[    1.401639] brd: module loaded
[    1.421792] loop: module loaded
[    1.426809] imx ahci driver is registered.
[    1.436066] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1
[    1.442574] nand: Winbond W29N01HV
[    1.446004] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.454321] Scanning device for bad blocks
[    1.562971] 9 cmdlinepart partitions found on MTD device gpmi-nand
[    1.569208] Creating 9 MTD partitions on "gpmi-nand":
[    1.574349] 0x000000000000-0x000000200000 : "nand-SPL"
[    1.583269] 0x000000200000-0x000000800000 : "nand-uboot"
[    1.592447] 0x000000800000-0x000000900000 : "nand-env1"
[    1.601383] 0x000000900000-0x000000a00000 : "nand-env2"
[    1.610260] 0x000000a00000-0x000000b00000 : "nand-fdt"
[    1.619181] 0x000000b00000-0x000000c00000 : "nand-spare"
[    1.628426] 0x000000c00000-0x000001400000 : "nand-kernel"
[    1.637659] 0x000001400000-0x000001800000 : "nand-splash"
[    1.646905] 0x000001800000-0x000008000000 : "nand-ubi"
[    1.656711] gpmi-nand 1806000.nand-controller: driver registered.
[    1.664474] SPI driver spidev has no spi_device_id for spidev
[    1.672200] spinor@0 enforce active low on chipselect handle
[    1.681402] spi-nor spi0.0: is25lp128 (16384 Kbytes)
[    1.686458] 8 cmdlinepart partitions found on MTD device spi0.0
[    1.692531] Creating 8 MTD partitions on "spi0.0":
[    1.697362] 0x000000000000-0x000000010000 : "spi-SPL"
[    1.706315] 0x000000010000-0x000000100000 : "spi-uboot"
[    1.715406] 0x000000100000-0x000000140000 : "spi-env1"
[    1.724389] 0x000000140000-0x000000180000 : "spi-env2"
[    1.733394] 0x000000180000-0x000000200000 : "spi-dtb"
[    1.742250] 0x000000200000-0x000000a00000 : "spi-kernel"
[    1.751430] 0x000000a00000-0x000000e00000 : "spi-splash"
[    1.760849] 0x000000e00000-0x000001000000 : "spi-free"
[    1.775112] CAN device driver interface
[    1.783237] pps pps0: new PPS source ptp0
[    1.793611] fec 2188000.ethernet eth0: registered PHC device 0
[    1.802098] usbcore: registered new interface driver asix
[    1.807657] usbcore: registered new interface driver ax88179_178a
[    1.814196] usbcore: registered new interface driver cdc_ether
[    1.820193] usbcore: registered new interface driver cdc_eem
[    1.826165] usbcore: registered new interface driver net1080
[    1.832060] usbcore: registered new interface driver cdc_subset
[    1.838095] usbcore: registered new interface driver zaurus
[    1.844061] usbcore: registered new interface driver cdc_ncm
[    1.849846] usbcore: registered new interface driver cdc_mbim
[    1.855875] usbcore: registered new interface driver r8153_ecm
[    1.861821] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.868428] ehci-pci: EHCI PCI platform driver
[    1.873300] usbcore: registered new interface driver cdc_wdm
[    1.879123] usbcore: registered new interface driver usb-storage
[    1.894801] snvs_rtc 20cc000.snvs:snvs-rtc-lp: registered as rtc0
[    1.901156] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01T00:08:16 UTC (496)
[    1.910853] i2c_dev: i2c /dev entries driver
[    1.917875] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.933187] mxsfb 21c8000.lcdif: supply lcd not found, using dummy regulator
[    2.031501] sii902x bound to mxs-lcdif from 21c8000.lcdif
[    2.360531] mxsfb 21c8000.lcdif: initialized
[    2.367599] pxp-v4l2 pxp_v4l2: initialized
[    2.375281] Bluetooth: HCI UART driver ver 2.3
[    2.379781] Bluetooth: HCI UART protocol H4 registered
[    2.385053] Bluetooth: HCI UART protocol BCSP registered
[    2.390527] Bluetooth: HCI UART protocol LL registered
[    2.396675] sdhci: Secure Digital Host Controller Interface driver
[    2.402978] sdhci: Copyright(c) Pierre Ossman
[    2.407357] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.415527] sdhci-esdhc-imx 2190000.mmc: Got CD GPIO
[    2.424029] caam 2140000.crypto: Entropy delay = 3200
[    2.441655] caam 2140000.crypto: Instantiated RNG4 SH0
[    2.454128] caam 2140000.crypto: Instantiated RNG4 SH1
[    2.459322] caam 2140000.crypto: device ID = 0x0a16030000000000 (Era 8)
[    2.466378] caam 2140000.crypto: job rings = 3, qi = 0
[    2.471959] mmc0: SDHCI controller on 2190000.mmc [2190000.mmc] using ADMA
[    2.514454] caam algorithms registered in /proc/crypto
[    2.522658] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.535086] caam 2140000.crypto: caam pkc algorithms registered in /proc/crypto
[    2.543250] mmc0: new high speed SDHC card at address aaaa
[    2.550792] mmcblk0: mmc0:aaaa SA32G 29.7 GiB 
[    2.556994] caam 2140000.crypto: rng crypto API alg registered prng-caam
[    2.566576] caam 2140000.crypto: registering rng-caam
[    2.572162]  mmcblk0: p1 p2
[    2.579021] Device caam-keygen registered
[    2.591251] caam-snvs 20cc000.caam-snvs: violation handlers armed - non-secure state
[    2.600369] usbcore: registered new interface driver usbhid
[    2.606441] usbhid: USB HID core driver
[    2.613201] random: crng init done
[    2.631392] NET: Registered PF_INET6 protocol family
[    2.639064] Segment Routing with IPv6
[    2.643116] In-situ OAM (IOAM) with IPv6
[    2.647271] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.654938] NET: Registered PF_PACKET protocol family
[    2.660072] can: controller area network core
[    2.664822] NET: Registered PF_CAN protocol family
[    2.669658] can: raw protocol
[    2.672817] can: broadcast manager protocol
[    2.677053] can: netlink gateway - max_hops=1
[    2.682148] Bluetooth: RFCOMM TTY layer initialized
[    2.687108] Bluetooth: RFCOMM socket layer initialized
[    2.692597] Bluetooth: RFCOMM ver 1.11
[    2.696443] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.701937] Bluetooth: BNEP filters: protocol multicast
[    2.707221] Bluetooth: BNEP socket layer initialized
[    2.712261] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.718221] Bluetooth: HIDP socket layer initialized
[    2.723364] 8021q: 802.1Q VLAN Support v1.8
[    2.727620] lib80211: common routines for IEEE802.11 drivers
[    2.733983] Key type dns_resolver registered
[    2.764709] Registering SWP/SWPB emulation handler
[    2.770398] Loading compiled-in X.509 certificates
[    2.822772] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    2.827751] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    2.860763] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    2.867185] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    2.875925] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.883520] usb usb1: Product: EHCI Host Controller
[    2.888423] usb usb1: Manufacturer: Linux 5.15.71-desk-mx6ul-l-4.0.0 ehci_hcd
[    2.895627] usb usb1: SerialNumber: ci_hdrc.0
[    2.901330] hub 1-0:1.0: USB hub found
[    2.905212] hub 1-0:1.0: 1 port detected
[    2.916959] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    2.922094] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[    2.950560] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    2.956510] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    2.964895] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.972186] usb usb2: Product: EHCI Host Controller
[    2.977083] usb usb2: Manufacturer: Linux 5.15.71-desk-mx6ul-l-4.0.0 ehci_hcd
[    2.984288] usb usb2: SerialNumber: ci_hdrc.1
[    2.989889] hub 2-0:1.0: USB hub found
[    2.993924] hub 2-0:1.0: 1 port detected
[    3.001639] imx_thermal 20c8000.anatop:tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[    3.015050] input: gpio-power-fail as /devices/platform/gpio-power-fail/input/input0
[    3.103349] Micrel KSZ8081 or KSZ8091 2188000.ethernet-1:03: attached PHY driver (mii_bus:phy_addr=2188000.ethernet-1:03, irq=POLL)
[    6.251258] fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[    6.259389] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.280651] IP-Config: Complete:
[    6.283964]      device=eth0, hwaddr=12:bd:8b:55:c9:fd, ipaddr=192.168.0.165, mask=255.255.255.0, gw=255.255.255.255
[    6.295060]      host=lynx, domain=, nis-domain=(none)
[    6.300335]      bootserver=192.168.0.167, rootserver=192.168.0.167, rootpath=
[    6.301393] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.322125] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.328965] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.338227] ALSA device list:
[    6.341409]   No soundcards found.
[    6.346528] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    6.422692] VFS: Mounted root (nfs filesystem) on device 0:13.
[    6.430250] devtmpfs: mounted
[    6.436107] Freeing unused kernel image (initmem) memory: 1024K
[    6.451127] Run /sbin/init as init process
[    7.321198] systemd[1]: System time before build time, advancing clock.
[    7.402408] 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)
[    7.435349] systemd[1]: Detected architecture arm.

Welcome to NXP i.MX Release Distro 5.15-kirkstone (kirkstone)!

[    7.496555] systemd[1]: Hostname set to <desk-mx6ul-axelulite>.
[    7.518512] systemd[1]: Initializing machine ID from random generator.
[    8.134086] systemd[159]: /lib/systemd/system-generators/systemd-gpt-auto-generator failed with exit status 1.
[    8.157430] systemd-sysv-generator[168]: 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.
[    8.189714] systemd-sysv-generator[168]: 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.
[    8.241994] systemd-sysv-generator[168]: 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.
[    8.270763] systemd-sysv-generator[168]: 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.
[    8.311128] systemd-sysv-generator[168]: SysV service '/etc/init.d/alignment.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.
[    8.350093] systemd-sysv-generator[168]: 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.
[    8.382027] systemd-sysv-generator[168]: 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.
[    8.410658] systemd-sysv-generator[168]: 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.
[   10.404113] systemd[1]: Queued start job for default target Multi-User System.
[   10.418814] systemd[1]: Created slice Slice /system/getty.
[  OK  ] Created slice Slice /system/getty.
[   10.463702] systemd[1]: Created slice Slice /system/modprobe.
[  OK  ] Created slice Slice /system/modprobe.
[   10.503539] systemd[1]: Created slice Slice /system/serial-getty.
[  OK  ] Created slice Slice /system/serial-getty.
[   10.542401] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[   10.581713] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[   10.621727] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[   10.661786] systemd[1]: Reached target Path Units.
[  OK  ] Reached target Path Units.
[   10.691117] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[   10.731065] systemd[1]: Reached target Slice Units.
[  OK  ] Reached target Slice Units.
[   10.761209] systemd[1]: Reached target Swaps.
[  OK  ] Reached target Swaps.
[   10.797029] systemd[1]: Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[   10.831138] systemd[1]: Reached target RPC Port Mapper.
[  OK  ] Reached target RPC Port Mapper.
[   10.878019] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[   10.911798] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[   11.065417] systemd[1]: Journal Audit Socket was skipped because of a failed condition check (ConditionSecurity=audit).
[   11.080009] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   11.123853] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[   11.165305] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[   11.209587] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   11.254725] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[   11.296977] systemd[1]: Listening on User Database Manager Socket.
[  OK  ] Listening on User Database Manager Socket.
[   11.334158] systemd[1]: Huge Pages File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
[   11.350012] systemd[1]: POSIX Message Queue File System was skipped because of a failed condition check (ConditionPathExists=/proc/sys/fs/mqueue).
[   11.376329] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[   11.422770] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
[   11.465477] systemd[1]: Mounting Temporary Directory /tmp...
         Mounting Temporary Directory /tmp...
[   11.503822] systemd[1]: Create List of Static Device Nodes was skipped because of a failed condition check (ConditionFileNotEmpty=/lib/modules/5.15.71-desk-mx6ul-l-4.0.0/modules.devname).
[   11.529298] systemd[1]: Starting Load Kernel Module configfs...
         Starting Load Kernel Module configfs...
[   11.578800] systemd[1]: Starting Load Kernel Module drm...
         Starting Load Kernel Module drm...
[   11.621669] systemd[1]: Starting Load Kernel Module fuse...
         Starting Load Kernel Module fuse...
[   11.681748] systemd[1]: Starting RPC Bind...
         Starting RPC Bind...
[   11.724991] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
[   11.748030] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[   11.762009] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[   11.794737] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[   11.881169] systemd[1]: Load Kernel Modules was skipped because all trigger condition checks failed.
[   11.960921] systemd[1]: Starting Generate network units from Kernel command line...
         Starting Generate network …ts from Kernel command line...
[   12.035818] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[   12.132462] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[   12.198301] systemd[1]: Starting Coldplug All udev Devices...
         Starting Coldplug All udev Devices...
[   12.394088] systemd[1]: Started RPC Bind.
[  OK  ] Started RPC Bind.
[   12.497681] systemd[1]: Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Debug File System.
[   12.564197] systemd[1]: Mounted Temporary Directory /tmp.
[  OK  ] Mounted Temporary Directory /tmp.
[   12.605490] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[   12.643402] systemd[1]: Finished Load Kernel Module configfs.
[  OK  ] Finished Load Kernel Module configfs.
[   12.664641] systemd[1]: modprobe@drm.service: Deactivated successfully.
[   12.702982] systemd[1]: Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module drm.
[   12.724595] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[   12.763178] systemd[1]: Finished Load Kernel Module fuse.
[  OK  ] Finished Load Kernel Module fuse.
[   12.803652] systemd[1]: Finished Generate network units from Kernel command line.
[  OK  ] Finished Generate network units from Kernel command line.
[   12.863898] systemd[1]: Finished Remount Root and Kernel File Systems.
[  OK  ] Finished Remount Root and Kernel File Systems.
[   12.923922] systemd[1]: Finished Apply Kernel Variables.
[  OK  ] Finished Apply Kernel Variables.
[   12.981956] systemd[1]: Mounting FUSE Control File System...
         Mounting FUSE Control File System...
[   13.038665] systemd[1]: Mounting Kernel Configuration File System...
         Mounting Kernel Configuration File System...
[   13.133432] systemd[1]: Rebuild Hardware Database was skipped because all trigger condition checks failed.
[   13.171701] systemd[1]: Platform Persistent Storage Archival was skipped because of a failed condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).
[   13.245498] systemd[1]: Starting Create System Users...
         Starting Create System Users...
[   13.366841] systemd[1]: Mounted FUSE Control File System.
[  OK  ] Mounted FUSE Control File System.
[   13.432182] systemd[1]: Mounted Kernel Configuration File System.
[  OK  ] Mounted Kernel Configuration File System.
[   13.688577] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Finished Create System Users.
         Starting Flush Journal to Persistent Storage...
         Starting Create Static Device Nodes in /dev...
[   13.993774] systemd-journald[176]: Received client request to flush runtime journal.
[  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 Rebuild Dynamic Linker Cache...
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Started Rule-based Manager for Device Events and Files.
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Rebuild Journal Catalog...
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Reached target System Time Set.
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Finished Rebuild Journal Catalog.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Finished Coldplug All udev Devices.
[  OK  ] Created slice Slice /system/systemd-backlight.
         Starting Load/Save Screen …ness of backlight:backlight...
[   22.835294] mtdblock: MTD device 'nand-SPL' is NAND, please consider using UBI block devices instead.
[   22.855168] mtdblock: MTD device 'nand-uboot' is NAND, please consider using UBI block devices instead.
[   22.953822] mtdblock: MTD device 'nand-env1' is NAND, please consider using UBI block devices instead.
[   23.066964] mtdblock: MTD device 'nand-env2' is NAND, please consider using UBI block devices instead.
[  OK  ] Finished Load/Save Screen …htness[   23.215382] mtdblock: MTD device 'nand-fdt' is NAND, please consider using UBI block devices instead.
 of backlight:backlight.
[   23.363765] mtdblock: MTD device 'nand-spare' is NAND, please consider using UBI block devices instead.
[   23.471561] mtdblock: MTD device 'nand-kernel' is NAND, please consider using UBI block devices instead.
[   23.551389] mtdblock: MTD device 'nand-splash' is NAND, please consider using UBI block devices instead.
[   23.661672] mtdblock: MTD device 'nand-ubi' is NAND, please consider using UBI block devices instead.
[  OK  ] Finished Rebuild Dynamic Linker Cache.
[  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
         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.
[  OK  ] Listening on dropbear.socket.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
[  OK  ] Started Job spooling tools.
[  OK  ] Started Periodic Command Scheduler.
         Starting D-Bus System Message Bus...
[  OK  ] Started Getty on tty1.
         Starting IPv6 Packet Filtering Framework...
         Starting IPv4 Packet Filtering Framework...
         Starting Network Time Service (one-shot ntpdate mode)...
         Starting Telephony service...
[  OK  ] Started Serial Getty on ttymxc0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started System Logging Service.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
syslogd[243]: Error opening log file: /var/log/auth.log: No such file or directory
syslogd[243]: Error opening log file: /var/log/syslog: No such file or directory
syslogd[243]: Error opening log file: /var/log/kern.log: No such file or directory
[  OK  ] Finished IPv6 Packet Filtering Framework.
syslogd[243]: Error opening log file: /var/log/mail.log: No such file or directory
syslogd[243]: Error opening log file: /var/log/mail.err: No such file or directory
syslogd[243]: Error opening log file: /var/log/messages: No such file or directory
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Finished IPv4 Packet Filtering Framework.
[  OK  ] Finished Network Time Service (one-shot ntpdate mode).
[  OK  ] Reached target Preparation for Network.
[  OK  ] Stopped User Login Management.
         Starting Load Kernel Module drm...
         Starting Network Configuration...
[  OK  ] Started Telephony service.
[  OK  ] Finished Load Kernel Module drm.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
[  OK  ] Stopped User Login Management.
         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.
[  OK  ] Stopped User Login Management.
         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.
[  OK  ] Stopped User Login Management.
         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.
[  OK  ] Stopped User Login Management.
         Starting Load Kernel Module drm...
[  OK  ] Started Network Configuration.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[  OK  ] Reached target Network.
[  OK  ] Reached target Host and Network Name Lookups.
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started NFS status monitor for NFSv2/3 locking..
[FAILED] Failed to start Respond to IPv6 Node Information Queries.
See 'systemctl status ninfod.service' for details.
[FAILED] Failed to start Network Router Discovery Daemon.
See 'systemctl status rdisc.service' for details.
         Starting Target Communication Framework agent...
[  OK  ] Started Xinetd A Powerful Replacement For Inetd.
[  OK  ] Finished Load Kernel Module drm.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
[  OK  ] Stopped Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[  OK  ] Started Target Communication Framework agent.
[  OK  ] Reached target Multi-User System.
[  OK  ] Stopped Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
         Starting Record Runlevel Change in UTMP...
[  OK  ] Stopped Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[  OK  ] Finished Record Runlevel Change in UTMP.
[  OK  ] Stopped Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.

NXP i.MX Release Distro 5.15-kirkstone desk-mx6ul-axelulite ttymxc0

desk-mx6ul-axelulite login: root
root@desk-mx6ul-axelulite:~# uname -a
Linux desk-mx6ul-axelulite 5.15.71-desk-mx6ul-l-4.0.0 #1 SMP PREEMPT Mon Apr 3 18:11:32 CEST 2023 armv7l armv7l armv7l GNU/Linux
root@desk-mx6ul-axelulite:~# ls -l /lib/modules/$(uname -r)
total 296
lrwxrwxrwx 1 541 502     65 Apr  3  2023 build -> /home/jenkins/workspace/workspace/DESK-MX6UL-L-4.x.x_Linux-kernel
drwxr-xr-x 6 541 502   4096 Apr  3  2023 kernel
-rw-r--r-- 1 541 502   2718 Apr  3  2023 modules.alias
-rw-r--r-- 1 541 502   4768 Apr  3  2023 modules.alias.bin
-rw-r--r-- 1 541 502  14878 Apr  3  2023 modules.builtin
-rw-r--r-- 1 541 502  34704 Apr  3  2023 modules.builtin.alias.bin
-rw-r--r-- 1 541 502  17778 Apr  3  2023 modules.builtin.bin
-rw-r--r-- 1 541 502 105373 Apr  3  2023 modules.builtin.modinfo
-rw-r--r-- 1 541 502  10689 Apr  3  2023 modules.dep
-rw-r--r-- 1 541 502  21666 Apr  3  2023 modules.dep.bin
-rw-r--r-- 1 541 502      0 Apr  3  2023 modules.devname
-rw-r--r-- 1 541 502   8657 Apr  3  2023 modules.order
-rw-r--r-- 1 541 502     85 Apr  3  2023 modules.softdep
-rw-r--r-- 1 541 502  16970 Apr  3  2023 modules.symbols
-rw-r--r-- 1 541 502  23964 Apr  3  2023 modules.symbols.bin
lrwxrwxrwx 1 541 502     65 Apr  3  2023 source -> /home/jenkins/workspace/workspace/DESK-MX6UL-L-4.x.x_Linux-kernel
root@desk-mx6ul-axelulite:~# reboot
root@desk-mx6ul-axelulite:~# [  OK  ] Removed slice Slice /system/modprobe.
[  OK  ] Stopped target Multi-User System.
[  OK  ] Stopped target Login Prompts.
[  OK  ] Stopped target Remote File Systems.
[  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  ] 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 D-Bus System Message Bus...
         Stopping Getty on tty1...
         Stopping NFS status monitor for NFSv2/3 locking....
[  OK  ] Stopped Network Time Service (one-shot ntpdate mode).
         Stopping Telephony service...
         Stopping Serial Getty on ttymxc0...
         Stopping System Logging Service...
         Stopping Load/Save Random Seed...
         Stopping Target Communication Framework agent...
         Stopping Xinetd A Powerful Replacement For Inetd...
[  OK  ] Stopped Job spooling tools.
[  OK  ] Stopped Periodic Command Scheduler.
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Telephony service.
[  OK  ] Stopped Serial Getty on ttymxc0.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
[  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
[  OK  ] Stopped Xinetd A Powerful Replacement For Inetd.
[  OK  ] Stopped Target Communication Framework agent.
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Removed slice Slice /system/getty.
[  OK  ] Removed slice Slice /system/serial-getty.
[  OK  ] Stopped target Network.
[  OK  ] Stopped target Host and Network Name Lookups.
         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.
         Stopping Load/Save Screen …ness of backlight:backlight...
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Update is Completed.
[  OK  ] Stopped Rebuild Dynamic Linker Cache.
[  OK  ] Stopped Rebuild Journal Catalog.
         Stopping Record System Boot/Shutdown in UTMP...
[  OK  ] Stopped Load/Save Screen B…htness of backlight:backlight.
[  OK  ] Removed slice Slice /system/systemd-backlight.
[  OK  ] Stopped Record System Boot/Shutdown in UTMP.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped target Local File Systems.
         Unmounting /run/credentials/systemd-sysusers.service...
         Unmounting Temporary Directory /tmp...
         Unmounting /var/volatile...
[  OK  ] Unmounted /run/credentials/systemd-sysusers.service.
[  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 Create Static Device Nodes in /dev.
[  OK  ] Stopped Create System Users.
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Reached target System Shutdown.
[  OK  ] Reached target Late Shutdown Services.
[  OK  ] Finished System Reboot.
[  OK  ] Reached target System Reboot.
[  103.985305] watchdog: watchdog0: watchdog did not stop!
[  104.067255] systemd-shutdown[1]: Using hardware watchdog 'imx2+ watchdog', version 0, device /dev/watchdog0
[  104.077397] systemd-shutdown[1]: Watchdog running with a timeout of 10min.
[  104.141355] systemd-shutdown[1]: Syncing filesystems and block devices.
[  104.152642] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[  104.186727] systemd-journald[176]: Received SIGTERM from PID 1 (systemd-shutdow).
[  104.228075] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[  104.275358] systemd-shutdown[1]: Unmounting file systems.
[  104.296546] systemd-shutdown[1]: All filesystems unmounted.
[  104.302430] systemd-shutdown[1]: Deactivating swaps.
[  104.307714] systemd-shutdown[1]: All swaps deactivated.
[  104.313212] systemd-shutdown[1]: Detaching loop devices.
[  104.334990] systemd-shutdown[1]: All loop devices detached.
[  104.341195] systemd-shutdown[1]: Stopping MD devices.
[  104.350769] systemd-shutdown[1]: All MD devices stopped.
[  104.356167] systemd-shutdown[1]: Detaching DM devices.
[  104.365560] systemd-shutdown[1]: All DM devices detached.
[  104.371271] systemd-shutdown[1]: All filesystems, swaps, loop devices, MD devices and DM devices detached.
[  104.394367] systemd-shutdown[1]: Syncing filesystems and block devices.
[  104.404364] systemd-shutdown[1]: Rebooting.
[  104.434360] ci_hdrc ci_hdrc.1: remove, state 4
[  104.438874] usb usb2: USB disconnect, device number 1
[  104.445944] ci_hdrc ci_hdrc.1: USB bus 2 deregistered
[  104.455184] ci_hdrc ci_hdrc.0: remove, state 4
[  104.459691] usb usb1: USB disconnect, device number 1
[  104.466749] ci_hdrc ci_hdrc.0: USB bus 1 deregistered
[  104.487834] imx2-wdt 20bc000.watchdog: Device shutdown: Expect reboot!
[  104.496743] reboot: Restarting system

U-Boot SPL 2022.04-desk-mx6ul-l-4.0.0 (Apr 14 2023 - 10:13:15 +0200)
SOM ConfigID#: 00000014
Trying to boot from MMC1


U-Boot 2022.04-desk-mx6ul-l-4.0.0 (Apr 14 2023 - 10:13:15 +0200)

CPU:   Freescale i.MX6UL rev1.2 528 MHz (running at 396 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 51C
Reset cause: POR
I2C:   ready
DRAM:  256 MiB
Relocating to 8ff57000, new gd at 8fb56ec0, sp at 8fb56ea0
Core:  2 devices, 2 uclasses
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11
NAND:  128 MiB
MMC:   FSL_SDHC: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

No panel detected: default to MI0700AJT-30
Display: MI0700AJT-30 (800x480)
Video: 800x480x18
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc0 is current device (SD)
SOM ConfigID#: 00000014
SOM UniqueID#: ee6ac309:2f3211d4
CB ConfigID#: 0000003a
CB UniqueID#: 00000000:00000000
Board: MX6UL AXEL ULite rev.A on SDV04
Net:   FEC0
Warning: FEC0 (eth0) using random MAC address - 36:ac:92:f4:c0:77

Normal Boot
Hit any key to stop autoboot:  3 ��� 0
=> 
=> 
=> 
=> edit serverip
edit: 192.168.0.13� �� �167
=> edit ipaddr
edit: 192.168.0.89� �� �165
=> run net_nfs
Using FEC0 device
TFTP from server 192.168.0.167; our IP address is 192.168.0.165
Filename 'desk-mx6ul-l/uImage'.
Load address: 0x80800000
Loading: *�#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ######
	 1.9 MiB/s
done
Bytes transferred = 8016520 (7a5288 hex)
Using FEC0 device
TFTP from server 192.168.0.167; our IP address is 192.168.0.165
Filename 'desk-mx6ul-l/imx6ul-axelulite-cb003a.dtb'.
Load address: 0x83000000
Loading: *�#######
	 1.8 MiB/s
done
Bytes transferred = 32964 (80c4 hex)
FDT: override 'som_uniqueid' with 'ee6ac309:2f3211d4'
FDT: override 'cb_uniqueid' with '00000000:00000000'
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   Linux-5.15.71-desk-mx6ul-l-4.0.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    8016456 Bytes = 7.6 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Loading Kernel Image
   Using Device Tree in place at 83000000, end 8300bfff

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.71-desk-mx6ul-l-4.0.0 (jenkins@focalbakery) (arm-poky-linux-gnueabi-gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Mon Apr 3 18:11:32 CEST 2023
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: AxelULite on SFCZG
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x000000008fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000008fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008fffffff]
[    0.000000] percpu: Embedded 12 pages/cpu s17036 r8192 d23924 u49152
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.167:/home/dvdk/desk-mx-l/rfs/desk-mx6ul-l,v3,tcp ip=192.168.0.165:192.168.0.167::255.255.255.0:lynx:eth0:off panic=1 fec_mac=36:ac:92:f4:c0:77 console=ttymxc0,115200 vmalloc=400M mtdparts=gpmi-nand:2M(nand-SPL),6M(nand-uboot),1M(nand-env1),1M(nand-env2),1M(nand-fdt),1M(nand-spare),8M(nand-kernel),4M(nand-splash),-(nand-ubi);spi0.0:64k(spi-SPL),960k(spi-uboot),256k(spi-env1),256k(spi-env2),512k(spi-dtb),8M(spi-kernel),4M(spi-splash),-(spi-free)
[    0.000000] Unknown kernel command line parameters "fec_mac=36:ac:92:f4:c0:77", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 241540K/262144K available (12288K kernel code, 1353K rwdata, 2332K rodata, 1024K init, 407K bss, 20604K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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=4 to nr_cpu_ids=1.
[    0.000000] 	Trampoline variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] Switching to timer-based delay loop, resolution 41ns
[    0.000003] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000054] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.002931] Console: colour dummy device 80x30
[    0.003048] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.003105] pid_max: default: 32768 minimum: 301
[    0.003488] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003551] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.005195] CPU: Testing write buffer coherency: ok
[    0.005878] CPU0: update cpu_capacity 1024
[    0.005932] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.008375] Setting up static identity map for 0x80100000 - 0x80100060
[    0.008816] rcu: Hierarchical SRCU implementation.
[    0.011515] smp: Bringing up secondary CPUs ...
[    0.011566] smp: Brought up 1 node, 1 CPU
[    0.011602] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.011634] CPU: All CPU(s) started in SVC mode.
[    0.012685] devtmpfs: initialized
[    0.025285] Duplicate name in lcdif@21c8000, renamed to "display#1"
[    0.029713] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.030455] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.030530] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.030790] pinctrl core: initialized pinctrl subsystem
[    0.034458] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.035245] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.038222] thermal_sys: Registered thermal governor 'step_wise'
[    0.038256] thermal_sys: Registered thermal governor 'user_space'
[    0.039122] cpuidle: using governor menu
[    0.039579] CPU identified as i.MX6UL, silicon rev 1.2
[    0.039620] Use WDOG1 as reset source
[    0.067128] vdd3p0: supplied by regulator-dummy
[    0.068249] cpu: supplied by regulator-dummy
[    0.069844] vddsoc: supplied by regulator-dummy
[    0.103986] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.104053] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.107121] imx6ul-pinctrl 20e0000.pinctrl: initialized IMX pinctrl driver
[    0.110258] imx mu driver is registered.
[    0.111334] imx rpmsg driver is registered.
[    0.195129] vgaarb: loaded
[    0.196592] SCSI subsystem initialized
[    0.197880] usbcore: registered new interface driver usbfs
[    0.198035] usbcore: registered new interface driver hub
[    0.198171] usbcore: registered new device driver usb
[    0.200866] i2c i2c-0: IMX I2C adapter registered
[    0.202890] i2c i2c-1: IMX I2C adapter registered
[    0.203774] mc: Linux media interface: v0.10
[    0.203899] videodev: Linux video capture interface: v2.00
[    0.204112] pps_core: LinuxPPS API ver. 1 registered
[    0.204145] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.204209] PTP clock support registered
[    0.206212] MIPI CSI2 driver module loaded
[    0.206359] Advanced Linux Sound Architecture Driver Initialized.
[    0.208224] Bluetooth: Core ver 2.22
[    0.208384] NET: Registered PF_BLUETOOTH protocol family
[    0.208416] Bluetooth: HCI device and connection manager initialized
[    0.208467] Bluetooth: HCI socket layer initialized
[    0.208508] Bluetooth: L2CAP socket layer initialized
[    0.208614] Bluetooth: SCO socket layer initialized
[    0.210148] clocksource: Switched to clocksource mxc_timer1
[    0.210590] VFS: Disk quotas dquot_6.6.0
[    0.210781] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.232937] NET: Registered PF_INET protocol family
[    0.233495] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.235230] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.235343] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.235392] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.235476] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.235582] TCP: Hash tables configured (established 2048 bind 2048)
[    0.235792] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.235878] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.236299] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.238017] RPC: Registered named UNIX socket transport module.
[    0.238079] RPC: Registered udp transport module.
[    0.238107] RPC: Registered tcp transport module.
[    0.238133] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.240548] PCI: CLS 0 bytes, default 64
[    0.241790] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.245496] Bus freq driver module loaded
[    0.247867] Initialise system trusted keyrings
[    0.249143] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.262699] NFS: Registering the id_resolver key type
[    0.262853] Key type id_resolver registered
[    0.262885] Key type id_legacy registered
[    0.263007] ntfs: driver 2.1.32 [Flags: R/W].
[    0.263842] fuse: init (API version 7.34)
[    0.502750] Key type asymmetric registered
[    0.502808] Asymmetric key parser 'x509' registered
[    0.502978] io scheduler mq-deadline registered
[    0.503016] io scheduler kyber registered
[    0.517827] imx-sdma 20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2
[    0.517900] imx-sdma 20ec000.sdma: Falling back to sysfs fallback for: imx/sdma/sdma-imx6q.bin
[    0.522587] mxs-dma 1804000.dma-apbh: initialized
[    0.533692] pfuze100-regulator 0-0008: Full layer: 1, Metal layer: 1
[    0.534525] pfuze100-regulator 0-0008: FAB: 0, FIN: 0
[    0.534573] pfuze100-regulator 0-0008: pfuze3000 found.
[    0.561492] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.566464] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 30, base_baud = 5000000) is a IMX
[    1.356961] printk: console [ttymxc0] enabled
[    1.363931] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 65, base_baud = 5000000) is a IMX
[    1.376433] imx sema4 driver is registered.
[    1.406612] brd: module loaded
[    1.426717] loop: module loaded
[    1.431869] imx ahci driver is registered.
[    1.441094] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1
[    1.447507] nand: Winbond W29N01HV
[    1.451110] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.459289] Scanning device for bad blocks
[    1.567957] 9 cmdlinepart partitions found on MTD device gpmi-nand
[    1.574246] Creating 9 MTD partitions on "gpmi-nand":
[    1.579332] 0x000000000000-0x000000200000 : "nand-SPL"
[    1.588134] 0x000000200000-0x000000800000 : "nand-uboot"
[    1.597350] 0x000000800000-0x000000900000 : "nand-env1"
[    1.606262] 0x000000900000-0x000000a00000 : "nand-env2"
[    1.615282] 0x000000a00000-0x000000b00000 : "nand-fdt"
[    1.624181] 0x000000b00000-0x000000c00000 : "nand-spare"
[    1.633429] 0x000000c00000-0x000001400000 : "nand-kernel"
[    1.642653] 0x000001400000-0x000001800000 : "nand-splash"
[    1.651899] 0x000001800000-0x000008000000 : "nand-ubi"
[    1.661693] gpmi-nand 1806000.nand-controller: driver registered.
[    1.669330] SPI driver spidev has no spi_device_id for spidev
[    1.677051] spinor@0 enforce active low on chipselect handle
[    1.686455] spi-nor spi0.0: is25lp128 (16384 Kbytes)
[    1.691626] 8 cmdlinepart partitions found on MTD device spi0.0
[    1.697585] Creating 8 MTD partitions on "spi0.0":
[    1.702477] 0x000000000000-0x000000010000 : "spi-SPL"
[    1.711496] 0x000000010000-0x000000100000 : "spi-uboot"
[    1.720570] 0x000000100000-0x000000140000 : "spi-env1"
[    1.729401] 0x000000140000-0x000000180000 : "spi-env2"
[    1.738355] 0x000000180000-0x000000200000 : "spi-dtb"
[    1.747181] 0x000000200000-0x000000a00000 : "spi-kernel"
[    1.756295] 0x000000a00000-0x000000e00000 : "spi-splash"
[    1.765694] 0x000000e00000-0x000001000000 : "spi-free"
[    1.779960] CAN device driver interface
[    1.788085] pps pps0: new PPS source ptp0
[    1.798323] fec 2188000.ethernet eth0: registered PHC device 0
[    1.806736] usbcore: registered new interface driver asix
[    1.812612] usbcore: registered new interface driver ax88179_178a
[    1.818843] usbcore: registered new interface driver cdc_ether
[    1.825029] usbcore: registered new interface driver cdc_eem
[    1.830935] usbcore: registered new interface driver net1080
[    1.836715] usbcore: registered new interface driver cdc_subset
[    1.842899] usbcore: registered new interface driver zaurus
[    1.848719] usbcore: registered new interface driver cdc_ncm
[    1.854650] usbcore: registered new interface driver cdc_mbim
[    1.860628] usbcore: registered new interface driver r8153_ecm
[    1.866490] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.873142] ehci-pci: EHCI PCI platform driver
[    1.877941] usbcore: registered new interface driver cdc_wdm
[    1.883834] usbcore: registered new interface driver usb-storage
[    1.899399] snvs_rtc 20cc000.snvs:snvs-rtc-lp: registered as rtc0
[    1.905747] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01T00:10:24 UTC (624)
[    1.915401] i2c_dev: i2c /dev entries driver
[    1.922695] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.937734] mxsfb 21c8000.lcdif: supply lcd not found, using dummy regulator
[    2.036077] sii902x bound to mxs-lcdif from 21c8000.lcdif
[    2.360197] mxsfb 21c8000.lcdif: initialized
[    2.367239] pxp-v4l2 pxp_v4l2: initialized
[    2.374896] Bluetooth: HCI UART driver ver 2.3
[    2.379396] Bluetooth: HCI UART protocol H4 registered
[    2.384668] Bluetooth: HCI UART protocol BCSP registered
[    2.390089] Bluetooth: HCI UART protocol LL registered
[    2.396335] sdhci: Secure Digital Host Controller Interface driver
[    2.402630] sdhci: Copyright(c) Pierre Ossman
[    2.407007] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.415169] sdhci-esdhc-imx 2190000.mmc: Got CD GPIO
[    2.423672] caam 2140000.crypto: Entropy delay = 3200
[    2.441297] caam 2140000.crypto: Instantiated RNG4 SH0
[    2.453770] caam 2140000.crypto: Instantiated RNG4 SH1
[    2.458964] caam 2140000.crypto: device ID = 0x0a16030000000000 (Era 8)
[    2.466008] caam 2140000.crypto: job rings = 3, qi = 0
[    2.471595] mmc0: SDHCI controller on 2190000.mmc [2190000.mmc] using ADMA
[    2.514007] caam algorithms registered in /proc/crypto
[    2.522167] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.534408] caam 2140000.crypto: caam pkc algorithms registered in /proc/crypto
[    2.542638] mmc0: new high speed SDHC card at address aaaa
[    2.549915] mmcblk0: mmc0:aaaa SA32G 29.7 GiB 
[    2.555438] caam 2140000.crypto: rng crypto API alg registered prng-caam
[    2.565905] caam 2140000.crypto: registering rng-caam
[    2.571501]  mmcblk0: p1 p2
[    2.578358] Device caam-keygen registered
[    2.590581] caam-snvs 20cc000.caam-snvs: violation handlers armed - non-secure state
[    2.599702] usbcore: registered new interface driver usbhid
[    2.605773] usbhid: USB HID core driver
[    2.612554] random: crng init done
[    2.630804] NET: Registered PF_INET6 protocol family
[    2.638418] Segment Routing with IPv6
[    2.642456] In-situ OAM (IOAM) with IPv6
[    2.646608] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.654217] NET: Registered PF_PACKET protocol family
[    2.659351] can: controller area network core
[    2.664100] NET: Registered PF_CAN protocol family
[    2.668938] can: raw protocol
[    2.672091] can: broadcast manager protocol
[    2.676325] can: netlink gateway - max_hops=1
[    2.681409] Bluetooth: RFCOMM TTY layer initialized
[    2.686365] Bluetooth: RFCOMM socket layer initialized
[    2.691858] Bluetooth: RFCOMM ver 1.11
[    2.695702] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.701194] Bluetooth: BNEP filters: protocol multicast
[    2.706472] Bluetooth: BNEP socket layer initialized
[    2.711514] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.717476] Bluetooth: HIDP socket layer initialized
[    2.722621] 8021q: 802.1Q VLAN Support v1.8
[    2.726879] lib80211: common routines for IEEE802.11 drivers
[    2.733251] Key type dns_resolver registered
[    2.764333] Registering SWP/SWPB emulation handler
[    2.770010] Loading compiled-in X.509 certificates
[    2.822306] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    2.827288] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    2.860427] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    2.866815] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    2.875552] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.883136] usb usb1: Product: EHCI Host Controller
[    2.888040] usb usb1: Manufacturer: Linux 5.15.71-desk-mx6ul-l-4.0.0 ehci_hcd
[    2.895248] usb usb1: SerialNumber: ci_hdrc.0
[    2.901035] hub 1-0:1.0: USB hub found
[    2.904916] hub 1-0:1.0: 1 port detected
[    2.916678] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    2.921764] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[    2.950228] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    2.956172] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    2.964551] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.971835] usb usb2: Product: EHCI Host Controller
[    2.976732] usb usb2: Manufacturer: Linux 5.15.71-desk-mx6ul-l-4.0.0 ehci_hcd
[    2.983936] usb usb2: SerialNumber: ci_hdrc.1
[    2.989522] hub 2-0:1.0: USB hub found
[    2.993558] hub 2-0:1.0: 1 port detected
[    3.001229] imx_thermal 20c8000.anatop:tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[    3.014581] input: gpio-power-fail as /devices/platform/gpio-power-fail/input/input0
[    3.103028] Micrel KSZ8081 or KSZ8091 2188000.ethernet-1:03: attached PHY driver (mii_bus:phy_addr=2188000.ethernet-1:03, irq=POLL)
[    6.250935] fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[    6.259066] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.280292] IP-Config: Complete:
[    6.283604]      device=eth0, hwaddr=36:ac:92:f4:c0:77, ipaddr=192.168.0.165, mask=255.255.255.0, gw=255.255.255.255
[    6.294681]      host=lynx, domain=, nis-domain=(none)
[    6.299963]      bootserver=192.168.0.167, rootserver=192.168.0.167, rootpath=
[    6.301033] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.321757] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.328594] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.337960] ALSA device list:
[    6.341164]   No soundcards found.
[    6.346273] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    6.395227] VFS: Mounted root (nfs filesystem) on device 0:13.
[    6.403142] devtmpfs: mounted
[    6.408695] Freeing unused kernel image (initmem) memory: 1024K
[    6.430627] Run /sbin/init as init process
[    7.298222] systemd[1]: System time before build time, advancing clock.
[    7.380452] 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)
[    7.413263] systemd[1]: Detected architecture arm.

Welcome to NXP i.MX Release Distro 5.15-kirkstone (kirkstone)!

[    7.476156] systemd[1]: Hostname set to <desk-mx6ul-axelulite>.
[    8.098101] systemd-sysv-generator[169]: 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.
[    8.131653] systemd-sysv-generator[169]: 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.
[    8.184784] systemd-sysv-generator[169]: 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.
[    8.212959] systemd-sysv-generator[169]: 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.
[    8.253410] systemd-sysv-generator[169]: SysV service '/etc/init.d/alignment.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.
[    8.290636] systemd-sysv-generator[169]: 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.
[    8.322804] systemd-sysv-generator[169]: 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.
[    8.351545] systemd-sysv-generator[169]: 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.
[    8.458449] systemd[160]: /lib/systemd/system-generators/systemd-gpt-auto-generator failed with exit status 1.
[   10.304136] systemd[1]: Queued start job for default target Multi-User System.
[   10.318789] systemd[1]: Created slice Slice /system/getty.
[  OK  ] Created slice Slice /system/getty.
[   10.363281] systemd[1]: Created slice Slice /system/modprobe.
[  OK  ] Created slice Slice /system/modprobe.
[   10.403213] systemd[1]: Created slice Slice /system/serial-getty.
[  OK  ] Created slice Slice /system/serial-getty.
[   10.442128] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[   10.481406] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[   10.521459] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[   10.561513] systemd[1]: Reached target Path Units.
[  OK  ] Reached target Path Units.
[   10.590794] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[   10.630762] systemd[1]: Reached target Slice Units.
[  OK  ] Reached target Slice Units.
[   10.660873] systemd[1]: Reached target Swaps.
[  OK  ] Reached target Swaps.
[   10.695395] systemd[1]: Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[   10.730772] systemd[1]: Reached target RPC Port Mapper.
[  OK  ] Reached target RPC Port Mapper.
[   10.774690] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[   10.811488] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[   10.958378] systemd[1]: Journal Audit Socket was skipped because of a failed condition check (ConditionSecurity=audit).
[   10.973329] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   11.012261] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[   11.054382] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[   11.098757] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   11.142075] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[   11.183884] systemd[1]: Listening on User Database Manager Socket.
[  OK  ] Listening on User Database Manager Socket.
[   11.221919] systemd[1]: Huge Pages File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
[   11.236182] systemd[1]: POSIX Message Queue File System was skipped because of a failed condition check (ConditionPathExists=/proc/sys/fs/mqueue).
[   11.256398] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[   11.301692] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
[   11.333108] systemd[1]: Mounting Temporary Directory /tmp...
         Mounting Temporary Directory /tmp...
[   11.353528] systemd[1]: Create List of Static Device Nodes was skipped because of a failed condition check (ConditionFileNotEmpty=/lib/modules/5.15.71-desk-mx6ul-l-4.0.0/modules.devname).
[   11.397234] systemd[1]: Starting Load Kernel Module configfs...
         Starting Load Kernel Module configfs...
[   11.438935] systemd[1]: Starting Load Kernel Module drm...
         Starting Load Kernel Module drm...
[   11.498419] systemd[1]: Starting Load Kernel Module fuse...
         Starting Load Kernel Module fuse...
[   11.545063] systemd[1]: Starting RPC Bind...
         Starting RPC Bind...
[   11.592786] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
[   11.622078] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[   11.635909] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[   11.669491] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[   11.777650] systemd[1]: Load Kernel Modules was skipped because all trigger condition checks failed.
[   11.834654] systemd[1]: Starting Generate network units from Kernel command line...
         Starting Generate network …ts from Kernel command line...
[   11.898579] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[   11.967631] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[   12.058223] systemd[1]: Starting Coldplug All udev Devices...
         Starting Coldplug All udev Devices...
[   12.202451] systemd[1]: Started RPC Bind.
[  OK  ] Started RPC Bind.
[   12.259700] systemd[1]: Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Debug File System.
[   12.354650] systemd[1]: Mounted Temporary Directory /tmp.
[  OK  ] Mounted Temporary Directory /tmp.
[   12.394586] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[   12.433379] systemd[1]: Finished Load Kernel Module configfs.
[  OK  ] Finished Load Kernel Module configfs.
[   12.482239] systemd[1]: modprobe@drm.service: Deactivated successfully.
[   12.521323] systemd[1]: Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module drm.
[   12.563907] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[   12.592799] systemd[1]: Finished Load Kernel Module fuse.
[  OK  ] Finished Load Kernel Module fuse.
[   12.620762] systemd[1]: Finished Generate network units from Kernel command line.
[  OK  ] Finished Generate network units from Kernel command line.
[   12.653714] systemd[1]: Finished Remount Root and Kernel File Systems.
[  OK  ] Finished Remount Root and Kernel File Systems.
[   12.714306] systemd[1]: Finished Apply Kernel Variables.
[  OK  ] Finished Apply Kernel Variables.
[   12.774506] systemd[1]: Mounting FUSE Control File System...
         Mounting FUSE Control File System...
[   12.816964] systemd[1]: Mounting Kernel Configuration File System...
         Mounting Kernel Configuration File System...
[   12.885527] systemd[1]: Rebuild Hardware Database was skipped because of a failed condition check (ConditionNeedsUpdate=/etc).
[   12.941340] systemd[1]: Platform Persistent Storage Archival was skipped because of a failed condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).
[   12.983612] systemd[1]: Create System Users was skipped because of a failed condition check (ConditionNeedsUpdate=/etc).
[   13.035071] systemd[1]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
[   13.111425] systemd[1]: Mounted FUSE Control File System.
[  OK  ] Mounted FUSE Control File System.
[   13.181975] systemd[1]: Mounted Kernel Configuration File System.
[  OK  ] Mounted Kernel Configuration File System.
[   13.533757] systemd[1]: Finished Create Static Device Nodes in /dev.
[  OK  ] Finished Create Static Device Nodes in /dev.
[   13.572532] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Reached target Preparation for Local File Systems.
         Mounting /var/volatile...
         Starting Flush Journal to Persistent Storage...
         Starting Rule-based Manage…for Device Events and Files...
[  OK  ] Mounted /var/volatile.
[   13.934874] systemd-journald[177]: Received client request to flush runtime journal.
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
[  OK  ] Finished Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Started Rule-based Manager for Device Events and Files.
[  OK  ] Finished Create Volatile Files and Directories.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Reached target System Time Set.
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Created slice Slice /system/systemd-backlight.
         Starting Load/Save Screen …ness of backlight:backlight...
[   18.058436] mtdblock: MTD device 'nand-SPL' is NAND, please consider using UBI block devices instead.
[   18.076749] mtdblock: MTD device 'nand-uboot' is NAND, please consider using UBI block devices instead.
[   18.135219] mtdblock: MTD device 'nand-env1' is NAND, please consider using UBI block devices instead.
[   18.209410] mtdblock: MTD device 'nand-env2' is NAND, please consider using UBI block devices instead.
[   18.266855] mtdblock: MTD device 'nand-fdt' is NAND, please consider using UBI block devices instead.
[   18.444165] mtdblock: MTD device 'nand-kernel' is NAND, please consider using UBI block devices instead.
[   18.487187] mtdblock: MTD device 'nand-spare' is NAND, please consider using UBI block devices instead.
[  OK  ] Finished Coldplug All udev Devices.
[  OK  ] Finished Load/Save Screen …htness of backlight:backlight.
[   18.642841] mtdblock: MTD device 'nand-splash' is NAND, please consider using UBI block devices instead.
[   18.783339] mtdblock: MTD device 'nand-ubi' is NAND, please consider using UBI block devices instead.
[  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.
[  OK  ] Listening on dropbear.socket.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
[  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
[  OK  ] Started Job spooling tools.
[  OK  ] Started Periodic Command Scheduler.
         Starting D-Bus System Message Bus...
[  OK  ] Started Getty on tty1.
         Starting IPv6 Packet Filtering Framework...
         Starting IPv4 Packet Filtering Framework...
         Starting Network Time Service (one-shot ntpdate mode)...
         Starting Telephony service...
[  OK  ] Started Serial Getty on ttymxc0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started System Logging Service.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
syslogd[239]: Error opening log file: /var/log/auth.log: No such file or directory
syslogd[239]: Error opening log file: /var/log/syslog: No such file or directory
syslogd[239]: Error opening log file: /var/log/kern.log: No such file or directory
syslogd[239]: Error opening log file: /var/log/mail.log: No such file or directory
syslogd[239]: Error opening log file: /var/log/mail.err: No such file or directory
syslogd[239]: Error opening log file: /var/log/messages: No such file or directory
[  OK  ] Finished IPv6 Packet Filtering Framework.
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Finished IPv4 Packet Filtering Framework.
[  OK  ] Finished Network Time Service (one-shot ntpdate mode).
[  OK  ] Reached target Preparation for Network.
[  OK  ] Stopped User Login Management.
         Starting Load Kernel Module drm...
         Starting Network Configuration...
[  OK  ] Finished Load Kernel Module drm.
[  OK  ] Started Telephony service.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
[  OK  ] Stopped User Login Management.
         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.
[  OK  ] Stopped User Login Management.
         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.
[  OK  ] Stopped User Login Management.
         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.
[  OK  ] Stopped User Login Management.
         Starting Load Kernel Module drm...
[  OK  ] Started Network Configuration.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[  OK  ] Reached target Network.
[  OK  ] Reached target Host and Network Name Lookups.
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started NFS status monitor for NFSv2/3 locking..
[FAILED] Failed to start Respond to IPv6 Node Information Queries.
See 'systemctl status ninfod.service' for details.
[FAILED] Failed to start Network Router Discovery Daemon.
See 'systemctl status rdisc.service' for details.
         Starting Target Communication Framework agent...
[  OK  ] Started Xinetd A Powerful Replacement For Inetd.
[  OK  ] Finished Load Kernel Module drm.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
[  OK  ] Stopped Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[  OK  ] Stopped Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[  OK  ] Started Target Communication Framework agent.
[  OK  ] Reached target Multi-User System.
[  OK  ] Stopped Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
         Starting Record Runlevel Change in UTMP...
[  OK  ] Stopped Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[  OK  ] Finished Record Runlevel Change in UTMP.
[  OK  ] Stopped Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.

NXP i.MX Release Distro 5.15-kirkstone desk-mx6ul-axelulite ttymxc0

root@desk-mx6ul-axelulite:~# 

Install ModuleEdit

Host side, transfer ~/desk-mx-l/rfs/desk-mx6ul-l-4.0.0_modules.tar.gz file on target.

Target side execute the follow command:

root@desk-mx6ul-axelulite:~# tar xvzf desk-mx6ul-l-4.0.0_modules.tar.gz -C /                                                                                                                 

To check that everything went well, run the following command:

root@desk-mx6ul-axelulite:~# ls -l /lib/modules/$(uname -r)
total 296
lrwxrwxrwx 1 541 502     65 Apr  3  2023 build -> /home/jenkins/workspace/workspace/DESK-MX6UL-L-4.x.x_Linux-kernel
drwxr-xr-x 6 541 502   4096 Apr  3  2023 kernel
-rw-r--r-- 1 541 502   2718 Apr  3  2023 modules.alias
-rw-r--r-- 1 541 502   4768 Apr  3  2023 modules.alias.bin
-rw-r--r-- 1 541 502  14878 Apr  3  2023 modules.builtin
-rw-r--r-- 1 541 502  34704 Apr  3  2023 modules.builtin.alias.bin
-rw-r--r-- 1 541 502  17778 Apr  3  2023 modules.builtin.bin
-rw-r--r-- 1 541 502 105373 Apr  3  2023 modules.builtin.modinfo
-rw-r--r-- 1 541 502  10689 Apr  3  2023 modules.dep
-rw-r--r-- 1 541 502  21666 Apr  3  2023 modules.dep.bin
-rw-r--r-- 1 541 502      0 Apr  3  2023 modules.devname
-rw-r--r-- 1 541 502   8657 Apr  3  2023 modules.order
-rw-r--r-- 1 541 502     85 Apr  3  2023 modules.softdep
-rw-r--r-- 1 541 502  16970 Apr  3  2023 modules.symbols
-rw-r--r-- 1 541 502  23964 Apr  3  2023 modules.symbols.bin
lrwxrwxrwx 1 541 502     65 Apr  3  2023 source -> /home/jenkins/workspace/workspace/DESK-MX6UL-L-4.x.x_Linux-kernel

DevelopmentEdit

Synchronizing the repositoryEdit

In DESK-MX6UL-L, the following source trees are clones of the correspondent DAVE Embedded Systems git repositories:

Component GIT Remote
U-Boot git@git.dave.eu:desk-mx-l/u-boot-imx.git
Linux kernel git@git.dave.eu:desk-mx-l/linux-imx.git
Yocto BSP git@git.dave.eu:desk-mx-l/desk-mx-l-bsp.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 development kit's owners only. Please refer to this page for detailed instructions on how to get access.

InstructionsEdit

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> command
  • synchronize a source tree entering the repository directory and launching the git fetch origin command.

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 U-BootEdit

Quick referenceEdit

Repository Information
URL git@git.dave.eu:desk-mx-l/u-boot-imx.git
stable branch desk-mx6ul-l-4.x.x
stable tag desk-mx6ul-l-4.0.0

U-Boot defconfigs
Platform SOM ConfigID CB ConfigID defconfig
SDV04 - 0x0000003a mx6uldesk_axelulite_defconfig
SBC Lynx 0x00000013 0x0000002f mx6uldesk_lynx_defconfig

InstructionsEdit

It is assumed that the development environment has been set up properly as described here.

  • start the Linux development VM and login into the system
  • open a terminal window and cd into U-Boot source code
cd ~/desk-mx-l/u-boot
  • in case of needs you can update your local repository with the following git command
git pull
  • configure the build environment
source ~/desk-mx-l/desk-mx6ul-l-4.0.1_env.sh
  • enter the source tree directory and run the following commands:

for the AXEL Ulite EVK

make mx6uldesk_axelulite_defconfig
make

for the SBC platform:

make mx6uldesk_lynx_defconfig
make

NOTE: this is the default configuration suitable for latest <SOM> target.

The former command selects the default DESK-MX6UL-L configuration suitable for latest <SOM> targets (for additional defconfig please refer to the U-Boot defconfigs table above), while the latter builds the U-Boot binary image files (SPL and u-boot.img).

Binary files can be copied to the tftp root directory /tftpboot/desk-mx-l/ with the following command:

cp SPL u-boot.img /tftpboot/desk-mx-l/

Please refer to this page for more information on how to update the bootloader on your board.




Building LinuxEdit

Quick referenceEdit

Repository Information
URL git@git.dave.eu:desk-mx-l/linux-imx.git
stable branch desk-mx6ul-l-4.x.x
stable tag desk-mx6ul-l-4.0.0

Build Information
defconfig imx_v7_desk_defconfig
Kernel binary UIMAGE_LOADADDR=0x80008000 uImage
Device trees Platform DTB
SBC Lynx imx6ul-lynx-som0013-cb002f.dtb
SDV04 imx6ul-axelulite-cb003a.dtb
imx6ul-axelulite-cb006c.dtb

InstructionsEdit

It is assumed that the development environment has been set up properly as described here.

  • start the Linux development VM and login into the system
  • open a terminal window and cd into Linux kernel source code
cd ~/desk-mx-l/linux
  • in case of needs you can update your local repository with the following git command
git pull
  • configure the build environment
source ~/desk-mx-l/desk-mx6ul-l-4.0.1_env.sh
  • enter the source tree directory and run the following commands:
make imx_v7_desk_defconfig
make UIMAGE_LOADADDR=0x80008000 uImage imx6ul-lynx-som0013-cb002f.dtb imx6ul-axelulite-cb003a.dtb imx6ul-axelulite-cb006c.dtb

NOTE: this is the default configuration suitable for latest target.

The former command selects the default DESK-MX6UL-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/uImage file. Both this file and the kernel device tree can be copied to the tftp root directory /tftpboot/desk-mx-l/ with the following commands:

cp arch/arm/boot/uImage /tftpboot/desk-mx-l/
cp arch/arm/boot/dts/*.dtb /tftpboot/desk-mx-l/

Usually, kernel modules are installed with make modules_install command, but this method installs the modules into the /lib/modules directory of you MVM, which is not what you want.

A better way to deploy kernel modules while cross-compiling is

  • generate a .tar.gz archive
  • install this archive into the target root file system

User can create such an archive, for example, using the following commands:

make modules
mkdir modules-install
make INSTALL_MOD_PATH=modules-install modules_install

cd modules-install && tar cvzf ../modules.tar.gz . && cd ..

Now copy modules.tar.gz into the target root file system and install them as root with the following command

tar xvzf modules.tar.gz -C /


Building the Yocto BSPEdit

Quick referenceEdit

Repository Information
Repository BSP Manifest Yocto BSP Layer
URL git@git.dave.eu:desk-mx-l/desk-mx-l-bsp.git git@git.dave.eu:desk-mx-l/meta-desk-mx.git
stable branch kirkstone kirkstone
stable tag desk-mx6ul-l-4.0.0 desk-mx6ul-l-4.0.0
Build targets
Name Description
dave-image-devel This image include tools for development/debugging
desk-image-qt6 This image include a Qt6 graphic backend on framebuffer

IntroductionEdit

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-MX6UL-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 dave-image-devel 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>.

Besides the pre-built root file systems, DAVE also provides a rich repository containing pre-built applications and libraries. These packages can be easily installed on the target by using the dnf tool. Please refer to this section for more details.

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 imageEdit

The following procedure requires the access to the DAVE Embedded Systems' git repositories. The access to such repositories is granted to development kit's owners only. 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 also is recommended to consider the use of 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 hosto setup for the Yocto build system.

Initialize the build environmentEdit

Before running the build, the environment must be initialized properly.

DESK-MX6UL-L Yocto BSP uses git-repo tool to fetch all the required git repositories.

To install it, please use the following commands:

dvdk@vagrant:~/desk-mx-l$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo-1 > repo
dvdk@vagrant:~/desk-mx-l$ chmod a+x repo
dvdk@vagrant:~/desk-mx-l$ ./repo init -u git@git.dave.eu:desk-mx-l/desk-mx-l-bsp.git -b refs/tags/desk-mx6ul-l-4.0.0
dvdk@vagrant:~/desk-mx-l$ ./repo sync -c

Running the buildEdit

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 80GiB of disk space is required for the 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 process with the following commands:

dvdk@vagrant:~/desk-mx-l$ DISTRO=fsl-imx-fb MACHINE=desk-mx6ul-axelulite source desk-setup-release.sh -b build-fb
dvdk@vagrant:~/desk-mx-l/build-fb$ bitbake desk-image-qt6

Where <target-image-name> is one of the images listed in here.

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-fb/tmp/deploy/images/desk-mx6ul-axelulite using the environment prepared as stated above.

Generating the SDKsEdit

After creating an image as described in the previous version, the corresponding SDK can be generated by issuing the following command:

bitbake <target-image-name> -c populate-sdk

Again, replace <target-image-name> with one of the images listed in here.

Building additional packagesEdit

To build additional packages the user must first enter the directory where the desk-setup-release.sh is placed and source it

dvdk@vagrant:~/desk-mx-l$ DISTRO=fsl-imx-fb MACHINE=desk-mx6ul-axelulite source desk-setup-release.sh -b build-fb

And then can run any of the bitbake command.

dvdk@vagrant:~/desk-mx-l/build-fb$ bitbake qtlanguageserver

The resulting packages (the default format is rpm) can be found inside build/tmp/deploy/rpm.

dvdk@vagrant:~/desk-mx-l/build-fb$ ls tmp/deploy/rpm/cortexa9t2hf_neon/qtlanguageserver-* -1
tmp/deploy/rpm/cortexa9t2hf_neon/qtlanguageserver-6.3.2-r0.cortexa9t2hf_neon.rpm
tmp/deploy/rpm/cortexa9t2hf_neon/qtlanguageserver-dbg-6.3.2-r0.cortexa9t2hf_neon.rpm
tmp/deploy/rpm/cortexa9t2hf_neon/qtlanguageserver-dev-6.3.2-r0.cortexa9t2hf_neon.rpm
tmp/deploy/rpm/cortexa9t2hf_neon/qtlanguageserver-plugins-6.3.2-r0.cortexa9t2hf_neon.rpm
tmp/deploy/rpm/cortexa9t2hf_neon/qtlanguageserver-ptest-6.3.2-r0.cortexa9t2hf_neon.rpm
tmp/deploy/rpm/cortexa9t2hf_neon/qtlanguageserver-qmlplugins-6.3.2-r0.cortexa9t2hf_neon.rpm
tmp/deploy/rpm/cortexa9t2hf_neon/qtlanguageserver-src-6.3.2-r0.cortexa9t2hf_neon.rpm


How to create a bootable SD cardEdit

The procedure described here was tested with a virtual machine such as the MVM. The USB controller of the MVM should be enabled by default. If you are using Linux-based distribution and are having trouble detecting a USB device in virtual machine, please make sure your user belongs to the vboxusers group.


This article shows how to create a bootable microSD for the DESK-MX6UL-L Release Notes kit by using a simple bash script.
Note: Note: Starting from DESK-MX6UL-L 1.0.1 release the support for the SPL has been introduced in U-Boot. Previous versions of this script will no longer produce a fully functional and bootable microSD card.

The procedure has been tested on a MVM released with DESK-MX6UL-L 4.0.1 release with

  • a 32 GB microSD card [1]
  • a USB SD card reader
  • the binary files delivered along with the DESK-MX6UL-L 4.0.0

The resulting card is partitioned as depicted here below:

  • bootable partition (mmcblk0p1, vfat) containing:
    • binary images (U-Boot and kernel images)
  • root file system partition (mmcblk0p2, ext3)
    • root file system binaries and init scripts

The script - named mksd.sh - can be realized with the following code:

#!/bin/bash                                                                                                                                                                                                        
                                                                                                                                                                                                                   
if [[ -z $1 || -z $2 || -z $3 || -z $4 || -z $5 ]]                                                                                                                                                                 
then                                                                                                                                                                                                               
        echo "$0 Usage:"                                                                                                                                                                                           
        echo "  $0 <device> <u-boot.img> <SPL> <binaries directory> <rootfs tar.bz2>"                                                                                                                              
        echo "  Example: $0 /dev/sdc u-boot.img SPL binaries/ rootfs.tar.bz2"                                                                                                                                      
        exit                                                                                                                                                                                                       
fi

if [ "$(whoami)" != "root" ]
then                                                                                                     
        echo "you must be root to run this script!"
        exit                
fi
                                                    
if ! [[ -b $1 ]]
then                                                                                                     
        echo "$1 is not a valid block device!"
        exit
fi                 
                                                    
if ! [[ -e $2 ]]
then                               
        echo "Incorrect u-boot.img location!"
        exit                                                                                             
fi  
                                                    
if ! [[ -e $3 ]]         
then                
        echo "Incorrect SPL location!"
        exit
fi
                                                    
if ! [[ -d $4 ]]
then
        echo "Incorrect Binaries location!"
        exit                                       
fi                                                

if ! [[ -f $5 ]]         
then
        echo "Incorrect rootfs location!"
        exit             
fi                                                                                                       
                                                    
DRIVE=$1
if [[ "$DRIVE" == *"mmcblk"* ]]                   
then                     
        echo "You're using a mmc device, I need to fix partition names"
        PART="p"
else                 
        PART=""
fi                      
UBOOT=$2                                     
SPL=$3
BINARIES=$4                    
RFS=$5                                         

echo "All data on "$DRIVE" now will be destroyed! Continue? [y/n]"
read ans                  
if ! [ $ans == 'y' ]
then
        exit
fi

echo "[Partitioning $1...]"

dd if=/dev/zero of=$DRIVE bs=1024 count=1024

SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'`

echo DISK SIZE - $SIZE bytes

CYLINDERS=`echo $SIZE/255/63/512 | bc`

# check if we're running an old (e.g. 2.20.x) or new (e.g. 2.24.x) sfdisk
sfdisk --help | grep -- -H

if [ "$?" -eq "0" ]
then
        {
                echo 40,1380,0x0c,*
                echo 1420,,83,-
        } | sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE
else
{
    echo 16M,8176M,0x0c,*
    echo 8192M,,83,-
} | sfdisk $DRIVE
fi

partprobe


echo "[Making filesystems...]"
mkfs.vfat -F 32 -n BOOT "$DRIVE$PART"1 #> /dev/null
mkfs.ext3 -F -L ROOTFS "$DRIVE$PART"2 #> /dev/null

# wait for the VM to recognize the uSD
sleep 60

echo "[Copying files...]"

binaries_dir=${BINARIES%/}
mount "$DRIVE$PART"1 /mnt
cp -av --no-preserve=ownership $binaries_dir/* /mnt/
umount "$DRIVE$PART"1

echo "[Extracting rfs (this may take a while...)]"
mount "$DRIVE$PART"2 /mnt
tar jxf $RFS -C /mnt > /dev/null
chmod 755 /mnt
umount "$DRIVE$PART"2

echo "[Programming SPL]"
dd if=$SPL of=$DRIVE bs=512 seek=2 conv=fsync

echo "[Programming u-boot.img]"
dd if=$UBOOT of=$DRIVE bs=1k seek=69 conv=fsync

echo "[Done]"

Here is an example that shows how to use this script. We use here files delivered with DESK-MX6UL-L 4.0.0 release. Before invoking the script, the following files has to be renamed in order to make them compatible with the default U-Boot environment variables:

  • bootscript: boot.scr
  • splash image: splash_image.bmp
  • Linux kernel: desk-mx6ul-l-4.0.0_uImage
  • Device tree blob: desk-mx6ul-l-4.0.0_imx6ul-axelulite-cb003a.dtb.

In the case of you don't have some file on MVM, please download it from mirro.dave.eu.

We will copy them into ~/desk-mx-l/desk directory. Needed binary files can be found on MVM in the following location:

dvdk@vagrant:~$ ll /tftpboot/desk-mx6ul-l/
total 11352
-rw-r--r-- 1 dvdk root   32964 Mar 31 11:01 desk-mx6ul-l-4.0.0-imx6ul-axelulite-cb003a.dtb
-rw-r--r-- 1 dvdk root   32002 Mar 31 11:01 desk-mx6ul-l-4.0.0-imx6ul-axelulite-cb006c.dtb
-rw-r--r-- 1 dvdk root   33028 Mar 31 11:01 desk-mx6ul-l-4.0.0-imx6ul-lynx-som0013-cb002f.dtb
-rw-r--r-- 1 dvdk root 8017976 Mar 31 11:01 desk-mx6ul-l-4.0.0-uImage
-rw-r--r-- 1 dvdk root   35840 Mar 31 10:59 desk-mx6ul-l-4.0.0-mx6uldesk_axelulite_SPL
-rw-r--r-- 1 dvdk root   48128 Mar 31 10:59 desk-mx6ul-l-4.0.0-mx6uldesk_axelulite_spi_SPL
-rw-r--r-- 1 dvdk root  552184 Mar 31 11:00 desk-mx6ul-l-4.0.0-mx6uldesk_axelulite_spi_u-boot.img
-rw-r--r-- 1 dvdk root  551704 Mar 31 10:59 desk-mx6ul-l-4.0.0-mx6uldesk_axelulite_u-boot.img
-rw-r--r-- 1 dvdk root   35840 Mar 31 10:59 desk-mx6ul-l-4.0.0-mx6uldesk_lynx_SPL
-rw-r--r-- 1 dvdk root   48128 Mar 31 10:59 desk-mx6ul-l-4.0.0-mx6uldesk_lynx_spi_SPL
-rw-r--r-- 1 dvdk root  517248 Mar 31 10:59 desk-mx6ul-l-4.0.0-mx6uldesk_lynx_spi_u-boot.img
-rw-r--r-- 1 dvdk root  516776 Mar 31 10:59 desk-mx6ul-l-4.0.0-mx6uldesk_lynx_u-boot.img
-rw-r--r-- 1 dvdk root 1152054 Mar 31 10:59 splash_image.bmp
dvdk@vagrant:~$ mkdir -p ~/desk-mx-l/desk
dvdk@vagrant:~$ cp /tftpboot/desk-mx6ul-l/desk-mx6ul-l-4.0.0_uImage ~/desk-mx-l/desk/desk-mx6ul-l-4.0.0_uImage
dvdk@vagrant:~$ cp /tftpboot/desk-mx6ul-l/desk-mx6ul-l-4.0.0_imx6ul-axelulite-cb003a.dtb ~/desk-mx-l/desk/desk-mx6ul-l-4.0.0_imx6ul-axelulite-cb003a.dtb
dvdk@vagrant:~$ cp /tftpboot/desk-mx6ul-l/splash_image.bmp ~/desk-mx-l/desk/
dvdk@vagrant:~$ cp ~/desk-mx-l/boot.scr ~/desk-mx-l/desk/boot.scr
dvdk@vagrant:~$ cp ~/desk-mx-l/rfs/desk-mx6ul-l-4.0.0_modules.tar.gz ~/desk-mx-l/desk/

You can now run the script, by passing the following parameters:

  • Device file of the microSD card (/dev/sdb in the example)
  • U-Boot image
  • SPL
  • Path of the directory containing the bootscript file, the Linux kernel image, and the device tree blob files
  • Archive of the target's root file system (compressed as .tar.bz2 file).
dvdk@vagrant:~/desk-mx-l$ sudo umount /dev/sdb*
dvdk@vagrant:~/desk-mx-l$ sudo ./desk-mx6ul-l-4.0.1_mksd.sh /dev/sdb /tftpboot/desk-mx6ul-l/desk-mx6ul-l-4.0.0_mx6uldesk_axelulite_u-boot.img /tftpboot/desk-mx6ul-l/desk-mx6ul-l-4.0.0_mx6uldesk_axelulite_SPL ~/desk-mx-l/desk ./rfs/desk-mx6ul-l-4.0.1_dave-image-devel-desk-mx6ul.tar.bz2 
All data on /dev/sdb now will be destroyed! Continue? [y/n]
y               
[Partitioning /dev/sdb...]
1024+0 records in                                                                                        
1024+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.262305 s, 4.0 MB/s
DISK SIZE - 31002198016 bytes
Checking that no-one is using this disk right now ... OK

Disk /dev/sdb: 28.89 GiB, 31002198016 bytes, 60551168 sectors
Disk model: Transcend       
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

>>> Created a new DOS disklabel with disk identifier 0x937180d6.
/dev/sdb1: Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 8 GiB.
/dev/sdb2: Created a new partition 2 of type 'Linux' and of size 20.9 GiB.
/dev/sdb3: Done.

New situation:
Disklabel type: dos
Disk identifier: 0x937180d6

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sdb1  *       32768 16777215 16744448    8G  c W95 FAT32 (LBA)
/dev/sdb2       16777216 60551167 43773952 20.9G 83 Linux

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
[Making filesystems...]
mkfs.fat 4.1 (2017-01-24)
mke2fs 1.45.5 (07-Jan-2020)
/dev/sdb2 contains a ext3 file system labelled 'ROOTFS'
        created on Mon Apr  3 10:19:52 2023
Creating filesystem with 5471744 4k blocks and 1368064 inodes
Filesystem UUID: a0208180-9d1c-47e8-a8e0-c92a63a7059a
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

[Copying files...]
'/home/dvdk/desk-mx-l/desk/boot.scr' -> '/mnt/boot.scr'
'/home/dvdk/desk-mx-l/desk/desk-mx6ul-l-4.0.0_imx6ul-axelulite-cb003a.dtb' -> '/mnt/desk-mx6ul-l-4.0.0_imx6ul-axelulite-cb003a.dtb'
'/home/dvdk/desk-mx-l/desk/desk-mx6ul-l-4.0.0_uImage' -> '/mnt/desk-mx6ul-l-4.0.0_uImage'
'/home/dvdk/desk-mx-l/desk/splash_image.bmp' -> '/mnt/splash_image.bmp'
[Extracting rfs (this may take a while...)]
[Programming SPL]
70+0 records in
70+0 records out
35840 bytes (36 kB, 35 KiB) copied, 0.0120358 s, 3.0 MB/s
[Programming u-boot.img]
538+1 records in
538+1 records out
551704 bytes (552 kB, 539 KiB) copied, 0.164175 s, 3.4 MB/s
[Done]

[1] In case you have a different size, you'll need to change the sfdisk parameters accordingly.

bootscrEdit

Once you got the new binaries compiled from your modified sources, they have to be installed on first SD partition preserving the original file names used into boot.scr U-Boot bootscript.

Here below there is an example on how to create a boot.scr file from the bootscript.txt for booting from SD card:

echo 'bootscript generated with command "mkimage -A ARM -T script -C none -n DESK-MX6UL -d bootscript.txt boot.scr"'

setenv desk_release 'desk-mx6ul-l-4.0.0'

if test 0x${som_configid#} = 0x00000013 && test 0x${cb_configid#} = 0x0000002f;
then
    setenv fdtfile ${desk_release}_imx6ul-lynx-som0013-cb002f.dtb
elif test 0x${cb_configid#} = 0x0000003a
then
	setenv fdtfile ${desk_release}_imx6ul-axelulite-cb003a.dtb
elif test 0x${cb_configid#} = 0x0000006c
then
	setenv fdtfile ${desk_release}_imx6ul-axelulite-cb006c.dtb
else
    echo Invalid CB! Autoreset ...
    sleep 30
	reset
fi

setenv bootfile ${desk_release}_uImage

setenv mmc_loadk 'fatload mmc ${mmcdev}:1 ${loadaddr} ${bootfile}'
setenv mmc_loadfdt 'fatload mmc ${mmcdev}:1 ${fdtaddr} ${fdtfile}'

echo Booting DESK-MX6UL via mmcboot with ${fdtfile} as device tree

run mmcboot

echo mmcboot FAILURE

and compile it using:

mkimage -A ARM -T script -C none -n DESK-MX6UL -d bootscript.txt boot.scr

Then copy the boot.scr into the <binaries_dir> directories used by the script to create the SD card.

Install ModuleEdit

To install kernel modules, follow the steps below.

root@desk-mx6ul-axelulite:~# sudo mount /dev/mmcblk0p1 /media                     
root@desk-mx6ul-axelulite:~# tar xvzf /media/desk-mx6ul-l-4.0.0_modules.tar.gz -C /

After installation, run the following command to verify that the installation was successful:

root@desk-mx6ul-axelulite:~# ls -l /lib/modules/$(uname -r)
total 300
lrwxrwxrwx 1 541 502     65 Apr  3  2023 build -> /home/jenkins/workspace/workspace/DESK-MX6UL-L-4.x.x_Linux-kernel
drwxr-xr-x 6 541 502   4096 Apr  3  2023 kernel
-rw-r--r-- 1 541 502   2718 Apr  3  2023 modules.alias
-rw-r--r-- 1 541 502   4768 Apr  3  2023 modules.alias.bin
-rw-r--r-- 1 541 502  14878 Apr  3  2023 modules.builtin
-rw-r--r-- 1 541 502  34704 Apr  3  2023 modules.builtin.alias.bin
-rw-r--r-- 1 541 502  17778 Apr  3  2023 modules.builtin.bin
-rw-r--r-- 1 541 502 105373 Apr  3  2023 modules.builtin.modinfo
-rw-r--r-- 1 541 502  10689 Apr  3  2023 modules.dep
-rw-r--r-- 1 541 502  21666 Apr  3  2023 modules.dep.bin
-rw-r--r-- 1 541 502      0 Apr  3  2023 modules.devname
-rw-r--r-- 1 541 502   8657 Apr  3  2023 modules.order
-rw-r--r-- 1 541 502     85 Apr  3  2023 modules.softdep
-rw-r--r-- 1 541 502  16970 Apr  3  2023 modules.symbols
-rw-r--r-- 1 541 502  23964 Apr  3  2023 modules.symbols.bin
lrwxrwxrwx 1 541 502     65 Apr  3  2023 source -> /home/jenkins/workspace/workspace/DESK-MX6UL-L-4.x.x_Linux-kernel


Hello word exampleEdit

Here below an example on C code displaying the classic Hello World! message on the target serial console.

This example shows how to use the arm cross-compiler using the environment configured for this purpose

Setting the cross-compilerEdit

It is assumed that the development environment has been set up properly as described here.

  • start the Linux development VM and login into the system
  • open a terminal window and cd into your source code directory
dvdk@vagrant:~$ mkdir myproject
dvdk@vagrant:~$ cd myproject/
dvdk@vagrant:~/myproject$ vi hello.c
dvdk@vagrant:~/myproject$ cat hello.c
#include <stdio.h>

int main(){
	printf("Hello, World!\n");
	return 0;
}
  • configure the build environment
dvdk@vagrant:~/myproject$ source ~/desk-mx-l/desk-mx6ul-l-1.0.1_env.sh
  • as you can see here below, the $CC environment variable has been properly configured for using the SDK sysroot parameter:
dvdk@vagrant:~/myproject$ echo $CC
arm-poky-linux-gnueabi-gcc -march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/dvdk/desk-mx-l/sdk/desk-mx6ul-l-1.0.1-toolchain/sysroots/cortexa7hf-neon-poky-linux-gnueabi
dvdk@vagrant:~/myproject$ 
  • invoke the cross-compiler for compiling your source code example: the object file obtained, is a proper ELF 32-bit for the target microprocessor
dvdk@vagrant:~/myproject$ $CC hello.c -o hello
dvdk@vagrant:~/myproject$ file hello
hello: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=9afa4b55f9a187d69a3a8356ea2d2afc3565cf7a, not stripped
dvdk@vagrant:~/myproject$ 

Running the example on the targetEdit

Now it is enough to copy the object file in the /home/root rfs directory and boot from nfs...

dvdk@vagrant:~/myproject$ sudo cp hello /home/dvdk/desk-mx-l/rfs/desk-mx6ul-l/home/root/
dvdk@vagrant:~/myproject$ sudo ls -la /home/dvdk/desk-mx-l/rfs/desk-mx6ul-l/home/root/
total 32
drwx------ 2 root root  4096 Jun  8 12:36 .
drwxr-xr-x 3 root root  4096 Jan 28 23:54 ..
-rwxr-xr-x 1 root root 16432 Jun  8 12:36 hello
-rw-r--r-- 1 root root  1011 Nov 25  2020 .profile
dvdk@vagrant:~/myproject$ 

on the target:

...
...
...
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Job spooling tools.
         Starting Network Time Service (one-shot ntpdate mode)...
         Starting System Logging Service...
[  OK  ] Reached target Timers.
[  OK  ] Started RPC Bind Service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Telephony service.
[  OK  ] Started NFS status monitor for NFSv2/3 locking..
[  OK  ] Started Network Time Service (one-shot ntpdate mode).

NXP i.MX Release Distro 4.14-sumo desk-mx6ul-axelulite ttymxc0

desk-mx6ul-axelulite login: root
root@desk-mx6ul-axelulite:~# ls -la
total 32
drwx------ 2 root root  4096 Jul  2  2021 .
drwxr-xr-x 3 root root  4096 Jun 16  2021 ..
-rw------- 1 root root    25 Jun 29  2021 .bash_history
-rwxr-xr-x 1 root root 16436 Jul  2  2021 hello
root@desk-mx6ul-axelulite:~# ./hello
Hello, World!
root@desk-mx6ul-axelulite:~#



DeploymentEdit

Booting from NAND flashEdit

The following procedure is only theoretical. Boot firmware (U-Boot and SPL) for NAND storage are not available from the DAVE Embedded Systems' mirrors.

With respect to the NOR flash memories, NAND devices are known to be quite challenging 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.

This document provides information about the NAND device management, in order to handle it properly when it is used as the boot device on NXP i.MX6-based products.

Even though the example shown here refers to an i.MX6 UltraLite board, the approach is substantially the same across all the i.MX6 family.

The test bed used in this example consists of an i.MX6 UltraLite board equipped with a 128MB 8-bit asynchronous 1-bit ECC SLC NAND memory which is connected to the EIM bus of the SoC. The boot firmware image is the U-Boot binary files (desk-mx6ul-l-4.0.0_mx6uldesk_axelulite_nand_SPL and desk-mx6ul-l-4.0.0_mx6uldesk_axelulite_nand_u-boot.img). Its size is about 44 kB and 592 kB. From the point of view of MTD partitions, the boot partition for SPL is mtd0 is 2MB while the second stage partition mtd1 is 6MB.

Boot partition organizationEdit

The following image shows the organization of the boot partition.


 
Organization of the boot partition


The bootrom plays a major role in the boot process of any i.MX6 SoC. In case the NAND memory is the boot devices, this implies that the boot partition must be organized in order fulfill the bootrom requirements. Specifically, it contains:

  • A 1MB area (named Flash Control Block, FCB) which, in turn, includes
    • A data structure called NAND Control Block (NCB)
    • Three addresses which indicate where are located
      • The Discovered Bad Block Table (DBBT) which is the data structure used to manage the bad blocks of the NAND flash
      • The first copy of the firmware to load
      • The second (redundant) copy of the firmware to load
  • The DBBT
  • The first copy of the firmware
  • The second copy of the firmware.

For more details about the bootrom and the NAND boot process, please refer to the System Boot chapter of the Reference Manual of the specific i.MX6 Application Processor.

The following section will describe how to burn the boot partition in practice.

How to burn the boot partitionEdit

The burning of the boot partition is performed by the kobs-ng tool and the standard flash_erase and nandwrite flash utilities.

When the NAND flash is not burned yet, the product is usually configured in order to boot from a different device such as an SD card or through serial download mode. Once the Linux kernel is up and running, the kobs-ng can be run as shown in the following example:

root@desk-mx6ul-axelulite:~# kobs-ng -x -v -w desk-mx6ul-l-4.0.0_mx6uldesk_axelulite_nand_SPL
MTD CONFIG:
  chip_0_device_path = "/dev/mtd0"
  chip_1_device_path = "(null)"
  search_exponent = 2
  data_setup_time = 80
  data_hold_time = 60
  address_setup_time = 25
  data_sample_time = 6
  row_address_size = 3
  column_address_size = 2
  read_command_code1 = 0
  read_command_code2 = 48
  boot_stream_major_version = 1
  boot_stream_minor_version = 0
  boot_stream_sub_version = 0
  ncb_version = 3
  boot_stream_1_address = 0
  boot_stream_2_address = 0
  secondary_boot_stream_off_in_MB = 64
	 -- We add the 1k-padding to the uboot.
.tmp_kobs_ng: verifying using key '00000000000000000000000000000000'
.tmp_kobs_ng: is a valid bootstream for key '00000000000000000000000000000000'
mtd: use new bch layout raw access mode
mtd: opening: "/dev/mtd0"
NFC geometry :
	ECC Strength       : 2
	Page Size in Bytes : 2071
	Metadata size      : 10
	ECC Chunk Size in byte : 512
	ECC Chunk count        : 4
	Block Mark Byte Offset : 2028
	Block Mark Bit Offset  : 2
====================================================
mtd: opened '/dev/mtd0' - '(null)'
mtd: max_boot_stream_size_in_bytes = 524288
mtd: boot_stream_size_in_bytes = 45056
mtd: boot_stream_size_in_pages = 22
mtd: #1 0x00100000 - 0x00180000 (0x0010b000)
mtd: #2 0x00180000 - 0x00200000 (0x0018b000)
FCB
  m_u32Checksum = 0x00000000
  m_u32FingerPrint = 0x20424346
  m_u32Version = 0x01000000
  m_NANDTiming.m_u8DataSetup = 80
  m_NANDTiming.m_u8DataHold = 60
  m_NANDTiming.m_u8AddressSetup = 25
  m_NANDTiming.m_u8DSAMPLE_TIME = 6
  m_u32PageDataSize = 2048
  m_u32TotalPageSize = 2112
  m_u32SectorsPerBlock = 64
  m_u32NumberOfNANDs = 0
  m_u32TotalInternalDie = 0
  m_u32CellType = 0
  m_u32EccBlockNEccType = 1
  m_u32EccBlock0Size = 512
  m_u32EccBlockNSize = 512
  m_u32EccBlock0EccType = 1
  m_u32MetadataBytes = 10
  m_u32NumEccBlocksPerPage = 3
  m_u32EccBlockNEccLevelSDK = 0
  m_u32EccBlock0SizeSDK = 0
  m_u32EccBlockNSizeSDK = 0
  m_u32EccBlock0EccLevelSDK = 0
  m_u32NumEccBlocksPerPageSDK = 0
  m_u32MetadataBytesSDK = 0
  m_u32EraseThreshold = 0
  m_u32Firmware1_startingPage = 512
  m_u32Firmware2_startingPage = 768
  m_u32PagesInFirmware1 = 22
  m_u32PagesInFirmware2 = 22
  m_u32DBBTSearchAreaStartAddress = 256
  m_u32BadBlockMarkerByte = 2028
  m_u32BadBlockMarkerStartBit = 2
  m_u32BBMarkerPhysicalOffset = 2048
  m_u32BCHType = 0
  m_NANDTMTiming.m_u32TMTiming2_ReadLatency = 0
  m_NANDTMTiming.m_u32TMTiming2_PreambleDelay = 0
  m_NANDTMTiming.m_u32TMTiming2_CEDelay = 0
  m_NANDTMTiming.m_u32TMTiming2_PostambleDelay = 0
  m_NANDTMTiming.m_u32TMTiming2_CmdAddPause = 0
  m_NANDTMTiming.m_u32TMTiming2_DataPause = 0
  m_NANDTMTiming.m_u32TMSpeed = 0
  m_NANDTMTiming.m_u32TMTiming1_BusyTimeout = 0
  m_u32DISBBM = 0
  m_u32BBMarkerPhysicalOffsetInSpareData = 0
  m_u32OnfiSyncEnable = 0
  m_NANDONFITiming.m_u32ONFISpeed = 0
  m_NANDONFITiming.m_u32ONFITiming_ReadLatency = 0
  m_NANDONFITiming.m_u32ONFITiming_CEDelay = 0
  m_NANDONFITiming.m_u32ONFITiming_PreambleDelay = 0
  m_NANDONFITiming.m_u32ONFITiming_PostambleDelay = 0
  m_NANDONFITiming.m_u32ONFITiming_CmdAddPause = 0
  m_NANDONFITiming.m_u32ONFITiming_DataPause = 0
  m_NANDONFITiming.m_u32ONFITiming_BusyTimeout = 0
  m_u32DISBBSearch = 0
  m_u32RandomizerEnable = 0
  m_u32ReadRetryEnable = 0
  m_u32ReadRetrySeqLength = 0
DBBT
  m_u32Checksum = 0x00000000
  m_u32FingerPrint = 0x54424244
  m_u32Version = 0x01000000
  m_u32DBBTNumOfPages = 0
Firmware: image #0 @ 0x100000 size 0xb000 - available 0x80000
Firmware: image #1 @ 0x180000 size 0xb000 - available 0x80000
-------------- Start to write the [ FCB ] -----
mtd: erasing @0:0x0-0x20000
mtd: Writing FCB0 [ @0:0x0 ] (840) *
mtd: erasing @0:0x20000-0x40000
mtd: Writing FCB1 [ @0:0x20000 ] (840) *
mtd: erasing @0:0x40000-0x60000
mtd: Writing FCB2 [ @0:0x40000 ] (840) *
mtd: erasing @0:0x60000-0x80000
mtd: Writing FCB3 [ @0:0x60000 ] (840) *
mtd_commit_bcb(FCB): status 0

-------------- Start to write the [ DBBT ] -----
mtd: erasing @0:0x80000-0xa0000
mtd: Writing DBBT0 [ @0:0x80000 ] (800) *
mtd: erasing @0:0xa0000-0xc0000
mtd: Writing DBBT1 [ @0:0xa0000 ] (800) *
mtd: erasing @0:0xc0000-0xe0000
mtd: Writing DBBT2 [ @0:0xc0000 ] (800) *
mtd: erasing @0:0xe0000-0x100000
mtd: Writing DBBT3 [ @0:0xe0000 ] (800) *
mtd_commit_bcb(DBBT): status 0

---------- Start to write the [ .tmp_kobs_ng ]----
mtd: Writting .tmp_kobs_ng: #0 @0: 0x00100000 - 0x0010b000
mtd: erasing @0:0x100000-0x120000
mtd: We write one page for save guard. *
mtd: Writting .tmp_kobs_ng: #1 @0: 0x00180000 - 0x0018b000
mtd: erasing @0:0x180000-0x1a0000
mtd: We write one page for save guard. *

then the second mtd1 partition can be written using nandwrite:

root@desk-mx6ul-axelulite:~# flash_erase /dev/mtd1 0 0
Erasing 128 Kibyte @ 5e0000 -- 100 % complete 
root@desk-mx6ul-axelulite:~# nandwrite -p /dev/mtd1 desk-mx6ul-l-4.0.0_mx6uldesk_axelulite_nand_u-boot.img 
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000

In this case, the SPL boot partition–/dev/mtd0, indicated as a parameter of the command line–is 2MB. The u-boot.img partition–/dev/mtd1 is used for the second stage binary image.




Customizing the splash screenEdit

ResourcesEdit

For further details on splash screen support in U-Boot, please refer to:

InstructionsEdit

The following U-Boot environment variables are required:

  • splashimage: RAM address where the BMP image is loaded. Please note that it must be a 32-bit aligned address with a 0x2 offset (eg: 0x20000002)
  • loadsplash: comand for loading the BMP image from the storage device (e.g flash memory) to RAM. This command is automatically run by U-Boot at startup

Please note that loadsplash command will differ depends on used storage device.

Splash image in NOR SPI flashEdit

U-Boot variablesEdit
loadsplash=run spi_loadsplash
spi_loadsplash=sf probe; sf read ${splashimage} 0xa00000 ${splashsize}
splashfile=splash_image.bmp
splashimage=0x80800000
splashsize=0x120000
loadsplashfile=tftpboot ${loadaddr} desk-mxul-l/${splashfile}
spi_updatesplash=sf probe; sf erase 0xa00000 +${filesize}; sf write ${loadaddr} 0xa00000 ${filesize}
CommandsEdit

The following commands are used to store in NOR SPI flash a BMP image loaded via tftp:

run loadsplashfile
run spi_updatesplash

Splash image in NAND flashEdit

U-Boot variablesEdit
mtdparts=mtdparts=gpmi-nand:2M(nand-SPL),6M(nand-uboot),1M(nand-env1),1M(nand-env2),1M(nand-fdt),1M(nand-spare),8M(nand-kernel),4M(nand-splash),-(nand-ubi)
loadsplash=run nand_loadsplash
nand_loadsplash=nand read ${splashimage} nand-splash ${splashsize}
splashfile=splash_image.bmp
splashimage=0x80800000
splashsize=0x120000
loadsplashfile=tftpboot ${loadaddr} desk-mxul-l/${splashfile}
nand_updatesplash=nand erase.part nand-splash; nand write ${loadaddr} nand-splash ${filesize}

Please note that the NAND mtd partition for the splash image (nand-splash) is defined using the mtdparts parameter, and then referenced by the nand {erase,read,write} commands.

CommandsEdit

The following commands are used to store in NAND flash a BMP image loaded via tftp:

run loadsplashfile
run nand_updatesplash


Standalone bootEdit

IntroductionEdit

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.

A complete deployment strategy has to be carefully identifiyed taking into account the overall arguments like: boot speed, safe boot, recovery mechanisms, watchdog supervisor, etc.


We'll explain how to program and configure a <SOM> to boot in standalone mode, without the need of a system microSD card or an NFS server, with two 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

Program boot images into NOR flashEdit

U-BootEdit

Update to the latest U-Boot version allows usage of u-boot environment variables available.

=> run load_spl 
Using FEC0 device
TFTP from server 192.168.4.210; our IP address is 192.168.4.230
Filename 'desk-mxul-l/SPL'.
Load address: 0x80800000
Loading: ##########
         1.4 MiB/s
done
Bytes transferred = 48128 (bc00 hex)
=> run spi_update_spl 
SF: Detected is25lp128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
SF: 65536 bytes @ 0x0 Erased: OK
device 0 offset 0x400, size 0xbc00
SF: 48128 bytes @ 0x400 Written: OK
=> run load_uboot 
Using FEC0 device
TFTP from server 192.168.4.210; our IP address is 192.168.4.230
Filename 'desk-mxul-l/u-boot.img'.
Load address: 0x80800000
Loading: #################################################################
         ###########################################
         1.8 MiB/s
done
Bytes transferred = 552160 (86ce0 hex)
=> run spi_update_uboot 
SF: Detected is25lp128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
SF: 589824 bytes @ 0x10000 Erased: OK
device 0 offset 0x10000, size 0x86ce0
SF: 552160 bytes @ 0x10000 Written: OK

kernel image and device treeEdit

We assume that the following environment variables are present in U-Boot:

loadk=tftpboot ${loadaddr} ${serverip}:${bootfile}
loadfdt=tftpboot ${fdtaddr} ${serverip}:${fdtfile}
spi_updatek=sf erase 200000 800000; sf write ${loadaddr} 200000 ${filesize}
spi_updatefdt=sf erase 180000 80000; sf write ${fdtaddr} 180000 ${filesize}
spi_loadk=sf read ${loadaddr} 200000 800000
spi_loadfdt=sf read ${fdtaddr} 180000 80000
spi_nand=sf probe; run spi_loadk spi_loadfdt nandargs addcons addmisc; if run configid_fixupfdt; then bootm ${loadaddr} - ${fdtaddr}; fi
  • Update the bootfile and fdtfile environment variables to fit the filename as found inside the TFTP server.
  • Program kernel and device tree on NOR flash with the following U-Boot command
sf probe; run loadk spi_updatek loadfdt spi_updatefdt

E.g.:

=> sf probe; run loadk spi_updatek loadfdt spi_updatefdt
SF: Detected is25lp128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
Using FEC0 device
TFTP from server 192.168.4.210; our IP address is 192.168.4.230
Filename 'desk-mxul-l/uImage'.
Load address: 0x80800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######
         2.1 MiB/s
done
Bytes transferred = 8016512 (7a5280 hex)
SF: 8388608 bytes @ 0x200000 Erased: OK
device 0 offset 0x200000, size 0x7a5280
SF: 8016512 bytes @ 0x200000 Written: OK
Using FEC0 device
TFTP from server 192.168.4.210; our IP address is 192.168.4.230
Filename 'desk-mxul-l/imx6ul-axelulite-cb003a.dtb'.
Load address: 0x83000000
Loading: #######
         804.7 KiB/s
done
Bytes transferred = 32964 (80c4 hex)
SF: 524288 bytes @ 0x180000 Erased: OK
device 0 offset 0x180000, size 0x80c4
SF: 32964 bytes @ 0x180000 Written: OK

Reboot the system and configure U-Boot to apply the new configuration

=> setenv bootcmd run spi_nand
=> saveenv

Program boot images into NAND flashEdit

U-BootEdit

U-Boot on NAND flash must be programmed using NXP kobs-ng utility: this tool is required for writing the correct U-Boot image on NAND storing all information needed by bootrom to identify the NAND as a boot device.

Here below an example:

  • boot the system via SD on NFS
  • uses a rfs with kobs-ng utility available on it (e.g. DAVE's rfs provided with DESK-MX6UL-L)
  • copy the related U-Boot image file on nfs /home/root (for example)
  • execute kobs-ng passing the parameters for flashing U-Boot on NAND
root@desk-mx6ul-axelulite:~# kobs-ng -x -v -w desk-mx6ul-l-4.0.0_mx6uldesk_axelulite_SPL
MTD CONFIG:
  chip_0_device_path = "/dev/mtd0"
  chip_1_device_path = "(null)"
  search_exponent = 2
  data_setup_time = 80
  data_hold_time = 60
  address_setup_time = 25
  data_sample_time = 6
  row_address_size = 3
  column_address_size = 2
  read_command_code1 = 0
  read_command_code2 = 48
  boot_stream_major_version = 1
  boot_stream_minor_version = 0
  boot_stream_sub_version = 0
  ncb_version = 3
  boot_stream_1_address = 0
  boot_stream_2_address = 0
  secondary_boot_stream_off_in_MB = 64
         -- We add the 1k-padding to the uboot.
.tmp_kobs_ng: verifying using key '00000000000000000000000000000000'
.tmp_kobs_ng: is a valid bootstream for key '00000000000000000000000000000000'
mtd: use new bch layout raw access mode
mtd: opening: "/dev/mtd0"
NFC geometry :
        ECC Strength       : 2
        Page Size in Bytes : 2071
        Metadata size      : 10
        ECC Chunk Size in byte : 512
        ECC Chunk count        : 4
        Block Mark Byte Offset : 2028
        Block Mark Bit Offset  : 2
====================================================
mtd: opened '/dev/mtd0' - '(null)'
mtd: max_boot_stream_size_in_bytes = 524288
mtd: boot_stream_size_in_bytes = 49152
mtd: boot_stream_size_in_pages = 24
mtd: #1 0x00100000 - 0x00180000 (0x0010c000)
mtd: #2 0x00180000 - 0x00200000 (0x0018c000)
FCB
  m_u32Checksum = 0x00000000
  m_u32FingerPrint = 0x20424346
  m_u32Version = 0x01000000
  m_NANDTiming.m_u8DataSetup = 80
  m_NANDTiming.m_u8DataHold = 60
  m_NANDTiming.m_u8AddressSetup = 25
  m_NANDTiming.m_u8DSAMPLE_TIME = 6
  m_u32PageDataSize = 2048
  m_u32TotalPageSize = 2112
  m_u32SectorsPerBlock = 64
  m_u32NumberOfNANDs = 0
  m_u32TotalInternalDie = 0
  m_u32CellType = 0
  m_u32EccBlockNEccType = 1
  m_u32EccBlock0Size = 512
  m_u32EccBlockNSize = 512
  m_u32EccBlock0EccType = 1
  m_u32MetadataBytes = 10
  m_u32NumEccBlocksPerPage = 3
  m_u32EccBlockNEccLevelSDK = 0
  m_u32EccBlock0SizeSDK = 0
  m_u32EccBlockNSizeSDK = 0
  m_u32EccBlock0EccLevelSDK = 0
  m_u32NumEccBlocksPerPageSDK = 0
  m_u32MetadataBytesSDK = 0
  m_u32EraseThreshold = 0
  m_u32Firmware1_startingPage = 512
  m_u32Firmware2_startingPage = 768
  m_u32PagesInFirmware1 = 24
  m_u32PagesInFirmware2 = 24
  m_u32DBBTSearchAreaStartAddress = 256
  m_u32BadBlockMarkerByte = 2028
  m_u32BadBlockMarkerStartBit = 2
m_u32BBMarkerPhysicalOffset = 2048
m_u32BCHType = 0
m_NANDTMTiming.m_u32TMTiming2_ReadLatency = 0
m_NANDTMTiming.m_u32TMTiming2_PreambleDelay = 0
m_NANDTMTiming.m_u32TMTiming2_CEDelay = 0
m_NANDTMTiming.m_u32TMTiming2_PostambleDelay = 0
m_NANDTMTiming.m_u32TMTiming2_CmdAddPause = 0
m_NANDTMTiming.m_u32TMTiming2_DataPause = 0
m_NANDTMTiming.m_u32TMSpeed = 0
m_NANDTMTiming.m_u32TMTiming1_BusyTimeout = 0
m_u32DISBBM = 0
m_u32BBMarkerPhysicalOffsetInSpareData = 0
m_u32OnfiSyncEnable = 0
m_NANDONFITiming.m_u32ONFISpeed = 0
m_NANDONFITiming.m_u32ONFITiming_ReadLatency = 0
m_NANDONFITiming.m_u32ONFITiming_CEDelay = 0
m_NANDONFITiming.m_u32ONFITiming_PreambleDelay = 0
m_NANDONFITiming.m_u32ONFITiming_PostambleDelay = 0
m_NANDONFITiming.m_u32ONFITiming_CmdAddPause = 0
m_NANDONFITiming.m_u32ONFITiming_DataPause = 0
m_NANDONFITiming.m_u32ONFITiming_BusyTimeout = 0
m_u32DISBBSearch = 0
m_u32RandomizerEnable = 0
m_u32ReadRetryEnable = 0
m_u32ReadRetrySeqLength = 0
DBBT
m_u32Checksum = 0x00000000
m_u32FingerPrint = 0x54424244
m_u32Version = 0x01000000
m_u32DBBTNumOfPages = 0
Firmware: image #0 @ 0x100000 size 0xc000 - available 0x80000
Firmware: image #1 @ 0x180000 size 0xc000 - available 0x80000
-------------- Start to write the [ FCB ] -----
mtd: erasing @0:0x0-0x20000
mtd: Writing FCB0 [ @0:0x0 ] (840) *
mtd: erasing @0:0x20000-0x40000
mtd: Writing FCB1 [ @0:0x20000 ] (840) *
mtd: erasing @0:0x40000-0x60000
mtd: Writing FCB2 [ @0:0x40000 ] (840) *
mtd: erasing @0:0x60000-0x80000
mtd: Writing FCB3 [ @0:0x60000 ] (840) *
mtd_commit_bcb(FCB): status 0

-------------- Start to write the [ DBBT ] -----
mtd: erasing @0:0x80000-0xa0000
mtd: Writing DBBT0 [ @0:0x80000 ] (800) *
mtd: erasing @0:0xa0000-0xc0000
mtd: Writing DBBT1 [ @0:0xa0000 ] (800) *
mtd: erasing @0:0xc0000-0xe0000
mtd: Writing DBBT2 [ @0:0xc0000 ] (800) *
mtd: erasing @0:0xe0000-0x100000
mtd: Writing DBBT3 [ @0:0xe0000 ] (800) *
mtd_commit_bcb(DBBT): status 0

---------- Start to write the [ .tmp_kobs_ng ]----
mtd: Writting .tmp_kobs_ng: #0 @0: 0x00100000 - 0x0010c000
mtd: erasing @0:0x100000-0x120000
mtd: We write one page for save guard. *
mtd: Writting .tmp_kobs_ng: #1 @0: 0x00180000 - 0x0018c000
mtd: erasing @0:0x180000-0x1a0000
mtd: We write one page for save guard. *
</pre>

then the second <code>mtd1</code> partition can be written using ''nandwrite'':

<pre class="workstation-terminal">
root@desk-mx6ul-axelulite:~# flash_erase /dev/mtd1 0 0
Erasing 128 Kibyte @ 5e0000 -- 100 % complete 
root@desk-mx6ul-axelulite:~# nandwrite -p /dev/mtd1 desk-mx6ul-l-3.0.0_mx6uldesk_axelulite_u-boot.img 
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000

kernel image and device treeEdit

We assume that the following environment variables are present in u-boot:

nand_updatek=nand erase.part nand-kernel; nand write ${loadaddr} nand-kernel ${filesize}
nand_updatefdt=nand erase.part nand-fdt; nand write ${fdtaddr} nand-fdt ${filesize}
nand_loadk=nand read ${loadaddr} nand-kernel
nand_loadfdt=nand read ${fdtaddr} nand-fdt
nand_nand=run nand_loadk nand_loadfdt nandargs addcons addmisc; if run configid_fixupfdt; then bootm ${loadaddr} - ${fdtaddr}; fi
  • Update the bootfile and fdtfile environment variables to fit the filename as found inside the TFTP server.
  • Program kernel and device tree on NAND flash with the following U-Boot command
run loadk nand_updatek loadfdt nand_updatefdt

E.g.:

=> run loadk nand_updatek loadfdt nand_updatefdt
Using FEC0 device
TFTP from server 192.168.4.210; our IP address is 192.168.4.159
Filename 'desk-mxul-l/uImage'.
Load address: 0x80800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######
         2.1 MiB/s
done
Bytes transferred = 8016512 (7a5280 hex)

NAND erase.part: device 0 offset 0xc00000, size 0x800000
Erasing at 0x13e0000 -- 100% complete.
OK

NAND write: device 0 offset 0xc00000, size 0x7a5280
 8016512 bytes written: OK
Using FEC0 device
TFTP from server 192.168.4.210; our IP address is 192.168.4.159
Filename 'desk-mxul-l/imx6ul-axelulite-cb003a.dtb'.
Load address: 0x83000000
Loading: #######
         804.7 KiB/s
done
Bytes transferred = 32964 (80c4 hex)

NAND erase.part: device 0 offset 0xa00000, size 0x100000
Erasing at 0xae0000 -- 100% complete.
OK

NAND write: device 0 offset 0xa00000, size 0x80c4
 32964 bytes written: OK

Reboot the system and configure U-Boot to apply the new configuration

=> setenv bootcmd run nand_nand
=> saveenv

Program root file system into NAND flashEdit

  • boot the system via SD or NFS as described in the Booting from NFS
  • by default, the NAND is already partitioned to allow booting from NAND-only (see next section) and, thus, some partitions are reserved for u-boot and kernel images. Here we won't modify this default configuration. The MTD partitions can be dumped with /proc/mtd (the partition's name should be self-explanatory)
root@desk-mx6ul-axelulite:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00200000 00020000 "nand-SPL"
mtd1: 00600000 00020000 "nand-uboot"
mtd2: 00100000 00020000 "nand-env1"
mtd3: 00100000 00020000 "nand-env2"
mtd4: 00100000 00020000 "nand-fdt"
mtd5: 00100000 00020000 "nand-spare"
mtd6: 00800000 00020000 "nand-kernel"
mtd7: 00400000 00020000 "nand-splash"
mtd8: 06800000 00020000 "nand-ubi"
mtd9: 00010000 00001000 "spi-SPL"
mtd10: 000f0000 00001000 "spi-uboot"
mtd11: 00040000 00001000 "spi-env1"
mtd12: 00040000 00001000 "spi-env2"
mtd13: 00080000 00001000 "spi-dtb"
mtd14: 00800000 00001000 "spi-kernel"
mtd15: 00400000 00001000 "spi-splash"
mtd16: 00200000 00001000 "spi-free"


Please note that MTD partition index may change depending of flash device availability, flash device size, u-boot environment variables or kernel device driver load order. Always take care of looking inside /proc/mtd to match your specific layout


  • Format and initialize nand-ubi partition, which in our case is mtd8, using UBI with:
ubiformat /dev/mtd8
ubiattach -m 8
ubimkvol /dev/ubi0 -N rootfs -m

E.g.

root@desk-mx6ul-axelulite:~# ubiformat /dev/mtd8
ubiformat: mtd8 (nand), size 109051904 bytes (104.0 MiB), 832 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 831 -- 100 % complete  
ubiformat: 832 eraseblocks have valid erase counter, mean value is 39
ubiformat: formatting eraseblock 831 -- 100 % complete  
root@desk-mx6ul-axelulite:~# ubiattach -m 8
UBI device number 0, total 832 LEBs (105644032 bytes, 100.7 MiB), available 808 LEBs (102596608 bytes, 97.8 MiB), LEB size 126976 bytes (124.0 KiB)
root@desk-mx6ul-axelulite:~# ubimkvol /dev/ubi0 -N rootfs -m
Set volume size to 102596608
Volume ID 0, size 808 LEBs (102596608 bytes, 97.8 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
  • Now mount the UBI volume using UBIFS in a temporary directory
mkdir -p /mnt/nand
mount -t ubifs ubi0_0 /mnt/nand

E.g.:

root@desk-mx6ul-axelulite:~# mkdir -p /mnt/nand
root@desk-mx6ul-axelulite:~# mount -t ubifs ubi0_0 /mnt/nand/
root@desk-mx6ul-axelulite:~# dmesg | tail -n 7
[   86.268589] UBIFS (ubi0:0): Mounting in unauthenticated mode
[   86.272276] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 276
[   86.302293] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[   86.302349] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   86.302377] UBIFS (ubi0:0): FS size: 101199872 bytes (96 MiB, 797 LEBs), max 808 LEBs, journal size 5079040 bytes (4 MiB, 40 LEBs)
[   86.302411] UBIFS (ubi0:0): reserved for root: 4779919 bytes (4667 KiB)
[   86.302431] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 36C676F6-9160-4334-B687-9CEE57A30FEF, small LPT model
  • you can now extract the root file system into that directory
tar xvjf desk-image-qt5-desk-mx6ul-axelulite.tar.bz2 -C /mnt/nand/
  • finally, you need to cleanly umount and detach the MTD partition
umount /mnt/nand/
ubidetach -m 8

E.g.

root@desk-mx6ul-axelulite:~# umount /mnt/nand/
root@desk-mx6ul-axelulite:~# ubidetach -m 8
root@desk-mx6ul-axelulite:~# dmesg | tail -n 4
[  105.493236] UBIFS (ubi0:0): un-mount UBI device 0
[  105.493401] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops
[  109.963440] ubi0: detaching mtd8
[  109.971275] ubi0: mtd8 is detached

You can now safely reboot or turn off the system.

In U-Boot environment check the following variable, which must contain the same MTD partition number used above

nandargs=setenv bootargs ubi.mtd=8 root=ubi0_0 rootfstype=ubifs rw


PeripheralsEdit