[U-Boot-Users] [T-Engine] UBoot configuration for T-Engine/SH7727 MS7727CP02 DevKit

thaoth thaoth at cybersoft-vn.com
Thu Aug 7 13:03:48 CEST 2008


Dear All,

I would like to port a Uboot loader on T-Engine/SH7727 MS7727CP02 DevKit.
Here is the configuration of this board

Renesas Technology SH7727(SH3-DSP, internal clock 96MHz / external clock
48MHz)
Flash Memory: 8MB
SDRAM: 32MB

Memory map of overall system is shown as below.

     0x00000000 +-------------------------------+--------
                |          User area        (P0)|
     0x10000000 +-------------------------------+
                |          (Unused)         (P0)|    Enabled as a virtual
memory
     0x40000000 +-------------------------------+
                |   System / Common area(1) (P0)|
     0x80000000 +-------------------------------+--------
                |    Physical memory area  (P1) |
                |       (Cache On)              |
     0xa0000000 +-------------------------------+
                |    Physical memory area  (P2) |
                |       (Cache Off)             |
     0xc0000000 +-------------------------------+--------
                |    System/Common area(2) (P3) |    Enabled as a virtual
memory
     0xe0000000 +-------------------------------+--------
                |          I/O area        (P4) |
     0xffffffff +-------------------------------+

Physical memory area (P1 area) memory map is shown as below.

     0x80000000 +-------------------------------+--------
                |         ROM area(8MB)         |  Area 0
                |   (Unused area included)      |
     0x84000000 +-------------------------------+--------
                |           I/O area            |  Area 1-2
                |   (Not used as a general rule)|
     0x8c000000 +-------------------------------+--------
                |         RAM area(64MB)        |  Area 3
     0x90000000 +-------------------------------+--------
                |           I/O area            |  Area 4-7
                |   (Not used as a general rule)|
     0xa0000000 +-------------------------------+--------


Here is configuration of UBoot
\board\ms7727se\config.mk :            TEXT_BASE = 0x8DFC0000
\board\ms7727se\u-boot.lds 

OUTPUT_FORMAT("elf32-sh-tkernel", "elf32-sh-tkernel", "elf32-sh-tkernel")
SECTIONS
{
	. = 0x8C000000 + (32*1024*1024) - (256*1024);

\include\configs\ms7727se.h
/* MEMORY */
#define MS7720SE_SDRAM_BASE		0x8C000000
#define MS7720SE_FLASH_BASE_1		0x80000000 //0xA0000000
#define MS7720SE_FLASH_BANK_SIZE	(8 * 1024 * 1024)

#define CFG_MEMTEST_START	MS7720SE_SDRAM_BASE
#define CFG_MEMTEST_END		(CFG_MEMTEST_START + (60 * 1024 * 1024))

#define CFG_SDRAM_BASE		MS7720SE_SDRAM_BASE
#define CFG_SDRAM_SIZE		(32 * 1024 * 1024)

#define CFG_LOAD_ADDR		(CFG_SDRAM_BASE + 32 * 1024 * 1024)
#define CFG_MONITOR_BASE	MS7720SE_FLASH_BASE_1
#define CFG_MONITOR_LEN		(128 * 1024)
#define CFG_MALLOC_LEN		(256 * 1024)
#define CFG_GBL_DATA_SIZE	256
#define CFG_BOOTMAPSZ		(8 * 1024 * 1024)


/* FLASH */
#define CFG_FLASH_CFI
#define CFG_FLASH_CFI_DRIVER
#undef  CFG_FLASH_QUIET_TEST
#define CFG_FLASH_EMPTY_INFO	/* print 'E' for empty sector on flinfo */

#define CFG_FLASH_BASE		MS7720SE_FLASH_BASE_1



Would you please help me have a look this setting?
1. Is this setting correct ? I am confusing about TEXT_BASE with
CFG_LOAD_ADDR. Here is definition
- CFG_FLASH_BASE:
		Physical start address of Flash memory.

- CFG_MONITOR_BASE:
		Physical start address of boot monitor code (set by
		make config files to be same as the text base address
		(TEXT_BASE) used when linking) - same as
		CFG_FLASH_BASE when booting from flash.

If I am wrong, please tell me how to correct these setting.

2. "ld" T-Engine toolchain only supports elf32-sh-tkernel target, but
reference implementation (example) tell "elf32-sh-linux" is expected target.
Is the setting correct?

\board\ms7727se\u-boot.lds 
Original :
OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux")
-> My changes
OUTPUT_FORMAT("elf32-sh-tkernel", "elf32-sh-tkernel", "elf32-sh-tkernel")


I am newbie in embedded system. I am appreciating your helping.
Thank you a lot.
-- 
View this message in context: http://www.nabble.com/-T-Engine--UBoot-configuration-for-T-Engine-SH7727-MS7727CP02-DevKit-tp18868090p18868090.html
Sent from the Uboot - Users mailing list archive at Nabble.com.





More information about the U-Boot mailing list