Supporting new flash in pflash
Norman James
njames at us.ibm.com
Thu Nov 19 03:32:16 AEDT 2015
I used a flash chip that pflash does recognize and it fails with this:
root at barreleye:~# pflash -b -i
LIBFLASH: Failed to set controller 4b mode
LIBFLASH: Flash configuration failed
Failed to open flash chip
It is like the BMC is holding it hostage?
Regards,
Norman James
IBM - POWER Systems Architect
Phone: 1-512-286-6807 (T/L: 363-6807)
Internet: njames at us.ibm.com
From: Joel Stanley <joel at jms.id.au>
To: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Cc: OpenBMC Maillist <openbmc at lists.ozlabs.org>
Date: 11/18/2015 12:54 AM
Subject: Supporting new flash in pflash
Sent by: "openbmc" <openbmc-bounces+njames=us.ibm.com at lists.ozlabs.org>
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?
Cheers,
Joel
_______________________________________________
openbmc mailing list
openbmc at lists.ozlabs.org
https://lists.ozlabs.org/listinfo/openbmc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20151118/607e0607/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20151118/607e0607/attachment.gif>
More information about the openbmc
mailing list