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:uboot_tools [2019/09/09 14:30] – [U-Boot Tools] liedmannen:general_information:tutorial:uboot_tools [2022/08/04 15:02] (current) – external edit 127.0.0.1
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 ====
-The U-Boot Tools need a proper configuration in /etc/fw_env.config. The memory offset and environment size have to be configured in the config file. \\  In case of a unmanaged memory (e.g. SPI NOR) the block size also has to be configured. The example configurations below refers to the default partitioning of our BSP's.  + 
 +The U-Boot Tools need a proper configuration of environment size and memory offset in the /etc/fw_env.config file. \\  In case of a unmanaged memory (e.g. SPI NOR) the block size also has to be configured. The example configurations below refers to the default partitioning of our BSP's.  
  
  
Line 17: 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 26: 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 37: 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 46: 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 57: 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 66: 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 77: 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 83: 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 92: 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:04