Changes between Version 8 and Version 9 of ventana/bootloader


Ignore:
Timestamp:
11/29/2018 08:20:18 PM (10 months ago)
Author:
Tim Harvey
Comment:

added more comments to env section and fix typo in nand flash map

Legend:

Unmodified
Added
Removed
Modified
  • ventana/bootloader

    v8 v9  
    276276
    277277The partitioning scheme Gateworks uses for NAND flash storage is as follows:
    278 ||= Start =||= Size =||= Usage                  =||
     278||= Start =||= Len =||= Usage                  =||
    279279|| 0K      || 14MB   || SPL                      ||
    280280|| 14MB    || 16MB   || U-Boot                   ||
     
    461461[=#uboot-envtools]
    462462=== 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.
     463The {{{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.
    464464
    465465Assuming 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:
     
    471471mtd2: 7ef00000 00040000 "rootfs"
    472472cat /etc/fw_env.config
     473# device  offset size erasesize
    473474/dev/mtd1 0x0 0x20000 0x40000
    474475/dev/mtd1 0x80000 0x20000 0x40000
     
    478479{{{#!bash
    479480cat /etc/fw_env.config
     481# device  offset size erasesize
    480482/dev/mmcblk0 0xb1400 0x20000 0x20000
    481483/dev/mmcblk0 0xd1400 0x20000 0x20000