Flashing Image using 'pflash' Tool

AKASH G J akashgj91 at gmail.com
Fri Nov 9 19:56:58 AEDT 2018


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 at gmail.com> wrote:

> On Thu, Nov 8, 2018 at 6:05 PM AKASH G J <akashgj91 at gmail.com> wrote:
> >
> > I tried to flash kernel image fitImage.bin to the flash memory address
> 0x20100000 using the following command.
> >
> > root at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20181109/cc3d1ac6/attachment.html>


More information about the openbmc mailing list