From: Peter Barada <peter.barada@logicpd.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Help with Cross-Compiling U-boot for PPC
Date: Thu, 05 Jan 2012 10:31:01 -0500 [thread overview]
Message-ID: <4F05C235.5090009@logicpd.com> (raw)
In-Reply-To: <B814650FA181C74C901555466B22FC1FD62FC5@MAIL.optiscan.com>
On 01/04/2012 04:35 PM, Will Khan wrote:
> Hi all,
>
> My goal is to (simply) build u-boot to run on my target processor which is MPC8349. My host environment where I will be building the u-boot is a SUSE linux system running on an intel x86 PC (therefore I will cross compile). I have followed the instructions on the wiki and README file, and created a u-boot.bin file. I after I load the u-boot.bin (with a BDI2000 debugger) and reset the device, it produces random (garbage) text through the serial port. It normally should produce a welcome message, etc..
>
> Here are my steps:
>
> I have downloaded the latest u-boot version and unpacked it: v2011.12-rc2
>
> Make distclean
> Make MPC8349EMDS_config
> CROSS_COMPILE=powerpc-linux-
> Export CROSSCOMPILE
> Make all
>
> (note that I derived the above commands from the README file in the u-boot directory (see sections at Line 274, line 3350)
>
> I believe my configuration of the BDI2000 debugger is correct as I've successfully loaded my older version of u-boot.bin (created by someone before me) many times with it and it worked.
>
> If there is an obvious step I am missing, or incorrect syntax, please let me know.
Yes, debug u-boot with GDB using the BDI...
Load youru-boot image in the BDI, set the PC to the entry point, then in
a shell, fire up your cross debugger via "powerpc-linux-gdb u-boot",
then in gdb, connect to your target via "target remote <abatron
IP>:2001" (where "<abatron ip>" is the hostname or IP address of your
Abatron), and you can then debug the code on the board.
I'd look at the UART initialisation to make sure the baud rate is
correct (i.e. do you have the proper cpu frequencies set, and the proper
derived UART divisor(s) for your desired baud rate)...
--
Peter Barada
peter.barada at logicpd.com
prev parent reply other threads:[~2012-01-05 15:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <B814650FA181C74C901555466B22FC1FD5DCE6@MAIL.optiscan.com>
[not found] ` <B814650FA181C74C901555466B22FC1FD5F48D@MAIL.optiscan.com>
[not found] ` <B814650FA181C74C901555466B22FC1FD5F4A1@MAIL.optiscan.com>
[not found] ` <B814650FA181C74C901555466B22FC1FD5F4B6@MAIL.optiscan.com>
2012-01-04 21:35 ` [U-Boot] Help with Cross-Compiling U-boot for PPC Will Khan
2012-01-05 15:31 ` Peter Barada [this message]
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=4F05C235.5090009@logicpd.com \
--to=peter.barada@logicpd.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