Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX8M-L/Deployment/Standalone boot

36,818 bytes added, 18:20, 27 December 2023
no edit summary
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
|-
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Version
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|X.Y.Z{{oldid|16140|2022/02/17}}|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Month Year|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; borderFirst DESK-bottom:solid 2px #73B2C7; backgroundMX8M-color:#edf8fb; padding:5px; color:#000000"|TBDL release
|-
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |{{oldid|17662|2023/02/27}}
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |DESK-MX8M-L-2.0.0 release
|-
|! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fbededed; padding:5px; color:#000000"|[TBD_link X.Y.Z]2023/08/22|! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fbededed; padding:5px; color:#000000"|Month Year|style="borderDESK-left:solid 2px #73B2C7; borderMX8M-right:solid 2px #73B2C7;borderL-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|TBD4.0.0 release
|-
|}
==Standalone boot==
 
'''TBD: rifare tutti i dump con le versioni corrette '''
 
'''TBD: eliminare eventuali sezioni non pertinenti (es. eMMC) per il SOC '''
 
=== Introduction ===
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.
{{ImportantMessage|text=The following programming examples are intended for <b>laboratory usage</b> or for ''preliminary deployment strategy''.<br><br>A complete deployment strategy has to be carefully identifiyed identified taking into account the overall arguments like: boot speed, safe boot, recovery mechanisms, watchdog supervisor, etc.}}
We'll explain how Generally speaking, it is possible to program and configure a <SOM> to boot in standalone mode, without the need of a system microSD card or an NFS server, for example, with threee three options:
* booting with NOR and NAND internal storage
** in this configuration the primary boot images will be fetched from NOR flash storage, while the root file system will be fetched from NAND flash
** in this configuration the whole system will boot without the need of a NOR flash storage, all images and the root file system will be fetched from NAND flash
* booting with eMMC only
** in this configuration the whole system will boot without the need of a NOR/NAND flashes storage, all images and the root file system will be fetched from the eMMC flash
{{ImportantMessage|text=== Program boot images In the following paragraphs, we will take into NOR flash ===account a real case using an embedded eMMC mounted in the [[ORCA SOM | ORCA]] or [[MITO 8M Mini SOM |MITO 8M Mini]] SOMs}}
====u-Boot=Program boot images into eMMC ===
Update to The <code>flash.bin</code> Boot Image can be created following the latest uinstructions described in the [[DESK-boot version allows usage of uMX8M-boot environment variables available.L/Development/Building_Boot_Image | Building Boot Image]] wiki page, fir example:
<pre class="workstation-terminal">=> run loadUsing FEC deviceTFTP from server 192.168.0.13; our IP address is 192.168.0.89Filename 'sdvx/u-boot/sdvx-1.0.0_mx6dl_sfczg_spi_u-boot.imx'.Load address: 0x12000000Loading: ################################################################# ################################################################# ## 1.4 MiB/sdoneBytes transferred = 671788 (a402c hex)=> run spi_updateBoot binary====SF: Detected S25FL256S with page size 64 KiB, total 32 MiB=Load Boot binary form a <code>tftp</precode>server:
load====kernel image and device tree==== We assume that the following environment variables are present in u-boot: <pre>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 ${filesizebinfile}'spi_loadk binfile=sf read ${loadaddr} 200000 800000spi_loadfdt=sf read ${fdtaddr} 180000 80000spi_nand=sf probe; run spi_loadk spi_loadfdt nandargs addcons addmisc; if run configid_fixupfdt; then bootm ${loadaddr} 'desk- ${fdtaddr}; fi</pre> * Update the <code>bootfile</code> and <code>fdtfile</code> environment variables to fit the filename as found inside the TFTP server.* Program kernel and device tree on NOR flash with the following Umx8m-Boot command <pre class="board-terminal">sf probe; run loadk spi_updatek loadfdt spi_updatefdt<l/pre> Eimx8mp_flash.g.:bin'
<pre class="workstation-terminal">
u-boot=> sf probe; run loadk spi_updatek loadfdt spi_updatefdtSF: Detected S25FL256S with page size 64 KiB, total 32 MiBloadUsing FEC ethernet@30be0000 deviceTFTP from server 192.168.0.13; our IP address is 192.168.0.9890Filename 'sdvxdesk-mx8m-l/linux/sdvx-1.0imx8mp_flash.0_lite_uImagebin'.Load address: 0x120000000x40480000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############################################# 1.6 8 MiB/s
done
Bytes transferred = 6437016 1304608 (623898 13e820 hex)Using FEC deviceTFTP from server 192.168.0.13; our IP address is 192.168.0.89Filename 'sdvx/linux/sdvx-1.0.0_lite_imx6dlu-sfczg-cb0043.dtb'.Load address: 0x18000000Loading: ######### 1.2 MiB/sdoneBytes transferred = 42547 (a633 hex)boot=>
</pre>
Reboot the system and configure U-or load Boot to apply the new configurationbinary form an <code>SD</code> card:
<pre class="workstation-terminal">
Hit ENTER within 1 seconds to stop autobootu-boot=> setenv bootcmd run spi_nandfatload mmc 1:1 ${loadaddr} imx8mp_flash.bin1304608 bytes read in 63 ms (21.4 MiB/s)u-boot=> saveenv
</pre>
=== Program boot images into NAND flash =======u-Boot==== u-boot on NAND flash must be programmed using NXP <code>kobs-ng</code> utility: this tool is required for writing In case of MITO 8M Mini, the correct u-boot image on NAND storing all information needed by bootrom name of binary file to identify the NAND as a boot device. Here below an example:* boot the system via SD on NFS* uses a rfs with upload is <b>kobs-ng</bcode> utility available on it (eimx8mm_flash.g. DAVE's rfs provided with bin<KIT>)* copy the related u-boot imx image file on nfs /home/root (for example)* execute kobs-ng passing the parameters for flashing u-boot on NAND <pre class="workstation-terminal"code>root@imx6qxelk:~# kobs-ng -x -v -w sdvx-1.0.0_mx6dl_sfczg_nand_u-boot.imxMTD 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 -- 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 modemtd: 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 = 3670016mtd: boot_stream_size_in_bytes = 672812mtd: boot_stream_size_in_pages = 329mtd: #1 0x00100000 - 0x00480000 (0x001a442c)mtd: #2 0x00480000 - 0x00800000 (0x0052442c)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 = 2304 m_u32PagesInFirmware1 = 329 m_u32PagesInFirmware2 = 329 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 = 0DBBT m_u32Checksum = 0x00000000 m_u32FingerPrint = 0x54424244 m_u32Version = 0x01000000 m_u32DBBTNumOfPages = 0Firmware: image #0 @ 0x100000 size 0xa4800 - available 0x380000Firmware: image #1 @ 0x480000 size 0xa4800 - available 0x380000-------------- Start to write the [ FCB ] -----mtd: erasing @0:0x0-0x20000mtd: Writing FCB0 [ @0:0x0 ] (840) *mtd: erasing @0:0x20000-0x40000mtd: Writing FCB1 [ @0:0x20000 ] (840) *mtd: erasing @0:0x40000-0x60000mtd: Writing FCB2 [ @0:0x40000 ] (840) *mtd: erasing @0:0x60000-0x80000mtd: Writing FCB3 [ @0:0x60000 ] (840) *mtd_commit_bcb(FCB): status 0
-------------- Start to write the [ DBBT ] -----mtd: erasing @0:0x80000-0xa0000mtd: Writing DBBT0 [ @0:0x80000 ] (800) *mtd: erasing @0:0xa0000-0xc0000mtd: Writing DBBT1 [ @0:0xa0000 ] (800) *mtd: erasing @0:0xc0000-0xe0000mtd: Writing DBBT2 [ @0:0xc0000 ] (800) *mtd: erasing @0:0xe0000-0x100000mtd: Writing DBBT3 [ @0:0xe0000 ] (800) *mtd_commit_bcb(DBBT): status 0==== ORCA SOM ====
---------- Start ===== Flash the Boot image =====Update to write the [ .tmp_kobs_ng ]latest Boot image version allows usage of u----mtd: Writting boot environment variables available.tmp_kobs_ng: #0 @0: 0x00100000 - 0x001a4800mtd: erasing @0:0x100000-0x120000mtd: erasing @0:0x120000-0x140000mtd: erasing @0:0x140000-0x160000mtd: erasing @0:0x160000-0x180000mtd: erasing @0:0x180000-0x1a0000mtd: erasing @0:0x1a0000-0x1c0000mtd: The last page is not full : 1068mtd: We write one page for save guard. *mtd: Writting .tmp_kobs_ng: #1 @0: 0x00480000 - 0x00524800mtd: erasing @0:0x480000-0x4a0000mtd: erasing @0:0x4a0000-0x4c0000mtd: erasing @0:0x4c0000-0x4e0000mtd: erasing @0:0x4e0000-0x500000mtd: erasing @0:0x500000-0x520000mtd: erasing @0:0x520000-0x540000mtd: The last page is not full : 1068mtd: We write one page for save guard. *root@imx6qxelk:~#</pre>
mmc_update====kernel image and device tree==== We assume that the following environment variables are present in u-boot: <pre>nand_updatek=nand erase.part nand-kernelmmc dev 2; nand write ${loadaddr} nand-kernel setexpr blocks ${filesize}nand_updatefdt=nand erase.part nand-fdt/ 0x200; nand write ${fdtaddr} nand-fdt ${filesize}nand_loadk=nand read setexpr blocks ${loadaddrblocks} nand-kernelnand_loadfdt=nand read ${fdtaddr} nand-fdtnand_nand=run nand_loadk nand_loadfdt nandargs addcons addmisc+ 1; if run configid_fixupfdt; then bootm mmc write ${loadaddr} - 40 ${fdtaddrblocks}; fi</pre> * Update the <code>bootfile</code> and <code>fdtfile</code> 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 <pre class="board-terminal">run loadk nand_updatek loadfdt nand_updatefdt</pre> E.g.:
<pre class="workstation-terminal">
Uu-Boot boot=> run loadk nand_updatek loadfdt nand_updatefdtmmc_update Using FEC deviceTFTP from server 192.168.0.13; our IP address is 192.168.0.98Filename 'sdvx/linux/sdvx-1.0.0_lite_uImage'.Load address: 0x12000000Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# #########################################################switch to partitions ######## ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ####################### 1.4 MiB/sdoneBytes transferred = 6437016 (623898 hex) NAND erase.part: device 0 offset 0xc00000, size 0x800000Erasing at 0x13e0000 -- 100% complete.OK NAND write: device mmc2(part 0 offset 0xc00000, size 0x623898 6437016 bytes written: OKUsing FEC ) is current deviceTFTP from server 192.168.0.13; our IP address is 192.168.0.89Filename 'sdvx/linux/sdvx-1.0.0_lite_imx6dl-sfczg-cb0043.dtb'.Load address: 0x18000000Loading: ######### 525.4 KiB/sdoneBytes transferred = 42547 (a633 hexeMMCNAND erase.part: device 0 offset 0xa00000, size 0x100000Erasing at 0xae0000 -- 100% complete.OK NAND write: device 0 offset 0xa00000, size 0xa633 42547 bytes written: OK=></pre> Reboot the system and configure U-Boot to apply the new configuration
<pre class="workstationMMC write: dev # 2, block # 64, count 2809 ... 2809 blocks written: OKu-terminal">=> setenv bootcmd run nand_nandboot=> saveenv
</pre>
=== Program boot images into eMMC = MITO 8M Mini ====
====u-= Flash the Bootimage ====Update to the latest u-boot version allows usage of u-boot environment variables available. <pre>mmc_update=mmc dev; setexpr blocks ${filesize} / 0x200; setexpr blocks ${blocks} + 1; mmc write ${loadaddr} 2 ${blocks}</pre>
Load u-boot binary form a <code>tftp< mmc_update=mmc dev 0; setexpr blocks ${filesize} /code> server:0x200; setexpr blocks ${blocks} + 1; mmc write ${loadaddr} 42 ${blocks}
<pre class="workstation-terminal">
=> run loadUsing FEC deviceTFTP from server 192.168.0.13; our IP address is 192.168.0.89Filename 'sdvx/u-boot/sdvx-1.0.0_mx6dl_sfczg_u-boot.imx'.Load address: 0x12000000Loading: ################################################################# ################################################################# ## 1.5 MiB/sdoneBytes transferred = 671788 (a402c hex)=> run mmc_update
switch to partitions #0, OK
mmc2mmc0(part 0) is current device (eMMC)
MMC write: dev # 20, block # 266, count 1313 2748 ... 1313 2748 blocks written: OKu-boot=>
</pre>
Load === Configuring the u-boot binary form an <code>SD</code> card: <pre classenvironment manually==="workstation-terminal">Hit ENTER within 1 seconds Once the Boot Image has been correctly programmed, start the system from eMMC in order to stop autoboot=> fatload mmc 0:1 ${loadaddr} sdvx-1.0.1_mx6dlaxel_uconfigure/program the u-bootenvironment variables for a correct boot sequence.imxreading sdvx-1.0.1_mx6dlaxel_uU-boot.imx671788 bytes read in 50 ms (12.8 MiB/s)=> mmc dev 2switch to partitions #0, OKmmc2(part 0) Boot environment is current device (eMMC)=> run mmc_updateswitch to partitions #0, OKmmc2(part 0) is current device (eMMC) MMC write: dev # 2, block # 2, count 1313 already set... 1313 blocks written: OK=></pre>
====kernel image and device tree====
We assume that the The following environment variables are present has to be set (or at least checked) in u-boot; depending on the formatted eMMC partition (<code>FAT32</code> or <code>ext4</code>), the vars has to be properly modified:
==== FAT32 ====
<pre>
setenv mmc_loadk='fatload mmc ${mmcdev}:1 ${loadaddr} ${bootfileimage}'setenv mmc_loadfdt='fatload mmc ${mmcdev}:1 ${fdtaddrfdt_addr} ${fdtfilefdt}mmc_loadsplash=fatload mmc ${mmcdev}:1 ${loadaddr} ${splashfile}; cp.b ${loadaddr} ${splashimage} ${filesize}mmcboot=run mmcargs addcons addmisc; if run mmc_loadk; then if run mmc_loadfdt; then if run configid_fixupfdt; then bootm ${loadaddr} - ${fdtaddr}; fi; fi; fi'
</pre>
Using an SD card or an eMMC device assumes that <code>bootfile</code>, <code>fdtfile</code> and ==== ext4 ====<codepre>splashfile</code> are stored into fist MMC device partition.  Then, u-boot uses the previous listed commands for reading the binary images and starting the linux bootstrap from the setenv mmc_loadk 'ext4load mmc ${mmcdev}:1 ${loadaddr} ${image}'MMC part 2setenv mmc_loadfdt 'ext4load mmc ${mmcdev}:1 ${fdt_addr} ${fdt}' (which is reserved for the root-file system storage).</pre>
The following Then, u-boot environment variables are present uses the previously listed commands for this purposesreading the binary images and starting the Linux file system from the eMMC ''part 2'' (which is reserved for the root-file system storage):
<pre>
setenv mmcboot 'run mmcargs addcons addmisc; if run mmc_loadk; then if run mmc_loadfdt; then if run configid_fixupfdt; then booti ${loadaddr} - ${fdtaddr}; fi; fi; fi'setenv mmcargs='setenv bootargs root=${mmcroot}'mmcroot=/dev/mmcblk2p2 rootwait rwsetenv normalboot mmcboot
</pre>
==== boot vars ====
The following environment variables should be configured for u-boot properly identify the boot files, e.g.
The following environment variables should be configured for u-boot properly reading the boot files from the first SD card partition, e.g.<pre>setenv image Image</pre>
<pre class="workstation-terminal">=== ORCA SOM =====> setenv normalboot mmcbootThe platform dependent variable have to be properly configured:=> setenv bootfile sdvx-1.0.1_lite_uImage* the proper device tree binary=> setenv fdtfile sdvx-1.0.1_lite_imx6dlfdt imx8mp-sdv03mito8mplus-cb002acb1001.dtb=> * the eMMC ''mmcblk'' device setenv splashfile splash_image.bmp<mmcroot '/dev/pre>mmcblk2p2 rootwait rw'
then save the environment and reboot the system to apply the new configuration:
<pre class="workstation-terminal">
u-boot=> saveenv
Saving Environment to MMC...
Writing to MMC(2)... done
u-boot=> reset
</pre>
=== Program root file system into NAND flash = MITO 8M Mini ====The platform dependent variable have to be properly configured:* Boot the system via SD or NFS as described in the e [[(<KIT>)#Quick_start_guide|Quick start guide]]proper device tree binary* By default, the NAND is already partitioned to allow booting from NAND setenv fdt imx8mm-only (see next section) and, thus, some partitions are reserved for umito8mmini-boot and kernel imagescb100a. Here we wondtb* the eMMC ''mmcblk't modify this default configuration. The [[Memory Tecnology Device (MTD)|MTD]] partitions can be dumped with <code>/proc/mtd</code> (the partition's name should be self-explanatory)device<pre class="workstation-terminal">root@sdvx-lite:~# cat /proc setenv mmcroot '/mtddev: size erasesize namemtd0: 00800000 00020000 "nand-uboot"mtd1: 00100000 00020000 "nand-env1"mtd2: 00100000 00020000 "nand-env2"mtd3: 00100000 00020000 "nand-fdt"mtd4: 00100000 00020000 "nand-spare"mtd5: 00800000 00020000 "nand-kernel"mtd6: 00600000 00020000 "nand-splash"mtd7: 3e600000 00020000 "nand-ubi"root@sdvx-lite:~# </pre> {{ImportantMessage|text=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 <code>/proc/mtd</code> to match your specific layout}}mmcblk0p2 rootwait rw'
 * Format then save the environment and initialize ''nand-ubi'' partition, which in our case is <code>mtd7</code>, using [[Memory Tecnology Device (MTD)#UBI|UBI]] withreboot the system to apply the new configuration<pre>ubiformat /dev/mtd7ubiattach -m 7ubimkvol /dev/ubi0 -N rootfs -m</pre> E.g.
<pre class="workstation-terminal">
root@sdvxu-lite:~# ubiformat /dev/mtd7boot=> saveenvubiformat: mtd7 (nand), size 1048576000 bytes (1000.0 MiB), 8000 eraseblocks of 131072 bytes (128Saving Environment to MMC.0 KiB), min. I/O size 2048 byteslibscan: scanning eraseblock 7999 -- 100 % completeubiformat: 8000 eraseblocks have valid erase counter, mean value is 1ubiformat: formatting eraseblock 7999 -- 100 % completeroot@sdvx-lite:~# ubiattach -m 7[ 1714.823600] UBI: attaching mtd7 to ubi0[ 1726.415587] UBI: scanning is finished[ 1726.483765] UBI: attached mtd7 (name "nand-ubi", size 1000 MiB) Writing to ubi0[ 1726.491062] UBI: PEB size: 131072 bytes MMC(128 KiB), LEB size: 126976 bytes[ 1726.498301] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048[ 1726.505030] UBI: VID header offset: 2048 (aligned 20480), data offset: 4096[ 1726.512430] UBI: good PEBs: 8000, bad PEBs: 0, corrupted PEBs: 0[ 1726.518861] UBI: user volume: 0, internal volumes: 1, max. volumes count: 128[ 1726.526025] UBI: max/mean erase counter: 3/2, WL threshold: 4096, image sequence number: 623070258[ 1726.535433] UBI: available PEBs: 7836, total reserved PEBs: 164, PEBs reserved for bad PEB handling: 160[ 1726.545260] UBI: background thread "ubi_bgt0d" started, PID 714UBI device number 0, total 8000 LEBs (1015808000 bytes, 968.8 MiB), available 7836 LEBs (994983936 bytes, 948.9 MiB), LEB size 126976 bytes (124.0 KiB)doneroot@sdvxu-lite:~# ubimkvol /dev/ubi0 -N rootfs -mSet volume size to 994983936Volume ID 0, size 7836 LEBs (994983936 bytes, 948.9 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1boot=> reset
</pre>
* Now mount the UBI volume using [[Memory Tecnology Device (MTD)#UBIFS|UBIFS]] in a temporary directory=== Program root file system into eMMC ===
<pre>mkdir -p /mnt/nandmount -t ubifs ubi0_0 /mnt/nand</pre> E.g.: <pre class="workstation-terminal">root@sdvx-lite:~# mkdir -p /mnt/nandroot@sdvx-lite:~# mount -t ubifs ubi0_0 /mnt/nand[ 1810.301461] UBIFS: default file-system created[ 1810.308952] UBIFS: background thread "ubifs_bgt0_0" started, PID 717[ 1810.452274] UBIFS: mounted UBI device 0, volume 0, name "rootfs"[ 1810.459421] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes[ 1810.469398] UBIFS: FS size: 992698368 bytes (946 MiB, 7818 LEBs), journal size 33521664 bytes (31 MiB, 264 LEBs)[ 1810.480976] UBIFS: reserved for root: 4952683 bytes (4836 KiB)[ 1810.487210] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 99D0F3C6-5955-4B30-9E2D-72202281BD30, small LPT model</pre> * you can now extract the root file system into that directory <pre>tar xvjf sdvx-1.0.1_image-devel-sdvx-lite.tar.bz2 -C /mnt/nand</pre> * finally, you need to cleanly umount and detach the MTD partition <pre>umount /mnt/nand/ubidetach -m 7</pre> E.g. <pre class="workstation-terminal">root@sdvx-lite:~# umount /mnt/nand/[ 2446.743091] UBIFS: un-mount UBI device 0, volume 0[ 2446.749670] UBIFS: background thread "ubifs_bgt0_0" stopsroot@sdvx-lite:~# ubidetach -m 7[ 2450.738153] UBI: detaching mtd7 from ubi0[ 2450.759527] UBI: mtd7 is detached from ubi0</pre> 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 <pre>nand_args=setenv bootargs root=ubi0:rootfs rootfstype=ubifs rw ubi.mtd=7</pre> === Program root file system into eMMC flash === * Boot boot the system via SD or NFS as described in the e [[(<KIT>)#Quick_start_guideDESK-MX8M-L/General/Booting_from_NFS|Quick start guideBooting from NFS]]
* eMMC device has to be partitioned and properly formatted choosing the <code>file system</code> for each partition
* an example of SD partitioning script is the following one:
{{ImportantMessage|text=In the following examples, <code>mmcblk2</code> device is used, we will refer to ORCA SOM. If MITO 8M Mni is used the <code>mmcblk0</code> block device has to be seleced}} === FAT32 partition = Partitioning ====
<pre>
#!/bin/sh
# partition size in MB
BOOTLOAD_RESERVE=8
BOOT_ROM_SIZEBOOT_SIZE=1282048RFS_SIZE=20484096
# create the SDCARD partition
# calculate partition sizes
boot_start=`expr ${BOOTLOAD_RESERVE} \\* 1024 \\* 1024 / 512`
boot_size=`expr ${BOOT_ROM_SIZEBOOT_SIZE} \\* 1024 \\* 1024 / 512`
rfs_start=`expr ${boot_size} + ${boot_start}`
rfs_size=`expr ${RFS_SIZE} \\* 1024 \\* 1024 / 512`
# call sfdisk to create partition table
{ echo ${boot_start},${boot_size},0c83,-; echo ${rfs_start},${rfs_size},83,-; } | sfdisk --force ${node}
# format the SDCARD partition
echo "formatting boot"
mkfs.vfat -F 32 -n boot ${node}${part}1-n boot
echo "formatting rfs"
mkfs.ext4 -F ${node}${part}2 -Lrfs
E.g.
 
<pre class="workstation-terminal">
root@sdvxdesk-litemx8mp:~# ./sdcard-partitionemmc_partition.sh /dev/mmcblk2SD total size: 3776KB7457KB[ 1341 238.905014978157] mmcblk2: p1 p2p3
Checking that no-one is using this disk right now ... OK
Disk /dev/mmcblk2: 37.7 29 GiB, 3959422976 7820083200 bytes, 7733248 15273600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical):[ 1341.922729] mmcblk2: p1 p2 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa77eb3f00xbe0f0cf6
Old situation:
Device Boot Start End Sectors Size Id Type/dev/mmcblk2p1 2048 32768 524288 491521 264191 262144 128M 240M c W95 FAT32 (LBA)/dev/mmcblk2p2 524289 12058623 11534335 5.5G 83 Linux/dev/mmcblk2p3 264192 4458495 4194304 2G 12058624 15273599 3214976 1.5G 83 Linux >>> Created a new DOS disklabel with disk identifier 0x7b310a69./dev/mmcblk2p1: Created a new partition 1 of type 'Linux' and of size 2 GiB./dev/mmcblk2p2: Created a new partition 2 of type 'Linux' and of size 4 GiB./dev/mmcblk2p3: Done.
>>> Created a new DOS disklabel with disk identifier 0xcce0c36f.
Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 128 MiB.
/dev/mmcblk2p2: Created a new partition 2 of type 'Linux' and of size 2 GiB.
/dev/mmcblk2p3:
New situation:
Disklabel type: dos
Disk identifier: 0x7b310a69
Device Boot Start End Sectors Size Id Type/dev/mmcblk2p1 16384 278527 262144 128M c W95 FAT32 (LBA)4210687 4194304 2G 83 Linux/dev/mmcblk2p2 278528 4472831 4194304 2G 4210688 12599295 8388608 4G 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
[ 239.419641] mmcblk2: p1 p2
Syncing disks.
formatting boot
mkfs.fat 34.0.28 2 (20152021-0501-1631)mkfs.fat: warning - Warning: lowercase labels might not work properly with DOS or Windowson some systems
formatting rfs
mke2fs 1.43-WIP 45.3 (1814-MayJul-20152019)
Discarding device blocks: done
Creating filesystem with 524288 1048576 4k blocks and 131072 262144 inodesFilesystem UUID: 9a685543aacf8195-1af2ddbd-4e394fdc-83f3a83e-b8a32248c02199f57659367e
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Allocating group tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
 root@sdvxdesk-litemx8mp:~#
</pre>
</pre>
* copy kernel, and dtb and splash_image filesfrom SD card
<pre class="workstation-terminal">
root@sdvxdesk-litemx8mp:~# mount /dev/mmcblk2p1 /mnt/emmc[ 40.988575] FAT-fs (mmcblk2p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.root@sdvxdesk-litemx8mp:~# cd mkdir -p /mnt/emmcsdroot@sdvxdesk-litemx8mp:/mnt/emmc~# cp mount /tftpbootdev/sdvxmmcblk1p1 /linuxmnt/sdvx-1.0.1*dtb .sdroot@sdvxdesk-litemx8mp:/mnt/emmc~# cp /tftpbootmnt/sdvxsd/linux/sdvx-1.0.1*uImage .root@sdvx-lite:/mnt/emmc# cp /tftpboot/sdvx/linux/splash_image.bmp .root@sdvx-lite:/mnt/emmc# cdroot@sdvxdesk-litemx8mp:~# umount /mnt/emmc
</pre>
<pre class="workstation-terminal">
root@sdvxdesk-litemx8mp:~# mount /dev/mmcblk2p2 /mnt/emmc[ 1810.899327] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)root@sdvxdesk-litemx8mp:~# cd /mnt/emmc/root@sdvxdesk-litemx8mp:/mnt/emmc#
</pre>
<pre>
tar xvjf sdvxdave-1.0.1_imageimage-devel-sdvxdesk-litemx8mp.tar.bz2
</pre>
<pre class="workstation-terminal">
root@sdvxdesk-litemx8mp:/mnt/emmc# cdroot@sdvxdesk-litemx8mp:~# umount /mnt/emmcroot@sdvxdesk-litemx8mp:~# reboot
</pre>
Reboot === Boot configuration ===Once the system has been completely programmed, select the eMMC boot mode, reboot the system and configure U-Boot to apply for using the new configuration, i.e. to boot from internal storage:
<pre class="workstation-terminal">
u-boot=> setenv bootcmd run mmcbootu-boot=> saveenvu-boot=> reset
</pre>
===Automatically Boot = ext4 partition == In DESK-MX8M-L-4.0.0, U-Boot default envirounment has already all command, and variables, to perform boot from eMMC, without apply any manual change to U-Boot environment. If we load binaries from boot partition of uSD to boot partition of eMMC, and if boot partition of eMMC is formatting in FAT32, well, we have the following boot. <pre class="mw-collapsible mw-collapsed workstation-terminal"> U-Boot SPL 2022.04-desk-mx8m-l-4.0.0 (Jul 21 2023 - 14:01:51 +0200)WARNING: SOM ConfigID on block 0 is UNLOCKEDSOM ConfigID#: 00000005DDRINFO: start DRAM initDDRINFO: DRAM rate 4000MTSDDRINFO:ddrphy calibration doneDDRINFO: ddrmix config doneNormal BootTrying to boot from BOOTROMBoot Stage: Primary bootimage offset 0x8000, pagesize 0x200, ivt offset 0x0WARNING: CB ConfigID on block 0 is UNLOCKEDFailed to find node!, err: -1!Failed to find node!, err: -1!NOTICE: BL31: v2.6(release):desk-mx8m-l-4.0.0-rc2-0-g2b811b9b8NOTICE: BL31: Built : 19:00:25, Jun 29 2023  U-Boot 2022.04-desk-mx8m-l-4.0.0 (Jul 21 2023 - 14:01:51 +0200), Build: desk-mx8m-l-4.0.0 CPU: Freescale i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz)CPU: Industrial temperature grade (-40C to 105C) at 41CReset cause: PORModel: DAVE i.MX8MPlus on SBC ORCA Rev ADRAM: 6 GiBRelocating to fff05000, new gd at fdbffda0, sp at fdbf5350WARNING: CB ConfigID on block 0 is UNLOCKEDTCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x50]SNK.Power1.5 on CC2PDO 0: type 0, 5000 mV, 500 mA [RSHUDE]PDO 1: type 0, 9000 mV, 2180 mA []PDO 2: type 0, 12000 mV, 1880 mA []PDO 3: type 0, 15000 mV, 1510 mA []PDO 4: type 0, 20000 mV, 1130 mA []PDO 5: type 3, undefinedRequesting PDO 2: 12000 mV, 1880 mASource accept requestPD source ready!tcpc_pd_receive_message: Polling ALERT register, TCPC_ALERT_RX_STATUS bit failed, ret =-62TCPC: Vendor ID [0x0], Product ID [0x202], Addr [I2C2 0x3d]Core: 175 devices, 20 uclasses, devicetree: fitMMC: FSL_SDHC: 1, FSL_SDHC: 2Loading Environment from MMC... OKFail to setup video linkIn: serialOut: serialErr: serial  BuildInfo:For - ATF 2b811b9 WARNING: SOM ConfigID on block 0 is UNLOCKEDSOM ConfigID#: 00000005SOM UniqueID#: 1e261000:55aa2564:469660d3:d0c2b602CB ConfigID#: 00001008CB UniqueID#: b7000035:c48de62dWARNING: SOM ConfigID on block 0 is UNLOCKEDSOM: MX8MP-Mito8MPlus on SBC-ORCA HDMI + LVDStoHDMIswitch to partitions #0, OKmmc2(part 0) is current device (eMMC)flash target is MMC:2Net: Warning: ethernet@30bf0000 (eth1) using an <b>ext4</b> partition also for boot filesrandom MAC address - ea:ec:19:9a:0a:3e Warning: ethernet@30be0000 (eth0) using random MAC address - ba:28:4b:b7:0d:e5eth0: ethernet@30be0000, eth1: ethernet@30bf0000 [PRIME]Fastboot: NormalNormal BootHit any key to stop autoboot: 2 ��� 1 ��� 0 switch to partitions #0, it OKmmc2(part 0) is possibile current device (eMMC)Failed to load 'boot.scr'31351296 bytes read in 122 ms (245.1 MiB/s)Booting from mmc ...61121 bytes read in 18 ms (3.2 MiB/s)FDT: override 'som_uniqueid' with '1e261000:55aa2564:469660d3:d0c2b602'FDT: override 'cb_uniqueid' with 'b7000035:c48de62d'Moving Image from 0x40480000 to change 0x40600000, end=42480000## Flattened Device Tree blob at 43000000 Booting using the formatting script:fdt blob at 0x43000000 Using Device Tree in place at 0000000043000000, end 0000000043011fff Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034][ 0.000000] Linux version 5.15.71-desk-mx8m-l-4.0.0+g50e18a0c8871 (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Thu Jul 20 10:56:49 UTC 2023[ 0.000000] Machine model: i.MX8MPlus Mito8MPlus on SBC Orca - adapter LVDS HDMI[ 0.000000] efi: UEFI not found.[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000c4000000, size 960 MiB[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000094300000, size 1 MiB[ 0.000000] OF: reserved mem: initialized node vdev0buffer@94300000, compatible id shared-dma-pool[ 0.000000] NUMA: No NUMA configuration found[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000001bfffffff][ 0.000000] NUMA: NODE_DATA [mem 0x1bf43a800-0x1bf43cfff][ 0.000000] Zone ranges:[ 0.000000] DMA [mem 0x0000000040000000-0x00000000ffffffff][ 0.000000] DMA32 empty[ 0.000000] Normal [mem 0x0000000100000000-0x00000001bfffffff][ 0.000000] Movable zone start for each node[ 0.000000] Early memory node ranges[ 0.000000] node 0: [mem 0x0000000040000000-0x00000000557fffff][ 0.000000] node 0: [mem 0x0000000055800000-0x0000000055ffffff][ 0.000000] node 0: [mem 0x0000000056000000-0x00000000923fffff][ 0.000000] node 0: [mem 0x0000000092400000-0x00000000a43fffff][ 0.000000] node 0: [mem 0x00000000a4400000-0x00000001bfffffff][ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000001bfffffff][ 0.000000] psci: probing for conduit method from DT.[ 0.000000] psci: PSCIv1.1 detected in firmware.[ 0.000000] psci: Using standard PSCI v0.2 function IDs[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.[ 0.000000] psci: SMC Calling Convention v1.2[ 0.000000] percpu: Embedded 20 pages/cpu s41368 r8192 d32360 u81920[ 0.000000] Detected VIPT I-cache on CPU0[ 0.000000] CPU features: detected: GIC system register CPU interface[ 0.000000] CPU features: detected: ARM erratum 845719[ 0.000000] Built 1 zonelists, mobility grouping on. { echo ${boot_start}Total pages: 1548288[ 0.000000] Policy zone: Normal[ 0.000000] Kernel command line: console=ttymxc1,115200 root=/dev/mmcblk2p2 rootwait rw[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off[ 0.000000] software IO TLB: mapped [mem 0x00000000c0000000-0x00000000c4000000] (64MB)[ 0.000000] Memory: 4784748K/6291456K available (18688K kernel code, 1560K rwdata, 7244K rodata, 3008K init, 543K bss, 523668K reserved, 983040K cma-reserved)[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1[ 0.000000] rcu: Preemptible hierarchical RCU implementation.[ 0.000000] rcu: RCU event tracing is enabled.[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.[ 0.000000] Trampoline variant of Tasks RCU enabled.[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode[ 0.000000] GICv3: 160 SPIs implemented[ 0.000000] GICv3: 0 Extended SPIs implemented[ 0.000000] GICv3: Distributor has no Range Selector support[ 0.000000] Root IRQ handler: gic_handle_irq[ 0.000000] GICv3: 16 PPIs implemented[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000[ 0.000000] ITS: No ITS available, not enabling LPIs[ 0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns[ 0.000000] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns[ 0.000455] Console: colour dummy device 80x25[ 0.000521] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)[ 0.000537] pid_max: default: 32768 minimum: 301[ 0.000595] LSM: Security Framework initializing[ 0.000691] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)[ 0.000720] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)[ 0.002080] rcu: Hierarchical SRCU implementation.[ 0.003321] EFI services will not be available.[ 0.003519] smp: Bringing up secondary CPUs ...[ 0.003941] Detected VIPT I-cache on CPU1[ 0.003968] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000[ 0.004002] CPU1: Booted secondary processor 0x0000000001 [0x410fd034][ 0.004467] Detected VIPT I-cache on CPU2[ 0.004486] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000[ 0.004506] CPU2: Booted secondary processor 0x0000000002 [0x410fd034][ 0.004922] Detected VIPT I-cache on CPU3[ 0.004943] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000[ 0.004960] CPU3: Booted secondary processor 0x0000000003 [0x410fd034][ 0.005027] smp: Brought up 1 node, 4 CPUs[ 0.005053] SMP: Total of 4 processors activated.[ 0.005061] CPU features: detected: 32-bit EL0 Support[ 0.005065] CPU features: detected: 32-bit EL1 Support[ 0.005075] CPU features: detected: CRC32 instructions[ 0.012530] CPU: All CPU(s) started at EL2[ 0.012565] alternatives: patching kernel code[ 0.014270] devtmpfs: initialized[ 0.022591] KASLR disabled due to lack of seed[ 0.022732] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns[ 0.022749] futex hash table entries: 1024 (order: 4,${boot_size}65536 bytes,linear)[ 0.048412] pinctrl core: initialized pinctrl subsystem[ 0.048904] DMI not present or invalid.[ 0.049473] NET: Registered PF_NETLINK/PF_ROUTE protocol family[ 0.054524] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations[ 0.055000] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations[ 0.055563] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations[ 0.055655] audit: initializing netlink subsys (disabled)[ 0.055855] audit: type=2000 audit(0.052:1): state=initialized audit_enabled=0 res=1[ 0.056416] thermal_sys: Registered thermal governor 'step_wise'[ 0.056421] thermal_sys: Registered thermal governor '83power_allocator'[ 0.056702] cpuidle: using governor menu[ 0.056887] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.[ 0.056968] ASID allocator initialised with 65536 entries[ 0.058077] Serial: AMBA PL011 UART driver[ 0.058136] imx mu driver is registered.[ 0.058158] imx rpmsg driver is registered.[ 0.069095] imx8mp-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver[ 0.078570] platform 32c00000.bus:ldb@32ec005c: Fixing up cyclic dependency with 32e90000.lcd-controller[ 0.085104] platform 32fd8000.hdmi: Fixing up cyclic dependency with 32fc6000.lcd-controller[ 0.107321] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages[ 0.107338] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages[ 0.107345] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages[ 0.107353] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages[ 0.108512] cryptd: max_cpu_qlen set to 1000[ 0.111530] ACPI: Interpreter disabled.[ 0.112295] iommu: Default domain type: Translated [ 0.112303] iommu: DMA domain TLB invalidation policy: strict mode [ 0.112463] vgaarb: loaded[ 0.112735] SCSI subsystem initialized[ 0.113036] usbcore: registered new interface driver usbfs[ 0.113072] usbcore: registered new interface driver hub[ 0.113103] usbcore: registered new device driver usb[ 0.114239] mc: Linux media interface: v0.10[ 0.114262] videodev: Linux video capture interface: v2.00[ 0.114335] pps_core: LinuxPPS API ver. 1 registered[ 0.114341] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>[ 0.114359] PTP clock support registered[ 0.114530] EDAC MC: Ver: 3.0.0[ 0.115626] FPGA manager framework[ 0.115704] Advanced Linux Sound Architecture Driver Initialized.[ 0.116197] Bluetooth: Core ver 2.22[ 0.116223] NET: Registered PF_BLUETOOTH protocol family[ 0.116232] Bluetooth: HCI device and connection manager initialized[ 0.116241] Bluetooth: HCI socket layer initialized[ 0.116248] Bluetooth: L2CAP socket layer initialized[ 0.116263] Bluetooth: SCO socket layer initialized[ 0.117028] clocksource: Switched to clocksource arch_sys_counter[ 0.117165] VFS: Disk quotas dquot_6.6.0[ 0.117306] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)[ 0.117453] pnp: PnP ACPI: disabled[ 0.123483] NET: Registered PF_INET protocol family[ 0.123725] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)[ 0.126613] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)[ 0.126723] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)[ 0.126741] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)[ 0.127150] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)[ 0.128017] TCP: Hash tables configured (established 65536 bind 65536)[ 0.128120] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)[ 0.128275] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)[ 0.128539] NET: Registered PF_UNIX/PF_LOCAL protocol family[ 0.128966] RPC: Registered named UNIX socket transport module.[ 0.128974] RPC: Registered udp transport module.[ 0.128978] RPC: Registered tcp transport module.[ 0.128985] RPC: Registered tcp NFSv4.1 backchannel transport module.[ 0.129696] PCI: CLS 0 bytes, default 64[ 0.130342] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available[ 0.131129] kvm [1]: IPA Size Limit: 40 bits[ 0.132769] kvm [1]: GICv3: no GICV resource entry[ 0.132776] kvm [1]: disabling GICv2 emulation[ 0.132790] kvm [1]: GIC system register CPU interface enabled[ 0.132872] kvm [1]: vgic interrupt IRQ9[ 0.132980] kvm [1]: Hyp mode initialized successfully[ 0.136270] Initialise system trusted keyrings[ 0.136444] workingset: timestamp_bits=42 max_order=21 bucket_order=0[ 0.142443] squashfs: version 4.0 (2009/01/31) Phillip Lougher[ 0.143021] NFS: Registering the id_resolver key type[ 0.143051] Key type id_resolver registered[ 0.143058] Key type id_legacy registered[ 0.143128] nfs4filelayout_init: NFSv4 File Layout Driver Registering...[ 0.143135] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...[ 0.143155] jffs2: version 2.2. (NAND) � 2001-2006 Red Hat, Inc.[ 0.143474] 9p: Installing v9fs 9p2000 file system support[ 0.179192] Key type asymmetric registered[ 0.179201] Asymmetric key parser 'x509'registered[ 0.179249] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)[ 0.179256] io scheduler mq-deadline registered[ 0.179265] io scheduler kyber registered[ 0.186321] EINJ: ACPI disabled.[ 0.196940] imx-sdma 30bd0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2[ 0.196961] imx-sdma 30bd0000.dma-controller: Falling back to sysfs fallback for: imx/sdma/sdma-imx7d.bin[ 0.198702] mxs-dma 33000000.dma-apbh: initialized[ 0.200393] SoC: i.MX8MP revision 1.1[ 0.200971] Bus freq driver module loaded[ 0.207293] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled[ 0.209656] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 31, base_baud = 5000000) is a IMX[ 0.210132] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 32, base_baud = 5000000) is a IMX[ 0.210528] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 33, base_baud = 1500000) is a IMX[ 1.300270] printk: console [ttymxc1] enabled[ 1.319984] loop: module loaded[ 1.324570] megasas: 07.717.02.00-rc1[ 1.329980] imx ahci driver is registered.[ 1.335857] SPI driver spidev has no spi_device_id for spidev[ 1.341618] SPI driver spidev has no spi_device_id for dave,sbcx-exp[ 1.352148] tun: Universal TUN/TAP device driver, 1.6[ 1.357386] CAN device driver interface[ 1.362621] thunder_xcv, ver 1.0[ 1.365889] thunder_bgx, ver 1.0[ 1.369150] nicpf, ver 1.0[ 1.374410] hclge is initializing[ 1.377750] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version[ 1.384981] hns3: Copyright (c) 2017 Huawei Corporation.[ 1.390352] e1000: Intel(R) PRO/1000 Network Driver[ 1.395238] e1000: Copyright (c) 1999-2006 Intel Corporation.[ 1.401033] e1000e: Intel(R) PRO/1000 Network Driver[ 1.406003] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.[ 1.411973] igb: Intel(R) Gigabit Ethernet Network Driver[ 1.417378] igb: Copyright (c) 2007-2014 Intel Corporation.[ 1.422983] igbvf: Intel(R) Gigabit Virtual Function Network Driver[ 1.429261] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.[ 1.435379] sky2: driver version 1.30[ 1.439749] usbcore: registered new interface driver r8152[ 1.445496] VFIO - User Level meta-driver version: 0.3[ 1.456312] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver[ 1.462921] ehci-pci: EHCI PCI platform driver[ 1.467410] ehci-platform: EHCI generic platform driver[ 1.472880] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver[ 1.479085] ohci-pci: OHCI PCI platform driver[ 1.483574] ohci-platform: OHCI generic platform driver[ 1.489742] usbcore: registered new interface driver uas[ 1.495111] usbcore: registered new interface driver usb-storage[ 1.501191] usbcore: registered new interface driver usbserial_generic[ 1.507744] usbserial: USB Serial support registered for generic[ 1.513781] usbcore: registered new interface driver ftdi_sio[ 1.519546] usbserial: USB Serial support registered for FTDI USB Serial Device[ 1.526892] usbcore: registered new interface driver usb_serial_simple[ 1.533437] usbserial: USB Serial support registered for carelink[ 1.539551] usbserial: USB Serial support registered for zio[ 1.545231] usbserial: USB Serial support registered for funsoft[ 1.551259] usbserial: USB Serial support registered for flashloader[ 1.557633] usbserial: USB Serial support registered for google[ 1.563575] usbserial: USB Serial support registered for libtransistor[ 1.570124] usbserial: USB Serial support registered for vivopay[ 1.576154] usbserial: USB Serial support registered for moto_modem[ 1.582442] usbserial: USB Serial support registered for motorola_tetra[ 1.589080] usbserial: USB Serial support registered for nokia[ 1.594935] usbserial: USB Serial support registered for novatel_gps[ 1.601311] usbserial: USB Serial support registered for hp4x[ 1.607083] usbserial: USB Serial support registered for suunto[ 1.613029] usbserial: USB Serial support registered for siemens_mpi[ 1.619419] usbcore: registered new interface driver usb_ehset_test[ 1.630449] snvs_rtc 30370000.snvs:snvs-rtc-lp: registered as rtc0[ 1.636668] snvs_rtc 30370000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01T00:00:00 UTC (0)[ 1.645868] i2c_dev: i2c /dev entries driver[ 1.652315] Driver for 1-wire Dallas network protocol.[ 1.660853] Bluetooth: HCI UART driver ver 2.3[ 1.665327] Bluetooth: HCI UART protocol H4 registered[ 1.670479] Bluetooth: HCI UART protocol BCSP registered[ 1.675814] Bluetooth: HCI UART protocol LL registered[ 1.680960] Bluetooth: HCI UART protocol ATH3K registered[ 1.686382] Bluetooth: HCI UART protocol Three-wire (H5) registered[ 1.692757] Bluetooth: HCI UART protocol Broadcom registered[ 1.698445] Bluetooth: HCI UART protocol QCA registered[ 1.703906] EDAC MC: ECC not enabled[ 1.708995] sdhci: Secure Digital Host Controller Interface driver[ 1.715197] sdhci: Copyright(c) Pierre Ossman[ 1.720424] Synopsys Designware Multimedia Card Interface Driver[ 1.727260] sdhci-pltfm: SDHCI platform and OF driver helper[ 1.735386] ledtrig-cpu: registered to indicate activity on CPUs[ 1.742377] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....[ 1.749315] usbcore: registered new interface driver usbhid[ 1.754895] usbhid: USB HID core driver[ 1.764404] cs_system_cfg: CoreSight Configuration manager initialised[ 1.766495] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA[ 1.775104] Galcore version 6.4.3.p4.398061[ 1.870047] mmc2: new HS400 Enhanced strobe MMC card at address 0001[ 1.877250] mmcblk2: mmc2:0001 DG4008 7.28 GiB [ 1.882961] mmcblk2: p1 p2[ 1.886234] mmcblk2boot0: mmc2:0001 DG4008 4.00 MiB [ 1.892847] mmcblk2boot1: mmc2:0001 DG4008 4.00 MiB [ 1.894333] [drm] Initialized vivante 1.0.0 20170808 for 40000000.mix_gpu_ml on minor 0[ 1.899316] mmcblk2rpmb: mmc2:0001 DG4008 4.00 MiB, chardev (234:0)[ 1.907266] hantrodec 0 : module inserted. Major = 510[ 1.917734] hantrodec 1 : module inserted. Major = 510[ 1.924313] hantroenc: HW at base <0000000038320000> with ID <0x80006200>[ 1.931242] hx280enc: module inserted. Major <509>[ 1.939660] NET: Registered PF_LLC protocol family[ 1.944964] NET: Registered PF_INET6 protocol family[ 1.952488] Segment Routing with IPv6[ 1.956201] In-situ OAM (IOAM) with IPv6[ 1.960171] NET: Registered PF_PACKET protocol family[ 1.965257] can: controller area network core[ 1.969654] NET: Registered PF_CAN protocol family[ 1.974469] can: raw protocol[ 1.977450] can: broadcast manager protocol[ 1.981649] can: netlink gateway - max_hops=1[ 1.987084] Bluetooth: RFCOMM TTY layer initialized[ 1.992013] Bluetooth: RFCOMM socket layer initialized[ 1.997195] Bluetooth: RFCOMM ver 1.11[ 2.000951] Bluetooth: BNEP (Ethernet Emulation) ver 1.3[ 2.006270] Bluetooth: BNEP filters: protocol multicast[ 2.011507] Bluetooth: BNEP socket layer initialized[ 2.016479] Bluetooth: HIDP (Human Interface Emulation) ver 1.2[ 2.022411] Bluetooth: HIDP socket layer initialized[ 2.028396] 8021q: 802.1Q VLAN Support v1.8[ 2.032616] lib80211: common routines for IEEE802.11 drivers[ 2.038736] 9pnet: Installing 9P2000 support[ 2.043039] tsn generic netlink module v1 init...[ 2.047848] Key type dns_resolver registered[ 2.052989] Loading compiled-in X.509 certificates[ 2.082252] regulator-se050-en GPIO handle specifies active low - ignored[ 2.156940] nxp-pca9450 0-0025: pca9450bc probed.[ 2.161765] i2c i2c-0: IMX I2C adapter registered[ 2.167865] i2c 1-003c: Fixing up cyclic dependency with 32e40000.csi[ 2.174632] ov5640 1-003c: supply DOVDD not found, using dummy regulator[ 2.181433] ov5640 1-003c: supply AVDD not found, using dummy regulator[ 2.188103] ov5640 1-003c: supply DVDD not found, using dummy regulator[ 2.197081] i2c i2c-1: IMX I2C adapter registered[ 2.202907] i2c 2-003c: Fixing up cyclic dependency with 32e50000.csi[ 2.209662] ov5640 2-003c: supply DOVDD not found, using dummy regulator[ 2.216460] ov5640 2-003c: supply AVDD not found, using dummy regulator[ 2.223129] ov5640 2-003c: supply DVDD not found, using dummy regulator[ 2.235890] i2c i2c-2: IMX I2C adapter registered[ 2.241755] i2c 5-004c: Fixing up cyclic dependency with 32c00000.bus:ldb@32ec005c[ 2.332690] i2c i2c-5: IMX I2C adapter registered[ 2.338356] imx8mq-usb-phy 381f0040.usb-phy: supply vbus not found, using dummy regulator[ 2.346880] imx8mq-usb-phy 382f0040.usb-phy: supply vbus not found, using dummy regulator[ 2.357420] imx6q-pcie 33800000.pcie: supply epdev_on not found, using dummy regulator[ 2.365705] imx6q-pcie 33800000.pcie: EXT REF_CLK is used!.[ 2.371906] imx6q-pcie 33800000.pcie: PCIe PHY PLL clock is locked.[ 2.378876] pps pps0: new PPS source ptp0[ 2.391630] fec 30be0000.ethernet eth0: registered PHC device 0[ 2.398472] imx-dwmac 30bf0000.ethernet: IRQ eth_lpi not found[ 2.405484] imx-dwmac 30bf0000.ethernet: User ID: 0x10, Synopsys ID: 0x51[ 2.409393] imx6q-pcie 33800000.pcie: PCIe PLL is locked.[ 2.412292] imx-dwmac 30bf0000.ethernet: DWMAC4/5[ 2.417733] imx6q-pcie 33800000.pcie: iATU unroll: enabled[ 2.422479] imx-dwmac 30bf0000.ethernet: DMA HW capability register supported[ 2.427961] imx6q-pcie 33800000.pcie: Detected iATU regions: 4 outbound, 4 inbound[ 2.435097] imx-dwmac 30bf0000.ethernet: RX Checksum Offload Engine supported[ 2.442672] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges:[ 2.449803] imx-dwmac 30bf0000.ethernet: TX Checksum insertion supported[ 2.457039] imx6q-pcie 33800000.pcie: No bus range found for /soc@0/pcie@33800000, using [bus 00-ff][ 2.463725] imx-dwmac 30bf0000.ethernet: Wake-Up On Lan supported[ 2.473059] imx6q-pcie 33800000.pcie: IO 0x001ff80000..0x001ff8ffff -> 0x0000000000[ 2.479174] imx-dwmac 30bf0000.ethernet: Enable RX Mitigation via HW Watchdog Timer[ 2.487316] imx6q-pcie 33800000.pcie: MEM 0x0018000000..0x001fefffff -> 0x0018000000[ 2.494963] imx-dwmac 30bf0000.ethernet: Enabled L3L4 Flow TC (entries=8)[ 2.503218] imx6q-pcie 33800000.pcie: iATU unroll: enabled[ 2.509928] imx-dwmac 30bf0000.ethernet: Enabled RFS Flow TC (entries=8)[ 2.515416] imx6q-pcie 33800000.pcie: Detected iATU regions: 4 outbound, 4 inbound[ 2.522157] imx-dwmac 30bf0000.ethernet: Enabling HW TC (entries=256, max_off=256)[ 2.537277] imx-dwmac 30bf0000.ethernet: Using 34 bits DMA width[ 2.547844] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller[ 2.553374] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1[ 2.561377] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x0000002001010010[ 2.570813] xhci-hcd xhci-hcd.1.auto: irq 77, io mem 0x38100000[ 2.576863] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller[ 2.582368] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2[ 2.590040] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed[ 2.597389] hub 1-0:1.0: USB hub found[ 2.601173] hub 1-0:1.0: 1 port detected[ 2.605413] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.[ 2.614567] hub 2-0:1.0: USB hub found[ 2.618351] hub 2-0:1.0: 1 port detected[ 2.621648] imx6q-pcie 33800000.pcie: Link up[ 2.625148] gpio-42 (onewire): enforced open drain please flag it properly in DT/ACPI DSDT/board file[ 2.637329] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 7 mkt segment 2 supported-hw 0x80 0x4[ 2.647021] Hot alarm is canceled. GPU3D clock will return to 64/64[ 2.657065] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO[ 2.657604] mxc-mipi-csi2-sam 32e40000.csi: supply mipi-phy not found, using dummy regulator[ 2.663612] w1_master_driver w1_bus_master1: Attaching one wire slave 2d.000035c48de6 crc b7[ 2.670851] : mipi_csis_imx8mp_phy_reset,No remote pad found![ 2.684918] mxc-mipi-; echo ${rfs_start}csi2-sam 32e40000.csi: lanes: 2,${rfs_size}hs_settle: 13,83clk_settle: 2,wclk: 1, freq: 500000000[ 2.693135] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA[ 2.695652] mxc-; } | sfdisk mipi-csi2-sam 32e50000.csi: supply mipi-phy not found, using dummy regulator[ 2.710529] : mipi_csis_imx8mp_phy_reset, No remote pad found![ 2.716428] mxc-mipi-csi2-sam 32e50000.csi: lanes: 2, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 266000000[ 2.725040] imx6q-pcie 33800000.pcie: Link up[ 2.727861] isi-capture 32e00000.isi:cap_device: deferring 32e00000.isi:cap_device device registration[ 2.730627] imx6q-pcie 33800000.pcie: Link up, Gen2[ 2.745627] mxc-isi 32e00000.isi: mxc_isi.0 registered successfully[ 2.753251] isi-capture 32e02000.isi:cap_device: deferring 32e02000.isi:cap_device device registration[ 2.762684] mxc-isi 32e02000.isi: mxc_isi.1 registered successfully[ 2.771602] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2)[ 2.781679] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver[ 2.790000] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)[ 2.797970] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops)[ 2.806149] imx-drm display-subsystem: bound 32c00000.bus:ldb@32ec005c (ops imx8mp_ldb_ops)[ 2.814531] imx-drm display-subsystem: bound 32fd8000.hdmi (ops dw_hdmi_imx_ops)[ 2.822196] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1[ 2.837044] imx6q-pcie 33800000.pcie: Link up[ 2.841520] imx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00[ 2.841635] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA[ 2.847906] pci_bus 0000:00: root bus resource [bus 00-ff][ 2.860427] pci_bus 0000:00: root bus resource [io 0x0000-0xffff][ 2.861035] usb 1-1: new high-speed USB device number 2 using xhci-hcd[ 2.866612] pci_bus 0000:00: root bus resource [mem 0x18000000-0x1fefffff][ 2.878184] mmc0: queuing unknown CIS tuple 0x01 [d9 01 ff] (3 bytes)[ 2.880040] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400[ 2.892461] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff][ 2.894218] mmc0: queuing unknown CIS tuple 0x1a [01 01 00 02 07] (5 bytes)[ 2.898735] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref][ 2.909061] mmc0: queuing unknown CIS tuple 0x1b [c1 41 30 30 ff ff 32 00] (8 bytes)[ 2.912454] pci 0000:00:00.0: supports D1[ 2.920816] mmc0: queuing unknown CIS tuple 0x14 [] (0 bytes)[ 2.924149] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold[ 2.932050] mmc0: new high speed SDIO card at address 0001[ 2.938644] pci 0000:01:00.0: [1912:0015] type 00 class 0x0c0330[ 2.947817] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit][ 2.954972] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold[ 2.974971] pci 0000:00:00.0: BAR 0: assigned [mem 0x18000000-0x180fffff][ 2.981787] pci 0000:00:00.0: BAR 14: assigned [mem 0x18100000-0x181fffff][ 2.988672] pci 0000:00:00.0: BAR 6: assigned [mem 0x18200000-0x1820ffff pref][ 2.995906] pci 0000:01:00.0: BAR 0: assigned [mem 0x18100000-0x18101fff 64bit][ 3.003255] pci 0000:00:00.0: PCI bridge to [bus 01-ff][ 3.008489] pci 0000:00:00.0: bridge window [mem 0x18100000-0x181fffff][ 3.015611] pcieport 0000:00:00.0: PME: Signaling with IRQ 242[ 3.021566] pci 0000:01:00.0: enabling device (0000 -> 0002)[ 3.078007] hub 1-1:1.0: USB hub found[ 3.082426] hub 1-1:1.0: 4 ports detected[ 3.195831] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd[ 3.351589] hub 2-1:1.0: USB hub found[ 3.353662] hub 2-1:1.0: 4 ports detected[ 3.471897] Console: switching to colour frame buffer device 160x45[ 3.501810] imx-drm display-subsystem: [drm] fb0: imx-drmdrmfb frame buffer device[ 3.513556] isi-m2m 32e00000.isi:m2m_device: Register m2m success for ISI.0[ 3.520680] cfg80211: Loading compiled-in X.509 certificates for regulatory database[ 3.532577] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'[ 3.541091] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2[ 3.549713] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db[ 3.558642] ALSA device list:[ 3.561625] No soundcards found.[ 3.572590] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.[ 3.582433] VFS: Mounted root (ext4 filesystem) on device 179:2.[ 3.590422] devtmpfs: mounted[ 3.593979] Freeing unused kernel memory: 3008K[ 3.605677] Run /sbin/init as init process[ 3.695221] systemd[1]: System time before build time, advancing clock.[ 3.710195] systemd[1]: systemd 250.5+ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-force ${node}hierarchy=hybrid)[ 3.741876] systemd[1]: Detected architecture arm64.
and formatting the first partition using ''mkfsWelcome to NXP i.ext4''MX Release Distro 5.15-kirkstone (kirkstone)!
[ 3.818113] systemd[1]: Hostname set to <desk-mx8mp>.[ 3.873108] systemd-sysv-generator[195]: SysV service '/etc/init.d/single' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.[ 3.897675] systemd-sysv-generator[195]: SysV service '/etc/init.d/sendsigs' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.[ 3.922244] systemd-sysv-generator[195]: SysV service '/etc/init.d/umountfs' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.[ 3.946500] systemd-sysv-generator[195]: SysV service '/etc/init.d/halt' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.[ 3.970078] systemd-sysv-generator[195]: SysV service '/etc/init.d/umountnfs.sh' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.[ 3.994614] systemd-sysv-generator[195]: SysV service '/etc/init.d/reboot' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.[ 4.018363] systemd-sysv-generator[195]: SysV service '/etc/init.d/save-rtc.sh' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.[ 4.257376] systemd[1]: Queued start job for default target Multi-User System.[ 4.299980] systemd[1]: Created slice Slice /system/getty.[ OK ] Created slice Slice /system/getty.[ 4.322835] systemd[1]: Created slice Slice /system/modprobe.[ OK ] Created slice Slice /system/modprobe.[ 4.346835] systemd[1]: Created slice Slice /system/serial-getty.[ OK ] Created slice Slice /system/serial-getty.[ 4.370622] systemd[1]: Created slice User and Session Slice.[ OK ] Created slice User and Session Slice.[ 4.393404] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.[ OK ] Started Dispatch Password …ts to Console Directory Watch.[ 4.417341] systemd[1]: Started Forward Password Requests to Wall Directory Watch.[ OK ] Started Forward Password R�uests to Wall Directory Watch.[ 4.441785] systemd[1]: Reached target Path Units.[ OK ] Reached target Path Units.[ 4.461180] systemd[1]: Reached target Remote File Systems.[ OK ] Reached target Remote File Systems.[ 4.481152] systemd[1]: Reached target Slice Units.[ OK ] Reached target Slice Units.[ 4.501500] systemd[1]: Reached target Swaps.[ OK ] Reached target Swaps.[ 4.521642] systemd[1]: Listening on RPCbind Server Activation Socket.[ OK ] Listening on RPCbind Server Activation Socket.[ 4.545290] systemd[1]: Reached target RPC Port Mapper.[ OK ] Reached target RPC Port Mapper.[ 4.565521] systemd[1]: Listening on Syslog Socket.[ OK ] Listening on Syslog Socket.[ 4.585400] systemd[1]: Listening on initctl Compatibility Named Pipe.[ OK ] Listening on initctl Compatibility Named Pipe.[ 4.610005] systemd[1]: Listening on Journal Audit Socket.[ OK ] Listening on Journal Audit Socket.[ 4.633746] systemd[1]: Listening on Journal Socket (/dev/log).[ OK ] Listening on Journal Socket (/dev/log).[ 4.657809] systemd[1]: Listening on Journal Socket.[ OK ] Listening on Journal Socket.[ 4.677810] systemd[1]: Listening on Network Service Netlink Socket.[ OK ] Listening on Network Service Netlink Socket.[ 4.703573] systemd[1]: Listening on udev Control Socket.[ OK ] Listening on udev Control Socket.[ 4.725674] systemd[1]: Listening on udev Kernel Socket.[ OK ] Listening on udev Kernel Socket.[ 4.750077] systemd[1]: Listening on User Database Manager Socket.[ OK ] Listening on User Database Manager Socket.[ 4.776540] systemd[1]: Mounting Huge Pages File System... Mounting Huge Pages File System...[ 4.800197] systemd[1]: Mounting POSIX Message Queue File System... Mounting POSIX Message Queue File System...[ 4.824282] systemd[1]: Mounting Kernel Debug File System... Mounting Kernel Debug File System...[ 4.841812] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).[ 4.858313] systemd[1]: Mounting Temporary Directory /tmp... Mounting Temporary Directory /tmp...[ 4.881557] systemd[1]: Starting Create List of Static Device Nodes... Starting Create List of Static Device Nodes...[ 4.908977] systemd[1]: Starting Load Kernel Module configfs... Starting Load Kernel Module configfs...[ 4.932975] systemd[1]: Starting Load Kernel Module drm... Starting Load Kernel Module drm...[ 4.961320] systemd[1]: Starting Load Kernel Module fuse... Starting Load Kernel Module fuse...[ 4.973568] fuse: init (API version 7.34)[ 4.984699] systemd[1]: Starting RPC Bind... Starting RPC Bind...[ 5.001892] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).[ 5.014886] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.[ 5.027788] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)[ 5.039822] systemd[1]: Starting Journal Service... Starting Journal Service...[ 5.063356] systemd[1]: Load Kernel Modules was skipped because all trigger condition checks failed.[ 5.075669] systemd[1]: Starting Generate network units from Kernel command line... Starting Generate network �ts from Kernel command line...[ 5.104001] systemd[1]: Starting Remount Root and Kernel File Systems... Starting Remount Root and Kernel File Systems...[ 5.118020] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null). Quota mode: none.[ 5.128392] systemd[1]: Starting Apply Kernel Variables... Starting Apply Kernel Variables...[ 5.148228] systemd[1]: Starting Coldplug All udev Devices... Starting Coldplug All udev Devices...[ 5.174853] systemd[1]: Started RPC Bind.[ OK ] Started RPC Bind.[ 5.197849] systemd[1]: Started Journal Service.[ OK ] Started Journal Service.[ OK ] Mounted Huge Pages File System.[ OK ] Mounted POSIX Message Queue File System.[ OK ] Mounted Kernel Debug File System.[ OK ] Mounted Temporary Directory /tmp.[ OK ] Finished Create List of Static Device Nodes.[ OK ] Finished Load Kernel Module configfs.[ OK ] Finished Load Kernel Module drm.[ OK ] Finished Load Kernel Module fuse.[ OK ] Finished Generate network units from Kernel command line.[ OK ] Finished Remount Root and Kernel File Systems.[ OK ] Finished Apply Kernel Variables. Mounting FUSE Control File System... Mounting Kernel Configuration File System... Starting Flush Journal to Persistent Storage...[ 5.457700] systemd-journald[207]: Received client request to flush runtime journal. Starting Create Static Device Nodes in /dev...[ OK ] Mounted FUSE Control File System.[ OK ] Mounted Kernel Configuration File System.[ OK ] Finished Flush Journal to Persistent Storage.[ OK ] Finished Create Static Device Nodes in /dev.[ OK ] Reached target Preparation for Local File Systems. Mounting /var/volatile... Starting Rule-based Manage�for Device Events and Files...[ OK ] Mounted /var/volatile. Starting Load/Save Random Seed...[ OK ] Reached target Local File Systems. Starting Create Volatile Files and Directories...[ OK ] Started Rule-based Manager for Device Events and Files.[ OK ] Finished Coldplug All udev Devices.[ OK ] Finished Create Volatile Files and Directories. Starting Network Time Synchronization... Starting Record System Boot/Shutdown in UTMP...[ OK ] Finished Record System Boot/Shutdown in UTMP.[ OK ] Started Network Time Synchronization.[ OK ] Reached target System Initialization.[ 6.025059] remoteproc remoteproc0: imx-dsp-rproc is available[ OK ] Started Daily Cleanup of Temporary Directories.[ OK ] Reached target System Time Set.[ 6.055034] caam-snvs 30370000.caam-snvs: violation handlers armed - init state[ OK ] Started Daily rotation of log files.[ 6.081366] caam 30900000.crypto: Entropy delay = 3200[ OK ] Reached target Timer Units.[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.[ OK ] Listening on D-Bus System Message Bus Socket.[ OK ] Listening on dropbear.socket.[ OK ] Reached targe[ 6.159066] caam 30900000.crypto: failed to acquire DECO 0t Socket Units.[ 6.166378] caam 30900000.crypto: failed to instantiate RNG[ OK ] Reached target Basic System.[ 6.199084] wlan: loading out-of-tree module taints kernel.[ OK ] Started Job spooling tools.[ OK ] Started Periodic Command Scheduler.[ 6.306983] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned. Starting D-Bus System Message Bus...[ 6.331177] random: dbus-daemon: uninitialized urandom read (12 bytes read)[ 6.342232] mx8-img-md: Registered mxc_isi.0.capture as /dev/video1[ 6.349045] mx8-img-md: Registered mxc_isi.1.capture as /dev/video2[ 6.352316] wlan: loading driver v4.5.25.46[ 6.355582] mx8-img-md: Registered sensor subdevice: ov5640 2-003c (1)[ 6.358178] random: dbus-daemon: uninitialized urandom read (12 bytes read)[ 6.373153] mx8-img-md: Registered sensor subdevice: ov5640 1-003c (2)[ 6.376648] hifDeviceInserted: Dumping clocks (50000000,200000000)[ 6.379831] mx8-img-md: created link [mxc_isi.0] => [mxc_isi.0.capture][ 6.392632] mx8-img-md: created link [mxc-mipi-csi2.0] => [mxc_isi.0][ 6.392646] mx8-img-md: created link [mxc_isi.1] => [mxc_isi.1.capture][ 6.392651] mx8-img-md: created link [mxc-mipi-csi2.1] => [mxc_isi.1][ 6.392656] mx8-img-md: created link [ov5640 1-003c] => [mxc-mipi-csi2.0][ 6.392666] mx8-img-md: created link [ov5640 2-003c] => [mxc-mipi-csi2.1] Starting IPv6 P[ 6.425941] mxc-md 32c00000.bus:camera: mxc_md_create_linksacket Filtering Framework... Starting IPv4 Packet Filtering Framework... Starting Lighttpd Daemon... Starting Telephony service...[ OK ] Started System Logging Service. Starting User Login Management...[ OK ] Started TEE Supplicant.[ OK ] Started D-Bus System Message Bus.[ OK ] Finished IPv6 Packet Filtering Framework.[ OK ] Finished IPv4 Packet Filtering Framework.[ OK ] Started Lighttpd Daemon.[ OK ] Started Telephony service.[ OK ] Started User Login Management.[ OK ] Reached target Preparation for Network.[ OK ] Reached target Hardware activated USB gadget.[ OK ] Listening on Load/Save RF �itch Status /dev/rfkill Watch. Starting Network Configuration... Starting Load/Save RF Kill Switch Status...[ OK ] Started Network Configuration. Starting Network Name Resolution...[ OK ] Started Load/Save RF Kill Switch Status.[ OK ] Started Network Name Resolution.[ OK ] Reached target Network.[ OK ] Reached target Host and Network Name Lookups. Starting Avahi mDNS/DNS-SD Stack... Starting DNS forwarder and DHCP server...[ OK ] Started NFS status monitor for NFSv2/3 locking..[ OK ] Started Respond to IPv6 Node Information Queries. Starting Network Time Service... Starting Postfix Mail Transport Agent...[ OK ] Started Network Router Discovery Daemon. Starting Permit User Sessions...[ OK ] Started Vsftpd ftp daemon.[ OK ] Started Xinetd A Powerful Replacement For Inetd.[ OK ] Started Network Time Service.[ OK ] Finished Permit User Sessions.[ OK ] Started DNS forwarder and DHCP server.[ OK ] Started Avahi mDNS/DNS-SD Stack.[ OK ] Started Getty on tty1.[ OK ] Started Serial Getty on ttymxc1.[ OK ] Reached target Login Prompts.[ OK ] Started Postfix Mail Transport Agent.[ OK ] Reached target Multi-User System. Starting Record Runlevel Change in UTMP...[ OK ] Finished Record Runlevel Change in UTMP.[ OK ] Finished Load/Save Random Seed. NXP i.MX Release Distro 5.15-kirkstone desk-mx8mp ttymxc1 desk-mx8mp login: rootroot@desk-mx8mp:~# uname -aLinux desk-mx8mp 5.15.71-desk-mx8m-l-4.0.0+g50e18a0c8871 #1 SMP PREEMPT Thu Jul 20 10:56:49 UTC 2023 aarch64 aarch64 aarch64 GNU/Linuxroot@desk-mx8mp:~# shutdown -h now Stopping Session c1 of User root...[ OK ] Removed slice Slice /system/modprobe.[ OK ] Stopped target Multi-User System.[ OK ] Stopped target Login Prompts.[ OK ] Stopped target RPC Port Mapper.[ OK ] Stopped target Timer Units.[ OK ] Stopped Daily rotation of log files.[ OK ] Stopped Daily Cleanup of Temporary Directories.[ OK ] Stopped target System Time Set.[ OK ] Stopped target Hardware activated USB gadget.[ OK ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch. Stopping Job spooling tools... Stopping Avahi mDNS/DNS-SD Stack... Stopping Periodic Command Scheduler... Stopping DNS forwarder and DHCP server... Stopping Getty on tty1... Stopping Lighttpd Daemon... Stopping NFS status monitor for NFSv2/3 locking.... Stopping Respond to IPv6 Node Information Queries... Stopping Network Time Service... Stopping Telephony service... Stopping Postfix Mail Transport Agent... Stopping Network Router Discovery Daemon... Stopping Serial Getty on ttymxc1... Stopping System Logging Service... Stopping Load/Save Random Seed... Stopping Vsftpd ftp daemon... Stopping Xinetd A Powerful Replacement For Inetd...[ OK ] Stopped Job spooling tools.[ OK ] Stopped Periodic Command Scheduler.[ OK ] Stopped Telephony service.[ OK ] Stopped System Logging Service.[ OK ] Stopped Lighttpd Daemon.[ OK ] Stopped Avahi mDNS/DNS-SD Stack.[ OK ] Stopped NFS status monitor for NFSv2/3 locking..[ OK ] Stopped Respond to IPv6 Node Information Queries.[ OK ] Stopped Network Router Discovery Daemon.[ OK ] Stopped Network Time Service.[ OK ] Stopped Vsftpd ftp daemon.[ OK ] Stopped Xinetd A Powerful Replacement For Inetd.[ OK ] Stopped Getty on tty1.[ OK ] Stopped Serial Getty on ttymxc1.[ OK ] Stopped DNS forwarder and DHCP server.[ OK ] Stopped Postfix Mail Transport Agent.[ OK ] Stopped Load/Save Random Seed.[ OK ] Stopped Session c1 of User root.[ OK ] Removed slice Slice /system/getty.[ OK ] Removed slice Slice /system/serial-getty.[ OK ] Stopped target Host and Network Name Lookups. Stopping User Login Management... Stopping User Manager for UID 0...[ OK ] Stopped User Manager for UID 0. Stopping User Runtime Directory /run/user/0...[ OK ] Unmounted /run/user/0.[ OK ] Stopped User Runtime Directory /run/user/0.[ OK ] Removed slice User Slice of UID 0. Stopping D-Bus System Message Bus... Stopping Permit User Sessions...[ OK mkfs] Stopped User Login Management.ext4 [ OK ] Stopped D-F ${node}${part}Bus System Message Bus.[ OK ] Stopped Permit User Sessions.[ OK ] Stopped target Network.[ OK ] Stopped target Remote File Systems. Stopping Network Name Resolution...[ OK ] Stopped Network Name Resolution. Stopping Network Configuration...[ OK ] Stopped Network Configuration.[ OK ] Stopped target Preparation for Network.[ OK ] Stopped IPv6 Packet Filtering Framework.[ OK ] Stopped IPv4 Packet Filtering Framework.[ OK ] Stopped target Basic System.[ OK ] Stopped target Path Units.[ OK ] Stopped Dispatch Password �ts to Console Directory Watch.[ OK ] Stopped Forward Password R�uests to Wall Directory Watch.[ OK ] Stopped target Slice Units.[ OK ] Removed slice User and Session Slice.[ OK ] Stopped target Socket Units.[ OK ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.[ OK ] Closed D-Bus System Message Bus Socket.[ OK ] Closed dropbear.socket.[ OK ] Stopped target System Initialization.[ OK ] Closed Syslog Socket.[ OK ] Closed Network Service Netlink Socket.[ OK ] Stopped Apply Kernel Variables. Stopping Network Time Synchronization...[ OK ] Stopped Network Time Synchronization.[ OK ] Stopped Create Volatile Files and Directories.[ OK ] Stopped target Local File Systems. Unmounting Temporary Directory /tmp... Unmounting /var/volatile...[ OK ] Unmounted Temporary Directory /tmp.[ OK ] Unmounted /var/volatile.[ OK ] Stopped target Preparation for Local File Systems.[ OK ] Stopped target Swaps.[ OK ] Reached target Unmount All Filesystems.[ OK ] Stopped Remount Root and Kernel File Systems.[ OK ] Stopped Create Static Device Nodes in /dev.[ OK ] Reached target System Shutdown.[ OK ] Reached target Late Shutdown Services.[ OK ] Finished System Power Off.[ OK ] Reached target System Power Off.[ 52.155590] systemd-shutdown[1]: Syncing filesystems and block devices.[ 52.175955] systemd-shutdown[1]: Sending SIGTERM to remaining processes...[ 52.201827] systemd-journald[207]: Received SIGTERM from PID 1 (systemd-shutdow).[ 52.213839] audit: type=1335 audit(1651167793.516:3): pid=207 uid=0 auid=4294967295 tty=(none) ses=4294967295 comm="systemd-journal" exe="/lib/systemd/systemd-journald" nl-mcgrp=1 op=disconnect res=1[ 60.411143] imx-sdma 30e10000.dma-controller: firmware found.[ 60.411433] imx-sdma 30bd0000.dma-controller: firmware found.[ 60.422840] imx-sdma 30bd0000.dma-controller: loaded firmware 4.6[ 62.203259] systemd-shutdown[1]: Waiting for process: 224 (systemd-udevd), 243 (systemd-udevd)[ 64.477453] cfg80211: failed to load regulatory.db[ 66.525432] xhci_hcd 0000:01:00.0: failed to load firmware renesas_usb_fw.mem, fallback to ROM[ 66.534140] xhci_hcd 0000:01:00.0: xHCI Host Controller[ 66.539406] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3[ 66.552111] xhci_hcd 0000:01:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x0000001100000090[ 66.561888] xhci_hcd 0000:01:00.0: xHCI Host Controller[ 66.567127] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 4[ 66.574547] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed[ 66.581837] hub 3-0:1.0: USB hub found[ 66.585614] hub 3-0:1.0: 2 ports detected[ 66.589887] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.[ 66.598583] hub 4-0:1.0: USB hub found[ 66.602356] hub 4-0:1.0: 2 ports detected[ 66.629359] systemd-shutdown[1]: Sending SIGKILL to remaining processes...[ 66.646040] systemd-shutdown[1]: Unmounting file systems.[ 66.653423] [443]: Remounting '/' read-only with options 'n/a'.[ 66.669965] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null). Quota mode: none.[ 66.680878] systemd-shutdown[1 ]: All filesystems unmounted.[ 66.686583] systemd-Lbootshutdown[1]: Deactivating swaps.[ 66.691853] systemd-shutdown[1]: All swaps deactivated.[ 66.697213] systemd-shutdown[1]: Detaching loop devices.[ 66.704975] systemd-shutdown[1]: All loop devices detached.[ 66.710574] systemd-shutdown[1]: Stopping MD devices.[ 66.715875] systemd-shutdown[1]: All MD devices stopped.[ 66.721199] systemd-shutdown[1]: Detaching DM devices.[ 66.726563] systemd-shutdown[1]: All DM devices detached.[ 66.731975] systemd-shutdown[1]: All filesystems, swaps, loop devices, MD devices and DM devices detached.[ 66.748076] systemd-shutdown[1]: Syncing filesystems and block devices.[ 66.755091] systemd-shutdown[1]: Powering off.[ 66.759580] kvm: exiting hardware virtualization[ 66.849341] usb 3-2: new full-speed USB device number 2 using xhci_hcd[ 67.037260] reboot: Power down
then, the u-boot <code>environment</code> has to be properly configured:
<pre class="workstation-terminal">
=> setenv mmc_loadk 'ext4load mmc ${mmcdev}:1 ${loadaddr} ${bootfile}'
=> setenv mmc_loadfdt 'ext4load mmc ${mmcdev}:1 ${fdtaddr} ${fdtfile}'
=> setenv mmc_loadsplash 'ext4load mmc ${mmcdev}:1 ${loadaddr} ${splashfile}; cp.b ${loadaddr} ${splashimage} ${filesize}'
=> saveenv
</pre>
 
----
[[Category:ORCA]] [[Category:MITO 8M Mini]]
8,256
edits