Hello Haavard, all,
this topic has now diverted to u-boot, as Linux is fixed. I am
posting in the existing thread to keep the information coherent.
On Tue, Sep 30, 2008 at 2:22 PM, Haavard Skinnemoen
I just checked on a custom design, AP7000 with AT49BV320DT, which
reports its top boot bit correctly.
info->device_id == c4 for this part.
The u-boot flash_fixup_atmel() currently reverses geometry whenever
the top boot bit is set, which seems wrong:
I have to force this to zero to make that custom board work in this
piece of code:
/* Check the "top boot" bit in the PRI */
if (info->ext_addr && !(flash_read_uchar(info, info->ext_addr + 6) & 1))
reverse_geometry = 1;
I was hesitating to come up with a patch, because some of the check is
#ifdef'd out, and I may have missed
a u-boot convention that I should layout my sectors as
bottom-boot-block in u-boot, and reverse_geometry if 'top'?
Indeed the single byte ID check may need attention. I have to lookup
the CFI specs to be sure.
Regards,
--
Leon
--