QNX on beaglebone black

2,146 views
Skip to first unread message

Steven Hartmann

unread,
Mar 1, 2016, 5:00:18 PM3/1/16
to BeagleBoard
I hope there is someone here successfully using QNX on the BBB.  I am currently doing a QNX evaluation and am having trouble with the BBB BSP.  I am using the BSP_ti-am335x-beaglebone_br-660_be-660_SVN797070_JBN574.zip BSP.  The package comes with a pre-built image, which boots up fine.  I have been able to do a few test programs with it, but now I need to modify the BSP to change which features are used.  The first step in doing this was to just recompile the BSP to make sure I can recreate the precompiled version.  The build goes fine and creates an image.  I can boot off the image, but it gives a lot of errors:

U-Boot#  fatload mmc 0 81000000 ifs-ti-am335x-beaglebone.bin
reading ifs-ti-am335x-beaglebone.bin
5794620 bytes read in 657 ms (8.4 MiB/s)
U-Boot# go 81000000
## Starting application at 0x81000000 ...

__________Board ID__________
header:  ee3355aa
name:    A335BNLT
____________________________
    BeagleBone Black detected    

VFPv3: fpsid=410330c3
coproc_attach(10): attach fe08a3fc (fe08ad24)
coproc_attach(11): attach fe08a3fc (fe08ad24)
Welcome to QNX Neutrino 6.6.0 on the Texas Instruments AM335x BeagleBone (ARMv7 Cortex-A8 core) - Board
Unable to start "devc-seromap" (2)
Unable to access "/dev/ser1" (2)
Unable to access "/dev/ser1" (2)
Starting MMC/SD driver...
Unable to start "devb-sdmmc-j5_generic" (2)
Unable to start "devb-sdmmc-j5_generic" (2)
starting I2C driver...
Unable to start "i2c-omap35xx-j5" (2)
Unable to access "/dev/i2c0" (2)
starting WDT reset utility...
Unable to start "dm814x-wdtkick" (2)
starting Board ID driver...
Unable to start "am335x-boardid" (2)
Unable to access "/dev/bdid" (2)
Setting OS Clock from on-board RTC
Unable to start "rtc" (2)
Sat Jan 01 00:00:15 GMT 2000
Starting USB OTG Host driver...
Starting SPI driver...
Unable to start "spi-master" (2)
Starting network driver...
starting leds driver...
Unable to start "am335x-leds" (2)
Unable to access "/dev/leds" (2)
Setting environment variables...
done.
Starting Screen Graphics...
done.
Starting HDMI Audio driver...
Unable to access /dev/snd/pcmC0D1p
ksh: No controlling tty (open /dev/tty: No such device or address)
ksh: warning: won't have full job control


All of the software that reports "unable to start" does not have execute permissions.  When I tried to add execute permissions by hand, it said the file did not exist.

My build host is linux mint.

Thanks!

acheesehead

unread,
Mar 2, 2016, 11:55:53 AM3/2/16
to BeagleBoard
I am using QNX 6.50 on the BBB and have no problems.

Are the executables in question on a FAT32 partition? If so, execute permissions can't be set. Are you booting from SD card or eMMC? What do your partition tables look like on your boot device (fdisk view)? What is the output of the mkifs command in the images directory? Post your .build file.

Steven Hartmann

unread,
Mar 2, 2016, 3:21:06 PM3/2/16
to BeagleBoard
Thank you so much for the reply!  I'm just getting started with QNX, so I need all the help I can get.

I am booting from the SD card.  .build file is attached and is exactly as shipped with the BSP, so I assumed it was the same they build the prebuilt image with.  I build the SDCard by formatting it as FAT32, then I copy the MLO, u-boot.img and the image file generated when I build the BSP.

I'm gonna need a little more guidance on the fdisk command.  Like I said, new to QNX -  I can't find a device which seems to be a disk device.  Here is the contents of /dev:

# ls /dev
bpf            name           slog           tap0           tun1
bpf0           null           snd            tap1           tun2
console        pipe           socket         tap2           tun3
crypto         screen         stderr         tap3           tymem
io-usb         sem            stdin          text           zero
io-usb-dcd     serusb1        stdout         tty
mem            shmem          tap            tun0


mkifs output is pasted below:



mkifs -r../install -v  beaglebone.build ifs-ti-am335x-beaglebone.bin
  Offset   Size    Entry   Ramoff Target=Host
81000000      8        0      --- /home/shartmann/qnx660/target/qnx6/armle-v7/boot/sys/raw.boot
81000008    100     ----      --- Startup-header
81000108  24010 8100363c      --- /tmp/fileBOOEZr
81024110     5c     ----      --- Image-header
8102416c   2218     ----      --- Image-directory
81027000  8b000 fe05a4f0      --- proc/boot/procnto-instr=/tmp/file6Oj0yG
810b2000    858     ----      --- proc/boot/.script=/tmp/file9JFO1Y
    ----    ---     ----      --- bin/sh=/proc/boot/ksh
    ----    ---     ----      --- dev/console=/dev/ser1
    ----    ---     ----      --- tmp=/dev/shmem
    ----    ---     ----      --- var/log=/tmp
    ----    ---     ----      --- usr/tmp=/tmp
810c0000  8f1fe    46884      --- proc/boot/libc.so.3=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/libc.so
    ----    ---     ----      --- proc/boot/libc.so=libc.so.3
81150000  22e7f     5748      --- proc/boot/libm.so.2=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/libm.so
    ----    ---     ----      --- proc/boot/libm.so=libm.so.2
81180000   f732     416c      --- proc/boot/libcam.so.2=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/libcam.so
    ----    ---     ----      --- proc/boot/libcam.so=libcam.so.2
81190000  27b46     6c58      --- proc/boot/io-blk.so=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/dll/io-blk.so
811b8000   4660      e58      --- proc/boot/cam-disk.so=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/dll/cam-disk.so
811bd000   55bc      f98      --- proc/boot/cam-cdrom.so=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/dll/cam-cdrom.so
811d0000  16602     38f0      --- proc/boot/fs-qnx6.so=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/dll/fs-qnx6.so
811e7000   d4d1     237c      --- proc/boot/fs-qnx4.so=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/dll/fs-qnx4.so
811f5000  128ec     2b20      --- proc/boot/fs-dos.so=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/dll/fs-dos.so
81210000  1274c     2d58      --- proc/boot/fs-udf.so=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/dll/fs-udf.so
81223000   b6c6     22fc      --- proc/boot/fs-cd.so=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/dll/fs-cd.so
8122f000   98c7     2430      --- proc/boot/devu-dm816x-mg.so=../install/armle-v7/lib/dll/devu-dm816x-mg.so
81239000   a65e     36f8      --- proc/boot/libusbdi.so.2=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/libusbdi.so
    ----    ---     ----      --- proc/boot/libusbdi.so=libusbdi.so.2
81244000   8a2b     1e04      --- proc/boot/devu-usbumass-am335x-musbmhdrc.so=../install/armle-v7/lib/dll/devu-usbumass-am335x-musbmhdrc.so
8124d000   8b29     1f94      --- proc/boot/devu-usbser-am335x-musbmhdrc.so=../install/armle-v7/lib/dll/devu-usbser-am335x-musbmhdrc.so
81256000   8ada     1f08      --- proc/boot/devu-usbncm-am335x-musbmhdrc.so=../install/armle-v7/lib/dll/devu-usbncm-am335x-musbmhdrc.so
8125f000   a523     36f8      --- proc/boot/libusbdci.so.2=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/libusbdci.so
    ----    ---     ----      --- proc/boot/libusbdci.so=libusbdci.so.2
81270000  14c9c     4770      --- proc/boot/devnp-usbdnet.so=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/dll/devnp-usbdnet.so
81285000   4f84     1240      --- proc/boot/spi-dm816x.so=../install/armle-v7/lib/dll/spi-dm816x.so
8128a000  13018     4520      --- proc/boot/devnp-dm814x-am335x.so=../install/armle-v7/lib/dll/devnp-dm814x-am335x.so
812a0000  20d7d     5f80      --- proc/boot/libsocket.so.3=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/libsocket.so
    ----    ---     ----      --- proc/boot/libsocket.so=libsocket.so.3
812d0000   52f5     198c      --- proc/boot/libtracelog.so.1=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/libtracelog.so.1
    ----    ---     ----      --- proc/boot/libtracelog.so=libtracelog.so.1
812d6000   5278     1bdc      --- proc/boot/libhiddi.so.1=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/libhiddi.so.1
    ----    ---     ----      --- proc/boot/libhiddi.so=libhiddi.so.1
812dc000   941c     275c      --- usr/lib/libdisputil.so.2=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/libdisputil.so.2
    ----    ---     ----      --- usr/lib/libdisputil.so=libdisputil.so.2
812e6000   5271     16e8      --- usr/lib/libWFD.so.1=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/libWFD.so.1
    ----    ---     ----      --- usr/lib/libWFD.so=libWFD.so.1
812ec000   a36d     2300      --- usr/lib/libinputevents.so.1=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/libinputevents.so.1
    ----    ---     ----      --- usr/lib/libinputevents.so=libinputevents.so.1
812f7000   219c      548      --- usr/lib/libkalman.so.1=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/libkalman.so.1
    ----    ---     ----      --- usr/lib/libkalman.so=libkalman.so.1
812fa000   31fa      8bc      --- lib/dll/screen-pvr2d.so=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/dll/screen-pvr2d.so
812fe000   a38c     1600      --- lib/dll/screen-gles2.so=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/dll/screen-gles2.so
81310000  382ec     2ec0      --- usr/lib/graphics/am335x/libsrv_um.so=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/libsrv_um.so
81349000   7277     168c      --- usr/lib/graphics/am335x/libpvr2d.so=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/libpvr2d.so
81360000  191f9      8e8      --- usr/lib/graphics/am335x/pvrsrvinit.so=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/pvrsrvinit.so
81380000  3e499     6618      --- usr/lib/graphics/am335x/pvrsrv.so=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/pvrsrv.so
813bf000   75fe     1fe0      --- usr/lib/graphics/am335x/libWFDam335x-bbb.so=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/libWFDam335x-bbb.so
813c7000   42f2      ae0      --- usr/lib/graphics/am335x/libwfdcfg.so.0=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/libwfdcfg-am335x-bbb.so
    ----    ---     ----      --- usr/lib/graphics/am335x/libwfdcfg-am335x-bbb.so=libwfdcfg.so.0
813cc000    5c1     ----      --- usr/lib/graphics/am335x/graphics.conf=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/graphics.conf.bbb
813cd000   9b66     2bd0      --- usr/lib/libEGL.so.1=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/libEGL.so.1
    ----    ---     ----      --- usr/lib/libEGL.so=libEGL.so.1
813d7000  11339     34ac      --- usr/lib/libscreen.so.1=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/libscreen.so.1
    ----    ---     ----      --- usr/lib/libscreen.so=libscreen.so.1
813e9000   c175     38a8      --- usr/lib/libGLESv1_CM.so.1=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/libGLESv1_CM.so.1
    ----    ---     ----      --- usr/lib/libGLESv1_CM.so=libGLESv1_CM.so.1
813f6000   9163     2a20      --- usr/lib/libGLESv2.so.1=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/libGLESv2.so.1
    ----    ---     ----      --- usr/lib/libGLESv2.so=libGLESv2.so.1
81400000  eb25d     5998      --- usr/lib/graphics/am335x/libusc.so=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/libusc.so
814f0000  132ac     19c0      --- usr/lib/graphics/am335x/libIMGegl.so=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/libIMGegl.so
81504000   6383     1378      --- usr/lib/graphics/am335x/wsegl-screen.so=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/wsegl-screen.so
81510000  7f4d6     3a00      --- usr/lib/graphics/am335x/libImgGLESv1_CM.so=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/libImgGLESv1_CM.so
81590000  73463     3368      --- usr/lib/graphics/am335x/libImgGLESv2.so=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/libImgGLESv2.so
81610000  4a292     16d0      --- usr/lib/graphics/am335x/libglslcompiler.so=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/graphics/am335x/libglslcompiler.so
81660000  251ec     8e58      --- proc/boot/libasound.so.2=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/libasound.so.2
    ----    ---     ----      --- proc/boot/libasound.so=libasound.so.2
81690000  11517     4b58      --- proc/boot/libaudio_manager.so.1=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/lib/libaudio_manager.so.1
    ----    ---     ----      --- proc/boot/libaudio_manager.so=libaudio_manager.so.1
816a2000   525a     16b8      --- proc/boot/libpps.so.1=/home/shartmann/qnx660/target/qnx6/armle-v7/lib/libpps.so.1
    ----    ---     ----      --- proc/boot/libpps.so=libpps.so.1
816a8000   908c     1708      --- proc/boot/deva-ctrl-mcasp-dm814x_tda19988.so=../install/armle-v7/lib/dll/deva-ctrl-mcasp-dm814x_tda19988.so
816b2000    41d     ----      --- etc/system/config/cacheflags.conf=../install/etc/system/config/cacheflags.conf
816b3000    4a4     ----      --- proc/boot/.console.sh=/tmp/filew7fvrd
816c0000  3e511  804f984      --- sbin/screen=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/screen
816ff000   5c45  804a208      --- usr/bin/gles1-gears=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/gles1-gears
81705000   7878  804a528      --- usr/bin/gles2-gears=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/gles2-gears
8170d000   72af  804a300      --- usr/bin/sw-vsync=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/sw-vsync
81720000  226b3  804f224      --- proc/boot/io-audio=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/io-audio
81743000   4dff  804a3c0      --- proc/boot/wave=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/wave
81748000   6d59  8049d78      --- proc/boot/mix_ctl=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/mix_ctl
8174f000   b415  804a334      --- proc/boot/devc-seromap=../install/armle-v7/sbin/devc-seromap
8175b000   4ab4  8049b74      --- bin/stty=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/stty
81760000  13e69  804aae0      --- proc/boot/devb-sdmmc-j5_generic=../install/armle-v7/sbin/devb-sdmmc-j5_generic
81774000   545c  8049530      --- proc/boot/i2c-omap35xx-j5=../install/armle-v7/sbin/i2c-omap35xx-j5
8177a000   2b82  8048d98      --- proc/boot/am335x-boardid=../install/armle-v7/sbin/am335x-boardid
8177d000   de29  804a2b0      --- proc/boot/rtc=../install/armle-v7/sbin/rtc
8178b000   4379  8049800      --- proc/boot/date=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/date
81790000   34ce  804934c      --- proc/boot/spi-master=../install/armle-v7/sbin/spi-master
81794000   26b5  8048cf4      --- proc/boot/am335x-leds=../install/armle-v7/sbin/am335x-leds
817a0000  19e65  804bb38      --- proc/boot/io-usb=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/io-usb
817ba000   6ad7  8049210      --- proc/boot/usb=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/usb
817c1000   86a6  804a420      --- proc/boot/devb-umass=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/devb-umass
817ca000   3f21  80492b8      --- proc/boot/devb-ram=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/devb-ram
817d0000  174cb  804b980      --- proc/boot/io-usb-dcd=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/io-usb-dcd
817e8000   57a4  8049848      --- proc/boot/ulink_ctrl=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/ulink_ctrl
817ee000   f64f  804a008      --- proc/boot/devu-umass_client-block=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/devu-umass_client-block
817fe000  10b49  804a870      --- proc/boot/devc-serusb_dcd=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/devc-serusb_dcd
81810000  ca6bb  805fe64      --- proc/boot/io-pkt-v4-hc=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/io-pkt-v4-hc
818db000  16466  804a5e8      --- proc/boot/ifconfig=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/ifconfig
818f2000   2681  8048cf0      --- proc/boot/if_up=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/sbin/if_up
818f5000   3b2c  8048d54      --- proc/boot/nicinfo=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/sbin/nicinfo
81900000  17b24  804aae4      --- proc/boot/netstat=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/netstat
81918000   896b  804aaf4      --- proc/boot/ping=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/ping
81921000   62a4  804a0b4      --- proc/boot/route=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/route
81928000  149de  8049970      --- proc/boot/setkey=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/setkey
8193d000   d227  8049f98      --- proc/boot/dhcp.client=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/sbin/dhcp.client
8194b000   2b4c  8048cdc      --- proc/boot/dm814x-wdtkick=../install/armle-v7/bin/dm814x-wdtkick
8194e000   a6ff  804a1e4      --- proc/boot/devc-pty=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/devc-pty
81960000  1742f  804b87c      --- proc/boot/qconn=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/sbin/qconn
81978000   89e2  8049964      --- usr/bin/pdebug=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/pdebug
81990000  138e2  804aa50      --- proc/boot/fs-cifs=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/sbin/fs-cifs
819a4000  11b7b  804afb0      --- proc/boot/fs-nfs3=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/sbin/fs-nfs3
819c0000  380a5  804bc2c      --- proc/boot/ftp=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/ftp
819f9000   925a  804af28      --- proc/boot/inetd=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/sbin/inetd
81a10000  120cc  804a158      --- usr/sbin/telnetd=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/sbin/telnetd
81a30000  197bd  804bbbc      --- usr/sbin/ftpd=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/sbin/ftpd
81a4a000   73ee  8049e14      --- bin/login=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/login
81a52000   23f1  8048b2c      --- proc/boot/cat=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/cat
81a55000   49ad  8049204      --- proc/boot/ls=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/ls
81a60000  1e5ec  804abc0      --- proc/boot/ksh=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/ksh
81a7f000   3f11  8049394      --- proc/boot/mount=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/mount
81a83000   4dff  8049fc4      --- proc/boot/pipe=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/pipe
81a88000  10b04  804a744      --- proc/boot/pidin=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/pidin
81a99000   21b4  8048a10      --- proc/boot/uname=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/uname
81a9c000   3c59  80493f8      --- proc/boot/shutdown=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/shutdown
81aa0000   21dc  8048b44      --- proc/boot/sleep=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/sleep
81aa3000   3fcc  80496f8      --- proc/boot/slogger=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/sbin/slogger
81aa7000   2a95  80490ac      --- proc/boot/sloginfo=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/sloginfo
81aaa000   446b  8049854      --- proc/boot/slay=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/slay
81aaf000   1ef9  80488d0      --- proc/boot/umount=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/umount
81ab1000   28bf  8048bb8      --- proc/boot/mkdir=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/mkdir
81ab4000   1ec1  804882c      --- proc/boot/rmdir=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/rmdir
81ab6000   2d70  80491fc      --- proc/boot/mv=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/mv
81ab9000   7c05  8049fcc      --- proc/boot/cp=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/cp
81ac1000   2d87  8048d88      --- proc/boot/rm=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/rm
81ac4000   9358  804ab94      --- proc/boot/on=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/on
81ad0000  4821d  804a4f4      --- proc/boot/elvis=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/elvis
81b19000   62aa  8049994      --- proc/boot/df=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/df
81b20000   2fdd  8048f64      --- proc/boot/ln=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/ln
81b23000   2e4c  8048dc0      --- proc/boot/chmod=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/chmod
81b30000  22dfe  804a4e8      --- proc/boot/more=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/more
81b53000   1f0b  8048918      --- proc/boot/hostname=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/hostname
81b55000   6064  8049a30      --- proc/boot/use=/home/shartmann/qnx660/target/qnx6/armle-v7/usr/bin/use
81b5c000   2aa8  8048d7c      --- proc/boot/kill=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/kill
81b60000  15177  804a3a8      --- proc/boot/fdisk=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/fdisk
81b76000   76af  804ade8      --- proc/boot/mkdosfs=/home/shartmann/qnx660/target/qnx6/armle-v7/sbin/mkdosfs
81b7e000   9358  804ab94      --- proc/boot/waitfor=/home/shartmann/qnx660/target/qnx6/armle-v7/bin/waitfor
81b87358      4     ----      --- Image-trailer
make[1]: Leaving directory `/home/shartmann/qnx-ide-5.0-workspace/ti-am335x-beaglebone-SDP6.6/images'
done

09:19:17 Build Finished (took 2m:23s.197ms)
beaglebone.build

Mark Lazarewicz

unread,
Mar 2, 2016, 3:59:45 PM3/2/16
to beagl...@googlegroups.com
I might be incorrect but when I played with the Panda board and QNX the correct format of SD  was on the QNX site but you had to register.  At that time 2010 QNX was a commercial product.  Your talking about modify source code that's not open source I think you might want to make sure what your doing is Allowed 


I hope there is someone here successfully using QNX on the BBB.  I am currently doing a QNX evaluation and am having trouble with the BBB BSP.  I am using the BSP_ti-am335x-beaglebone_ br-660_be-660_SVN797070_ JBN574.zip BSP.  The package comes with a pre-built image, which boots up fine.  I have been able to do a few test programs with it, but now I need to modify the BSP to change which features are used.  The first step in doing this was to just recompile the BSP to make sure I can recreate the precompiled version.  The build goes fine and creates an image.  I can boot off the image, but it gives a lot of errors:

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steven Hartmann

unread,
Mar 2, 2016, 4:45:45 PM3/2/16
to BeagleBoard
I think it is an error in the BSP makefile somewhere.  I went back and found all the executables and shared libraries that were built as part of the BSP and saw that on my build host, none of them had execute permissions.  I did a "chmod +x" on all of them, removed the .bin image file, did a build in the IDE, and that seems to work much better.

I don't know, though, if I should fix the makefile to create the local files with execute permissions, or if there is a command or directive I can use in the .build file which would set the permissions properly in the image.

acheesehead

unread,
Mar 3, 2016, 7:10:08 PM3/3/16
to BeagleBoard
These lines in the .build file should start the SD and eMMC:
    #######################################################################
    ## MMC/SD driver
    #######################################################################
    display_msg Starting MMC/SD driver...
    # MMC 0 pio
    # devb-sdmmc-j5_generic sdio addr=0x48060000,irq=64,dma=25,dma=24,dma=128,dma=32,verbose=3,bs=nocd:nowp cam pio,cache,pnp,async blk cache=8M disk name=sd
    # MMC 0 dma
    devb-sdmmc-j5_generic sdio addr=0x48060000,irq=64,dma=25,dma=24,dma=128,dma=32,verbose=3,bs=nocd:nowp cam cache,pnp,async blk cache=8M disk name=sd

    # eMMC 0 dma
    devb-sdmmc-j5_generic sdio addr=0x481D8000,irq=28,verbose=3,dma=3,dma=2,dma=160,dma=32,bs=emmc,bw=4 cam quiet,cache blk rw,cache=2M disk name=emmc

They should show up as /dev/hd0 and /dev/hd1. I am using a different driver. That could be a QNX 6.5 thing. Try typing 'sloginfo' to see if that gives you any clues. Of course, if they didn't start, the devices won't show up as evidenced by your original post:

Starting MMC/SD driver...
Unable to start "devb-sdmmc-j5_generic" (2)
Unable to start "devb-sdmmc-j5_generic" (2)

The SD card is usually split into 2 partitions. A small bootable FAT32 partition to hold MLO, u-boot.bin and the QNX image. The other partition is usually set to type 131 for the QNX filesystem. I am booting from the eMMC. Here is what fdisk shows for eMMC:

FDISK
Ignore Next Prev Change Delete Boot Unboot Restore Loader Save Quit

        _____OS_____     Start      End     ______Number_____    Size    Boot
        name    type    Cylinder  Cylinder  Cylinders  Blocks

--> 1.  FAT32  ( 11)            0       511     512     1048544    511 MB  *
    2.  Linux  (131)          512      7439    6928    14188544   6928 MB
    3.  ______ (___)    _   _   _   _  _____
    4.  ______ (___)    _   _   _   _  _____


 Choose a partition by typing the partition number OR moving the pointer
 with the UP/DOWN arrows.
 Then, choose one of the actions on the top line of the screen.



Drive : /dev/hd0                    Config:    64 Heads
Size  : 7440 Mbytes                            32 Sectors/track
Loader: Unknown                              7440 Cylinders
Blocks: 15237120                              512 Block Size

                                    Last cylinder is 7439


On Tuesday, March 1, 2016 at 3:00:18 PM UTC-7, Steven Hartmann wrote:

acheesehead

unread,
Mar 8, 2016, 6:27:29 PM3/8/16
to BeagleBoard
I just downloaded and built the latest 'experimental' QNX 6.6 BSP for BBB. Got the same errors. Turns out that the permissions of files in install/sbin and install/bin needed to change. Once I changed their permissions, all goes well. The build script does not mount the SD card or the eMMC, so that must be done manually.


On Tuesday, March 1, 2016 at 3:00:18 PM UTC-7, Steven Hartmann wrote:

Karl Karpfen

unread,
Mar 9, 2016, 2:11:09 AM3/9/16
to BeagleBoard
This is a bit off-topic, but: what is the state of QNX at the moment? Last time I have seen it, it came with a very poor X-Server interface which caused strange crashes. And it was not possible to compile and use a platform-independent GUI-toolkit like wxWidgets with QNX. Has this changes meanwhile or is QNX still a closed universe where all the necessary standards do not work?

Jason Kridner

unread,
Mar 9, 2016, 11:32:26 AM3/9/16
to BeagleBoard
I contacted the QNX folks. They asked for some info on the permissions and how you were running the script, so it seems they were on the right track. Guess you've got it all going now?

They also said they'd work with me on refreshing the info as it is a bit stale.
--
Reply all
Reply to author
Forward
0 new messages