public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] How do I boot VxWorks (6.3) image with u-boot 1.1.3 :: mkimage entry point and address ?
Date: Thu, 30 Nov 2006 21:52:26 +0100 (MET)	[thread overview]
Message-ID: <200611302152.33872.sr@denx.de> (raw)
In-Reply-To: <B9D56A48380DF34CA0922A7C2450D4797B2ED5@itnmail1.itnes.com>

Hi Michael,

On Thursday 30 November 2006 18:59, Chaffin, Michael wrote:
> I have a working system, PowerPC embedded in Xilinx Virtex II Pro, that
> does boot into Linux using u-boot 1.1.3; but I need to load a VxWorks
> (6.3) image and boot from that. I have read the documentation, but I
> don't know what my entry point for mkimage to use, sysInit()? What 
> should my load address be?

The VxWorks image is an elf image and has it's load address encoded. Why not 
use this information (see below)?

> To date I have used the following command
> 	mkimage -O VxWorks -A ppc -C none -a 0x00 -e 0x00 \
> 	  -n vxWorks1a.msc -d ./vxWorks ./vxworks1a

Not needed.

> I load the resulting file (vxworks1a) to the device, and attempt to run
> the it
> 	=> loadb 0x00200000
> 	## Ready for binary (kermit) download to 0x00200000 at 115200
> bps...
> 	## Total Size      = 0x000e09b6 = 919990 Bytes
> 	## Start Addr      = 0x00200000
> 	=>
> 	=>
> 	=>
> 	=>
> 	=> bootm 0x00200000

Why don't you just use the U-Boot command for booting VxWorks images "bootvx"? 
One reason could be, that you don't have support for this built into your 
U-Boot image (you have to include CFG_CMD_ELF in the commands).

So either use the bootvx command right away, or rebuild your U-Boot image with 
support for the "elf-" commands (like bootelf or bootvx).

Something like:

=> tftp 800000 vxWorks
=> bootvx 800000

Please note that you also have to setup the "bootargs" environment variable. 
This will be copied into the VxWorks bootline (on PPC's at 0x4200).

Best regards,
Stefan

      parent reply	other threads:[~2006-11-30 20:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-30 17:59 [U-Boot-Users] How do I boot VxWorks (6.3) image with u-boot 1.1.3 :: mkimage entry point and address ? Chaffin, Michael
2006-11-30 20:17 ` Niklaus Giger
2006-11-30 20:52 ` Stefan Roese [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=200611302152.33872.sr@denx.de \
    --to=sr@denx.de \
    --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