[U-Boot] U-Boot to load VxWorks

raul.moreno at telvent.com
2008-11-18T12:09:15Z

Thank you for your answer, Niklaus!

I have been looking at your mention files and boards.
I will also use TFTP to download the VxWorks image and then the bootvx
command like you do. However, just the first time. Later, the VxWorks must
be saved in flash and after reseting , the board must boot automatically.
Just in case we want to update VxWorks, we will use the TFTP again.

My VxWorks image is just an elf binary format image. Could I boot this
image with bootvx directly or do I have to use mkimage to convert this
image to a understandable image for U-Boot? I mean, what kind of VxWorks
image must I have?
I am also not sure what parameters I have to add in the bootargs
environment variable.

Regards,

Ra?l Moreno

Niklaus Giger <niklaus.giger@member.fsf.org>
Niklaus Giger
17/11/2008 22:04

Para: raul.moreno at telvent.com

cc:

Asunto: Re: U-Boot to load VxWorks

Ola Ra??l

Look at the include/configs/hcu4.h and include/configs/netstal-common.h how
I handle booting vxWorks from a TFTP server.

I use a TFTP-server wherefrom I download the vxWorks image. As far as I
know vxWorks and u-boot don't have any common flash file system.

Also U-boot only supports downloading via TFTP (UDP) and not via FTP
(TCP/IP based).

Saludos

Niklaus

raul.moreno at telvent.com wrote:
>
> Hello people,
>
> I am used to using U-boot in order to boot Linux, but now I also need to
> boot VxWorks.
>
> Till now I copied the Linux kernel in Flash and when I wanted to update
> it, I had two options: doing it from U-Boot (tftp the image and using the
> cp command) or from Linux (using the dd command or flashcp). The kernel
is
> always in the same flash location, a determined address. So I have to
> reserve enough memory in case the updating is bigger.
>
> With VxWorks, I works as follows: the bootloader mounts a filesystem in
> flash where I can transfer through ftp the operating system, VxWorks. I
> mean, I can see the operating system as a file. In Linux I don't have it,
> but the operating system image is saved in flash from an address. I am
not
> sure if people who use VxWorks works like me or there are other options
to
> boot. The good with my option is that you can update the operating system
> just changing the file with ftp.
>
> The thing is I would like to use the same U-Boot to boot both systems:
> Linux and VxWorks. So I should have to have a similar way to boot. The
> only difference will be the boot command: bootvx for VxWorks and bootm
for
> Linux.
>
> Could you explain me what the common way to use U-Boot with VxWorks is?
>
> I doubt a lot what is the best option:
> - Tring to mount a filesystem with U-Boot that VxWorks also understands.
> - Making like with Linux. I mean, copying the VxWorks from an determined
> address. Then the VxWorks won't be seen as a file.
> - Others not thought yet....
>
> Is there documentation about VxWorks with U-Boot?
>
> I would thank you your help!
>
> Best regards,
>
> Ra??l Moreno