Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:general_information:tutorial:update_firmware_tftp [2017/12/14 16:16] – created schmiden:general_information:tutorial:update_firmware_tftp [2022/08/04 15:02] (current) – external edit 127.0.0.1
Line 1: Line 1:
-==== Updating existing firmware over ethernet ====+===== Updating existing firmware over ethernet ====
 +\\ 
 +This tutorial describes hoe to update the firmware files in U-Boot.
  
-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.\\  +==== Prerequisites ====
  
 +  * Configured TFTP Server on development host, please see [[en:general_information:tftp|How to setup TFTP Server]]
  
  
-Please see [[en:general_information:tftp|How to setup TFTP Server]]+**1. Boot from eMMC or SD and stop autoboot in U-Boot**\\ 
 +<code>Hit any key to stop autoboot 0 
 +=></code>\\ 
 +**2. Set U-Boot variable //mmcdev//  according to the drive you want to write to** 
 +<code>=> setenv mmcdev <Nr.></code> 
 +++++mmcdev 
 +<wrap info>TQMa6x, TQMa6ULx, TQMa7x:</wrap>\\ 
 +//mmcdev 0// = eMMC\\ 
 +//mmcdev 1// = SD Card\\ 
 +\\ 
 +<wrap info>TQMa335x:</wrap>\\ 
 +//mmcdev 0// = SD Card\\ 
 +//mmcdev 1// = eMMC\\ 
 +\\ 
 +<wrap info>TQMLS102xA:</wrap>\\ 
 +<wrap important>mmcdev depends on the placement of eMMC on your module!</wrap>\\ 
 +//mmcdev 0// = SD Card **or** eMMC 
 +++++  
 +**3. Connect  target device via ethernet to a tftp server supplying the frimware images**\\ 
 +**4. Provide the correct network configuration in U-Boot:** 
  
  
-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 autoload no +  * => setenv serverip <serverip> (e.g.: setenv serverip 192.168.100.110)  
-  * setenv serverip <serverip> (e.g.: setenv serverip 192.168.100.110)  +  * => setenv ipaddr <ipaddr> (e.g.: setenv ipaddr 192.168.100.111) 
-  * setenv ipaddr <ipaddr> (e.g.: setenv ipaddr 192.168.100.111) +  * => setenv netmask <netmask> (e.g.: setenv netmask 255.255.255.0) 
-  * setenv netmask <netmask> (e.g.: setenv netmask 255.255.255.0)  +**5. Provide U-Boot the file name of the desired image on the tftp server:**  
-5.Provide U-Boot the file name of the desired image on the server:  +  * ++For U-Boot update:| \\ 
-  * For U-Boot:setenv uboot <filename>  +\\ 
-  * For device tree:setenv fdt_file <filename> +<wrap info>TQMa6x, TQMa6ULx, TQMa7x, TQMLS102xA:</wrap>\\ 
-  * For Kernel:setenv kernel <filename> +=> setenv uboot <filename>\\ 
-6.Perform Update:  +\\ 
-  * For U-Boot: run update_uboot  +<wrap info>TQMa335x: please see [[en:arm:tqma335x:linux:ptxdist:deployment#Updating the firmware|Updating the firmware]]</wrap>\\ 
-  * For devicetree: run update_fdt +\\ 
-  * For Kernel: run update_kernel+++ 
 +  * ++For Device Tree update:| \\ 
 +\\ 
 +<wrap info>TQMa6x, TQMa6ULx, TQMa7x, TQMLS102xA:</wrap>\\ 
 +=> setenv fdt_file <filename>\\ 
 +\\ 
 +<wrap info>TQMa335x: please see [[en:arm:tqma335x:linux:ptxdist:deployment#Updating the firmware|Updating the firmware]]</wrap>\\ 
 +\\ 
 +++ 
 +  * ++For Kernel update:| \\  
 +\\ 
 +<wrap info>TQMa6x, TQMa6ULx, TQMa7x, TQMLS102xA:</wrap>\\ 
 +=> setenv zimage <filename>\\ 
 +\\ 
 +<wrap info>TQMa335x: please see [[en:arm:tqma335x:linux:ptxdist:deployment#Updating the firmware|Updating the firmware]]</wrap>\\ 
 +\\ 
 +++ 
 + 
 +**6. Perform Update:**  
 +  * ++U-Boot update:| \\ 
 +<wrap info>TQMa6x, TQMa6ULx, TQMa7x, TQMLS102xA:</wrap>\\ 
 +=> run update_uboot\\ 
 +\\ 
 +<wrap info>TQMa335x: please see [[en:arm:tqma335x:linux:ptxdist:deployment#Updating the firmware|Updating the firmware]]</wrap>\\ 
 +\\ 
 +++ 
 +  * ++Device Tree update:| \\ 
 +<wrap info>TQMa6x, TQMa6ULx, TQMa7x, TQMLS102xA:</wrap>\\ 
 +=> run update_fdt\\ 
 +\\ 
 +<wrap info>TQMa335x: please see [[en:arm:tqma335x:linux:ptxdist:deployment#Updating the firmware|Updating the firmware]]</wrap>\\ 
 +\\ 
 +++ 
 +  * ++Kernel update:| \\ 
 +<wrap info>TQMa6x, TQMa6ULx, TQMa7x, TQMLS102xA:</wrap>\\ 
 +=> run update_kernel\\ 
 +\\ 
 +<wrap info>TQMa335x: please see [[en:arm:tqma335x:linux:ptxdist:deployment#Updating the firmware|Updating the firmware]]</wrap>\\ 
 +\\ 
 +++
  
 <WRAP round info> <WRAP round info>
 The u-boot update scripts automatically implement the selection of the primary copy to boot. The u-boot update scripts automatically implement the selection of the primary copy to boot.
 </WRAP> </WRAP>
- 
  
  • Last modified: 2022/08/04 15:04