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 kernt
Failed to blocklevel_smart_erase(): 3


On Fri, Nov 9, 2018 at 9:22 AM Lei YU <mine260309@gmail.com> wrote:
On Thu, Nov 8, 2018 at 6:05 PM AKASH G J <akashgj91@gmail.com> wrote:
>
> I tried to flash kernel image fitImage.bin to the flash memory address 0x20100000 using the following command.
>
> root@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