<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm running u-boot-0.3.0 on an IBM PPC440GP EBONY
board . The next stage is to port u-boot to our custom designed
board.</FONT></DIV>
<DIV><FONT face=Arial size=2>In the meanwhile I'm writing some hardware
debug code that does not use any kernel. </FONT></DIV>
<DIV><FONT face=Arial size=2>(1)First I tried to run it as a standalone program
just like the 'hello world' example. The problem is that I do not have access to
the drivers used by u-boot. I only can use some system calls like
mon_printf()...</FONT></DIV>
<DIV><FONT face=Arial size=2>So I tried to link my debug code directly to the
u-boot code with an entry point just before the call main_loop() in
board.c.</FONT></DIV>
<DIV><FONT face=Arial size=2>This works fine except that I cannot use function
pointers used in my debug menu .</FONT></DIV>
<DIV><FONT face=Arial size=2>(2)I know this has something to do with the code
relocation from flash to sdram so I tried to relocate all my pointers. Ok that
didn't work.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So my questions are, (1) is it possible to make a
standalone pease of software that runs in sdram with the full use of the u-boot
drivers?</FONT></DIV>
<DIV><FONT face=Arial size=2>(2) What must I do to use my pointers whitout
crashing the ppc.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Philippe Simal</DIV>
<DIV><BR> </DIV></FONT></BODY></HTML>