]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
pxa: palmtreo680 flash programming utility
authorMike Dunn <mikedunn@newsguy.com>
Tue, 18 Jun 2013 18:08:51 +0000 (11:08 -0700)
committerMarek Vasut <marex@denx.de>
Sat, 22 Jun 2013 13:25:28 +0000 (15:25 +0200)
commit3497d43215b6919e680fefe59b38b71516adf2a0
treef062538ff8248f4897bc89de86bc5b385c5f1942
parent0dc0e846f3634fcc728f086ae1b7a4b76294e4c9
pxa: palmtreo680 flash programming utility

This adds a userspace linux utility that writes the u-boot image to an mtd
partition on the docg4 nand flash.

A special utility is required to do this because u-boot is partially loaded by
an initial program loader (IPL) that is permanently programmed to the boot
region of the flash.  This IPL expects the image to be written in a unique
format. The characteristics of this format can be summarized as follows:
  - Flash blocks to be loaded must have a magic number in the oob bytes of the
    first page of the block.
  - Each page must be written redundantly in the subsequent page.
  - The integrated flash controller's "reliable mode" is used, requiring that
    alternate 2k regions (4 pages) are skipped when writing.
For these reasons, a u-boot image can not be written using nandwrite from
mtd-utils.

Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
tools/palmtreo680/flash_u-boot.c [new file with mode: 0644]