Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Booting QNX on QEMU(ARM): (4 Items)
   
Booting QNX on QEMU(ARM)  
Hi,
I am trying to boot QNX on QEMU (ARM platform). I downloaded one of the BSPs from qnx site and built. I made the ifs 
image from this build file(using elf.boot).i ran this on qemu-system-arm -kernel PATH_TO_IFS_IMAGE and an empty QEMU 
window pops up. I have no clue of what is happening. 

the mkifs -v generated this.

  Offset   Size    Entry   Ramoff Target=Host
80010000    180        0      --- /opt/qnx640/target/qnx6/armle/boot/sys/elf.boot
80010180    100     ----      --- Startup-header
80010280   c188 80011be0      --- /tmp/fileoSTxRg
8001c288     5c     ----      --- Image-header
8001c2e4    760     ----      --- Image-directory
    ----    ---     ----      --- tmp=/dev/shmem
    ----    ---     ----      --- dev/console=/dev/ser1
    ----    ---     ----      --- bin/sh=/proc/boot/ksh
8001ca44    314     ----      --- proc/boot/.script=/tmp/fileNzj1X1
8001d000  6b000 fe03adf0      --- proc/boot/procnto-v6=/tmp/filecBHu7v
80088000  73000    389c4      --- proc/boot/libc.so.3=/opt/qnx640/target/qnx6/ar
mle/lib/libc.so
    ----    ---     ----      --- proc/boot/libc.so=libc.so.3
800fb000   ec1e     2364      --- proc/boot/devn-smc9000.so=/opt/qnx640/target/q
nx6/armle/lib/dll/devn-smc9000.so
8010a000  2acf3     5738      --- proc/boot/libsocket.so.2=/opt/qnx640/target/qn
x6/armle/lib/libsocket.so
    ----    ---     ----      --- proc/boot/libsocket.so=libsocket.so.2
80135000   88c6     2208      --- proc/boot/devnp-shim.so=/opt/qnx640/target/qnx
6/armle/lib/dll/devnp-shim.so
8013e000   a9d0     2fdc      --- proc/boot/libusbdi.so.2=/opt/qnx640/target/qnx
6/armle/lib/libusbdi.so
    ----    ---     ----      --- proc/boot/libusbdi.so=libusbdi.so.2
80149000   a799     1ad8      --- proc/boot/devu-ohci.so=/opt/qnx640/target/qnx6
/armle/lib/dll/devu-ohci.so
80154000  1019b   101cc8      --- proc/boot/devc-seromap=/opt/qnx640/target/qnx6
/armle/boot/sys/devc-seromap
80165000  12f20   10193c      --- proc/boot/fs-etfs-omap2420=/opt/qnx640/target/
qnx6/armle/boot/sys/fs-etfs-omap2420
80178000   37e6   1009d4      --- proc/boot/etfsctl=/opt/qnx640/target/qnx6/arml
e/usr/bin/etfsctl
8017c000   54d9   100f98      --- proc/boot/i2c-omap59xx=/opt/qnx640/target/qnx6
/armle/boot/sys/i2c-omap59xx
80182000  8dc15   10e200      --- proc/boot/io-pkt-v4=/opt/qnx640/target/qnx6/ar
mle/sbin/io-pkt-v4
80210000   4dfa   100998      --- proc/boot/nicinfo=/opt/qnx640/target/qnx6/arml
e/usr/sbin/nicinfo
80215000  164df   1015f0      --- proc/boot/ifconfig=/opt/qnx640/target/qnx6/arm
le/sbin/ifconfig
8022c000   a87d   1011f8      --- proc/boot/ping=/opt/qnx640/target/qnx6/armle/u
sr/bin/ping
80237000   2257   100638      --- proc/boot/cat=/opt/qnx640/target/qnx6/armle/bi
n/cat
8023a000  13ad3   101d74      --- proc/boot/fs-nfs2=/opt/qnx640/target/qnx6/arml
e/usr/sbin/fs-nfs2
8024e000   521b   100e60      --- proc/boot/ls=/opt/qnx640/target/qnx6/armle/bin                                        
                                                           /ls
80254000  2abd8   1017c0      --- proc/boot/ksh=/opt/qnx640/target/qnx6/armle/bi                                        
                                                           n/ksh
8027f000   527f   1015b4      --- proc/boot/pipe=/opt/qnx640/target/qnx6/armle/s                                        
                                                           bin/pipe
80285000   fdd4   101594      --- proc/boot/pidin=/opt/qnx640/target/qnx6/armle/                                        
                                                           bin/pidin
80295000   1fd6   100598      --- proc/boot/uname=/opt/qnx640/target/qnx6/armle/                                        
                                                           bin/uname
80297000   3820   100d50      --- proc/boot/slogger=/opt/qnx640/target/qnx6/arml                                        
                                                          ...
View Full Message
Attachment: Compressed file build.tar 20 KB
Re: Booting QNX on QEMU(ARM)  
I'm pretty sure you need to tell qemu that it's emulating an omap2420 - the default ARM reference board it emulates is 
not going to have the same peripherals at the same locations.

For that matter, I don't think that 0.9.1 emulates an omap2420

Johnson Thomas wrote:
> Hi,
> I am trying to boot QNX on QEMU (ARM platform). I downloaded one of the BSPs from qnx site and built. I made the ifs 
image from this build file(using elf.boot).i ran this on qemu-system-arm -kernel PATH_TO_IFS_IMAGE and an empty QEMU 
window pops up. I have no clue of what is happening. 
> 
> the mkifs -v generated this.
> 
>   Offset   Size    Entry   Ramoff Target=Host
> 80010000    180        0      --- /opt/qnx640/target/qnx6/armle/boot/sys/elf.boot
> 80010180    100     ----      --- Startup-header
> 80010280   c188 80011be0      --- /tmp/fileoSTxRg
> 8001c288     5c     ----      --- Image-header
> 8001c2e4    760     ----      --- Image-directory
>     ----    ---     ----      --- tmp=/dev/shmem
>     ----    ---     ----      --- dev/console=/dev/ser1
>     ----    ---     ----      --- bin/sh=/proc/boot/ksh
> 8001ca44    314     ----      --- proc/boot/.script=/tmp/fileNzj1X1
> 8001d000  6b000 fe03adf0      --- proc/boot/procnto-v6=/tmp/filecBHu7v
> 80088000  73000    389c4      --- proc/boot/libc.so.3=/opt/qnx640/target/qnx6/ar
> mle/lib/libc.so
>     ----    ---     ----      --- proc/boot/libc.so=libc.so.3
> 800fb000   ec1e     2364      --- proc/boot/devn-smc9000.so=/opt/qnx640/target/q
> nx6/armle/lib/dll/devn-smc9000.so
> 8010a000  2acf3     5738      --- proc/boot/libsocket.so.2=/opt/qnx640/target/qn
> x6/armle/lib/libsocket.so
>     ----    ---     ----      --- proc/boot/libsocket.so=libsocket.so.2
> 80135000   88c6     2208      --- proc/boot/devnp-shim.so=/opt/qnx640/target/qnx
> 6/armle/lib/dll/devnp-shim.so
> 8013e000   a9d0     2fdc      --- proc/boot/libusbdi.so.2=/opt/qnx640/target/qnx
> 6/armle/lib/libusbdi.so
>     ----    ---     ----      --- proc/boot/libusbdi.so=libusbdi.so.2
> 80149000   a799     1ad8      --- proc/boot/devu-ohci.so=/opt/qnx640/target/qnx6
> /armle/lib/dll/devu-ohci.so
> 80154000  1019b   101cc8      --- proc/boot/devc-seromap=/opt/qnx640/target/qnx6
> /armle/boot/sys/devc-seromap
> 80165000  12f20   10193c      --- proc/boot/fs-etfs-omap2420=/opt/qnx640/target/
> qnx6/armle/boot/sys/fs-etfs-omap2420
> 80178000   37e6   1009d4      --- proc/boot/etfsctl=/opt/qnx640/target/qnx6/arml
> e/usr/bin/etfsctl
> 8017c000   54d9   100f98      --- proc/boot/i2c-omap59xx=/opt/qnx640/target/qnx6
> /armle/boot/sys/i2c-omap59xx
> 80182000  8dc15   10e200      --- proc/boot/io-pkt-v4=/opt/qnx640/target/qnx6/ar
> mle/sbin/io-pkt-v4
> 80210000   4dfa   100998      --- proc/boot/nicinfo=/opt/qnx640/target/qnx6/arml
> e/usr/sbin/nicinfo
> 80215000  164df   1015f0      --- proc/boot/ifconfig=/opt/qnx640/target/qnx6/arm
> le/sbin/ifconfig
> 8022c000   a87d   1011f8      --- proc/boot/ping=/opt/qnx640/target/qnx6/armle/u
> sr/bin/ping
> 80237000   2257   100638      --- proc/boot/cat=/opt/qnx640/target/qnx6/armle/bi
> n/cat
> 8023a000  13ad3   101d74      --- proc/boot/fs-nfs2=/opt/qnx640/target/qnx6/arml
> e/usr/sbin/fs-nfs2
> 8024e000   521b   100e60      --- proc/boot/ls=/opt/qnx640/target/qnx6/armle/bin                                      
                                                             /ls
> 80254000  2abd8   1017c0      --- proc/boot/ksh=/opt/qnx640/target/qnx6/armle/bi                                      
                                                             n/ksh
> 8027f000   527f   1015b4      --- proc/boot/pipe=/opt/qnx640/target/qnx6/armle/s                                      
                                                             bin/pipe
> 80285000   fdd4   101594     ...
View Full Message
Re: Booting QNX on QEMU(ARM)  
Hi Collin,

Its doing something, but no idea whats its doing.I was trying for at91sam9263 BSP, the same thing happens. I integrated 
the u-boot loader also into the image and I have a uImage now. I tried to run u-boot.bin but its crashing with the 
following message

qemu: fatal: Trying to execute code outside RAM or ROM at 0x23f00488

R00=23f7871c R01=23f78718 R02=00000000 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=23ed2f74 R14=00010094 R15=23f00488
PSR=200001d3 --C- A svc32
s00=00000000(       0) s01=00000000(       0) d00=0000000000000000(       0)
s02=00000000(       0) s03=00000000(       0) d01=0000000000000000(       0)
s04=00000000(       0) s05=00000000(       0) d02=0000000000000000(       0)
s06=00000000(       0) s07=00000000(       0) d03=0000000000000000(       0)
s08=00000000(       0) s09=00000000(       0) d04=0000000000000000(       0)
s10=00000000(       0) s11=00000000(       0) d05=0000000000000000(       0)
s12=00000000(       0) s13=00000000(       0) d06=0000000000000000(       0)
s14=00000000(       0) s15=00000000(       0) d07=0000000000000000(       0)
s16=00000000(       0) s17=00000000(       0) d08=0000000000000000(       0)
s18=00000000(       0) s19=00000000(       0) d09=0000000000000000(       0)
s20=00000000(       0) s21=00000000(       0) d10=0000000000000000(       0)
s22=00000000(       0) s23=00000000(       0) d11=0000000000000000(       0)
s24=00000000(       0) s25=00000000(       0) d12=0000000000000000(       0)
s26=00000000(       0) s27=00000000(       0) d13=0000000000000000(       0)
s28=00000000(       0) s29=00000000(       0) d14=0000000000000000(       0)
s30=00000000(       0) s31=00000000(       0) d15=0000000000000000(       0)
FPSCR: 00000000
Aborted

This is happening with every BSP or image that I am trying. Is there any settings or anything that has to be done for 
QEMU or to the way I am creating the image.
Any help would be great.

Thanks,
Johnson
Re: Booting QNX on QEMU(ARM)  
This is the list of ARM processors emulated in qemu-system-arm 0.9.0

Supported machines are:
integratorcp926 ARM Integrator/CP (ARM926EJ-S) (default)
integratorcp1026 ARM Integrator/CP (ARM1026EJ-S)
versatilepb ARM Versatile/PB (ARM926EJ-S)
versatileab ARM Versatile/AB (ARM926EJ-S)
realview   ARM RealView Emulation Baseboard (ARM926EJ-S)


Which BSP is better to test QNX elf image as a kernel to start ander qemu?

I have no succsess right now.