Flashing Image using 'pflash' Tool

Cédric Le Goater clg at kaod.org
Tue Nov 13 05:43:10 AEDT 2018


On 11/8/18 11:04 AM, AKASH G J wrote:
> I tried to flash kernel image /fitImage.bin/ to the flash memory address /0x20100000/ using the following command.


If you are trying to flash a custom BMC kernel only and bypassing 
the standard procedure to do so, you should update the correct
MTD device with dd or flashcp.

	# cat /proc/mtd 
	dev:    size   erasesize  name
	mtd0: 02000000 00010000 "bmc"
	mtd1: 00060000 00010000 "u-boot"
	mtd2: 00020000 00010000 "u-boot-env"
	mtd3: 00440000 00010000 "kernel"
	mtd4: 01740000 00010000 "rofs"
	mtd5: 00400000 00010000 "rwfs"
	mtd6: 02000000 00010000 "pnor"

I don't have a zaius but it should be roughly similar.  

Cheers,

C.


> 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.
> //
> 
> Thanks and Regards ,
> 
> Akash G J



More information about the openbmc mailing list