mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Rogan Dawes <rogan@dawes.za.net>
To: barebox@lists.infradead.org
Subject: Re: Porting to Marvell 88F5182?
Date: Sat, 31 Jul 2010 13:21:43 +0200	[thread overview]
Message-ID: <4C540747.7000602@dawes.za.net> (raw)
In-Reply-To: <4C532D05.7020407@dawes.za.net>

On 2010/07/30 9:50 PM, Rogan Dawes wrote:
> Hi folks,
>
> I am trying to get a decent boot loader running on my DLink DNS323. It
> was shipped with a severely crippled version of U-Boot, forked from
> U-Boot 1.1.1, and heavily bastardized by Marvell.
>
[...]
>
> I have managed to get just about everything to work, except for the
> flash part, a Spansion S29GL064M90TFIR4 device. Unfortunately, there
> seems to be some strange connections going on, and the standard U-Boot
> CFI code does not recognise it.

Since I'd be chainloading barebox from the existing U-Boot, which does 
support loadb and bootm, it probably makes the most sense initially to 
just skip the lowlevel init, and build a minimal ARM second stage, and 
wrap it in a u-boot image, I think.

I tried using the at91sam9263ek_defconfig, and unsetting 
CONFIG_MACH_DO_LOWLEVEL_INIT.

My CROSS_COMPILE env variable was set to:

CROSS_COMPILE=arm-linux-gnueabi-

I then made it into a uImage using:

mkimage -A arm -O u-boot -T kernel -C none -a 0x800000 -e 0x800000 -n 
"Barebox" -d barebox.bin uImage.bin

Unfortunately, it hung as soon as I tried to execute it in U-Boot:

Marvell> bootm
## Booting image at 00100000 ...
    Image Name:   Barebox
    Image Type:   ARM U-Boot Kernel Image (uncompressed)
    Data Size:    176100 Bytes = 172 kB
    Load Address: 00800000
    Entry Point:  00800000
    Verifying Checksum ... OK
OK

Starting kernel ...

Any suggestions for a better (minimal?) defconfig to start from, or 
other things to try?

Many thanks!

Rogan

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2010-07-31 11:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-30 19:50 Rogan Dawes
2010-07-31 11:21 ` Rogan Dawes [this message]
2010-07-31 12:36   ` Eric Bénard
2010-07-31 15:20     ` Rogan Dawes
2010-07-31 15:49       ` Eric Bénard
2010-07-31 16:05         ` Rogan Dawes
2010-07-31 16:42           ` Eric Bénard
2010-07-31 18:41             ` Rogan Dawes
2010-07-31 19:33               ` Eric Bénard
2010-07-31 20:05                 ` Rogan Dawes
2010-08-02  5:37 ` Sascha Hauer

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=4C540747.7000602@dawes.za.net \
    --to=rogan@dawes.za.net \
    --cc=barebox@lists.infradead.org \
    /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