[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 mod

[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

[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

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 universa

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

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 somethi

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

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

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 dev

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 thin

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

2019-04-20 Thread Jeff Pollard
Hi Charles, OK, I think I got it (notes below so I have a place to refer to in the future - and if you have any comments) I copied cape-universal-00A0.dts to a file called cape-univ-gpmc.dts in the bb.org-overlays/src/arm directory. I then modified it to have gpmc pin configs I wanted