[Machinekit] Successful cross-compiling with Debian Stretch

2019-04-19 Thread James Gao
Hi everyone,
Just wanted to report that I got Machinekit to successfully cross-compile 
through a Debian Stretch debootstrap. It seems that the latest multiarch 
support in stretch is good enough that (most) of the armhf libraries 
installed correctly. This doesn't require qemu, so it takes a fraction of 
the time to build. I was searching for more instructions on how to do a 
cross-compile build, and came across this thread: 
https://groups.google.com/forum/#!topic/machinekit/HWS807SS8ks which 
requested a PR -- let me know if that's still preferred.

This is partially for my own benefit, but here's a short summary of the 
commands I used to get it to work:
sudo debootstrap --components=main,contrib,non-free stretch {DEST_FOLDER} 
http://deb.debian.org/debian/

I configured schroot to launch the system:
cat < /etc/schroot/chroot.d/amd64-stretch
[amd64-stretch]
description=Debian Stretch (amd64)
directory={DEST_FOLDER}
root-users={USERNAME}
users={USERNAME}
type=directory
EOF
schroot -s amd64-stretch

Once inside, I configured multiarch and installed some basic packages:
sudo dpkg --add-architecture armhf
sudo apt update
sudo apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf cython 
pkg-config autoconf git libczmq-dev:armhf
git pull https://github.com/machinekit/machinekit.git
cd machinekit/src/
./autogen.sh
PKG_CONFIG_PATH="/usr/lib/arm-linux-gnueabihf/pkgconfig/" ./configure 
--with-platform-beaglebone --host arm-linux-gnueabihf

Now the great dependency hunt begins -- basically just run the configure 
line, and install the :armhf version of whatever library it complains 
about. I can put together a more comprehensive list if requested. 

The only library that requires special treatment is libboost-python-dev. If 
you try to install the :armhf version of that library, it tries to replace 
python with the armhf version, which will break the system. I went ahead 
and just directly extracted only the contents of 
/usr/lib/arm-linux-gnueabihf/ from 
http://ftp.us.debian.org/debian/pool/main/b/boost1.62/libboost-python1.62.0_1.62.0+dfsg-4_armhf.deb
 
and 
http://ftp.us.debian.org/debian/pool/main/b/boost1.62/libboost-python1.62-dev_1.62.0+dfsg-4_armhf.deb

I'm pretty sure I have a working armhf build -- I haven't had a chance to 
run it on target yet because I need to figure out how to package it 
(currently still in the RIP environment).

-- 
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.


[Machinekit] config-pin setting for Mode 0 (gpmc) question

2019-04-19 Thread Jeff Pollard

Hi,

  I'm using:* Linux beaglebone 4.14.106-bone-rt-r19 #1 PREEMPT RT Tue Mar 
26 19:02:06 UTC 2019 armv7l GNU/Linux*

  I started by disabling the emmc in uEnv.txt

  I then tried to modify the config-pin script for P8_14 (which would be 
gpmc_AD14 as a starting example), but I get

*Cannot write pinmux File: /sys/devices/platform/ocp/ocp:P8_14_pinmux/state*

  Can anyone give a pointer on how to go about configuring pins to use gmpc 
mode with the config-pin script (or any other method)?

Thanks,

Jeff

-- 
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.


[Machinekit] packages for PRU assembler (pasm)

2019-04-19 Thread Jon Elson
Hello, I have just installed the latest (April 14) distro for Machinekit.  
Now, I want to install the pasm.  I tried 
sudo apt-get install machinekit-dev
Which I think might be the right package, but I get :
Package machinekit-dev is not available, but is referred to by another 
package.

I'm guessing I need to add a repository, but I can't find the instructions 
on what repo to add.
Platform is Beagle Bone Black, if that matters.

Thanks much,

Jon

-- 
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] Re: config-pin setting for Mode 0 (gpmc) question

2019-04-19 Thread Charles Steinkuehler
You are correct...you error is at a lower level than config-pin.

The problem is the mode you want is not implemented by the universal
overlay:

https://github.com/RobertCNelson/bb.org-overlays/blob/master/src/arm/cape-universal-00A0.dts#L1551-L1562

You can either request an update to the universal overlay, patch it
and send a PR, or migrate to using a "real" device-tree overlay.

When I created the "Universal" overlay, I didn't expect many people to
be trying to use the General Purpose Memory Controller.  ;-)

On 4/19/2019 3:08 PM, Jeff Pollard wrote:
> Hi,
>   That makes sense, but
> 
>   I can use config-pin to set the value to something like: 
> *  pwm*
>   for example:
> *  config-pin P8.14 pwm* 
>   will work just fine
>   as will *gpio*
>   and 
> *gpio_pd, etc.*
> 
>   But, *gpmc* (mode 0) is not a valid choice i.e. config-pin  p8.14 gpmc is 
> invalid
>   I tried adding it to the config-pin script for pin 8_14, but that didn't 
> help as it appears the problem is deeper than than.  I can't change the 
> value of state in:
> 
> /sys/devices/platform/ocp/ocp:P8_14_pinmux/state
> 
>   the error I get is:
> 
> *Cannot write pinmux File: /sys/devices/platform/ocp/ocp:P8_14_pinmux/state*
> 
> Jeff
> 
> On Friday, April 19, 2019 at 12:39:21 PM UTC-7, Mala Dies wrote:
>>
>> Hello,
>>
>> The config-pin utility can be used in user land or user land w/ a .sh 
>> script and .service file to boot the board w/ the required config-pin 
>> utility being present.
>>
>> Seth
>>
>> P.S. If you know how to do this instead, this may work for you. So, use: 
>> config-pin P8.14  <--- this would be your mode, i.e. GPIO, UART, and 
>> etc.
>>
>> So, if you wanted to put in gpio in , you could if this is what you 
>> want. Does this sort of make sense?
>>
>> On Friday, April 19, 2019 at 1:55:21 PM UTC-5, Jeff Pollard wrote:
>>>
>>>
>>> Hi,
>>>
>>>   I'm using:* Linux beaglebone 4.14.106-bone-rt-r19 #1 PREEMPT RT Tue 
>>> Mar 26 19:02:06 UTC 2019 armv7l GNU/Linux*
>>>
>>>   I started by disabling the emmc in uEnv.txt
>>>
>>>   I then tried to modify the config-pin script for P8_14 (which would be 
>>> gpmc_AD14 as a starting example), but I get
>>>
>>> *Cannot write pinmux File: 
>>> /sys/devices/platform/ocp/ocp:P8_14_pinmux/state*
>>>
>>>   Can anyone give a pointer on how to go about configuring pins to use 
>>> gmpc mode with the config-pin script (or any other method)?
>>>
>>> Thanks,
>>>
>>> Jeff
>>>
>>
> 


-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
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] Re: config-pin setting for Mode 0 (gpmc) question

2019-04-19 Thread Robert Nelson
On Fri, Apr 19, 2019 at 3:08 PM Jeff Pollard  wrote:
>
> Hi,
>   That makes sense, but
>
>   I can use config-pin to set the value to something like:
>   pwm
>   for example:
>   config-pin P8.14 pwm
>   will work just fine
>   as will gpio
>   and gpio_pd, etc.
>
>   But, gpmc (mode 0) is not a valid choice i.e. config-pin  p8.14 gpmc is 
> invalid
>   I tried adding it to the config-pin script for pin 8_14, but that didn't 
> help as it appears the problem is deeper than than.  I can't change the value 
> of state in:
>
> /sys/devices/platform/ocp/ocp:P8_14_pinmux/state
>
>   the error I get is:
>
> Cannot write pinmux File: /sys/devices/platform/ocp/ocp:P8_14_pinmux/state

Hi Jeff,

This is the first we've had anyone ask about gpmc.  Right now the
kernel overlay isn't setup to export the gpmc pinmux.

Thus the error.

Today, your best bet is to write an overlay to enable the gpmc pinmux.

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
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.


[Machinekit] Re: config-pin setting for Mode 0 (gpmc) question

2019-04-19 Thread Jeff Pollard
Hi,
  That makes sense, but

  I can use config-pin to set the value to something like: 
*  pwm*
  for example:
*  config-pin P8.14 pwm* 
  will work just fine
  as will *gpio*
  and 
*gpio_pd, etc.*

  But, *gpmc* (mode 0) is not a valid choice i.e. config-pin  p8.14 gpmc is 
invalid
  I tried adding it to the config-pin script for pin 8_14, but that didn't 
help as it appears the problem is deeper than than.  I can't change the 
value of state in:

/sys/devices/platform/ocp/ocp:P8_14_pinmux/state

  the error I get is:

*Cannot write pinmux File: /sys/devices/platform/ocp/ocp:P8_14_pinmux/state*

Jeff

On Friday, April 19, 2019 at 12:39:21 PM UTC-7, Mala Dies wrote:
>
> Hello,
>
> The config-pin utility can be used in user land or user land w/ a .sh 
> script and .service file to boot the board w/ the required config-pin 
> utility being present.
>
> Seth
>
> P.S. If you know how to do this instead, this may work for you. So, use: 
> config-pin P8.14  <--- this would be your mode, i.e. GPIO, UART, and 
> etc.
>
> So, if you wanted to put in gpio in , you could if this is what you 
> want. Does this sort of make sense?
>
> On Friday, April 19, 2019 at 1:55:21 PM UTC-5, Jeff Pollard wrote:
>>
>>
>> Hi,
>>
>>   I'm using:* Linux beaglebone 4.14.106-bone-rt-r19 #1 PREEMPT RT Tue 
>> Mar 26 19:02:06 UTC 2019 armv7l GNU/Linux*
>>
>>   I started by disabling the emmc in uEnv.txt
>>
>>   I then tried to modify the config-pin script for P8_14 (which would be 
>> gpmc_AD14 as a starting example), but I get
>>
>> *Cannot write pinmux File: 
>> /sys/devices/platform/ocp/ocp:P8_14_pinmux/state*
>>
>>   Can anyone give a pointer on how to go about configuring pins to use 
>> gmpc mode with the config-pin script (or any other method)?
>>
>> Thanks,
>>
>> Jeff
>>
>

-- 
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.


[Machinekit] Re: config-pin setting for Mode 0 (gpmc) question

2019-04-19 Thread Daren Schwenke
If other pins exist in that location and others are writeable but this one 
isn't, this means that pin has been claimed by some other device already.
Like if you try to use HDMI pins, but don't disable HDMI first... you'll 
get what you got.

The other scenario is you are using the wrong build and those pins don't 
exist at all.

On Friday, April 19, 2019 at 4:08:19 PM UTC-4, Jeff Pollard wrote:
>
> Hi,
>   That makes sense, but
>
>   I can use config-pin to set the value to something like: 
> *  pwm*
>   for example:
> *  config-pin P8.14 pwm* 
>   will work just fine
>   as will *gpio*
>   and 
> *gpio_pd, etc.*
>
>   But, *gpmc* (mode 0) is not a valid choice i.e. config-pin  p8.14 gpmc 
> is invalid
>   I tried adding it to the config-pin script for pin 8_14, but that didn't 
> help as it appears the problem is deeper than than.  I can't change the 
> value of state in:
>
> /sys/devices/platform/ocp/ocp:P8_14_pinmux/state
>
>   the error I get is:
>
> *Cannot write pinmux File: 
> /sys/devices/platform/ocp/ocp:P8_14_pinmux/state*
>
> Jeff
>
> On Friday, April 19, 2019 at 12:39:21 PM UTC-7, Mala Dies wrote:
>>
>> Hello,
>>
>> The config-pin utility can be used in user land or user land w/ a .sh 
>> script and .service file to boot the board w/ the required config-pin 
>> utility being present.
>>
>> Seth
>>
>> P.S. If you know how to do this instead, this may work for you. So, use: 
>> config-pin P8.14  <--- this would be your mode, i.e. GPIO, UART, 
>> and etc.
>>
>> So, if you wanted to put in gpio in , you could if this is what you 
>> want. Does this sort of make sense?
>>
>> On Friday, April 19, 2019 at 1:55:21 PM UTC-5, Jeff Pollard wrote:
>>>
>>>
>>> Hi,
>>>
>>>   I'm using:* Linux beaglebone 4.14.106-bone-rt-r19 #1 PREEMPT RT Tue 
>>> Mar 26 19:02:06 UTC 2019 armv7l GNU/Linux*
>>>
>>>   I started by disabling the emmc in uEnv.txt
>>>
>>>   I then tried to modify the config-pin script for P8_14 (which would be 
>>> gpmc_AD14 as a starting example), but I get
>>>
>>> *Cannot write pinmux File: 
>>> /sys/devices/platform/ocp/ocp:P8_14_pinmux/state*
>>>
>>>   Can anyone give a pointer on how to go about configuring pins to use 
>>> gmpc mode with the config-pin script (or any other method)?
>>>
>>> Thanks,
>>>
>>> Jeff
>>>
>>

-- 
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.


[Machinekit] Re: config-pin setting for Mode 0 (gpmc) question

2019-04-19 Thread Mala Dies
Hello,

The config-pin utility can be used in user land or user land w/ a .sh 
script and .service file to boot the board w/ the required config-pin 
utility being present.

Seth

P.S. If you know how to do this instead, this may work for you. So, use: 
config-pin P8.14  <--- this would be your mode, i.e. GPIO, UART, and 
etc.

So, if you wanted to put in gpio in , you could if this is what you 
want. Does this sort of make sense?

On Friday, April 19, 2019 at 1:55:21 PM UTC-5, Jeff Pollard wrote:
>
>
> Hi,
>
>   I'm using:* Linux beaglebone 4.14.106-bone-rt-r19 #1 PREEMPT RT Tue Mar 
> 26 19:02:06 UTC 2019 armv7l GNU/Linux*
>
>   I started by disabling the emmc in uEnv.txt
>
>   I then tried to modify the config-pin script for P8_14 (which would be 
> gpmc_AD14 as a starting example), but I get
>
> *Cannot write pinmux File: 
> /sys/devices/platform/ocp/ocp:P8_14_pinmux/state*
>
>   Can anyone give a pointer on how to go about configuring pins to use 
> gmpc mode with the config-pin script (or any other method)?
>
> Thanks,
>
> Jeff
>

-- 
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] Re: config-pin setting for Mode 0 (gpmc) question

2019-04-19 Thread Jeff Pollard

Hi,

  Thanks Robert and Charles.
  I've taken this:
https://github.com/RobertCNelson/bb.org-overlays/blob/master/src/arm/cape-universal-00A0.dts#L1551-L1562

  and added what would be necessary to get the gmpc pins usable following 
the convention of the rest of the file.
  Hopefully this something I can test here... or is this something that has 
to be in the "kernel" and out of my reach?
  If I can test here, can you tell me how to compile and deploy the new dts 
file so I can test it out?

Thanks,

Jeff



On Friday, April 19, 2019 at 2:10:56 PM UTC-7, Charles Steinkuehler wrote:
>
> You are correct...you error is at a lower level than config-pin. 
>
> The problem is the mode you want is not implemented by the universal 
> overlay: 
>
>
> https://github.com/RobertCNelson/bb.org-overlays/blob/master/src/arm/cape-universal-00A0.dts#L1551-L1562
>  
>
> You can either request an update to the universal overlay, patch it 
> and send a PR, or migrate to using a "real" device-tree overlay. 
>
> When I created the "Universal" overlay, I didn't expect many people to 
> be trying to use the General Purpose Memory Controller.  ;-) 
>
> On 4/19/2019 3:08 PM, Jeff Pollard wrote: 
> > Hi, 
> >   That makes sense, but 
> > 
> >   I can use config-pin to set the value to something like: 
> > *  pwm* 
> >   for example: 
> > *  config-pin P8.14 pwm* 
> >   will work just fine 
> >   as will *gpio* 
> >   and 
> > *gpio_pd, etc.* 
> > 
> >   But, *gpmc* (mode 0) is not a valid choice i.e. config-pin  p8.14 gpmc 
> is 
> > invalid 
> >   I tried adding it to the config-pin script for pin 8_14, but that 
> didn't 
> > help as it appears the problem is deeper than than.  I can't change the 
> > value of state in: 
> > 
> > /sys/devices/platform/ocp/ocp:P8_14_pinmux/state 
> > 
> >   the error I get is: 
> > 
> > *Cannot write pinmux File: 
> /sys/devices/platform/ocp/ocp:P8_14_pinmux/state* 
> > 
> > Jeff 
> > 
> > On Friday, April 19, 2019 at 12:39:21 PM UTC-7, Mala Dies wrote: 
> >> 
> >> Hello, 
> >> 
> >> The config-pin utility can be used in user land or user land w/ a .sh 
> >> script and .service file to boot the board w/ the required config-pin 
> >> utility being present. 
> >> 
> >> Seth 
> >> 
> >> P.S. If you know how to do this instead, this may work for you. So, 
> use: 
> >> config-pin P8.14  <--- this would be your mode, i.e. GPIO, UART, 
> and 
> >> etc. 
> >> 
> >> So, if you wanted to put in gpio in , you could if this is what 
> you 
> >> want. Does this sort of make sense? 
> >> 
> >> On Friday, April 19, 2019 at 1:55:21 PM UTC-5, Jeff Pollard wrote: 
> >>> 
> >>> 
> >>> Hi, 
> >>> 
> >>>   I'm using:* Linux beaglebone 4.14.106-bone-rt-r19 #1 PREEMPT RT Tue 
> >>> Mar 26 19:02:06 UTC 2019 armv7l GNU/Linux* 
> >>> 
> >>>   I started by disabling the emmc in uEnv.txt 
> >>> 
> >>>   I then tried to modify the config-pin script for P8_14 (which would 
> be 
> >>> gpmc_AD14 as a starting example), but I get 
> >>> 
> >>> *Cannot write pinmux File: 
> >>> /sys/devices/platform/ocp/ocp:P8_14_pinmux/state* 
> >>> 
> >>>   Can anyone give a pointer on how to go about configuring pins to use 
> >>> gmpc mode with the config-pin script (or any other method)? 
> >>> 
> >>> Thanks, 
> >>> 
> >>> Jeff 
> >>> 
> >> 
> > 
>
>
> -- 
> Charles Steinkuehler 
> cha...@steinkuehler.net  
>

-- 
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] Re: config-pin setting for Mode 0 (gpmc) question

2019-04-19 Thread Jeff Pollard

Hi,

  Not taken the wrong way.
  I've already used the gpmc to communicate with my fpga board.
  I have a servo system based on hostmot2 and a custom driver to go between 
hm2-servo and the gpmc which then 'talks' to the fpga.
  This all works fine
  This way way back in 2015 though.
  The method of accessing the gpmc connectivity has changed a lot since I 
last tried using the BBB with the old version of machinekit I was using.
  Now I'm trying to update what I have to newer machinekit software (with 
all the new overlays, etc.) and can no longer program the pins to allow me 
to access the gpmc.
  
Jeff


On Friday, April 19, 2019 at 4:51:17 PM UTC-7, Charles Steinkuehler wrote:
>
> On 4/19/2019 6:39 PM, Jeff Pollard wrote: 
> > 
> > Hi, 
> > 
> >   Thanks Robert and Charles. 
> >   I've taken this: 
> > 
> https://github.com/RobertCNelson/bb.org-overlays/blob/master/src/arm/cape-universal-00A0.dts#L1551-L1562
>  
> > 
> >   and added what would be necessary to get the gmpc pins usable 
> following 
> > the convention of the rest of the file. 
> >   Hopefully this something I can test here... or is this something that 
> has 
> > to be in the "kernel" and out of my reach? 
> >   If I can test here, can you tell me how to compile and deploy the new 
> dts 
> > file so I can test it out? 
>
> Don't take this the wrong way, but if you have to ask about how to 
> compile a device tree (or overlay), you probably shouldn't be trying 
> to use the GPMC interface. 
>
> Let's take a step back...exactly what are you trying to do? 
>
> -- 
> Charles Steinkuehler 
> cha...@steinkuehler.net  
>

-- 
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] Re: config-pin setting for Mode 0 (gpmc) question

2019-04-19 Thread Charles Steinkuehler
On 4/19/2019 6:39 PM, Jeff Pollard wrote:
> 
> Hi,
> 
>   Thanks Robert and Charles.
>   I've taken this:
> https://github.com/RobertCNelson/bb.org-overlays/blob/master/src/arm/cape-universal-00A0.dts#L1551-L1562
> 
>   and added what would be necessary to get the gmpc pins usable following 
> the convention of the rest of the file.
>   Hopefully this something I can test here... or is this something that has 
> to be in the "kernel" and out of my reach?
>   If I can test here, can you tell me how to compile and deploy the new dts 
> file so I can test it out?

Don't take this the wrong way, but if you have to ask about how to
compile a device tree (or overlay), you probably shouldn't be trying
to use the GPMC interface.

Let's take a step back...exactly what are you trying to do?

-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
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] Re: config-pin setting for Mode 0 (gpmc) question

2019-04-19 Thread Charles Steinkuehler
OK, so for that I would definitely recommend crafting your own overlay
that enables the GPMC pins you need.  Again, most "casual" users will
not be able to do anything with GPMC, which is why it isn't part of
the "universal" cape to begin with.

It shouldn't be too hard to migrate your existing device tree (or
overlay) to work on modern kernels.  Do you have a link to the source
for what you're currently running?

On 4/19/2019 7:40 PM, Jeff Pollard wrote:
> 
> Hi,
> 
>   Not taken the wrong way.
>   I've already used the gpmc to communicate with my fpga board.
>   I have a servo system based on hostmot2 and a custom driver to go between 
> hm2-servo and the gpmc which then 'talks' to the fpga.
>   This all works fine
>   This way way back in 2015 though.
>   The method of accessing the gpmc connectivity has changed a lot since I 
> last tried using the BBB with the old version of machinekit I was using.
>   Now I'm trying to update what I have to newer machinekit software (with 
> all the new overlays, etc.) and can no longer program the pins to allow me 
> to access the gpmc.
>   
> Jeff
> 
> 
> On Friday, April 19, 2019 at 4:51:17 PM UTC-7, Charles Steinkuehler wrote:
>>
>> On 4/19/2019 6:39 PM, Jeff Pollard wrote: 
>>>
>>> Hi, 
>>>
>>>   Thanks Robert and Charles. 
>>>   I've taken this: 
>>>
>> https://github.com/RobertCNelson/bb.org-overlays/blob/master/src/arm/cape-universal-00A0.dts#L1551-L1562
>>  
>>>
>>>   and added what would be necessary to get the gmpc pins usable 
>> following 
>>> the convention of the rest of the file. 
>>>   Hopefully this something I can test here... or is this something that 
>> has 
>>> to be in the "kernel" and out of my reach? 
>>>   If I can test here, can you tell me how to compile and deploy the new 
>> dts 
>>> file so I can test it out? 
>>
>> Don't take this the wrong way, but if you have to ask about how to 
>> compile a device tree (or overlay), you probably shouldn't be trying 
>> to use the GPMC interface. 
>>
>> Let's take a step back...exactly what are you trying to do? 
>>
>> -- 
>> Charles Steinkuehler 
>> cha...@steinkuehler.net  
>>
> 


-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
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.


[Machinekit] Re: Is there any documentation for machine talk library?

2019-04-19 Thread auto-mation-assist
I have been looking for the same information for a while and have looked at 
all the links listed in the past. My purpose being to design a remote gui 
that strictly interfaces via a network. ZMQ would also be used. I have done 
some python and qtpy work with linuxcnc but my goal is to use a remote gui 
that can run on windows. 

I have an interest in machine kit since a lot of work has been done on 
remote gui ability but not a fan of protobuf.  Thus for me I will replace 
protobuf with flatbuffers and at some point in the future and also start 
thinking about perhaps replacing NML with flatbuffers.
Info on flatbuffers is at:  https://google.github.io/flatbuffers/

Converting the established proto files to flatbuffers files apears to be 
easy which simplifies things.
Info on speed comparisons:  
https://google.github.io/flatbuffers/flatbuffers_benchmarks.html

Anyway these are some of the the things going through my mind that I 
anticipate working on this year.

On Sunday, April 14, 2019 at 8:56:53 PM UTC-8, Chris Morley wrote:
>
> I am interested in ZMQ in linuxcnc and thought i might look at machinekits 
> implication.
> I don't see any docs.
>
> Thanks.
> Chris M
>

-- 
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] Re: config-pin setting for Mode 0 (gpmc) question

2019-04-19 Thread Jeff Pollard

Hi,

  One of the reasons I'm trying to update is the uSD card I was using 
stopped working(booting).  I can access some of the files, but I don't 
remember exactly the process I used to enable the pins (it was 4 to 5 years 
ago!).  So, I'm not actually "running" it any more.

  In any case I think what I did was modify your old config-pin to a 
different version called config-pins:

http://xylotex.com/config-pins.txt

and the overlay file here:

http://xylotex.com/cape-univ-gpmc-00A0.dts.txt

  I would program the fpga with a general I/O bit-bang and then had a 
simple batch file that would call config-pins for each gpmc pin I wanted to 
switch modes on:

*sudo ./config-pins P8.14 gpmc*

  I just did similar for all 20 pins I wanted to use for gpmc, and I was 
able to use the bus.  I could then call the linuxcnc script (before the 
scripts was changed to machinekit), and the hm2-servo code would be able to 
access the fpga through the gpmc bus.

  Now when I try the same thing I end up with errors, which I'm now trying 
to solve.

Thanks,

Jeff

On Friday, April 19, 2019 at 6:32:57 PM UTC-7, Charles Steinkuehler wrote:
>
> OK, so for that I would definitely recommend crafting your own overlay 
> that enables the GPMC pins you need.  Again, most "casual" users will 
> not be able to do anything with GPMC, which is why it isn't part of 
> the "universal" cape to begin with. 
>
> It shouldn't be too hard to migrate your existing device tree (or 
> overlay) to work on modern kernels.  Do you have a link to the source 
> for what you're currently running? 
>
> On 4/19/2019 7:40 PM, Jeff Pollard wrote: 
> > 
> > Hi, 
> > 
> >   Not taken the wrong way. 
> >   I've already used the gpmc to communicate with my fpga board. 
> >   I have a servo system based on hostmot2 and a custom driver to go 
> between 
> > hm2-servo and the gpmc which then 'talks' to the fpga. 
> >   This all works fine 
> >   This way way back in 2015 though. 
> >   The method of accessing the gpmc connectivity has changed a lot since 
> I 
> > last tried using the BBB with the old version of machinekit I was using. 
> >   Now I'm trying to update what I have to newer machinekit software 
> (with 
> > all the new overlays, etc.) and can no longer program the pins to allow 
> me 
> > to access the gpmc. 
> >   
> > Jeff 
> > 
> > 
> > On Friday, April 19, 2019 at 4:51:17 PM UTC-7, Charles Steinkuehler 
> wrote: 
> >> 
> >> On 4/19/2019 6:39 PM, Jeff Pollard wrote: 
> >>> 
> >>> Hi, 
> >>> 
> >>>   Thanks Robert and Charles. 
> >>>   I've taken this: 
> >>> 
> >> 
> https://github.com/RobertCNelson/bb.org-overlays/blob/master/src/arm/cape-universal-00A0.dts#L1551-L1562
>  
> >>> 
> >>>   and added what would be necessary to get the gmpc pins usable 
> >> following 
> >>> the convention of the rest of the file. 
> >>>   Hopefully this something I can test here... or is this something 
> that 
> >> has 
> >>> to be in the "kernel" and out of my reach? 
> >>>   If I can test here, can you tell me how to compile and deploy the 
> new 
> >> dts 
> >>> file so I can test it out? 
> >> 
> >> Don't take this the wrong way, but if you have to ask about how to 
> >> compile a device tree (or overlay), you probably shouldn't be trying 
> >> to use the GPMC interface. 
> >> 
> >> Let's take a step back...exactly what are you trying to do? 
> >> 
> >> -- 
> >> Charles Steinkuehler 
> >> cha...@steinkuehler.net  
> >> 
> > 
>
>
> -- 
> Charles Steinkuehler 
> cha...@steinkuehler.net  
>

-- 
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.