> Am 25.07.2016 um 13:52 schrieb Chen Cheng Xi <[email protected]>:
> 
> Dear Charles,
> 
> Thanks for your hints. Yeah, you are right. I re-compile the kernel with 
> xenomai flavor.
> It automatically compile and generate  pru_generic.bin. But it seems other 
> issue occurs as follows:
> halcmd: loadrt hal_pru_generic 
> prucode=/home/ubuntu/machinekit/rtlib/xenomai/pru_generic.bin pru=1 
> num_stepgens=3 num_pwmgens=1
> <stdin>:2: insmod failed, returned -1:
> rtapi_app_main(hal_pru_generic): -1 Operation not permitted


sure you did a 'sudo make setuid' as per here: 
http://www.machinekit.io/docs/developing/machinekit-developing/ after the build?

> 
> See /var/log/linuxcnc.log for more information.
> 
> Dmesg shows as below:
> Jul 25 11:39:55 arm msgd:0: hal_lib:1844:rt prussdrv_init
> Jul 25 11:39:55 arm msgd:0: hal_lib:1844:rt prussdrv_open
> Jul 25 11:39:55 arm msgd:0: hal_lib:1844:rt hpg: ERROR: failed to initialize 
> PRU
> Jul 25 11:39:55 arm msgd:0: rtapi_app:1844:user 
> rtapi_app_main(hal_pru_generic): -1 Operation not permitted
> Now i just start to learn how to use PRU in BBB.
> Thanks for any hints from anyone in advance!
> 
> -chengxi
> 
> -- 
> website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
> https://github.com/machinekit
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to