public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5] palmtreo680: add utility that writes u-boot to flash
Date: Sat, 20 Apr 2013 12:25:28 +0200	[thread overview]
Message-ID: <201304201225.28510.marex@denx.de> (raw)
In-Reply-To: <1366399701-2446-1-git-send-email-mikedunn@newsguy.com>

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

  reply	other threads:[~2013-04-20 10:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-19 19:28 [U-Boot] [PATCH v5] palmtreo680: add utility that writes u-boot to flash Mike Dunn
2013-04-20 10:25 ` Marek Vasut [this message]
2013-04-20 16:37   ` Mike Dunn
2013-04-20 17:12     ` Marek Vasut
2013-04-20 17:53   ` Mike Dunn
2013-04-20 18:01     ` Marek Vasut
2013-04-20 19:07       ` Mike Dunn
2013-04-26  8:34         ` Smithlife

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201304201225.28510.marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox