Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:general_information:tutorial:update_firmware_tftp [2017/12/15 08:26] 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 =====
 \\ \\
-To update bootloader / kernel / devicetree in a running system you have to copy the images in your tftp directory and upload them to the eMMC or SD Card.\\  +This tutorial describes hoe to update the firmware files in U-Boot.
  
 +==== 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**\\
-1. Boot from eMMC or SD and stop autoboot in U-Boot\\+
 <code>Hit any key to stop autoboot:  0 <code>Hit any key to stop autoboot:  0
 =></code>\\ =></code>\\
-2. Set U-Boot variable //mmcdev//  according to the drive you want to write to (mmcdev 0 = eMMCmmcdev 1 = SD card)\\  +**2. Set U-Boot variable //mmcdev//  according to the drive you want to write to** 
-3. Connect device via ethernet to a tftp server supplying the image\\ +<code>=> setenv mmcdev <Nr.></code> 
-4. Provide the correct network configuration in U-Boot:  +++++mmcdev|  
-  * setenv autoload no +<wrap info>TQMa6x, TQMa6ULx, TQMa7x:</wrap>\\ 
-  * setenv serverip <serverip> (e.g.: setenv serverip 192.168.100.110)  +//mmcdev 0// = eMMC\\ 
-  * setenv ipaddr <ipaddr> (e.g.: setenv ipaddr 192.168.100.111) +//mmcdev 1// = SD Card\\ 
-  * 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:  +<wrap info>TQMa335x:</wrap>\\ 
-  * For U-Boot:setenv uboot <filename>  +//mmcdev 0// = SD Card\\ 
-  * For device tree:setenv fdt_file <filename> +//mmcdev 1// = eMMC\\ 
-  * For Kernel:setenv kernel <filename> +\\ 
-6. Perform Update:  +<wrap info>TQMLS102xA:</wrap>\\ 
-  * For U-Boot: run update_uboot  +<wrap important>mmcdev depends on the placement of eMMC on your module!</wrap>\\ 
-  * For devicetree: run update_fdt +//mmcdev 0// = SD Card **or** eMMC 
-  * For Kernel: run update_kernel+++++  
 +**3. Connect  target device via ethernet to a tftp server supplying the frimware images**\\ 
 +**4. Provide the correct network configuration in U-Boot:**  
 + 
 + 
 + 
 + 
 + 
 +  * => 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 tftp server:**  
 +  * ++For U-Boot update:| \\ 
 +\\ 
 +<wrap info>TQMa6x, TQMa6ULx, TQMa7x, TQMLS102xA:</wrap>\\ 
 +=> setenv uboot <filename>\\ 
 +\\ 
 +<wrap info>TQMa335x: please see [[en:arm:tqma335x:linux:ptxdist:deployment#Updating the firmware|Updating the firmware]]</wrap>\\ 
 +\\ 
 +++ 
 +  * ++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