Flashing Image using 'pflash' Tool

Adriana Kobylak anoo at linux.ibm.com
Tue Nov 13 05:37:16 AEDT 2018

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 

An alternate tool would be "dd"
The command could look like:
dd if=fitImage.bin of=/dev/mtd0 --skip=0x20100000 -bs=1

More information about the openbmc mailing list