
Yuli Barcohen yuli@arabellasw.com wrote:
Sounds like it's the (in)famous byte lanes swapping issue. It's so
[snip]
system to test it (my tree is not fully merged with official GIT right now so I'm not sending a patch, I can prepare one if you think the approach is OK).
Indeed, I applied this CFI Driver on MPC7448HPC2 and it did work. But a small puzzle is that CFG_FLASH_CFI_SWAP shouldn't be tied to __LITTLE_ENDIAN. According to my test, they two can be set separetely.
diff --git a/include/configs/taiga.h b/include/configs/taiga.h index 8d4e9ad..878f268 100644 --- a/include/configs/taiga.h +++ b/include/configs/taiga.h @@ -500,6 +500,7 @@ #define CFG_BOOTMAPSZ (8<<20) /* Init */ #define CFG_FLASH_CFI 1 #define CFG_FLASH_CFI_DRIVER 1 +#define CFG_FLASH_CFI_SWAP #define CFG_FLASH_USE_BUFFER_WRITE 1 /* Disable CFG_FLASH_USE_BUFFER_WRITE is OK */ #define CFG_MAX_FLASH_BANKS 1
Thanks a lot,
Sam
__________________________________________________ 赶快注册雅虎超大容量免费邮箱? http://cn.mail.yahoo.com