Efika 5200B Project
Capek Robotin category Robotics
proposed by knickels on 26th April 2007 (accepted on 27th April 2006)
posted by knickels on 4th December 2007
This actually happened on Oct 9, but the end of the semester has been typically brutal.
Turns out that the big problem with getting the Ethernet driver to work is that it was compiled into my QNX image (AURA.ELF) instead of on the HD. So to get it to work, I just deleted it from my QNX image in momentics and copied it to the EFIKA hard drive, then rebooted. The gory details are below.
Now, I can use momentics on my linux host to code programs for the efika, and have them run in a graphical debugger, with the execution happening on the efika! Yea!
The Gory Details
On advise from bplan QNX support, I tried the provided AURA.IFS image. As I've seen before, an EXT2FS on the HD is not recognized by my system - this image attempts to mount the second partition of hd0 (/dev/hd0t131) as / (ext2fs).
Then, I tried putting the ethernet driver on the hard drive instead of in the image. My hard drive is a QNX4 partition followed by a FAT32 partition, so I have to plug it into my linux box and mount up the FAT32, copy the files over, then put it back in the EFIKA to do this. Specifically, the "ethernet driver" consists of two parts, devn-mpc5200.so and libbestcomm.so. I first just moved devn-mpc5200.so to the HD, with no joy. Then I moved libbestcomm.so, and the ethernet started functioning perfectly. (Acually, I already had these on the HD, I just had to remove them from the image, remake the image, and copy it to the thumb drive from which I boot.)
So my startup file in QNX now has (in part):
display_msg Starting on-board ethernet
# This is the ethernet driver for Efika. Copy this file in /lib/dll on
# your QNX root file system. It is a normal ethernet driver for io-net.
# To start it up.
#io-net -dmpc5200
io-net -dmpc5200 mac=(my MAC address) -ptcpip # only needed for TCP/IPnetworking
waitfor /dev/io-net/en0 10
ifconfig en0 (my static IP) netmask 255.255.255.0
route add default (my static gateway)
display_msg done.
So now I can ping back and forth, and more importantly, I can compile programs in Momentics and have them run in the graphical debugger on my linux machine, executing on the efika!