~~NOCACHE~~ ~~NOCACHE~~ WORK IN PROGRESS {{template>en:templates:tabs|lang="intern"|mod_name="tqmt104x"|mod_name_head="TQMT104x"|mod_arch="power"|bsp_name="linux"|bsp_name_head="Linux"}} \\ \\ ===== Deployment ===== ==== Images ==== Files mentioned below are symlinks that refer to the build results of the last yocto build. ++++ TQMT1040 | Complete system images: * **core-image-minimal-tqmt1040-64b-stk.sdcard** : bootable image for TQMT1040 on STKT104x (usage on SD Card and eMMC) * **core-image-minimal-tqmt1040-64b-stk.nor** : bootable image for TQMT1040 on STKT104x (usage on NOR Flash) * **core-image-full-commandline-tqmt1040-64b-stk.sdcard** : bootable image for TQMT1040 on STKT104x (usage on SD Card and eMMC) * **core-image-full-commandline-tqmt1040-64b-stk.nor** : bootable image for TQMT1040 on STKT104x (usage on NOR Flash) The complete system images are intended for * development system initialisation * deployment RCW images: * **fsl_rcw-nor-TQMT1040_SERDES66.bin** * **fsl_rcw-sdcard-TQMT1040_SERDES66.bin** Bootloader images: * **u-boot.bin-nor**: u-boot bootloader for TQMT104x on STKT104x (usage on SD Card and eMMC) * **u-boot.bin-sdcard**: (usage on NOR Flash) Linux images: * **uImage-tqmt1040-64b-stk.bin**: Kernel (uImage) * **uImage-tqmt1040.dtb**: devicetree blob for TQMT1040 on STKT104x Rootfs images: * **core-image-full-cmdline-tqmt1040-64b-stk.ext3**: Root file system partition image (for system update) * **core-image-full-cmdline-tqmt1040-64b-stk.jffs2**: * **core-image-full-cmdline-tqmt1040-64b-stk.nor**: ++++ ++++ TQMT1042 | Complete system images: * **core-image-minimal-tqmt1042-64b-stk.sdcard** : bootable image for TQMa6U on MBa6x (usage on SD Card and eMMC) * **core-image-full-commandline-tqmt1042-64b-stk.sdcard** : bootable image for TQMa6Q and TQMa6D on MBa6x (usage on SD Card and eMMC) * **core-image-minimal-tqmt1042-64b-stk.nor** : bootable image for TQMa6U on MBa6x (usage on NOR Flash) The complete system images are intended for * development system initialisation * deployment RCW images: * **fsl_rcw-nor-TQMT1042_SERDES66.bin** * **fsl_rcw-sdcard-TQMT1042_SERDES66.bin** Bootloader images: * **u-boot.bin-nor**: u-boot bootloader for TQMT104x on STKT104x (usage on SD Card and eMMC) * **u-boot.bin-sdcard**: (usage on NOR Flash) Linux images: * **uImage-tqmt1042-64b-stk.bin**: Kernel (uImage) * **uImage-tqmt1042.dtb**: devicetree blob for TQMT1040 on STKT104x Rootfs images: * **core-image-full-cmdline-tqmt1042-64b-stk.ext3**: Root file system partition image (for system update) * **core-image-full-cmdline-tqmt1042-64b-stk.jffs2**: * **core-image-full-cmdline-tqmt1042-64b-stk.nor**: ++++ ==== 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 /platform-/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 [[en:general_information:tftp|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 (e.g.: setenv serverip 192.168.100.110) * setenv ipaddr (e.g.: setenv ipaddr 192.168.100.111) * setenv 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 * For device tree:setenv fdt_file * For Kernel:setenv kernel 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 [[en:tftp|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 (e.g.: setenv serverip 192.168.100.110) * setenv ipaddr (e.g.: setenv ipaddr 192.168.100.111) * setenv netmask (e.g.: setenv netmask 255.255.255.0) - Download the image from tftp server to $loadaddr with the following command: tftp $loadaddr ++++ example | tftp $loadaddr core-image-minimal-tqmt1042-64b-stk-20170126034615.rootfs.nor ++++ - 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