Skip to contentSkip to conversation

IXDP size comments and board reset issue

U-Boot-Users Ara Avanesyan 2 participants 3 messages Jan 17, 2005 – Jan 20, 2005 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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

#2 lore raw

Ara Avanesyan <[email protected]> wrote?

Quoted 4 lines

i am confused by the following comments:
1. board/ixdp425/flash.c
switch (value) {

Quoted 8 lines

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:-)

Quoted 1 line

am i missing something?

No, the writer was too busy to synchronize them.

Quoted 7 lines

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_1g/

#3 lore raw
Quoted 11 lines
Quoted 7 lines

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.