Supporting new flash in pflash

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu Nov 19 07:09:40 AEDT 2015


On Wed, 2015-11-18 at 17:23 +1030, Joel Stanley wrote:
> Hi Ben,
> 
> On the barreleye BMC we have a 32MB flash. I can pflash -i the system
> pnor, but when I attempt to look at the BMC flash, It errors out.
> 
> u-boot indicated that it's a 0x20ba19, so I added this to the
> flash_info table.
> 
> +       { 0x20ba19, 0x02000000, FL_ERASE_4K  | FL_ERASE_64K |
> FL_CAN_4B |
> +                                FL_ERASE_BULK | FL_MICRON_BUGS,
> +                                                          "Micron
> N25Q256A"    },
> 
> However this fails:
> 
> root at barreleye:~# ./pflash -i -b
> LIBFLASH: Failed to set controller 4b mode
> LIBFLASH: Flash configuration failed
> Failed to open flash chip
> 
> Do you have any ideas?

Not off the top of my mind. I think Norm is shipping us a couple of
these chips. Otherwise, catch me later today or tomorrow and I'll have
a look.

> Cheers,
> 
> Joel


More information about the openbmc mailing list