Flashing Image using 'pflash' Tool
AKASH G J
akashgj91 at gmail.com
Mon Nov 12 23:21:24 AEDT 2018
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 at 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
> [ ] 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
>> chip, you need "-b" argument.
>> 2.To program a flash area, you need to erase before writing, so you need
>> Putting together, you command should look like:
>> pflash -b -e -a 0x20100000 -f -p fitImage.bin
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the openbmc