[U-Boot] [PATCH v5] palmtreo680: add utility that writes u-boot to flash

Marek Vasut marex at denx.de
Sat Apr 20 12:25:28 CEST 2013


Dear Mike Dunn,

> 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.

I fixed the calloc() semantics and applied, thanks. Please repost whatever is 
still missing in u-boot-pxa/master and I'll then roll pullRQ for mainline.

Best regards,
Marek Vasut


More information about the U-Boot mailing list