[U-Boot-Users] IXDP size comments and board reset issue

Hi all,
i am confused by the following comments: 1. board/ixdp425/flash.c switch (value) {
case (FPW) INTEL_ID_28F128J3A: info->flash_id += FLASH_28F128J3A; info->sector_count = 128; info->size = 0x02000000; break; /* => 16 MB */
the comment shows 16 mb (correctly) while it's assigned 32 mb
2. configs/ixdp425.h /* * Physical Memory Map */ #define CONFIG_NR_DRAM_BANKS 1 /* we have 2 banks of DRAM */
defined 1 but commented 2 banks.
am i missing something?
Also I have another issue regarding to reset. After linux reboot, it calls hardware reset (arch_reset). My board hangs. The same linux build resets fine with RedBoot. Is there anything specific here? (i do not have debugger to debug it myself :( )
Thanks! Ara

Ara Avanesyan araav@hylink.am wrote:
i am confused by the following comments:
- board/ixdp425/flash.c
switch (value) {
case (FPW) INTEL_ID_28F128J3A: info->flash_id += FLASH_28F128J3A; info->sector_count = 128; info->size = 0x02000000; break; /* => 16 MB */
the comment shows 16 mb (correctly) while it's assigned 32 mb
Actually, it's the comment updating later than code. In this case, try to believe yourself. Most cases, I perfer to believe code itself rather than comment:-)
am i missing something?
No, the writer was too busy to synchronize them.
Also I have another issue regarding to reset. After linux reboot, it calls hardware reset (arch_reset). My board hangs. The same linux build resets fine with RedBoot. Is there anything specific here? (i do not have debugger to debug it myself :( )
Well, an uneducated hint. Could you define CFG_RESET_ADDRESS in <YOUR-BOARD.h> ?
===== Best regards,
Sam
_________________________________________________________ Do You Yahoo!? 150万曲MP3疯狂搜,带您闯入音乐殿堂 http://music.yisou.com/ 美女明星应有尽有,搜遍美图、艳图和酷图 http://image.yisou.com 1G就是1000兆,雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1...

Also I have another issue regarding to reset. After linux reboot, it calls hardware reset (arch_reset). My board hangs. The same linux build resets fine with RedBoot. Is there anything specific here? (i do not have debugger to debug it myself :( )
Well, an uneducated hint. Could you define CFG_RESET_ADDRESS in <YOUR-BOARD.h> ?
Oh, seems I figured out what's the problem. That is, after ixdp reset the flash is not resetted and is in undefined state. There is a good discussion about this topic at arm-linux mailing list. One needs to manually reset flash somewhere before the arch_reset function.
Hey I got u-boot running on avila board, i'll soon write a small description of how i ported it.
participants (2)
-
Ara Avanesyan
-
Sam Song