From: Philippe Simal <philippe.simal@ba-elec.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] standalone code
Date: Thu, 14 Aug 2003 16:01:54 +0200 [thread overview]
Message-ID: <007601c3626c$9e7d2ee0$10c8c8c8@philippesimal> (raw)
Hello,
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.
In the meanwhile I'm writing some hardware debug code that does not use any kernel.
(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()...
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.
This works fine except that I cannot use function pointers used in my debug menu .
(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.
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?
(2) What must I do to use my pointers whitout crashing the ppc.
Best regards,
Philippe Simal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20030814/7ff01d84/attachment.htm
next reply other threads:[~2003-08-14 14:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-14 14:01 Philippe Simal [this message]
2003-08-14 17:22 ` [U-Boot-Users] standalone code Marc Singer
2003-08-14 18:48 ` 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='007601c3626c$9e7d2ee0$10c8c8c8@philippesimal' \
--to=philippe.simal@ba-elec.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