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