Re: [beagleboard] Xenomai master - BBB RCNelson 3.13-bone5 kernel patches

2014-05-15 Thread alexis . martin . 1050
Hello dlewin555 


Did you succeed in installing Xenomai on your BBB?

Le lundi 10 mars 2014 14:14:59 UTC+1, dlewin555 a écrit :

 With the provided files in attachment, I put the include dir from the SD 
 card which is fine when using from machinekit 
 http://blog.machinekit.io/p/machinekit_16.html and 
 compile my* toggle_gpio.c* :


- *Makefile*


  make :
 gcc -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__  -g 
  gpio-utils.c  -lnative -L/usr/xenomai/lib -lxenomai -lpthread -lrt   
 -lnative   toggle_gpio.c  -lnative -lxenomai -o toggle_gpio
 In file included from /usr/xenomai/include/nucleus/thread.h:25:0,
  from /usr/xenomai/include/nucleus/sched.h:31,
  from /usr/xenomai/include/native/task.h:25,
  from toggle_gpio.c:14:
 /usr/xenomai/include/nucleus/types.h:36:32: fatal error: 
 asm/xenomai/system.h: No such file or directory
 compilation terminated.
 make: *** [toggle_gpio] Error 1
 root@arm:/home/experiences#



- *I have the glibc*:


 GNU C Library (Debian EGLIBC 2.18-1) stable release version 2.18, by 
 Roland McGrath et al.
 Copyright (C) 2013 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.
 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
 PARTICULAR PURPOSE.
 Compiled by GNU CC version 4.8.2.
 Compiled on a Linux 3.11.10 system on 2014-02-21.
 Available extensions:
 crypt add-on version 2.1 by Michael Glad and others
 GNU Libidn by Simon Josefsson
 Native POSIX Threads Library by Ulrich Drepper et al
 BIND-8.2.3-T5B
 libc ABIs: UNIQUE




- and  didn't installed the kernel headers yet.
- *don't know machinekit how is it to be installed : * well as it's 
based on patches onto the RCN git repo based, I've used the 
 *build_kernel 
*which retrieve linaro compiler + sources + and deps accordingly, 
Therefore, it's Debian based.





 2014-03-09 3:11 GMT+01:00 t-szczyrba tsr...@googlemail.com javascript:
 :

  I also have a working gcc inside, but can't make when system.h, 
 asm/.../types.h, xeno_config.h are missing. Copy them from the working 
 machinekit on SD doesn't fix the problem.

 Please send the makefile  gcc output - I suppose you don't have glibc  
 kernel headers installed in the BBB and don't know machinekit how is it to 
 be installed. Is the machinekit something like linuxcnc + Ubuntu derivative?

 regards,

 T.

 -- 
 For more options, visit http://beagleboard.org/discuss
 --- 
 You received this message because you are subscribed to a topic in the 
 Google Groups BeagleBoard group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/beagleboard/HqwuSu2tLe8/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 beagleboard...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Xenomai on BBB

2014-05-15 Thread alexis . martin . 1050
Hi Giuseppe !

Did you succeed installing Xenomai? I'am having troubles with it...  Well 
I'm not an expert so I could do something wrong in the procedure / or don't 
do something. 

Here is what I did:

1) I download the zip :  https://github.com/yapatel/beagleboneblack-xenomai

2) I execute the following script

./build_kernel.sh

3) use eMMC patcher and put it to a  microSD card

Install Kernel Image to SD card: (requires MMC set in system.sh)

4) I execute the following script

./tools/install_kernel.sh

What do I have to do to get Xenomai on my BBB? Did I miss something? 

Le mercredi 25 septembre 2013 09:12:03 UTC+2, Giuseppe Iellamo a écrit :

 Thank you very much!
 This is very valuable help for me!

 Giuseppe


 Il giorno martedì 24 settembre 2013 15:50:28 UTC+2, Charles Steinkuehler 
 ha scritto:

 On 9/24/2013 8:21 AM, Giuseppe Iellamo wrote: 
  I have seen on the internet different guides on using Xenomai with 
  beagleboard... has anyone ever tried to compile xenomai on BBB w kernel 
 3.8? 

 Just grab the build scripts from github and type ./build_kernel.sh: 

 https://github.com/cdsteinkuehler/linux-dev/tree/3.8.13-bone27-xenomai 

 ...or I have SD card images with the kernel and xenomai user-land 
 already installed and ready to run (along with LinuxCNC): 

 http://bb-lcnc.blogspot.com/p/machinekit_16.html 

 The BeagleBone 3.8.13 pre/post patch and required iPipe patches are all 
 in the latest Xenomai, which should be released Real Soon Now...mostly 
 waiting on some stuff from the 3.10 kernel, IIRC. 

 Credit to Robert C Nelson for the initial versions of the kernel and 
 image build scripts (also on github).  THANKS! 

 -- 
 Charles Steinkuehler 
 cha...@steinkuehler.net 



-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: PRU FAQ 2013-05-15

2014-05-06 Thread alexis . martin . 1050


Hello,

I am also very interesting about this.

I need to complete a fast ADC / DAC with some numeric matrix calculation. I 
thought about using a BBB, and the PRUs seemed to be a very interesting 
point. The numeric part could be done using Xenomai.

Apparently the use of SPI with the PRUs is possible. So can I use SPI ADC / 
DAC with the PRU?

Could anyone be more precise on how to do it? Write SPI drivers for the 
PRU? 

If I was not clear enough, tell me :)

Thank you very much



Le mardi 22 octobre 2013 17:23:11 UTC+2, u.pel...@srett.com a écrit :

 Hi,

 Thanks for these informations. 

 But I would like to use the PRU to get data from a fast ADC connected by 
 SPI. I get that there is no example of SPI connection but is it possible ?  
 It seems that the PRU can only access to UART, CFG, eCAP interfaces. Am I 
 right ?

 Thanks.

 Ugo

 Le jeudi 26 septembre 2013 00:05:00 UTC+2, Charles Steinkuehler a écrit :

 On 9/25/2013 4:48 PM, Mark A. Yoder wrote: 
  What's the current status of the PRUs?  Has anyone produced some 
 tutorials 
  on how to do simple things on it?  I've looked at the examples in 
 Jason's 
  post, but more examples on how to do simple things would be helpful. 

 I have some basic example code I tried to comment very well for use as 
 an example of the PRU debugger available with LinuxCNC.  It mostly just 
 sets up the timer portion of the industrial Ethernet controller (the 
 only part that's documented) and blinks some LEDs.  I tried to provide 
 examples of various assembler features (like using records/structs) as 
 well as use a variety of coding techniques (including a jump table for 
 case logic).  Perhaps you might find something useful reading through 
 the code: 


 https://github.com/cdsteinkuehler/linuxcnc/blob/MachineKit-ubc/configs/ARM/PRU-Debugger/pruexample.p
  

 ...or if you've got a copy of my MachineKit image you can try running it 
 with the debugger and single-stepping through the code. 

  For example, how does on set up a double buffer between the ARM and the 
 PRU 
  with the PRU interrupting the ARM when it's finished with one buffer 
 and is 
  working on the next so the ARM can refill the buffer. 

 That is totally *NOT* simple and has a *LOT* of places where things can 
 go wrong (race conditions, deadlocks, cache management, etc).  I'll 
 probably have code that deals with all of this at some point, but I 
 wouldn't expect it to be a newbie oriented HOWTO code example. 

  Or, examples of the PRU talking to things on the i2c or SPI buses. 
  
  Has anyone gotten the PRU to control a quadcopter? 

 No to both of the above, AFAIK. 

 -- 
 Charles Steinkuehler 
 cha...@steinkuehler.net 



-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.