From: Peter Wright <peter.wright@utstar.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] (no subject)
Date: Fri, 5 May 2006 13:49:51 -0700 [thread overview]
Message-ID: <007601c67085$77b32bf0$3b8119ac@bc.ca.utstar.com> (raw)
I have a custom MPC8560 Board that I?ve been told to get U-Boot working on.
I?ve added in board definition into it and modified the default MPC8560ADS
configuration for it.? I have been able to burn it into flash on the board,
and step through it.? U-Boot boots up and configures the TLB and then jumps
to the proper place in FLASH to continue the load.? But it seems to go off
into the middle of nowhere when it comes to the serial_puts command.? From
the JTAG and using the memory map that U-Boot compile makes it gets into the
serial_puts function and then jumps off into main memory for some reason.?
It then halts at where the debugger says is an invalid opcode.
Has anyone seen these sorts of problems before?
The board I?ve been given is very bare.? It has 256 MByte DDR Main RAM,? 32
MByte Flash (64k sectors), Ethernet on MII, and Serial on SCC1.? Nothing
else on it.
This board use to run VxWorks so I took most of the settings used for that
and modified U-boot as following (I hope someone can tell me if I did
something wrong)
Made a new directory for the board
Copied the MPC8560ADS board files to the new location
Copied include/configs/MPC8560ADS.h? to a file matching my new board.
Modified the .h file to meet the new board definitions.? Removed the SDRAM
on LBC, and the SPD_EEPROM
Modified the DDR as follows:
??? #define CFG_SDRAM_SIZE????? 256???????????? /* DDR is 256MB */
??? #define CFG_DDR_CS0_BNDS??? 0x0000000f????? /* 0-256MB */
??? #define CFG_DDR_CS0_CONFIG? 0x80000102
??? #define CFG_DDR_TIMING_1??? 0x37344321
??? #define CFG_DDR_TIMING_2??? 0x00000800????? /* P9-45,may need tuning */
??? #define CFG_DDR_CONTROL???? 0xc2000000????? /* unbuffered,no DYN_PWR */
??? #define CFG_DDR_MODE??????? 0x00000062????? /* DLL,normal,seq,4/2.5 */
??? #define CFG_DDR_INTERVAL??? 0x05100100????? /* autocharge,no open page
*/
Modified flash section as:
#define CFG_FLASH_BASE????????? 0xfe000000????? /* start of FLASH 32M */
#define CFG_BR0_PRELIM????????? 0xfe001001????? /* port size 16bit */
#define CFG_OR0_PRELIM????????? 0xfe000797????? /* 16MB Flash */
#define CFG_MAX_FLASH_BANKS???? 1?????????????? /* number of banks */
#define CFG_MAX_FLASH_SECT????? 512???????????? /* sectors per device */
Which match the settings that were used for VxWorks for this area
I left I2C alone even though the board has no I2C? when I tried to remove it
u-boot wouldn?t compile.
I then modified init.S in the board directory so the TLB looks like:
tlb1_entry:
??????? entry_start
??????? /*
???????? * Number of TLB0 and TLB1 entries in the following table
???????? */
??????? .long 12
#if (CFG_CCSRBAR_DEFAULT != CFG_CCSRBAR)
??? ????/*
???????? * TLB0???????? 4K????? Non-cacheable, guarded
???????? * 0xff700000?? 4K????? Initial CCSRBAR mapping
???????? *
???????? * This ends up at a TLB0 Index==0 entry, and must not collide
???????? * with other TLB0 Entries.
???????? */
??????? .long TLB1_MAS0(0, 0, 0)
??????? .long TLB1_MAS1(1, 0, 0, 0, 0)
??????? .long TLB1_MAS2(E500_TLB_EPN(CFG_CCSRBAR_DEFAULT), 0,0,0,0,1,0,1,0)
??????? .long TLB1_MAS3(E500_TLB_RPN(CFG_CCSRBAR_DEFAULT),
0,0,0,0,0,1,0,1,0,1)
#else
#error("Update the number of table entries in tlb1_entry")
#endif
??????? /*
???????? * TLB0???????? 16K???? Cacheable, non-guarded
???????? * 0xd001_0000? 16K???? Temporary Global data for initialization
???????? *
???????? * Use four 4K TLB0 entries.? These entries must be cacheable
???????? * as they provide the bootstrap memory before the memory
???????? * controler and real memory have been configured.
???????? *
???????? * These entries end up at TLB0 Indicies 0x10, 0x14, 0x18 and 0x1c,
???????? * and must not collide with other TLB0 entries.
???????? */
??????? .long TLB1_MAS0(0, 0, 0)
??????? .long TLB1_MAS1(1, 0, 0, 0, 0)
??????? .long TLB1_MAS2(E500_TLB_EPN(CFG_INIT_RAM_ADDR),
??????????????????????? 0,0,0,0,0,0,0,0)
??????? .long TLB1_MAS3(E500_TLB_RPN(CFG_INIT_RAM_ADDR),
??????????????????????? 0,0,0,0,0,1,0,1,0,1)
??????? .long TLB1_MAS0(0, 0, 0)
??????? .long TLB1_MAS1(1, 0, 0, 0, 0)
??????? .long TLB1_MAS2(E500_TLB_EPN(CFG_INIT_RAM_ADDR + 4 * 1024),
??? ????????????????????0,0,0,0,0,0,0,0)
??????? .long TLB1_MAS3(E500_TLB_RPN(CFG_INIT_RAM_ADDR + 4 * 1024),
??????????????????????? 0,0,0,0,0,1,0,1,0,1)
??????? .long TLB1_MAS0(0, 0, 0)
??????? .long TLB1_MAS1(1, 0, 0, 0, 0)
??????? .long TLB1_MAS2(E500_TLB_EPN(CFG_INIT_RAM_ADDR + 8 * 1024),
??????????????????????? 0,0,0,0,0,0,0,0)
??????? .long TLB1_MAS3(E500_TLB_RPN(CFG_INIT_RAM_ADDR + 8 * 1024),
??????????????????????? 0,0,0,0,0,1,0,1,0,1)
??????? .long TLB1_MAS0(0, 0, 0)
??????? .long TLB1_MAS1(1, 0, 0, 0, 0)
??????? .long TLB1_MAS2(E500_TLB_EPN(CFG_INIT_RAM_ADDR + 12 * 1024),
??????????????????????? 0,0,0,0,0,0,0,0)
??????? .long TLB1_MAS3(E500_TLB_RPN(CFG_INIT_RAM_ADDR + 12 * 1024),
???? ???????????????????0,0,0,0,0,1,0,1,0,1)
??????? /*
???????? * TLB 0:?????? 16M???? Non-cacheable, guarded
???????? * 0xff000000?? 16M???? FLASH
???????? * Out of reset this entry is only 4K.
???????? */
??????? .long TLB1_MAS0(1, 0, 0)
??????? .long TLB1_MAS1(1, 1, 0, 0, BOOKE_PAGESZ_16M)
??????? .long TLB1_MAS2(E500_TLB_EPN(CFG_FLASH_BASE + 0x01000000),
0,0,0,1,0,1,1,0)
??????? .long TLB1_MAS3(E500_TLB_RPN(CFG_FLASH_BASE + 0x01000000),
0,0,0,0,1,1,1,1,1,1)
??????? /*
???????? * TLB 1:?????? 256M??? Non-cacheable, guarded
???????? * 0x80000000?? 256M??? PCI1 MEM First half
???????? */
??????? .long TLB1_MAS0(1, 1, 0)
??????? .long TLB1_MAS1(1, 1, 0, 0, BOOKE_PAGESZ_256M)
??????? .long TLB1_MAS2(E500_TLB_EPN(CFG_PCI1_MEM_BASE), 0,0,0,0,1,0,1,0)
??????? .long TLB1_MAS3(E500_TLB_RPN(CFG_PCI1_MEM_BASE),
0,0,0,0,0,1,0,1,0,1)
??????? /*
???????? * TLB 2:?????? 256M??? Non-cacheable, guarded
???????? * 0x90000000?? 256M??? PCI1 MEM Second half
???????? */
??????? .long TLB1_MAS0(1, 2, 0)
??????? .long TLB1_MAS1(1, 1, 0, 0, BOOKE_PAGESZ_256M)
??????? .long TLB1_MAS2(E500_TLB_EPN(CFG_PCI1_MEM_BASE + 0x10000000),
??????????????????????? 0,0,0,0,1,0,1,0)
??????? .long TLB1_MAS3(E500_TLB_RPN(CFG_PCI1_MEM_BASE + 0x10000000),
??????????????????? ????0,0,0,0,0,1,0,1,0,1)
??????? /*
???????? * TLB 3:?????? 16M???? Non-cacheable, guarded
???????? * 0xfe000000?? 16M???? FLASH
???????? */
??????? .long TLB1_MAS0(1, 3, 0)
??????? .long TLB1_MAS1(1, 1, 0, 0, BOOKE_PAGESZ_16M)
??????? .long TLB1_MAS2(E500_TLB_EPN(CFG_FLASH_BASE), 0,0,0,1,0,1,1,0)
??????? .long TLB1_MAS3(E500_TLB_RPN(CFG_FLASH_BASE), 0,0,0,0,1,1,1,1,1,1)
??????? /*
???????? * TLB 5:?????? 64M???? Non-cacheable, guarded
???????? * 0xe000_0000? 1M????? CCSRBAR
???????? * 0xe200_0000? 16M? ???PCI1 IO
???????? */
??????? .long TLB1_MAS0(1, 5, 0)
??????? .long TLB1_MAS1(1, 1, 0, 0, BOOKE_PAGESZ_64M)
??????? .long TLB1_MAS2(E500_TLB_EPN(CFG_CCSRBAR), 0,0,0,0,1,0,1,0)
??????? .long TLB1_MAS3(E500_TLB_RPN(CFG_CCSRBAR), 0,0,0,0,0,1,0,1,0,1)
??????? /*
???????? * TLB 7:?????? 16K???? Non-cacheable, guarded
???????? * 0xf8000000?? 16K???? BCSR registers
???????? */
??????? .long TLB1_MAS0(1, 7, 0)
??????? .long TLB1_MAS1(1, 1, 0, 0, BOOKE_PAGESZ_16K)
??????? .long TLB1_MAS2(E500_TLB_EPN(CFG_BCSR), 0,0,0,0,1,0,1,0)
??????? .long TLB1_MAS3(E500_TLB_RPN(CFG_BCSR), 0,0,0,0,0,1,0,1,0,1)
#if !defined(CONFIG_SPD_EEPROM)
??????? /*
???????? * TLB 8:?????? 256M??? DDR
???????? * 0x00000000?? 64M???? DDR System memory
???????? * 0x04000000?? 64M???? DDR System memory
???????? * Without SPD EEPROM configured DDR, this must be setup manually.
???????? * Make sure the TLB count at the top of this table is correct.
???????? * Likely it needs to be increased by two for these entries.
???????? */
??????? .long TLB1_MAS0(1, 8, 0)
??????? .long TLB1_MAS1(1, 1, 0, 0, BOOKE_PAGESZ_256M)
??????? .long TLB1_MAS2(E500_TLB_EPN(CFG_DDR_SDRAM_BASE), 0,0,0,0,0,1,1,0)
??????? .long TLB1_MAS3(E500_TLB_RPN(CFG_DDR_SDRAM_BASE),
0,0,0,0,1,1,1,1,1,1)
#endif
??????? entry_end
Modified the Local Address window to:
#if !defined(CONFIG_SPD_EEPROM)
#define LAWBAR0 ((CFG_DDR_SDRAM_BASE>>12) & 0xfffff)
/*#define LAWAR0??????? (LAWAR_EN | LAWAR_TRGT_IF_DDR | (LAWAR_SIZE &
LAWAR_SIZE_256M))*/
#define LAWAR0 0x80f0001b
#else
#define LAWBAR0 0
#define LAWAR0? ((LAWAR_TRGT_IF_DDR | (LAWAR_SIZE & LAWAR_SIZE_128M)) &
~LAWAR_EN)
#endif
#define LAWBAR1 ((CFG_PCI1_MEM_BASE>>12) & 0xfffff)
#define LAWAR1? (LAWAR_EN | LAWAR_TRGT_IF_PCIX | (LAWAR_SIZE &
LAWAR_SIZE_512M))
/*
?* This is not so much the FLASH map as it is the whole localbus map.
?*/
#define LAWBAR2 ((CFG_FLASH_BASE>>12) & 0xfffff)
#define LAWAR2? (LAWAR_EN | LAWAR_TRGT_IF_LBC | (LAWAR_SIZE &
LAWAR_SIZE_32M))
law_entry:
??????? entry_start
??????? .long 0x04
??????? .long LAWBAR0,LAWAR0,LAWBAR1,LAWAR1,LAWBAR2,LAWAR2,LAWBAR3,LAWAR3
??????? entry_end
Anyone have any idea on what I?ve done wrong?? Are there any other board
definitions in U-Boot I could use that might meet what I have better?
Peter Wright
Senior Software Engineer
Base Station Development
CDMA Division
Main: 1-604-276-0055
Direct: 1-604-303-8599? ext 267
next reply other threads:[~2006-05-05 20:49 UTC|newest]
Thread overview: 158+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-05 20:49 Peter Wright [this message]
2006-05-05 22:33 ` [U-Boot-Users] (no subject) Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2008-07-06 7:11 David Saada
2008-07-07 16:52 ` Jon Loeliger
2008-07-03 6:30 钟文辉
2008-07-03 2:19 钟文辉
2008-07-02 13:07 钟文辉
2008-07-02 9:57 Shreeram
2008-07-02 5:36 钟文辉
2008-07-01 5:45 钟文辉
2008-06-30 13:05 钟文辉
2008-06-29 5:32 钟文辉
2008-06-28 4:34 钟文辉
2008-06-27 17:32 钟文辉
2008-06-27 5:47 钟文辉
2008-06-20 2:41 钟文辉
2008-06-19 12:02 钟文辉
2008-06-18 10:39 钟文辉
2008-06-18 13:43 ` Andrejs Cainikovs
2008-06-17 3:51 钟文辉
2008-06-14 4:02 钟文辉
2008-06-12 23:42 钟文辉
2008-06-11 18:39 钟文辉
2008-06-08 4:36 钟文辉
2008-06-07 20:28 钟文辉
2008-06-06 14:03 钟文辉
2008-05-01 17:21 钟文辉
2008-04-28 10:57 钟文辉
2008-04-22 9:19 钟文辉
2008-04-19 19:35 钟文辉
2008-04-13 13:23 钟文辉
2008-04-10 6:43 钟文辉
2008-04-10 1:48 钟文辉
2008-03-31 14:24 Wolfgang Denk
2008-03-23 20:08 钟文辉
2008-03-18 4:52 钟文辉
2008-02-29 21:18 Maupin, Chase
2008-03-01 10:32 ` Stefan Roese
2008-02-16 11:48 刁卓
2007-12-16 22:55 Исаев Ислам
2007-11-28 11:29 keng_629
2007-11-14 22:41 Mazhar Umer
2007-11-15 2:00 ` gvb.uboot
2007-11-13 12:52 Pugh S. Terry
2007-10-11 12:26 DI BACCO ANTONIO - technolabs
2007-09-26 13:25 briano manoj
2007-09-21 11:08 杨进忠
2007-09-21 11:01 杨进忠
2007-09-10 19:06 gb sudeep
2007-08-21 18:51 couture mamn
2007-08-21 16:54 Jas Pramov
2007-08-21 7:19 Neuhaus
2007-08-21 0:38 Peninsula
2007-08-20 18:57 Ludia Chirnside
2007-08-20 11:09 Kimberle Iliev
2007-08-20 4:40 notices
2007-08-18 13:32 Blanch L. Rosario
2007-08-13 12:11 ventasruggeri at doc.state.or.us
2007-08-11 1:17 Xu Mao
2007-08-11 0:10 Xu Mao
2007-08-10 5:56 Mychal sd
2007-08-10 5:54 Tiffany Lemaire
2007-08-07 12:04 Turner Paddy
[not found] <AcfYB1eDMGy7sAfPRyWCrqXc2NUeVA==>
2007-08-06 8:54 ` Yotam Admon
2007-12-06 23:23 ` Tien ChenLi
2007-07-30 1:05 sun
2007-07-28 15:17 Brady D. Maggie
2007-07-23 21:32 Simeon T. Calderon
2007-07-18 11:13 Jo N. Bonilla
2007-07-11 9:08 hi5 Support
2007-06-06 15:18 Libor Fiedler - Alistar Systems s.r.o.
2007-05-14 9:26 Karl Chen
2007-01-10 10:43 Vivek Ananda BHADRA
2007-01-02 8:24 Sangmoon Kim
2006-12-11 16:55 Robert Deliën
2006-12-08 4:45 s.maiti at tcs.com
2006-12-08 13:51 ` Wolfgang Denk
2006-11-06 9:47 Rajucm
2006-10-01 3:04 Gerald Jackson
2006-10-01 9:23 ` Stefan Roese
2006-10-01 13:00 ` Gerald Jackson
2006-10-01 17:15 ` Gerald Jackson
2006-10-01 17:59 ` Stefan Roese
2006-10-01 19:17 ` Gerald Jackson
[not found] <000001c6e414$b4f831e2$6500010a@reaonix.com>
2006-09-30 14:13 ` Gerald Jackson
2006-09-28 21:07 Howard, Marc
2006-09-30 2:04 ` Stefan Roese
2006-09-28 2:03 Gerald Jackson
2006-09-28 12:48 ` Stefan Roese
2006-07-04 13:03 tianxue lian
2006-06-26 16:04 Jeff Mann
2006-06-18 4:46 shizhi21cn
2006-06-18 4:05 shizhi21cn
2006-05-31 7:15 [U-Boot-Users] Intel 28F256J3C xuxian
2006-05-31 8:11 ` [U-Boot-Users] Which configuration? Stefan Roese
[not found] ` <20060531124311.64780@gmx.net>
2006-05-31 12:55 ` Stefan Roese
2006-05-31 12:56 ` [U-Boot-Users] (no subject) Norman Baier
2006-05-09 10:51 Joao, Nuno
2006-05-09 11:13 ` Wolfgang Denk
2006-03-15 7:20 Daniel Alomar
2006-03-15 15:10 ` Wolfgang Denk
2006-03-01 16:15 tmike at recipes4linux.com
2006-03-01 0:19 Jerry K. Schieffer
2006-03-01 0:54 ` Wolfgang Denk
2006-02-21 12:11 ???
2006-02-21 12:37 ` Wolfgang Denk
2006-02-20 18:49 Wilson Callan
2006-02-01 22:04 Nguyen Nguyen
2005-10-09 19:54 Wolfgang Denk
2005-08-22 9:35 刘辉
2005-07-20 8:53 prabhu
2005-05-23 19:09 Andy Fleming
2005-10-08 23:51 ` Wolfgang Denk
[not found] <200505111617.AA27328618@RCS-9000.COM>
2005-05-11 8:58 ` Wolfgang Denk
2005-05-11 6:12 zhonglei
2005-05-11 7:56 ` Wolfgang Denk
2005-05-11 1:30 zhonglei
2005-05-11 2:04 ` 朱成
2005-03-31 22:45 Woodruff, Richard
2005-03-31 22:32 C. Michael Sundius
2005-03-31 22:52 ` Scott McNutt
2005-03-31 22:56 ` C. Michael Sundius
2005-03-31 23:11 ` Wolfgang Denk
2005-03-02 14:50 SDI.-
2005-02-07 13:57 Bruce
2005-02-07 15:48 ` Wolfgang Denk
2005-01-31 12:18 sudheer rao anmol
2005-01-31 12:27 ` Wolfgang Denk
2005-01-28 10:33 Pankaj GOYAL
2005-01-31 22:54 ` George G. Davis
2004-12-27 17:44 richard at uclinux.net
2004-10-07 16:55 Eren Gurses
2004-10-07 18:26 ` Wolfgang Denk
2004-10-07 19:25 ` Mark Rakes
2004-10-06 14:30 Eren Gurses
2004-09-30 6:10 Richard Dong
2004-09-27 1:10 吴兵
2004-09-27 6:23 ` Marc Leeman
2004-09-27 7:22 ` Wolfgang Denk
2004-09-25 8:30 Ravi A
2004-07-30 11:52 chandrag at danlawinc.com
2004-07-30 14:00 ` Wolfgang Denk
2004-05-14 15:37 Vidya S
2004-05-13 16:06 Wolfgang Kanovsky
2004-04-29 22:24 Alan J. Luse
2004-04-16 21:42 Alan J. Luse
2004-04-16 21:30 Kerl, John
2004-02-11 2:12 listmember at orkun.us
2004-02-10 19:20 uboot at sundmangroup.com
2004-02-10 22:25 ` Wolfgang Denk
2003-12-30 13:47 Muhammad Sarwar
2003-12-30 13:54 ` Wolfgang Denk
2003-12-04 7:40 zhaodong
2003-11-26 3:27 jxz
2003-10-25 13:10 wang cheng
2003-10-25 17:33 ` Wolfgang Denk
2003-07-18 17:52 C Doyle
2003-09-27 17:12 ` Allen Curtis
2003-02-25 13:37 Matias Sundman
2003-02-25 14:35 ` Wolfgang Denk
2002-11-10 17:16 Wolfgang Denk
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='007601c67085$77b32bf0$3b8119ac@bc.ca.utstar.com' \
--to=peter.wright@utstar.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