Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX6UL-L/Deployment/Standalone boot

63 bytes removed, 11:08, 16 March 2022
no edit summary
! 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" |{{oldid|14239|1.0.1}}
| 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" |Jun 2021
| 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" |First DESK 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" |32.0.0
| 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" |Feb 2022
| 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 3.0.0 DESK release
|-
|}
=> run load_spl
Using FEC0 device
TFTP from server 192.168.40.24013; our IP address is 192.168.40.15789
Filename 'lynx/SPL'.
Load address: 0x80800000
=> run load_uboot
Using FEC0 device
TFTP from server 192.168.40.24013; our IP address is 192.168.40.15789
Filename 'lynx/u-boot.img'.
Load address: 0x80800000
=> sf probe; run loadk spi_updatek loadfdt spi_updatefdt
Using FEC0 device
TFTP from server 192.168.40.24013; our IP address is 192.168.40.18389
Filename 'lynx/uImage'.
Load address: 0x80800000
SF: 8189464 bytes @ 0x200000 Written: OK
Using FEC0 device
TFTP from server 192.168.40.24013; our IP address is 192.168.40.18389Filename 'lynx/imx6ul-lynxaxelulite.dtb'.
Load address: 0x83000000
Loading: #######
=== Program boot images into NAND flash ===
====U-Boot====
 
{{ImportantMessage|text=Only flashing the NAND device was tested for '''DESK-MX6UL-L 3.0.0''' release as neither SDV04 nor SBC Lynx support NAND boot.}}
U-Boot on NAND flash must be programmed using NXP <code>kobs-ng</code> 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 <b>kobs-ng</b> utility available on it (e.g. DAVE's rfs provided with <KIT>[[DESK-MX6UL-L| 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
<pre class="workstation-terminal">
root@desk-mx6ul-axelulite:~# kobs-ng -x -v -w desk-mx6ul-l-3.0.0_mx6uldesk_axelulite_devel_SPL0_mx6uldesk_axelulite_SPL
MTD CONFIG:
chip_0_device_path = "/dev/mtd0"
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_devel_u0_mx6uldesk_axelulite_u-boot.img
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
=> run loadk nand_updatek loadfdt nand_updatefdt
Using FEC0 device
TFTP from server 192.168.40.24013; our IP address is 192.168.40.18389
Filename 'lynx/uImage'.
Load address: 0x80800000
8189464 bytes written: OK
Using FEC0 device
TFTP from server 192.168.40.24013; our IP address is 192.168.40.18389Filename 'lynx/imx6ul-lynxaxelulite.dtb'.
Load address: 0x83000000
Loading: #######
=== Program root file system into NAND flash ===
* Boot boot the system via SD or NFS as described in the e [[(<KIT>)#Quick_start_guideDESK-MX6UL-L/General/Booting_from_NFS|Quick start guideBooting from NFS]]* By 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 [[Memory Tecnology Device (MTD)|MTD]] partitions can be dumped with <code>/proc/mtd</code> (the partition's name should be self-explanatory)
<pre class="workstation-terminal">
root@desk-mx6ul-lynxaxelulite:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00200000 00020000 "nand-SPL"
<pre class="workstation-terminal">
root@desk-mx6ul-lynxaxelulite:~# ubiformat /dev/mtd8
ubiformat: mtd8 (nand), size 1048576000 bytes (1000.0 MiB), 8000 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 7999 -- 100 % complete
ubiformat: 8000 eraseblocks have valid erase counter, mean value is 16
ubiformat: formatting eraseblock 7999 -- 100 % complete
root@desk-mx6ul-lynxaxelulite:~# ubiattach -m 8
UBI device number 0, total 8000 LEBs (1015808000 bytes, 968.7 MiB), available 7836 LEBs (994983936 bytes, 948.8 MiB), LEB size 126976 bytes (124.0 KiB)
root@desk-mx6ul-lynxaxelulite:~# ubimkvol /dev/ubi0 -N rootfs -m
Set volume size to 994983936
Volume ID 0, size 7836 LEBs (994983936 bytes, 948.8 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
<pre class="workstation-terminal">
root@desk-mx6ul-lynxaxelulite:~# mkdir -p /mnt/nandroot@desk-mx6ul-lynxaxelulite:~# mount -t ubifs ubi0_0 /mnt/nand/root@desk-mx6ul-lynxaxelulite:~# dmesg | tail -n 7
[ 201.602548] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 201.602935] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 293
<pre>
tar xvjf desk-image-qt5-desk-mx6ul-lynxaxelulite.tar.bz2 -C /mnt/nand/
</pre>
<pre class="workstation-terminal">
root@desk-mx6ul-lynxaxelulite:~# umount /mnt/nandroot@desk-mx6ul-lynxaxelulite:~# ubidetach -m 8root@desk-mx6ul-lynxaxelulite:~# dmesg | tail -n 4
[ 1154.988629] UBIFS (ubi0:0): un-mount UBI device 0
[ 1154.989082] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops
8,221
edits