All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adriana Kobylak <anoo@linux.ibm.com>
To: AKASH G J <akashgj91@gmail.com>
Cc: Yu Lei <mine260309@gmail.com>,
	openbmc@lists.ozlabs.org,
	openbmc <openbmc-bounces+anoo=linux.ibm.com@lists.ozlabs.org>
Subject: Re: Flashing Image using 'pflash' Tool
Date: Mon, 12 Nov 2018 12:37:16 -0600	[thread overview]
Message-ID: <3dd89c4117a56d55468fa27da8d3a601@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAE33tLFNadnXJEW4ZeSGJ-hM2=HA2s4eqMsXp2fzAJtU=KP0Ag@mail.gmail.com>

On 2018-11-12 06:21, AKASH G J wrote:
> Is there any other utility in OpenBMC Linux for writing a file to a
> specified address in flash memory?

The pflash error "isn't erase block aligned" appears when the check for
64k erase blocks is turned on, and the specified address (0x20100000 in
this case) isn't 64k aligned. There may be more details about if there's
a way to switch this check on and off in the skiboot mailing list
(https://github.com/open-power/skiboot) where the pflash tool 
originates.

An alternate tool would be "dd"
(http://man7.org/linux/man-pages/man1/dd.1.html).
The command could look like:
dd if=fitImage.bin of=/dev/mtd0 --skip=0x20100000 -bs=1

  reply	other threads:[~2018-11-12 18:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-08 10:04 Flashing Image using 'pflash' Tool AKASH G J
2018-11-09  3:51 ` Lei YU
2018-11-09  8:56   ` AKASH G J
2018-11-12 12:21     ` AKASH G J
2018-11-12 18:37       ` Adriana Kobylak [this message]
2018-11-12 18:43 ` Cédric Le Goater

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=3dd89c4117a56d55468fa27da8d3a601@linux.vnet.ibm.com \
    --to=anoo@linux.ibm.com \
    --cc=akashgj91@gmail.com \
    --cc=mine260309@gmail.com \
    --cc=openbmc-bounces+anoo=linux.ibm.com@lists.ozlabs.org \
    --cc=openbmc@lists.ozlabs.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.