]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ARM: UniPhier: add environment variable to update images in NAND
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 5 Feb 2015 05:30:22 +0000 (14:30 +0900)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 10:59:07 +0000 (12:59 +0200)
commit74b9eb2a6df73c6bba996801104d4ac85345f73c
treef1e2058e8d90d33bb5addb5ef207f1638a0f170e
parent540a838291378bf010dfac4c9d7680f4ab57b15d
ARM: UniPhier: add environment variable to update images in NAND

To boot UniPhier boards with the NAND boot mode, two images
(u-boot-spl.bin and u-boot-dtb.img) must be written at the correct
offset addresses.

TFTP downloading is useful to update such images in the NAND device.
We generally do:

  => nand erase 0 0x100000
  => tftpboot u-boot-spl.bin
  => nand write $loadaddr 0 0x10000
  => tftpboot u-boot-dtb.img
  => nand write $loadaddr 0x10000 0xf0000

It is a tedious and error-prone operation.

This commit provides the shorthand:

  => run nandupdate

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
include/configs/uniphier.h