Hi All and @RobertCNelson,

I'm tying to run Xenomai 3 on BBB and I'm having trouble compiling Xenomai 
userspace libraries on BBB. Here's what I've done so far 


   - Got a xenomai patched kernel 
   from https://github.com/RobertCNelson/ti-linux-kernel-dev.git
   - Checked out the origin/ti-linux-xenomai-4.9.y 
   on my 64bit computer)
   - Ran ./build_deb.sh (on my 64 bit computer)
      - Turned off CPU scaling
   - Copied the linux-image-4.4.113-ti-xenomai-r149_1cross_armhf.deb file 
   from deploy folder to BBB
   - Installed the image on BBB and reboot
   - Doing dmesg | grep -i Xenomai on BBB gives me this

[    0.000000] Linux version 4.4.113-ti-xenomai-r149 (root@ubuntu) (gcc version 
5.5.0 (Linaro GCC 5.5-2017.10) ) #1 SMP Sat May 5 18:09:51 CDT 2018
[    1.151376] [Xenomai] scheduling class idle registered.
[    1.151390] [Xenomai] scheduling class rt registered.
[    1.151574] I-pipe: head domain Xenomai registered.
[    1.156765] [Xenomai] Cobalt v3.0.6 (Stellar Parallax) 
[    1.303712] usb usb1: Manufacturer: Linux 4.4.113-ti-xenomai-r149 musb-hcd




   - Now for installing the libraries and tools
   - I get a tarball from 
   here https://xenomai.org/downloads/xenomai/stable/ 
   - I copy this to my BBB and try to compile it
   - I run ./configure -enable-pshared -enable-smp and I get "configure: 
   error: C compiler cannot create executables See `config.log' for more 
   details"
   - I try to do a helloworld in C and I get this "error while loading 
   shared libraries: /usr/lib/libbfd-2.25-system.so: invalid ELF header"


What am I doing wrong?

   - I'm guessing its something to do with my cross compilation when I'm 
   building the debian image on my 64 bit computer. I tried setting the 
   environment variables in the cross compiler in the shell session with 
   export ARCH=arm export PATH=<Path to the toolchain>/bin/:$PATH export 
   CROSS_COMPILE=arm-linux-gnueabihf-
   - It still doesnt work. 
   - I even ran sudo apt-get install crossbuild-essential-armhf to make 
   sure my 64-bit computer had the right tool chain

Any tips will be really helpful. 

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/e846fdb0-d5a6-4bf2-898c-691bf3e0bc1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to