linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Jerry Van Baren <vanbaren_gerald@si.com>
To: linuxppc-embedded@lists.linuxppc.org
Subject: Re: programming ppcboot onto an sbc8260 with a vision ice
Date: Mon, 03 Dec 2001 17:11:50 -0500	[thread overview]
Message-ID: <5.1.0.14.2.20011203165059.01c83e20@falcon.si.com> (raw)
In-Reply-To: <3C0BE2DA.53C39E1B@seranoa.com>


Your PPCBoot image is linked at 0x40000000 and your convert defaults are
converting from 0xfe000000..0xfe020000 (this is where EST puts the boot
memory unless you've changed the HRCW to ORG it at 0x00000000 -- glossing
over quite a few details here).  Anyway, there ain't no data in that range,
which is exactly what the error message is telling you.

The EST convert utility doesn't allow you to relocate the code, only to set
the lower and upper boundaries of the conversion.  You can use an elf tool
(objcopy) to re-org the code or change your link mechanism to re-org your
code.  You can also leave it at 0x40000000 and change your visionICE setup
to map the ROM into that memory area (hmm, isn't that the secondary
flash?  Maybe you just need to program it and switch your CS0/CS6 jumper).

By the way, PPCBoot will load a new HRCW which will ORG the boot memory at
0x00000000 (first instruction at 0x100) instead of 0xFFF00000 (first
instruction at 0xFFF00100).  There are benefits and drawbacks to either
start up location and PPCBoot can be configured to boot high as well as low.

gvb


At 03:38 PM 12/3/2001 -0500, Andrew Dixon wrote:

>Peter Desnoyers wrote:
> >
> > You need to take the ELF file, ppcboot, and convert it into a .bin file
> > using the vision ICE convert utility.
> >
> > The file format referred to as "BIN" in the visionICE documentation
> > isn't a real binary image - it has a special header.
> >
>
>OK.  When I try that it tells me:
>
>Conversion Failed: no data was extracted from the selected address
>range.
>
>Where the address ranges are:
>/var/opt/visionXD/bin/convert  -w ppcboot -b
>convert v7.8A Copyright (c) 1996-2001 Wind River HSI
>convert ELF file ppcboot to BDX file ppcboot.bdx
>Extracting image from 'ppcboot'
>Writing binary download image to 'ppcboot.bdx'
>Maximum packet size: 0x100
>Lower address: 0x0
>Upper address: 0xffffffff
>Execution address: 0x40000000
>Image written
>Processing time: 0.011 seconds
>
>Lower Image Address: 0xfe000000
>Upper Image Address: 0xfe020000
>
>
>I also tried:
>
>/var/opt/visionXD/bin/convert  -w ppcboot -b
>convert v7.8A Copyright (c) 1996-2001 Wind River HSI
>convert ELF file ppcboot to BDX file ppcboot.bdx
>Extracting image from 'ppcboot'
>Writing binary download image to 'ppcboot.bdx'
>Maximum packet size: 0x100
>Lower address: 0x0
>Upper address: 0xffffffff
>Execution address: 0x40000000
>Image written
>Processing time: 0.011 seconds
>
>which gives me a file "ppcboot.bdx".  VisionXD still complains that it's
>not a flat binary though.
>
>Any thoughts?
>
>Thanks,
>Andy
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2001-12-03 22:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-03 19:39 programming ppcboot onto an sbc8260 with a vision ice Andrew Dixon
2001-12-03 20:08 ` Peter Desnoyers
2001-12-03 20:38   ` Andrew Dixon
2001-12-03 22:11     ` Jerry Van Baren [this message]
2001-12-04 14:49       ` Andrew Dixon
2001-12-04 15:07         ` Jerry Van Baren
2001-12-04 15:28           ` Wolfgang Denk
2001-12-04 15:25         ` 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=5.1.0.14.2.20011203165059.01c83e20@falcon.si.com \
    --to=vanbaren_gerald@si.com \
    --cc=linuxppc-embedded@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).