WORK IN PROGRESS
Deployment
Images
Files mentioned below are symlinks that refer to the build results of the last yocto build.
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:
- setenv autoload no
- setenv serverip <serverip> (e.g.: setenv serverip 192.168.100.110)
- setenv ipaddr <ipaddr> (e.g.: setenv ipaddr 192.168.100.111)
- setenv netmask <netmask> (e.g.: setenv netmask 255.255.255.0)
5.Provide U-Boot the file name of the desired image on the server:
- For U-Boot:setenv uboot <filename>
- For device tree:setenv fdt_file <filename>
- For Kernel:setenv kernel <filename>
6.Perform Update:
- For U-Boot: run update_uboot
- For devicetree: run update_fdt
- For Kernel: run update_kernel
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
- Prepare development host for TFTP download TFTP Server and copy the NOR Flash image into the TFTP folder.
- Boot SD and stop autoboot
- Connect device via ethernet to a tftp server supplying the image
- Provide the correct network configuration:
- setenv autoload no
- setenv serverip <serverip> (e.g.: setenv serverip 192.168.100.110)
- setenv ipaddr <ipaddr> (e.g.: setenv ipaddr 192.168.100.111)
- setenv netmask <netmask> (e.g.: setenv netmask 255.255.255.0)
- Download the image from tftp server to $loadaddr with the following command:
tftp $loadaddr <filename>
- Make all NOR Flash banks writable with and erase the whole NOR Flash with:
protect off all erase all
- Write image from $loadaddr onto the NOR Flash:
cp.b $loadaddr 0xE8000000 8000000
TQ-Systems GmbH provides the Board Support Packages (BSP) free of charge. The software included in the shipment has been configured individually for the starter kits. The software is only intended to evaluate the module. The use of the Board Support Packages (BSP) is only allowed within the scope of functionality described by TQ-Systems GmbH. TQ-Systems GmbH does not accept any liability for all further changes of the Board Support Package and for any damage resulting from its use.