Table of Contents

WORK IN PROGRESS

— Template tabs not found.



Deployment

Images

Files mentioned below are symlinks that refer to the build results of the last yocto build.

TQMT1040

TQMT1042

Create SD Card with BSP Image

To install a new firmware use SD cards. To copy the built images on the host system to a connected card type:

$ cd <BSP project>/platform-<platform_name>/images
$ sudo dd if=u-boot_@mod_name_code@_hd.img of=/dev/sdf bs=1M conv=fsync #Assuming the SD card is assigned to /dev/sdf

You have to use the raw device of the SD card not a partition!

To find out what device file the SD card has, type “dmesg” after you connect the card to see the system messages. At the bottom you'll see some “Attached scsi …” messages along with something like:

[ 8197.588395]  sdf: sdf1

Updating existing firmware over ethernet

To update bootloader / kernel / devicetree in a running system you have to copy the images in your tftp directory and download them to the eMMC or SD Card.

Please see How to setup TFTP Server

1. Boot from eMMC or SD and stop autoboot
2. Set U-Boot variable mmcdev according to the drive you want to write to (mmcdev 0 = eMMC, mmcdev 1 = SD card)
3. Connect device via ethernet to a tftp server supplying the image
4. Provide the correct network configuration:

5.Provide U-Boot the file name of the desired image on the server:

6.Perform Update:

Write BSP Image into NOR

TQMT1040:

/opt/tq-powerarch-bsp/target_images/tqmt1040-64b-stk/ core-image-full-cmdline-tqmt1040-64b-stk-20170126013400.rootfs.nor /opt/tq-powerarch-bsp/target_images/tqmt1040-64b-stk/core-image-minimal-tqmt1040-64b-stk-20170126032135.rootfs.nor

TQMT1042:

/opt/tq-powerarch-bsp/target_images/tqmat1042-64b-stk/core-image-full-cmdline-tqmt1042-64b-stk-20170126034824.rootfs.nor /opt/tq-powerarch-bsp/target_images/tqmat1042-64b-stk/core-image-minimal-tqmt1042-64b-stk-20170126034615.rootfs.nor

  1. Prepare development host for TFTP download TFTP Server and copy the NOR Flash image into the TFTP folder.
  2. Boot SD and stop autoboot
  3. Connect device via ethernet to a tftp server supplying the image
  4. Provide the correct network configuration:
  1. Download the image from tftp server to $loadaddr with the following command:
tftp $loadaddr <filename>

example

  1. Make all NOR Flash banks writable with and erase the whole NOR Flash with:
 protect off all
 erase all
  1. Write image from $loadaddr onto the NOR Flash:
cp.b $loadaddr 0xE8000000 8000000