[U-Boot-Users] FW: A starter of por ting u -bo ot to a new boar d(by yeshi208 at 126.co m)

yeshi208 at 126.com yeshi208 at 126.com
Sun Apr 29 07:37:55 CEST 2007


 
 
 ---------- 转发邮件信息 ----------
From:yeshi208 at 126.com
Date:2007-04-29 13:07:04
Subject:[U-Boot-Users] A starter of por ting u-bo ot to a new boar d
To:"eric miao" 



Dear Eric:
  First, Thank you very much for your advice,and it is very important for me - A newer to u-boot. I have check my config.mk file , and I set TEXT_BASE = 0x30800000 there, It doesn't seem to be wrong, But I am not sure. So I will explan the situation of my board below , Please help me to find the reason , any suggestions are welcome:)
   The situations of my board:
========================================
0x20000000---->2 chip norFlash(Intel TE28F160)--->2x2MB
0x30000000---->2 chip SDRAM(SAMSUNG K4S641632K-UC75)--->2x8MB
 
When powered on, the board remap 0x20000000(flash) to 0x00000000,so it can boot from flash, and In the procedure of cpu_init_crit which is in start.S,After initialize the EMI(external memory interface) and PMU(power management unit),I remap 0x30000000 to 0x00000000, then it relocate itself if needed.
 
In the config file , I defined:
=========================================
#define CONFIG_NR_DRAM_BANKS 1    
#define PHYS_SDRAM_1  0x30000000
#define PHYS_SDRAM_1_SIZE 0x01000000 /* 16 MB */
#define PHYS_FLASH_1  0x20000000 /* Flash Bank #1 */
#define PHYS_FLASH_SIZE 0x00400000 /* 2 MB */
#define CFG_FLASH_BASE  PHYS_FLASH_1
/*-----------------------------------------------------------------------
 * FLASH organization
 */
#define CFG_MAX_FLASH_BANKS 1 /* max num of memory banks      */
#define CFG_MAX_FLASH_SECT 39 /* max num of sects on one chip */
#define CFG_FLASH_ERASE_TOUT 240000 /* Flash Erase Timeout (in ms)  */
#define CFG_FLASH_WRITE_TOUT 500  /* Flash Write Timeout (in ms)  */
 
questions
================================================
And I still can not know what the 'bank' here mean. The above just modified from other code.
 
And I also definee CFG_LOAD_ADDR=0x30800000 /* default load address */ here.
But I don't distinguish TEXT_BASE from CFG_LOAD_ADDR.
 
Looking forward for your replay:)
 
Best Wishes.
 
yeshi



免费试玩2006中国最佳网络游戏--梦幻西游 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070429/a5b35292/attachment.htm 


More information about the U-Boot mailing list