Re: [Machinekit] Machinekit issue with config-pin on BBB

2020-04-09 Thread Jim Craig


On Thursday, April 9, 2020 at 6:55:22 PM UTC-5, Robert Nelson wrote:
>
>
> What user are you using when you do this? There should be a udev rule 
> kicking off the gpio class permiossoins... 
>
>
I am using machinekit as the username. I have changed the password from the 
default machinekit.
I created this user from the original debian image. I followed the steps 
located in this tutorial.
https://machinekoder.com/machinekit-debian-stretch-beaglebone-black/

looking at the udev rules it appears that they apply to users in the "gpio" 
group. My machinekit user is not in the "gpio" group. I tried to add this 
user to the "gpio" group using 

sudo su
usermod -aG gpio machinekit
exit

When i list groups the machinekit user is still not in the "gpio" group.

I read the group change is not immediately changed so a reboot is required. 
logout and login would also work.

After reboot machinekit is in the "gpio" group

After this machinekit runs with the CRAMPS.ini configuration. I commented 
out the eMMC pins that were set up for "servo" use.

Robert, thanks for the nudge in the right direction. ; )

Jim


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/12d0cee8-e173-4daf-b484-bb7c4a620276%40googlegroups.com.


Re: [Machinekit] Machinekit issue with config-pin on BBB

2020-04-09 Thread Robert Nelson
On Thu, Apr 9, 2020 at 6:19 PM Jim Craig  wrote:
>
> I am trying out Machinekit on the BBB. I am wanting to keep the HDMI output 
> on the board.
>
> I have the uEnv enable_uboot_cape_universal = 1
>
> I do not have an actual cape on the BBB at this time.
>
> I am trying to run the CRAMPS sample configuration. I am getting the 
> following error.
>
> sudo: no askpass program specified, try setting SUDO_ASKPASS
> Cannot write gpio direction file: /sys/class/gpio/gpio66/direction.
> CRAMPS.hal:12: program 'config-pin' failed, returned 1

What user are you using when you do this? There should be a udev rule
kicking off the gpio class permiossoins...

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/CAOCHtYjEg1pF0xFNhHtJq1hy7YP-EEeTAX56iHCb96fvUhvh9g%40mail.gmail.com.


[Machinekit] Machinekit issue with config-pin on BBB

2020-04-09 Thread Jim Craig
I am trying out Machinekit on the BBB. I am wanting to keep the HDMI output 
on the board. 

I have the uEnv enable_uboot_cape_universal = 1

I do not have an actual cape on the BBB at this time.

I am trying to run the CRAMPS sample configuration. I am getting the 
following error.

sudo: no askpass program specified, try setting SUDO_ASKPASS
Cannot write gpio direction file: /sys/class/gpio/gpio66/direction.
CRAMPS.hal:12: program 'config-pin' failed, returned 1

In the CRAMPS.bbio file the first pin it tries to configure is P8_07 which 
equates to gpio66. If I comment out that line it gives the error for the 
next pin gpio67 or P8_08.

These pins should not be conflicting with the HDMI cape. 

What is the issue with this set of errors.

I do see something in the CRAMPS.hal file that concerns me after this. it 
says the following.

loadrt hal_bb_gpio output_pins=816,822,823,824,825,826,914,923,925 
input_pins=807,808,809,810,817,911,913

I don't understand why it is trying to set pins 822,823,824,825 as gpio. 
What are the "servo" signals used for that are connected to these pins. I 
don't see a purpose. Then you would not have to disable the eMMC.

Mainly looking for help on the SUDO_ASKPASS issue and not being able to 
write to the gpio pins using config-pin.

Thanks,

Jim

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/512ca30f-7940-4577-bb26-c3e2a17e23e2%40googlegroups.com.