* [U-Boot-Users] CFI support for flash with hardware write-protect.
@ 2007-06-29 19:09 Edward Jubenville
2007-07-03 12:15 ` Stefan Roese
0 siblings, 1 reply; 2+ messages in thread
From: Edward Jubenville @ 2007-06-29 19:09 UTC (permalink / raw)
To: u-boot
We have a built a custom board with onboard flash and using CFI. Our design
supports a jumper that enables hardware write-protection on the flash, but
u-boot will not come up with the jumper installed. It fails due to code in
drivers/cfi_flash.c that must write a command word to detect the flash
configuration.
Is there an elegant way to override the CFI discovery process, prefilling
flash_info[] with the details of our flash hardware? Our board will boot if
we hardcode our flash settings and bypass auto-detection, but I was
wondering if somebody has a patch to cfi_flash.c to do it through
configuration parameters.
In case you are wondering, we cannot use software write-protect because our
equipment must conform with a security directive from the U.S. Department of
Defense, paraphrased:
"There shall be no user-modifiable, non-removable, persistent storage."
The onboard flash cannot be removed from the unit, and therefore may not be
allowed to be written by an operator (e.g., by stopping in u-boot). Forcing
somebody to disassemble the unit to switch a jumper is apparently acceptable
to the security guys.
Thanks,
Ed Jubenville
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] CFI support for flash with hardware write-protect.
2007-06-29 19:09 [U-Boot-Users] CFI support for flash with hardware write-protect Edward Jubenville
@ 2007-07-03 12:15 ` Stefan Roese
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2007-07-03 12:15 UTC (permalink / raw)
To: u-boot
Hi Ed,
On Friday 29 June 2007, Edward Jubenville wrote:
> We have a built a custom board with onboard flash and using CFI. Our
> design supports a jumper that enables hardware write-protection on the
> flash, but u-boot will not come up with the jumper installed. It fails due
> to code in drivers/cfi_flash.c that must write a command word to detect the
> flash configuration.
>
> Is there an elegant way to override the CFI discovery process, prefilling
> flash_info[] with the details of our flash hardware?
No, there is no elegant method for this right now. But I'm wondering why your
board crashes upon writes. You seem to have disabled writes in the chip
selects, correct? Why did you have to do this?
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-03 12:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-29 19:09 [U-Boot-Users] CFI support for flash with hardware write-protect Edward Jubenville
2007-07-03 12:15 ` Stefan Roese
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox