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
Next revisionBoth sides next revision
en:general_information:tutorial:update_firmware_tftp [2017/12/14 16:38] schmiden:general_information:tutorial:update_firmware_tftp [2018/05/24 09:55] – ↷ Links adapted because of a move operation liedmann
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 download them to the eMMC or SD Card.\\  +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.\\  
  
  
Line 8: Line 8:
  
  
-1. Boot from eMMC or SD and stop autoboot\\ +1. Boot from eMMC or SD and stop autoboot in U-Boot\\ 
-2. Set U-Boot variable mmcdev  according to the drive you want to write to (mmcdev 0 = eMMCmmcdev 1 = SD card)\\ +<code>Hit any key to stop autoboot: 
 +=></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 device via ethernet to a tftp server supplying the image\\ 3. Connect device via ethernet to a tftp server supplying the image\\
-4. Provide the correct network configuration:  +4. Provide the correct network configuration in U-Boot:  
-  * 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 server:  +5. Provide U-Boot the file name of the desired image on the tftp server:  
-  * For U-Boot:setenv uboot <filename>  +  * ++For U-Boot update:| \\ 
-  * For device tree:setenv fdt_file <filename> +\\ 
-  * For Kernel:setenv kernel <filename> +<wrap info>TQMa6x, TQMa6ULx, TQMa7x, TQMLS102xA:</wrap>\\ 
-6.Perform Update:  +=> setenv uboot <filename>\\ 
-  * For U-Boot: run update_uboot  +\\ 
-  * For devicetree: run update_fdt +<wrap info>TQMa335x: please see [[en:arm:tqma335x:linux:ptxdist:deployment#Updating the firmware|Updating the firmware]]</wrap>\\ 
-  * 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:02