System Images
Boot Device | Symlink | File |
---|---|---|
SD Card/eMMC | tq-image-weston-tqma8xdps-mb-smarc-2.wic | tq-image-weston-tqma8xdps-mb-smarc-2-<build_timestamp>.rootfs.wic |
Bootloader Binaries
Boot Device | Symlink | File |
---|---|---|
SD/eMMC | imx-boot | imx-boot-tqma8xdps-mb-smarc-2-sd.bin-flash_spl |
Linux Kernel Image
Symlink | File |
---|---|
Image | Image–5.10.74+git0+a988e804a1-r0-tqma8xdps-mb-smarc-2-<build_timestamp>.bin |
Devicetree Blobs
Symlink | Description |
---|---|
imx8dxp-tqma8xdps-mb-smarc-2.dtb | Default |
imx8dxp-tqma8xdps-mb-smarc-2-lvds0-tm070jvhg33.dtb | Default with LVDS0 interface activated |
imx8dxp-tqma8xdps-mb-smarc-2-lvds1-tm070jvhg33.dtb | Default with LVDS1 interface activated |
imx8dxp-tqma8xdps-mb-smarc-2-rpmsg.dtb | Default with RPMSG support |
Rootfs images
Symlink | File |
---|---|
tq-image-weston-tqma8xdps-mb-smarc-2.ext4 | tq-image-weston-tqma8xdps-mb-smarc-2-<build_timestamp>.rootfs.ext4 |
tq-image-weston-tqma8xdps-mb-smarc-2.tar.gz | tq-image-weston-tqma8xdps-mb-smarc-2-<build_timestamp>.rootfs.tar.gz |
System Images
Boot Device | Symlink | File |
---|---|---|
SD Card/eMMC | tq-image-weston-tqma8xqps-mb-smarc-2.wic | tq-image-weston-tqma8xqps-mb-smarc-2-<build_timestamp>.rootfs.wic |
Bootloader Binaries
Boot Device | Symlink | File |
---|---|---|
SD/eMMC | imx-boot | imx-boot-tqma8xqps-mb-smarc-2-sd.bin-flash_spl |
Linux Kernel Image
Symlink | File |
---|---|
Image | Image–5.10.74+git0+a988e804a1-r0-tqma8xqps-mb-smarc-2-<build_timestamp>.bin |
Devicetree Blobs
Symlink | Description |
---|---|
imx8qxp-tqma8xqps-mb-smarc-2.dtb | Default |
imx8qxp-tqma8xqps-mb-smarc-2-lvds0-tm070jvhg33.dtb | Default with LVDS0 interface activated |
imx8qxp-tqma8xqps-mb-smarc-2-lvds1-tm070jvhg33.dtb | Default with LVDS1 interface activated |
imx8qxp-tqma8xqps-mb-smarc-2-rpmsg.dtb | Default with RPMSG support |
Rootfs images
Symlink | File |
---|---|
tq-image-weston-tqma8xqps-mb-smarc-2.ext4 | tq-image-weston-tqma8xqps-mb-smarc-2-<build_timestamp>.rootfs.ext4 |
tq-image-weston-tqma8xqps-mb-smarc-2.tar.gz | tq-image-weston-tqma8xqps-mb-smarc-2-<build_timestamp>.rootfs.tar.gz |
Sector 1) | Size 2) | Contents | Linux (SD-Card) | Linux (eMMC) | Mountpoint |
---|---|---|---|---|---|
0x000000 … 0x000000 | 0x0001 sector / 512 B | MBR / Partition Table | unpartitioned area | n/a | |
0x000001 … 0x00003F | 0x003F sectors / 32256 B | none | |||
0x000040 … 0x001FFF | 0x1FC0 sectors / 4064 kiB | bootstream (U-Boot) | |||
0x002000 … 0x003FFF | 0x2000 sectors / 4 MiB | U-Boot environment | |||
0x004000 … 0x023FFF | 0x20000 sectors / 64 MiB | firmware (Kernel, devicetrees) | mmcblk1p1 | mmcblk0p1 | /boot |
0x024000 … | actual size depends on contents of RootFS | RootFS | mmcblk1p2 | mmcblk0p2 | / |
The Image can be simply written to the SD Card by using the dd shell command in Linux:
$ cd <path to your image> $ sudo dd if=tq-image-qt5-tqma8xd-mba8xx-<build Timestamp>.rootfs.wic of=/dev/sdc bs=1M conv=fsync #Assuming the SD card is assigned to /dev/sdc
To identify the SD card in Linux the shell command dmesg can be used:
$ dmesg | tail -n 15
$ dmesg | tail -n 15 #plug in SD Card into the reader $ dmesg | tail -n 15
A good approach to update the firmare components U-Boot,Linux kernel and devicetree in a running system it to load them from a tftp server.
This process requires a running TFTP server, please see the following page how to setup TFTP Server.
After setting up the TFTP server, the binaries to be updated must be copied into the TFTP directory.
1. Setup the Starterkit to boot from eMMC or SD
2. Connect the kit to the network with TFTP server supplying the binaries via ethernet on connector ETH1 (X18)
3. Power up the system and interrupt the boot process in U-Boot
Hit any key to stop autoboot: 0 =>
3. Setup the ethernet interface:
Set network settings using DHCP
4. Set U-Boot variable mmcdev according to the drive you want to write to.
=> setenv mmcdev <device_number>
Device assignment:
mmcdev 0 = eMMC
mmcdev 1 = SD Card
5. Set the file name of the binary to update in U-Boot :
6. Perform Update by running the update command:
=> run update_uboot_mmc
=> run update_fdt_mmc
=> run update_kernel_mmc
1. Run the following commands in the Uboot shell to create update script:
setenv root_loop 'setenv start 24000 && setenv r1 $rootblks16 && while itest $r1 -gt 0; do if itest $r1 -gt 0x100000; then setenv count 0x100000; else setenv count $r1; fi && mmc dev 1 && mmc read $loadaddr $start $count && mmc dev 0 && mmc write $loadaddr $start $count && setexpr start $start + $count && setexpr r1 $r1 - $count; done; setenv r1; setenv start; setenv count'
setenv install_firmware 'echo MBR... && mmc dev 1 && mmc read $loadaddr 0 1 && mmc dev 0 && mmc write $loadaddr 0 1 && echo U-Boot... && mmc dev 1 && mmc read $loadaddr 3F 1FC0 && mmc dev 0 && mmc write $loadaddr 3F 1FC0 && echo U-Boot environment... && mmc dev 1 && mmc read $loadaddr 2000 2000 && mmc dev 0 && mmc write $loadaddr 2000 2000 && echo Firmware Partition... && mmc dev 1 && mmc read $loadaddr 4000 20000 && mmc dev 0 && mmc write $loadaddr 4000 20000 && echo Root FS... && run root_loop'
To calculate the value of rootblks16 devide the size of the image in byte by 512 and convert the result into a hex value.
2070 * 1024 * 1024 = 2170552320
2170552320 / 512 = 4239360
4239360 = 40B000HEX
setenv rootblks16 0x205800
2. Save environment U-boot environment (optional):
=> saveenv
3. run the following command to start the update procedure:
=> run install_firmware
To boot the TQMa8Xx from network you need a working bootloader in eMMC/SD-card or SPI-NOR (placement option on TQMa8Xx ) which is able to get the kernel image over tftp and to provide the kernel with commandline settings for NFS. The dtb-file and kernel image have to be provided via tftp and the rootfs via nfs.
The bootloader environment needs to be modified to work with your tftp-server and your nfs-server.
1. Prepare network interface:
Set network settings using DHCP
2. set the Uboot variables for TFTP and NFS:
3. Run the uboot script to boot from nfs:
=> run netboot