Skip to contentSkip to conversation

porting to new board: what to do next?

U-Boot-Users Benjamin Collar 2 participants 4 messages Aug 31, 2004 – Sep 1, 2004

lore
Share & tools
lore
#0 lore raw

Greetings

We're porting U-Boot to a new board. We've followed the plan given in the README and have written board.c, flash.c, configs/board.h. We've flashed it and ... well, nothing happens. Nothing at all.

Now, I know you'll need more information from me, but I'm not sure exactly what you'll want to know, so for the moment, we'll leave it like that.

What I need to know is, how do I find out what U-Boot is up to? Is there a way to debug it from the beginning? I've got it connected serially (unfortunately, our debugger works under windows, so we've got to use HyperTerminal) but nothing shows up at all.

Thanks for any help
Ben

Signature · 5 lines
Benjamin Collar
Siemens AG
CT SE 2
Embedded Linux
089-636-53711
#1 lore raw

Dear Benjamin,

Quoted 4 lines · in message <1093964436.17059.62.camel@mhpajh5c> you wrote:

We're porting U-Boot to a new board. We've followed the plan given in the README and have written board.c, flash.c, configs/board.h. We've flashed it and ... well, nothing happens. Nothing at all.

This is normal.

Quoted 4 lines

What I need to know is, how do I find out what U-Boot is up to? Is there a way to debug it from the beginning? I've got it connected serially (unfortunately, our debugger works under windows, so we've got to use HyperTerminal) but nothing shows up at all.

Attach a BDI2000, and connect to it using GDB. See section "Debugging of U-Boot" in the manual.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Do not simplify the design of a program if a way can be found to make
it complex and wonderful.
#2 lore raw

Hello again everyone,

Thank you for the information you gave me yesterday. I've got a BDM debugger (Lauterbach) hooked up and am stepping through the u-boot startup.

The (current!) problem occurs in cpu_init_f and has to do with the value defined in the configs/board.h for CFG_OR0_REMAP.
This is based on CFG_REMAP_OR_AM. What I need to know is, how do I figure out the right values for CFG_REMAP_OR_AM and PRELIM_OR_AM? I read the README and unfortunately it says nothing (that I understood...). I'm okay with deriving the information, perhaps from the CPU Manual or the Flash Manual or the board's spec, but really, I'm not sure exactly what these values mean. Can someone give me a short explanation?

So you know what kind of hardware I'm dealing with, the basics are an MPC852T CPU with a 16MB Flash: AM29LV320 and SDRAM MT48LC4M32B2.

Thanks for your help
Ben

Quoted 21 lines · Wolfgang Denk

Dear Benjamin,

Quoted 4 lines · in message <1093964436.17059.62.camel@mhpajh5c> you wrote:

We're porting U-Boot to a new board. We've followed the plan given in the README and have written board.c, flash.c, configs/board.h. We've flashed it and ... well, nothing happens. Nothing at all.

This is normal.

Quoted 4 lines

What I need to know is, how do I find out what U-Boot is up to? Is there a way to debug it from the beginning? I've got it connected serially (unfortunately, our debugger works under windows, so we've got to use HyperTerminal) but nothing shows up at all.

Attach a BDI2000, and connect to it using GDB. See section "Debugging of U-Boot" in the manual.

Best regards,

Wolfgang Denk

Signature · 5 lines
Benjamin Collar
Siemens AG
CT SE 2
Embedded Linux
089-636-53711
#3 lore raw

Dear Benjamin,

Quoted 3 lines · in message <1094052774.28157.19.camel@mhpajh5c> you wrote:

This is based on CFG_REMAP_OR_AM. What I need to know is, how do I figure out the right values for CFG_REMAP_OR_AM and PRELIM_OR_AM? I read

We cannot tell you. It is you who defines the memory map of your board.

Quoted 4 lines

the README and unfortunately it says nothing (that I understood...). I'm okay with deriving the information, perhaps from the CPU Manual or the Flash Manual or the board's spec, but really, I'm not sure exactly what these values mean. Can someone give me a short explanation?

These are the address masks used in the MPC8xx memory controller.

You will want to read the section about the memory controller in the MPC8xx User's manual.

Quoted 2 lines

So you know what kind of hardware I'm dealing with, the basics are an MPC852T CPU with a 16MB Flash: AM29LV320 and SDRAM MT48LC4M32B2.

Sorry, this doesn't help anything. We would need _all_ the nasty little details (probably including the schematics), and then it will become real effort, which you cannot get for free, not even here.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Applying computer technology is simply finding the  right  wrench  to
pound in the correct screw.