public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: thaoth <thaoth@cybersoft-vn.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [T-Engine] UBoot configuration for T-Engine/SH7727 MS7727CP02 DevKit
Date: Thu, 7 Aug 2008 04:03:48 -0700 (PDT)	[thread overview]
Message-ID: <18868090.post@talk.nabble.com> (raw)


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.

             reply	other threads:[~2008-08-07 11:03 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-07 11:03 thaoth [this message]
2008-08-08  1:35 ` [U-Boot-Users] [T-Engine] UBoot configuration for T-Engine/SH7727 MS7727CP02 DevKit Nobuhiro Iwamatsu
2008-08-08  7:51   ` thaoth
2008-08-08  8:59     ` Nobuhiro Iwamatsu
2008-08-20  4:02       ` [U-Boot] " thaoth
2008-08-20  7:40         ` Nobuhiro Iwamatsu
2008-08-21  7:26           ` thaoth
2008-08-21  9:54             ` thaoth
2008-08-21 11:27               ` thaoth
2008-09-03  3:48           ` thaoth
2008-09-10 11:51       ` thaoth
2008-09-10 12:13         ` Nobuhiro Iwamatsu
2008-09-11  2:17           ` Yoshihiro Shimoda
2008-09-11  7:41             ` thaoth
2008-09-11 12:00               ` Yoshihiro Shimoda
2008-09-12  5:46                 ` thaoth
2008-09-12  6:44                   ` Yoshihiro Shimoda
2008-09-12 10:05                     ` thaoth
2008-09-12 10:53                       ` Yoshihiro Shimoda
2008-09-12 10:58                         ` thaoth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18868090.post@talk.nabble.com \
    --to=thaoth@cybersoft-vn.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox