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
Last revisionBoth sides next revision
en:general_information:tutorial:uboot_tools [2019/09/09 14:33] liedmannen:general_information:tutorial:uboot_tools [2022/05/27 14:46] – [Edit U-Boot Environment] update command franzwesselmann
Line 2: Line 2:
  
 ===== U-Boot Tools ===== ===== U-Boot Tools =====
 +
 +U-Boot provides two tools to read **fw_printenv** and  edit **fw_setenv** the U-Boot environment from the Linux shell.   The U-Boot tools are selected by default in PTXdist based BSP's. This tutorial describes how to setup the configuration file and the usage of the tools mentioned above.  
  
 <WRAP round info 90%>Working with U-Boot tools requires that the U-Boot environment has been saved with the ''saveenv'' command in U-Boot, otherwise the U-Boot tools are using the default environment.\\       <WRAP round info 90%>Working with U-Boot tools requires that the U-Boot environment has been saved with the ''saveenv'' command in U-Boot, otherwise the U-Boot tools are using the default environment.\\      
 If a redundant environment is configured the ''saveenv'' command must be executed twice.</WRAP> If a redundant environment is configured the ''saveenv'' command must be executed twice.</WRAP>
  
-U-Boot provides two tools to read **fw_setenv** and  edit **fw_printenv** the U-Boot environment from the Linux shell.   The U-Boot tools are selected by default in PTXdist based BSP's. This tutorial describes how to setup the configuration file and the usage of the tools mentioned above.   
  
 ==== Customising The Config File ==== ==== Customising The Config File ====
Line 18: Line 19:
 # THIS IS VALID FOR TQMa7 eMMC only! # THIS IS VALID FOR TQMa7 eMMC only!
 # eMMC Block device access # eMMC Block device access
-/dev/mmcblk0            0x100000        0x2000+/dev/mmcblk0            0x100000        0x2000
 # if using with redundant env # if using with redundant env
-/dev/mmcblk0           0x102000        0x2000+/dev/mmcblk0           0x102000        0x2000
 </code> </code>
  
Line 27: Line 28:
 # THIS IS VALID FOR TQMa7 SD-card only! # THIS IS VALID FOR TQMa7 SD-card only!
 # eMMC Block device access # eMMC Block device access
-/dev/mmcblk1            0x100000        0x2000+/dev/mmcblk1            0x100000        0x2000
 # if using with redundant env # if using with redundant env
-/dev/mmcblk1           0x102000        0x2000+/dev/mmcblk1           0x102000        0x2000
 </code> </code>
 ++++ ++++
Line 38: Line 39:
 # THIS IS VALID FOR TQMa6UL eMMC only! # THIS IS VALID FOR TQMa6UL eMMC only!
 # eMMC Block device access # eMMC Block device access
-/dev/mmcblk0           0x100000        0x2000+/dev/mmcblk0           0x100000        0x2000
 # if using with redundant env # if using with redundant env
-/dev/mmcblk0           0x102000        0x2000+/dev/mmcblk0           0x102000        0x2000
 </code> </code>
  
Line 47: Line 48:
 # THIS IS VALID FOR TQMa6UL SD-card only! # THIS IS VALID FOR TQMa6UL SD-card only!
 # eMMC Block device access # eMMC Block device access
-/dev/mmcblk1           0x100000        0x2000+/dev/mmcblk1           0x100000        0x2000
 # if using with redundant env # if using with redundant env
-/dev/mmcblk1           0x102000        0x2000+/dev/mmcblk1           0x102000        0x2000
 </code> </code>
 ++++ ++++
Line 58: Line 59:
 # THIS IS VALID FOR TQMa6x eMMC only! # THIS IS VALID FOR TQMa6x eMMC only!
 # eMMC Block device access # eMMC Block device access
-/dev/mmcblk0           0x100000        0x2000+/dev/mmcblk0           0x100000        0x2000
 # if using with redundant env # if using with redundant env
-/dev/mmcblk0           0x102000        0x2000+/dev/mmcblk0           0x102000        0x2000
 </code> </code>
  
Line 67: Line 68:
 # THIS IS VALID FOR TQMa6x SD-card only! # THIS IS VALID FOR TQMa6x SD-card only!
 # eMMC Block device access # eMMC Block device access
-/dev/mmcblk1           0x100000        0x2000+/dev/mmcblk1           0x100000        0x2000
 # if using with redundant env # if using with redundant env
-/dev/mmcblk1           0x102000        0x2000+/dev/mmcblk1           0x102000        0x2000
 </code> </code>
 ++++ ++++
Line 78: Line 79:
 # THIS IS VALID FOR TQMa28 eMMC only! # THIS IS VALID FOR TQMa28 eMMC only!
 # eMMC Block device access # eMMC Block device access
-/dev/mmcblk0           0x400           0x1FC00+/dev/mmcblk0           0x400           0x1FC00
 </code> </code>
 ===SD Card=== ===SD Card===
Line 84: Line 85:
 # THIS IS VALID FOR TQMa28 SD-card only! # THIS IS VALID FOR TQMa28 SD-card only!
 # eMMC Block device access # eMMC Block device access
-/dev/mmcblk1           0x400           0x1FC00+/dev/mmcblk1           0x400           0x1FC00
 </code> </code>
 ++++ ++++
Line 93: Line 94:
 # THIS IS VALID FOR TQMLS102xA SD-Card and eMMC! # THIS IS VALID FOR TQMLS102xA SD-Card and eMMC!
 # eMMC Block device access # eMMC Block device access
-/dev/mmcblk0            0x100000        0x8000+/dev/mmcblk0            0x100000        0x8000
 # if using with redundant env # if using with redundant env
-/dev/mmcblk0            0x108000        0x8000+/dev/mmcblk0            0x108000        0x8000
 </code> </code>
 ===SPI NOR=== ===SPI NOR===
 <code> <code>
 # THIS IS VALID FOR TQMLS102xA SPI NOR only! # THIS IS VALID FOR TQMLS102xA SPI NOR only!
-/dev/mtd1              0x100000         0x8000          0x10000+/dev/mtd1              0x100000         0x8000          0x10000
 </code> </code>
 ++++ ++++
  • Last modified: 2022/08/04 15:02