Re: [Machinekit] using hal_spi module
OK, I'll have a look tomorrow Won't be able to test so I'll be back to you :) On 29/09/18 17:56, mngr wrote: https://github.com/mngr0/machinekit Il giorno sabato 29 settembre 2018 18:50:47 UTC+2, Schooner ha scritto: Can you link to a github repo with this in? I will look tomorrow. You have probably declared something as extern or otherwise done enough to satisfy the compiler, but not actually linked it or similar. Each driver probably needs to have all the routines and info within it. On 29/09/18 17:41, mngr wrote: i have copied all the function and recompiled, now when i run realtime start; halcmd loadrt hal_spi an error says do_load_cmd: dlopen: /home/pi/machinekit/rtlib/rt-preempt/hal_spi.so: undefined symbol: get_rpi_revision rpath=/home/pi/machinekit/rtlib/rt-preempt:/home/pi/machinekit/lib it does not happen if I run halcmd loadrt hal_gpio then I have seen that there is bcm26835.h that unify all the useful definitions, it would be nice if hal_spi.h was removed since it duplicates definitions. the only problem is that hal_spi.h defines the register addresses, while bcm2835.h defines offsets, so a lot of hal_spi.c would have to be modified. Il giorno venerdì 28 settembre 2018 19:45:13 UTC+2, XL600R ha scritto: On 28.09.18 17:16, schoo...@gmail.com wrote: > It can only have been written for v1 or v2, probably not v2B given its date of writing. > I have not heard anything of the guy who wrote it for some years either. Hi, Gemi has wrote this driver for a particular board https://github.com/kinsamanka/PICnc-V2/wiki . I can't believe that it is very useful for someone else. IMHO the nomenclature isn't overly happy. A little bit to general. ;) BR I need a way to write commanded velocity on the spi, my bigger problem wiill be on the spi-slave, and this seems to me a pretty easy protocol to implement -- 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 machinekit+...@googlegroups.com. 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 machinekit+unsubscr...@googlegroups.com. 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 machinekit+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
Re: [Machinekit] using hal_spi module
https://github.com/mngr0/machinekit Il giorno sabato 29 settembre 2018 18:50:47 UTC+2, Schooner ha scritto: > > Can you link to a github repo with this in? I will look tomorrow. > > You have probably declared something as extern or otherwise done enough to > satisfy the compiler, but not actually linked it or similar. > > Each driver probably needs to have all the routines and info within it. > > On 29/09/18 17:41, mngr wrote: > > i have copied all the function and recompiled, > now when i run realtime start; halcmd loadrt hal_spi an error says > do_load_cmd: dlopen: /home/pi/machinekit/rtlib/rt-preempt/hal_spi.so: > undefined symbol: get_rpi_revision > rpath=/home/pi/machinekit/rtlib/rt-preempt:/home/pi/machinekit/lib > > it does not happen if I run halcmd loadrt hal_gpio > > > then I have seen that there is bcm26835.h that unify all the useful > definitions, it would be nice if hal_spi.h was removed since it duplicates > definitions. > the only problem is that hal_spi.h defines the register addresses, while > bcm2835.h defines offsets, so a lot of hal_spi.c would have to be modified. > > > > Il giorno venerdì 28 settembre 2018 19:45:13 UTC+2, XL600R ha scritto: >> >> On 28.09.18 17:16, schoo...@gmail.com wrote: >> > It can only have been written for v1 or v2, probably not v2B given its >> date of writing. >> > I have not heard anything of the guy who wrote it for some years >> either. >> >> Hi, >> >> Gemi has wrote this driver for a particular board >> https://github.com/kinsamanka/PICnc-V2/wiki . >> I can't believe that it is very useful for someone else. >> IMHO the nomenclature isn't overly happy. >> A little bit to general. ;) >> >> BR >> > > I need a way to write commanded velocity on the spi, my bigger problem > wiill be on the spi-slave, and this seems to me a pretty easy protocol to > implement > > -- > 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 machinekit+...@googlegroups.com . > 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 machinekit+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
Re: [Machinekit] using hal_spi module
Can you link to a github repo with this in? I will look tomorrow. You have probably declared something as extern or otherwise done enough to satisfy the compiler, but not actually linked it or similar. Each driver probably needs to have all the routines and info within it. On 29/09/18 17:41, mngr wrote: i have copied all the function and recompiled, now when i run realtime start; halcmd loadrt hal_spi an error says do_load_cmd: dlopen: /home/pi/machinekit/rtlib/rt-preempt/hal_spi.so: undefined symbol: get_rpi_revision rpath=/home/pi/machinekit/rtlib/rt-preempt:/home/pi/machinekit/lib it does not happen if I run halcmd loadrt hal_gpio then I have seen that there is bcm26835.h that unify all the useful definitions, it would be nice if hal_spi.h was removed since it duplicates definitions. the only problem is that hal_spi.h defines the register addresses, while bcm2835.h defines offsets, so a lot of hal_spi.c would have to be modified. Il giorno venerdì 28 settembre 2018 19:45:13 UTC+2, XL600R ha scritto: On 28.09.18 17:16, schoo...@gmail.com wrote: > It can only have been written for v1 or v2, probably not v2B given its date of writing. > I have not heard anything of the guy who wrote it for some years either. Hi, Gemi has wrote this driver for a particular board https://github.com/kinsamanka/PICnc-V2/wiki . I can't believe that it is very useful for someone else. IMHO the nomenclature isn't overly happy. A little bit to general. ;) BR I need a way to write commanded velocity on the spi, my bigger problem wiill be on the spi-slave, and this seems to me a pretty easy protocol to implement -- 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 machinekit+unsubscr...@googlegroups.com. 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 machinekit+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
Re: [Machinekit] using hal_spi module
i have copied all the function and recompiled, now when i run realtime start; halcmd loadrt hal_spi an error says do_load_cmd: dlopen: /home/pi/machinekit/rtlib/rt-preempt/hal_spi.so: undefined symbol: get_rpi_revision rpath=/home/pi/machinekit/rtlib/rt-preempt:/home/pi/machinekit/lib it does not happen if I run halcmd loadrt hal_gpio then I have seen that there is bcm26835.h that unify all the useful definitions, it would be nice if hal_spi.h was removed since it duplicates definitions. the only problem is that hal_spi.h defines the register addresses, while bcm2835.h defines offsets, so a lot of hal_spi.c would have to be modified. Il giorno venerdì 28 settembre 2018 19:45:13 UTC+2, XL600R ha scritto: > > On 28.09.18 17:16, schoo...@gmail.com wrote: > > It can only have been written for v1 or v2, probably not v2B given its > date of writing. > > I have not heard anything of the guy who wrote it for some years either. > > Hi, > > Gemi has wrote this driver for a particular board > https://github.com/kinsamanka/PICnc-V2/wiki . > I can't believe that it is very useful for someone else. > IMHO the nomenclature isn't overly happy. > A little bit to general. ;) > > BR > I need a way to write commanded velocity on the spi, my bigger problem wiill be on the spi-slave, and this seems to me a pretty easy protocol to implement -- 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 machinekit+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.