All of lore.kernel.org
 help / color / mirror / Atom feed
From: AKASH G J <akashgj91@gmail.com>
To: Yu Lei <mine260309@gmail.com>
Cc: openbmc@lists.ozlabs.org
Subject: Re: Flashing Image using 'pflash' Tool
Date: Mon, 12 Nov 2018 17:51:24 +0530	[thread overview]
Message-ID: <CAE33tLFNadnXJEW4ZeSGJ-hM2=HA2s4eqMsXp2fzAJtU=KP0Ag@mail.gmail.com> (raw)
In-Reply-To: <CAE33tLGjGmj5c_isgPmh6Xx_6S8E0X5B2b7pkJQ1tz2Ps-P+8w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1531 bytes --]

Is there any other utility in OpenBMC Linux for writing a file to a
specified address in flash memory?

On Fri, Nov 9, 2018 at 2:26 PM AKASH G J <akashgj91@gmail.com> wrote:

> I tried the command *pflash -b -e -a 0x20100000 -f -p fitImage.bin*
>
> It is showing the following error.
>
>
>
>
>
> *WARNING: Erase at 0x20100000 for 0x00271e20 isn't erase block
> aligned           About to erase 0x20100000..0x20371e20
> !
> Erasing...
> [                                                  ] 0%mtd_erase: IOCTL to
> kerntFailed to blocklevel_smart_erase(): 3 *
>
> On Fri, Nov 9, 2018 at 9:22 AM Lei YU <mine260309@gmail.com> wrote:
>
>> On Thu, Nov 8, 2018 at 6:05 PM AKASH G J <akashgj91@gmail.com> wrote:
>> >
>> > I tried to flash kernel image fitImage.bin to the flash memory address
>> 0x20100000 using the following command.
>> >
>> > root@zaius:/var# pflash -a 0x20100000 -f -p fitImage.bin
>> >
>> > It exited with following error.
>> >
>> > About to program "fitImage.bin" at 0x20100000..0x20371e20 !
>> > Programming & Verifying...
>> > [                                                  ] 0%Flash write
>> error 3 for chunk at 0x20100000
>> >
>> > Please someone help to resolve the problem.
>>
>> 1. pflash defaults to operate on the PNOR chip. If you want to flash the
>> BMC
>>    chip, you need "-b" argument.
>> 2.To program a flash area, you need to erase before writing, so you need
>> "-e"
>>    argument.
>>
>> Putting together, you command should look like:
>> pflash -b -e -a 0x20100000 -f -p fitImage.bin
>>
>

[-- Attachment #2: Type: text/html, Size: 2782 bytes --]

  reply	other threads:[~2018-11-12 12:21 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 [this message]
2018-11-12 18:37       ` Adriana Kobylak
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='CAE33tLFNadnXJEW4ZeSGJ-hM2=HA2s4eqMsXp2fzAJtU=KP0Ag@mail.gmail.com' \
    --to=akashgj91@gmail.com \
    --cc=mine260309@gmail.com \
    --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.