Where does U-Boot's CFI driver check for top/bottom boot?
Early on AMD (now SPANSION), had typo in there data sheet for this MODEL# 3 and 4. Later on they corrected the data sheet.
Yes, this field can be used to verify the sector layout to see if it is bottom boot or topboot.
Thanks
Yogi
----- Original Message ----
From: Timur Tabi <[email protected]>
To: Tolunay Orkun <[email protected]>
Cc: u-boot-users at lists.sourceforge.net
Sent: Monday, November 6, 2006 2:00:12 PM
Subject: Re: [U-Boot-Users] Where does U-Boot's CFI driver check for top/bottom boot?
Quoted 6 lines · Tolunay Orkun
I just looked at the datasheet of your flash part as well as datasheet of a couple of intel flash parts as well as the current code. As I suspected for your particular part, it looks like they are using the same values for "Erase Bank Area 1" and "Erase Bank Area 2" irrespective of top boot or bottom boot flash. I think, this is fundamentally wrong and non-compliant with the general CFI standard.
Using the PDF you specified, I see that my chip has a value of 03h for the "Top/Bottom Boot Sector Flag", at offset (P+F)h. That indicates a top-boot, which is correct (smaller sectors at the end of memory).
Why can't we just check this byte if we're on an AMD part, and adjust accordingly?
Signature · 12 lines
Timur Tabi Linux Kernel Developer @ Freescale ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ U-Boot-Users mailing list U-Boot-Users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users