Changes between Version 8 and Version 9 of ventana/bootloader
- Timestamp:
- 11/29/2018 08:20:18 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ventana/bootloader
v8 v9 276 276 277 277 The partitioning scheme Gateworks uses for NAND flash storage is as follows: 278 ||= Start =||= Size=||= Usage =||278 ||= Start =||= Len =||= Usage =|| 279 279 || 0K || 14MB || SPL || 280 280 || 14MB || 16MB || U-Boot || … … 461 461 [=#uboot-envtools] 462 462 === U-Boot envtools (fw_printenv / fw_setenv) === 463 The {{{ uboot-envtools}}} {{{ u-boot-tools #in Ubuntu}}} package provides tools to allow reading and writing to U-Boot's env variables provided you have a proper configuration file.463 The {{{fw_printenv}}} and {{{fw_setenv}}} tools from U-Boot provide a way to allow reading and writing to U-Boot's env variables provided you have a proper configuration file. On OpenWrt these are in the {{{uboot-envtools}}} package and on Ubuntu they are in the {{{u-boot-tools}}} package. 464 464 465 465 Assuming your using a board with NAND flash as the primary boot device and the U-Boot env is in the 2nd partition the following shows a valid config file: … … 471 471 mtd2: 7ef00000 00040000 "rootfs" 472 472 cat /etc/fw_env.config 473 # device offset size erasesize 473 474 /dev/mtd1 0x0 0x20000 0x40000 474 475 /dev/mtd1 0x80000 0x20000 0x40000 … … 478 479 {{{#!bash 479 480 cat /etc/fw_env.config 481 # device offset size erasesize 480 482 /dev/mmcblk0 0xb1400 0x20000 0x20000 481 483 /dev/mmcblk0 0xd1400 0x20000 0x20000