Have you tried raw? A raw image is simply a binary image, with a jump instruction at
the beginning, which will jump to startup_vaddr, which is the actual QNX entry point.
The other alternative is to download a binary image, but if you do that, you’ll need
to extract startup_vaddr, by observing the output of mkifs -vvvv when you build the
image, and this address will change, each time you make changes to the startup code.
So, if your build file has [virtual=ppcbe,binary]
when you build the image:
mkifs -vvvv build image.bin (in this example, [image=0x30000] in the build file)
“/usr/qnx630/target/qnx6/ppcbe/boot/sys/procnto-400”
30100 100 ---- — Startup-header
30200 d108 321f4 — /tmp/DAA210543 <<< the 321f4 is startup_vaddr
3d208 5c ---- — Image-header
3d264 6d0 ---- — Image-directory
so, you’d do the following:
tftpboot 0x30000 image.bin
go 0x321f4
On the other hand, if you do the following:
[virtual=ppcbe,raw]
then you don’t need to worry about extracting startup_vaddr each time; you can
just download the image to the correct address (whatever is specified by [image=…]
in the build file), and then ‘go’ to that address.
Radoslaw Dyczek <dyczr@bizerba.com> wrote:
Hi Dave,
I’ve tried it with ELF without success > 
Maybe I should use mkimage from u-boot? Maybe u-boot needs something
like own header in front of ELF?
Thanks for every hint!
Radoslaw
Dave Green schrieb:
Does the version of u-boot that you are using support openbios? You might
try changing the OS image format to ‘raw’[virtual=ppcbe/raw], and then download
and run the image as follows:
u-boot> tftpboot 0x300000 myimage
u-boot> go 0x300000
Radoslaw Dyczek <> dyczr@bizerba.com> > wrote:
Hi All,
I try to boot my ifs image with u-boot.
After I transferred the image to ram over tftp I try bootm which fails
with: “Bad Magic Number”. iminfo prints out the same.
I can successfuly boot the image with PIBS but I have to use U-Boot.
Here just a part of my build file:
[image=0x300000]
[virtual=ppcbe/openbios] .bootstrap = {
startup-440rb -v
…
}
Thanks for answers
Radoslaw Dyczek
–
David Green (dgreen@qnx.com)
QNX Software Systems Ltd.
http://www.qnx.com