RE: [beagleboard] MachineKit

2021-06-07 Thread John Dammeyer
Thank you.  
That explains what happened. Fascinating.
John Dammeyer
 
From: [email protected] [mailto:[email protected]] On 
Behalf Of John Allwine
Sent: June-07-21 8:55 AM
To: Beagle Board
Subject: Re: [beagleboard] MachineKit
 
Hi John,
 
I'm not a maintainer of MachineKit or LinuxCNC, so I can't speak for them, but 
I do actively use MachineKit on the BBB. Development on MachineKit seems to be 
mostly focused on the HAL (Hardware Abstraction Layer) of the technology stack 
and breaking apart LinuxCNC into more maintainable pieces. MachineKit is now 
split into two projects, MachineKit-HAL 
(https://github.com/machinekit/machinekit-hal) and MachineKit-CNC 
(https://github.com/machinekit/machinekit-cnc). The CNC side of the project is 
very stale. Instead of developing the CNC side, they performed a fork of 
LinuxCNC and changed only what was necessary to use the CNC side of LinuxCNC on 
top of MachineKit-HAL and actively rebase upstream changes to be as insync with 
LinuxCNC as possible. This project is called EMCApplication 
(https://github.com/machinekit/EMCApplication). 
 
I'm not too familiar with the details of the real time differences, but I 
believe MachineKit-HAL will take advantage of real time features if they are 
present on the machine. We currently use the rt-preempt kernel to get the best 
latencies we can, but one of the biggest benefits of the BBB+MachineKit-HAL is 
it's hal_pru_generic implementation that allows dedicated use of the PRU to 
generate step+direction signals, so it isn't necessary for that processing to 
happen on the main CPU.
 
There isn't currently a BBB image available that uses MachineKit-HAL+CNC or 
MachineKit-HAL+EMCApplication (the current images use the archived MachineKit 
project prior to the split). I've made progress towards putting an image 
together with the latest of MachineKit-HAL+EMCApplication on the BBB and BBAI, 
but I'm not sure when it will be ready for general use.
 
-John
 
On Fri, Jun 4, 2021 at 5:06 PM John Dammeyer  wrote:
> 
> For the BBB, they originally used the Xenomai kernel patchset, then
> eventually started working on utilizing the RT Linux stuff.. Then they
> discovered FGPA hardware, shortly after their forum really became
> quiet..
> 
> It's just an application that utilized Xenomai and RT kernel features..


Thanks.  That's the information I was looking for.
Have a good weekend.
John

> 
> Regards,
> 
> --
> Robert Nelson
> https://rcn-ee.com/
> 
.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected] 
<mailto:beagleboard%[email protected]> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/061a01d75996%243a495590%24aedc00b0%24%40autoartisans.com.
-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAPEK9qZ9VpaE%3DrwdfMK93m4n5YbVWvd59xByp08QgGf5mzY7cw%40mail.gmail.com
 
<https://groups.google.com/d/msgid/beagleboard/CAPEK9qZ9VpaE%3DrwdfMK93m4n5YbVWvd59xByp08QgGf5mzY7cw%40mail.gmail.com?utm_medium=email&utm_source=footer>
 .

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/07fc01d75bb9%24c6f2fe90%2454d8fbb0%24%40autoartisans.com.


Re: [beagleboard] MachineKit

2021-06-07 Thread John Allwine
Hi John,

I'm not a maintainer of MachineKit or LinuxCNC, so I can't speak for them,
but I do actively use MachineKit on the BBB. Development on MachineKit
seems to be mostly focused on the HAL (Hardware Abstraction Layer) of the
technology stack and breaking apart LinuxCNC into more maintainable pieces.
MachineKit is now split into two projects, MachineKit-HAL (
https://github.com/machinekit/machinekit-hal) and MachineKit-CNC (
https://github.com/machinekit/machinekit-cnc). The CNC side of the project
is very stale. Instead of developing the CNC side, they performed a fork of
LinuxCNC and changed only what was necessary to use the CNC side of
LinuxCNC on top of MachineKit-HAL and actively rebase upstream changes to
be as insync with LinuxCNC as possible. This project is called
EMCApplication (https://github.com/machinekit/EMCApplication).

I'm not too familiar with the details of the real time differences, but I
believe MachineKit-HAL will take advantage of real time features if they
are present on the machine. We currently use the rt-preempt kernel to get
the best latencies we can, but one of the biggest benefits of the
BBB+MachineKit-HAL is it's hal_pru_generic implementation that allows
dedicated use of the PRU to generate step+direction signals, so it isn't
necessary for that processing to happen on the main CPU.

There isn't currently a BBB image available that uses MachineKit-HAL+CNC or
MachineKit-HAL+EMCApplication (the current images use the archived
MachineKit project prior to the split). I've made progress towards putting
an image together with the latest of MachineKit-HAL+EMCApplication on the
BBB and BBAI, but I'm not sure when it will be ready for general use.

-John

On Fri, Jun 4, 2021 at 5:06 PM John Dammeyer  wrote:

> >
> > For the BBB, they originally used the Xenomai kernel patchset, then
> > eventually started working on utilizing the RT Linux stuff.. Then they
> > discovered FGPA hardware, shortly after their forum really became
> > quiet..
> >
> > It's just an application that utilized Xenomai and RT kernel features..
>
>
> Thanks.  That's the information I was looking for.
> Have a good weekend.
> John
>
> >
> > Regards,
> >
> > --
> > Robert Nelson
> > https://rcn-ee.com/
> >
> .
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/061a01d75996%243a495590%24aedc00b0%24%40autoartisans.com
> .
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAPEK9qZ9VpaE%3DrwdfMK93m4n5YbVWvd59xByp08QgGf5mzY7cw%40mail.gmail.com.


RE: [beagleboard] MachineKit

2021-06-04 Thread John Dammeyer
> 
> For the BBB, they originally used the Xenomai kernel patchset, then
> eventually started working on utilizing the RT Linux stuff.. Then they
> discovered FGPA hardware, shortly after their forum really became
> quiet..
> 
> It's just an application that utilized Xenomai and RT kernel features..


Thanks.  That's the information I was looking for.
Have a good weekend.
John

> 
> Regards,
> 
> --
> Robert Nelson
> https://rcn-ee.com/
> 
.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/061a01d75996%243a495590%24aedc00b0%24%40autoartisans.com.


Re: [beagleboard] MachineKit

2021-06-04 Thread Robert Nelson
On Fri, Jun 4, 2021 at 4:59 PM John Dammeyer  wrote:
>
> Robert,
> Can you perhaps explain the difference between MachineKit and Linux from the 
> RTOS perspective?
>
> I recall something like the Machinekit has the RTOS underneath LinuxCNC where 
> Linux itself is just a task and the RTOS therefore allows the embedded stuff 
> to run at the same or higher priority giving better real time support.
>
> LinuxCNC has a modified kernel that puts the CNC part at a higher priority 
> within the Linux RTOS environment.
>
> Have I got that right?  I remember reading somewhere there were actually 3 
> different versions of 'real time' for Linux.  Just don't remember where I 
> read that.

You should really ask the MachineKit developers..

For the BBB, they originally used the Xenomai kernel patchset, then
eventually started working on utilizing the RT Linux stuff.. Then they
discovered FGPA hardware, shortly after their forum really became
quiet..

It's just an application that utilized Xenomai and RT kernel features..

Regards,

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

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYi83sUF0P9QjQCicvACb1VH-vuB7Qo9tJANq8dsmGkRGw%40mail.gmail.com.


RE: [beagleboard] MachineKit

2021-06-04 Thread John Dammeyer
Robert,
Can you perhaps explain the difference between MachineKit and Linux from the 
RTOS perspective?  

I recall something like the Machinekit has the RTOS underneath LinuxCNC where 
Linux itself is just a task and the RTOS therefore allows the embedded stuff to 
run at the same or higher priority giving better real time support.

LinuxCNC has a modified kernel that puts the CNC part at a higher priority 
within the Linux RTOS environment.  

Have I got that right?  I remember reading somewhere there were actually 3 
different versions of 'real time' for Linux.  Just don't remember where I read 
that.

Thanks
John


> -Original Message-
> From: [email protected] [mailto:[email protected]] On 
> Behalf Of Robert Nelson
> Sent: June-04-21 2:51 PM
> To: Beagle Board
> Subject: Re: [beagleboard] MachineKit
> 
> On Fri, Jun 4, 2021 at 3:09 PM John Dammeyer  wrote:
> >
> > What's the status with MachineKit for the BBB?  Will it ever be resurrected 
> > and brought up to date?  My understanding is
> MachineKit used a different approach to the RTOS part of real time Linux 
> compared to LinuxCNC running on say the Pi4.
> >
> 
> The BBB image has always been developed and debugged by users of MachineKit..
> 
> Regards,
> 
> --
> Robert Nelson
> https://rcn-ee.com/
> 
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups 
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/CAOCHtYj8tUn_o8CjERk5fUAJVX9MWMQ4RcN3VuL21_UJxjb4VQ%40mail.gmail.co
> m.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/061901d7598c%24c3ff9740%244bfec5c0%24%40autoartisans.com.


Re: [beagleboard] MachineKit

2021-06-04 Thread Robert Nelson
On Fri, Jun 4, 2021 at 3:09 PM John Dammeyer  wrote:
>
> What's the status with MachineKit for the BBB?  Will it ever be resurrected 
> and brought up to date?  My understanding is MachineKit used a different 
> approach to the RTOS part of real time Linux compared to LinuxCNC running on 
> say the Pi4.
>

The BBB image has always been developed and debugged by users of MachineKit..

Regards,

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

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYj8tUn_o8CjERk5fUAJVX9MWMQ4RcN3VuL21_UJxjb4VQ%40mail.gmail.com.


Re: [beagleboard] Machinekit images - where are they?

2019-10-12 Thread Mala Dies
Hello Nice,

I have been working on a build (hardware) for the BBB and MachineKit.

Seth

P.S. Are people still updating the MachineKit builds?

On Monday, August 12, 2019 at 10:45:54 AM UTC-5, RobertCNelson wrote:
>
> On Sun, Aug 11, 2019 at 2:44 PM shabaz  > wrote: 
> > 
> > Hello, 
> > 
> > According to various links on the Internet, there are pre-built Linux 
> images with Machinekit. 
> > For instance, the machinekit.io website states: 
> > 
> > Robert C. Nelson kindly provides a 2-weekly build of a complete Debian 
> with Machinekit image for a BeagleBone Black/White. 
> > Head over to 
> elinux.org/Beagleboard:BeagleBoneBlack_Debian#BBW.2FBBB_.28All_Revs.29_Machinekit
>  
> and download and install the image on a microSD card and run the image from 
> that, or install the image on the eMMC. 
> > 
> > 
> > However, the links seem to go to 
> > 
> https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#BBW.2FBBB_.28All_Revs.29_Machinekit
>  
>
> Just a quick update, this link is now active again.. (the image built 
> correctly last night)... 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/a92bfbdb-8032-4e1b-a466-e8f87328762d%40googlegroups.com.


Re: [beagleboard] Machinekit images - where are they?

2019-08-12 Thread Robert Nelson
On Sun, Aug 11, 2019 at 2:44 PM shabaz  wrote:
>
> Hello,
>
> According to various links on the Internet, there are pre-built Linux images 
> with Machinekit.
> For instance, the machinekit.io website states:
>
> Robert C. Nelson kindly provides a 2-weekly build of a complete Debian with 
> Machinekit image for a BeagleBone Black/White.
> Head over to 
> elinux.org/Beagleboard:BeagleBoneBlack_Debian#BBW.2FBBB_.28All_Revs.29_Machinekit
>  and download and install the image on a microSD card and run the image from 
> that, or install the image on the eMMC.
>
>
> However, the links seem to go to
> https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#BBW.2FBBB_.28All_Revs.29_Machinekit

Just a quick update, this link is now active again.. (the image built
correctly last night)...

Regards,

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

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYgNT3KKKJ_H6t%2BVLPNRUp-eEDCsbQcgdpTXJqKTkSJiSw%40mail.gmail.com.


Re: [beagleboard] Machinekit images - where are they?

2019-08-11 Thread shabaz

>
> Hi Robert,


Thanks for the information, downloading now! : ) 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/1ba7c3af-d854-48f6-b598-7660e4baf640%40googlegroups.com.


Re: [beagleboard] Machinekit images - where are they?

2019-08-11 Thread Robert Nelson
On Sun, Aug 11, 2019 at 2:44 PM shabaz  wrote:
>
> Hello,
>
> According to various links on the Internet, there are pre-built Linux images 
> with Machinekit.
> For instance, the machinekit.io website states:
>
> Robert C. Nelson kindly provides a 2-weekly build of a complete Debian with 
> Machinekit image for a BeagleBone Black/White.
> Head over to 
> elinux.org/Beagleboard:BeagleBoneBlack_Debian#BBW.2FBBB_.28All_Revs.29_Machinekit
>  and download and install the image on a microSD card and run the image from 
> that, or install the image on the eMMC.
>
>
> However, the links seem to go to
> https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#BBW.2FBBB_.28All_Revs.29_Machinekit
>
> Searching at that link, I cannot find any files or text with the word 
> 'Machinekit'.
>
> Where are the pre-built images, or is this information outdated?

Sorry, the builds been broken for a little while, here's the latest version:

https://rcn-ee.com/rootfs/bb.org/testing/2019-06-30/stretch-machinekit/bone-debian-9.9-machinekit-armhf-2019-06-30-4gb.img.xz

Regards,

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

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYjZUC3%3D9HBQJtQXz6wHe5i3C9r9aCVj%3DYFD86yX5qdzkA%40mail.gmail.com.


Re: [beagleboard] MachineKit SoftAp password?

2018-03-15 Thread Rick Mann


> On Mar 15, 2018, at 19:28 , Rick Mann  wrote:
> 
>> - How do I just turn off the SoftAP and use connman to configure WiFi access?
>> 
>> 
>> Open /etc/default/bb-wl18xx
> 
> Well, so I looked at that. I'm not really sure what to change in order to 
> turn off the AP. Is it enough to set TETHER_ENABLED=no? I guess I can try it…

That seemed to do the trick. Thanks!

-- 
Rick Mann
[email protected]


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/0C657FD2-7B91-4F55-A88B-1B614259A5E1%40latencyzero.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] MachineKit SoftAp password?

2018-03-15 Thread Rick Mann


> On Mar 15, 2018, at 15:22 , Robert Nelson  wrote:
> 
> 
> 
> On Mar 15, 2018 5:02 PM, "Rick Mann"  wrote:
> I just flashed a Beaglebone Green Wireless with the latest MachineKit 
> standalone image.
> 
> Now it's running a SoftAP that asks for a password.
> 
> - What's the password?
> 
> Same wifi password it always has been.
> 
> BeagleBone

Thank you. This is the first time I'm using BBW, and despite googling for terms 
around this, I couldn't find anything. The build that was on the BBW when I 
took it out of the box had no password on the WiFi. So, I'm not sure where I 
would have learned the password. I did try "machinekit".

> 
> 
> - How do I just turn off the SoftAP and use connman to configure WiFi access?
> 
> 
> Open /etc/default/bb-wl18xx

Well, so I looked at that. I'm not really sure what to change in order to turn 
off the AP. Is it enough to set TETHER_ENABLED=no? I guess I can try it…

> 
> Regards,
> 
> -- 
> For more options, visit http://beagleboard.org/discuss
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beagleboard/CAOCHtYjeCvMVBJ%2BMqHG3CXBbtYGW0pcOcL5a50RCQSTePkLh1A%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.


-- 
Rick Mann
[email protected]


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/F0F9B6C1-8B3D-4B51-995E-4142D8B471EF%40latencyzero.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] MachineKit SoftAp password?

2018-03-15 Thread Robert Nelson
On Mar 15, 2018 5:02 PM, "Rick Mann"  wrote:

I just flashed a Beaglebone Green Wireless with the latest MachineKit
standalone image.

Now it's running a SoftAP that asks for a password.

- What's the password?


Same wifi password it always has been.

BeagleBone


- How do I just turn off the SoftAP and use connman to configure WiFi
access?



Open /etc/default/bb-wl18xx

Regards,

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYjeCvMVBJ%2BMqHG3CXBbtYGW0pcOcL5a50RCQSTePkLh1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Machinekit- READ ADC VALUE ONLY!!! (NO TEMPERATURE!!!)

2016-04-27 Thread Matus Kamensky
2016-04-27 10:35 GMT+02:00 Matus Kamensky :

> Hi. I have one problem with this ADC conversion. I create connections
> between HAL file and this ADCfile (hal_temp_bb). Everything works, but if
> the ADC send me value more than 1600 (0-6000), my JOG wheel stop working. I
> use some GPIO PINs for axis_enable(X,Y,Z) and axis_jog scale (UP,DOWM).
> This button not responding, while ADC_value is more than 1600. If ADC_value
> is less than 1600. this button works. Can you help me with this problem ??
> Thanks.
>
> P8.16 in # Manual-5 JOG_EN_X
> P9.24 in # Manual-6 JOG_EN_Y
> P9.25 in # Manual-8 JOG_EN_A
> P9.26 in # Manual-7 JOG_EN_Z
> P8.17 in # Manual-4 JOGMUX_2
> P8.18 in # Manual-3 JOGMUX_1
>
> Can you help me make this file more simple? I don´t need read resistance
> table(delete from this file). I need Only adc_value.
>
> 2016-04-20 18:05 GMT+02:00 Matus Kamensky :
>
>> I create connection between machinekit (i create variable PWM.meas =>
>> this variable will use to PWM) and script hal_temp_bbb. Now i need edit a
>> script. Can you help me with this problem?
>> This is the script:
>>
>>
>> https://github.com/machinekit/machinekit/blob/master/src/hal/user_comps/hal_temp_bbb.py
>>
>>  I tried edit this sections:
>> def adc2r_cramps(pin):
>> * V_adc = pin.rawValue*
>> # V_T = 0.0 # Voltage across the thermistor
>> # R_PU = 2000.0 #Pull-up resistence
>> # I_PU = 0.0 # Current flowing through the pull-up resistor
>> # R_T = 0.0 # Resistance of the thermistor
>> # V_T = V_adc
>> # No dividing by zero or negative voltages despite what the ADC says!
>> # Clip to a small positive value
>> # I_PU = max((1.8 - V_T ) / R_PU, 0.01)
>> # R_T = V_T / I_PU
>> * return V_adc*
>> def adc2Temp(pin):
>> if(args.cape_board == 'BeBoPr'):
>> R = adc2r_bebopr(pin)
>> elif (args.cape_board == 'CRAMPS'):
>> R = adc2r_cramps(pin)
>> else:
>> print("Invalid -b cape name: %s" % args.cape_board)
>> print("Valid names are: BeBoPr, CRAMPS")
>> sys.exit(1)
>> return round(R)
>> But without corect solution.
>>
>> 2016-04-20 16:46 GMT+02:00 Charles Steinkuehler > >:
>>
>>> You need Machinekit HAL file knowledge, not Linux (or AVR).
>>>
>>> You load the ADC code with a line like this:
>>>
>>>
>>> https://github.com/machinekit/machinekit/blob/master/configs/ARM/BeagleBone/CRAMPS/CRAMPS.hal#L35
>>>
>>> ...except you will probably want to use "none" for the thermistor
>>> (which is epcos_B57560G1104 in the example above).  Adjust the
>>> channel(s) (04: and 05: in the example above) to select the ADC input
>>> pin you wish to use.
>>>
>>> Then you need to connect the ADC reading to your PWM driver with a HAL
>>> signal like so:
>>>
>>>
>>> https://github.com/machinekit/machinekit/blob/master/configs/ARM/BeagleBone/CRAMPS/CRAMPS.hal#L365-L366
>>>
>>> ...but you should use the .raw signal (ie: Therm.ch-04.raw) instead of
>>> the value to get a value between 0-4095.
>>>
>>> Since this is specifically a Machinekit question, you should probably
>>> be asking on the Machinekit Google group:
>>>
>>> https://groups.google.com/forum/#!forum/machinekit
>>>
>>> On 4/20/2016 9:18 AM, Matus Kamensky wrote:
>>> > Thanks for your answer. But i don´t know, how this structure or
>>> command write. I
>>> > work with AVR microprocessor, no with linux. Can you send me some
>>> examples  of
>>> > command, which I solve my problem? . I need only number with range
>>> 0-4000 from
>>> > 0-1,8V (AIN0). I use machinekit,debian 3.8. and beagle bone black (own
>>> cape).Thanks
>>> >
>>> > 2016-04-20 16:06 GMT+02:00 Charles Steinkuehler <
>>> [email protected]
>>> > >:
>>> >
>>> > On 4/20/2016 8:15 AM, Matus Kamensky wrote:
>>> > > Hi. I use machinekit  for controlling my CNC mill and i need
>>> read ADC pin (AIN0)
>>> > > to set speed of my motor (0-4000rpm). I need convert voltage
>>> (0-1,8V) to
>>> > > pwmgen.parameter(0-4000). Can You help me? Thanks.
>>> >
>>> > Start with the BBB temperature code:
>>> >
>>> >
>>> https://github.com/machinekit/machinekit/blob/master/src/hal/user_comps/hal_temp_bbb.py
>>> >
>>> > ...use "none" for the thermistor and use the .raw HAL pin in your
>>> HAL
>>> > file.  If you want, you can delete the code that converts ADC
>>> values
>>> > to a resistance and then a temperature value, or add some
>>> appropriate
>>> > scaling so you can directly connect the .raw output pin to your
>>> pwmgen
>>> > input.
>>>
>>> --
>>> Charles Steinkuehler
>>> [email protected]
>>>
>>> --
>>> For more options, visit http://beagleboard.org/discuss
>>> ---
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "BeagleBoard" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/beagleboard/zTS1a2GxEYs/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> To view this discussion on the web visit
>>> https://groups.googl

Re: [beagleboard] Machinekit- READ ADC VALUE ONLY!!! (NO TEMPERATURE!!!)

2016-04-27 Thread Matus Kamensky
Hi. I have one problem with this ADC conversion. I create connections
between HAL file and this ADCfile (hal_temp_bb). Everything works, but if
the ADC send me value more than 1600 (0-6000), my JOG wheel stop working. I
use some GPIO PINs for axis_enable(X,Y,Z) and axis_jog scale (UP,DOWM).
This button not responding, while ADC_value is more than 1600. If ADC_value
is less than 1600. this button works. Can you help me with this problem ??
Thanks.

P8.16 in # Manual-5 JOG_EN_X
P9.24 in # Manual-6 JOG_EN_Y
P9.25 in # Manual-8 JOG_EN_A
P9.26 in # Manual-7 JOG_EN_Z
P8.17 in # Manual-4 JOGMUX_2
P8.18 in # Manual-3 JOGMUX_1

Can you help me make this file more simple? I don´t need read resistance
table(delete from this file). I need Only adc_value.

2016-04-20 18:05 GMT+02:00 Matus Kamensky :

> I create connection between machinekit (i create variable PWM.meas => this
> variable will use to PWM) and script hal_temp_bbb. Now i need edit a
> script. Can you help me with this problem?
> This is the script:
>
>
> https://github.com/machinekit/machinekit/blob/master/src/hal/user_comps/hal_temp_bbb.py
>
>  I tried edit this sections:
> def adc2r_cramps(pin):
> * V_adc = pin.rawValue*
> # V_T = 0.0 # Voltage across the thermistor
> # R_PU = 2000.0 #Pull-up resistence
> # I_PU = 0.0 # Current flowing through the pull-up resistor
> # R_T = 0.0 # Resistance of the thermistor
> # V_T = V_adc
> # No dividing by zero or negative voltages despite what the ADC says!
> # Clip to a small positive value
> # I_PU = max((1.8 - V_T ) / R_PU, 0.01)
> # R_T = V_T / I_PU
> * return V_adc*
> def adc2Temp(pin):
> if(args.cape_board == 'BeBoPr'):
> R = adc2r_bebopr(pin)
> elif (args.cape_board == 'CRAMPS'):
> R = adc2r_cramps(pin)
> else:
> print("Invalid -b cape name: %s" % args.cape_board)
> print("Valid names are: BeBoPr, CRAMPS")
> sys.exit(1)
> return round(R)
> But without corect solution.
>
> 2016-04-20 16:46 GMT+02:00 Charles Steinkuehler 
> :
>
>> You need Machinekit HAL file knowledge, not Linux (or AVR).
>>
>> You load the ADC code with a line like this:
>>
>>
>> https://github.com/machinekit/machinekit/blob/master/configs/ARM/BeagleBone/CRAMPS/CRAMPS.hal#L35
>>
>> ...except you will probably want to use "none" for the thermistor
>> (which is epcos_B57560G1104 in the example above).  Adjust the
>> channel(s) (04: and 05: in the example above) to select the ADC input
>> pin you wish to use.
>>
>> Then you need to connect the ADC reading to your PWM driver with a HAL
>> signal like so:
>>
>>
>> https://github.com/machinekit/machinekit/blob/master/configs/ARM/BeagleBone/CRAMPS/CRAMPS.hal#L365-L366
>>
>> ...but you should use the .raw signal (ie: Therm.ch-04.raw) instead of
>> the value to get a value between 0-4095.
>>
>> Since this is specifically a Machinekit question, you should probably
>> be asking on the Machinekit Google group:
>>
>> https://groups.google.com/forum/#!forum/machinekit
>>
>> On 4/20/2016 9:18 AM, Matus Kamensky wrote:
>> > Thanks for your answer. But i don´t know, how this structure or command
>> write. I
>> > work with AVR microprocessor, no with linux. Can you send me some
>> examples  of
>> > command, which I solve my problem? . I need only number with range
>> 0-4000 from
>> > 0-1,8V (AIN0). I use machinekit,debian 3.8. and beagle bone black (own
>> cape).Thanks
>> >
>> > 2016-04-20 16:06 GMT+02:00 Charles Steinkuehler <
>> [email protected]
>> > >:
>> >
>> > On 4/20/2016 8:15 AM, Matus Kamensky wrote:
>> > > Hi. I use machinekit  for controlling my CNC mill and i need read
>> ADC pin (AIN0)
>> > > to set speed of my motor (0-4000rpm). I need convert voltage
>> (0-1,8V) to
>> > > pwmgen.parameter(0-4000). Can You help me? Thanks.
>> >
>> > Start with the BBB temperature code:
>> >
>> >
>> https://github.com/machinekit/machinekit/blob/master/src/hal/user_comps/hal_temp_bbb.py
>> >
>> > ...use "none" for the thermistor and use the .raw HAL pin in your
>> HAL
>> > file.  If you want, you can delete the code that converts ADC values
>> > to a resistance and then a temperature value, or add some
>> appropriate
>> > scaling so you can directly connect the .raw output pin to your
>> pwmgen
>> > input.
>>
>> --
>> Charles Steinkuehler
>> [email protected]
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "BeagleBoard" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/beagleboard/zTS1a2GxEYs/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/beagleboard/57179661.1040607%40steinkuehler.net
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
For more options, visit http://beagleboard.org/discuss

Re: [beagleboard] Machinekit- READ ADC VALUE ONLY!!! (NO TEMPERATURE!!!)

2016-04-20 Thread Matus Kamensky
I create connection between machinekit (i create variable PWM.meas => this
variable will use to PWM) and script hal_temp_bbb. Now i need edit a
script. Can you help me with this problem?
This is the script:

https://github.com/machinekit/machinekit/blob/master/src/hal/user_comps/hal_temp_bbb.py

 I tried edit this sections:
def adc2r_cramps(pin):
* V_adc = pin.rawValue*
# V_T = 0.0 # Voltage across the thermistor
# R_PU = 2000.0 #Pull-up resistence
# I_PU = 0.0 # Current flowing through the pull-up resistor
# R_T = 0.0 # Resistance of the thermistor
# V_T = V_adc
# No dividing by zero or negative voltages despite what the ADC says!
# Clip to a small positive value
# I_PU = max((1.8 - V_T ) / R_PU, 0.01)
# R_T = V_T / I_PU
* return V_adc*
def adc2Temp(pin):
if(args.cape_board == 'BeBoPr'):
R = adc2r_bebopr(pin)
elif (args.cape_board == 'CRAMPS'):
R = adc2r_cramps(pin)
else:
print("Invalid -b cape name: %s" % args.cape_board)
print("Valid names are: BeBoPr, CRAMPS")
sys.exit(1)
return round(R)
But without corect solution.

2016-04-20 16:46 GMT+02:00 Charles Steinkuehler :

> You need Machinekit HAL file knowledge, not Linux (or AVR).
>
> You load the ADC code with a line like this:
>
>
> https://github.com/machinekit/machinekit/blob/master/configs/ARM/BeagleBone/CRAMPS/CRAMPS.hal#L35
>
> ...except you will probably want to use "none" for the thermistor
> (which is epcos_B57560G1104 in the example above).  Adjust the
> channel(s) (04: and 05: in the example above) to select the ADC input
> pin you wish to use.
>
> Then you need to connect the ADC reading to your PWM driver with a HAL
> signal like so:
>
>
> https://github.com/machinekit/machinekit/blob/master/configs/ARM/BeagleBone/CRAMPS/CRAMPS.hal#L365-L366
>
> ...but you should use the .raw signal (ie: Therm.ch-04.raw) instead of
> the value to get a value between 0-4095.
>
> Since this is specifically a Machinekit question, you should probably
> be asking on the Machinekit Google group:
>
> https://groups.google.com/forum/#!forum/machinekit
>
> On 4/20/2016 9:18 AM, Matus Kamensky wrote:
> > Thanks for your answer. But i don´t know, how this structure or command
> write. I
> > work with AVR microprocessor, no with linux. Can you send me some
> examples  of
> > command, which I solve my problem? . I need only number with range
> 0-4000 from
> > 0-1,8V (AIN0). I use machinekit,debian 3.8. and beagle bone black (own
> cape).Thanks
> >
> > 2016-04-20 16:06 GMT+02:00 Charles Steinkuehler <
> [email protected]
> > >:
> >
> > On 4/20/2016 8:15 AM, Matus Kamensky wrote:
> > > Hi. I use machinekit  for controlling my CNC mill and i need read
> ADC pin (AIN0)
> > > to set speed of my motor (0-4000rpm). I need convert voltage
> (0-1,8V) to
> > > pwmgen.parameter(0-4000). Can You help me? Thanks.
> >
> > Start with the BBB temperature code:
> >
> >
> https://github.com/machinekit/machinekit/blob/master/src/hal/user_comps/hal_temp_bbb.py
> >
> > ...use "none" for the thermistor and use the .raw HAL pin in your HAL
> > file.  If you want, you can delete the code that converts ADC values
> > to a resistance and then a temperature value, or add some appropriate
> > scaling so you can directly connect the .raw output pin to your
> pwmgen
> > input.
>
> --
> Charles Steinkuehler
> [email protected]
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/zTS1a2GxEYs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/57179661.1040607%40steinkuehler.net
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAC8WByaeEb_akOufDx9smAa_uY9%3DErAi0twTMaGF%3DoNLMZ58dQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Machinekit- READ ADC VALUE ONLY!!! (NO TEMPERATURE!!!)

2016-04-20 Thread Charles Steinkuehler
You need Machinekit HAL file knowledge, not Linux (or AVR).

You load the ADC code with a line like this:

https://github.com/machinekit/machinekit/blob/master/configs/ARM/BeagleBone/CRAMPS/CRAMPS.hal#L35

...except you will probably want to use "none" for the thermistor
(which is epcos_B57560G1104 in the example above).  Adjust the
channel(s) (04: and 05: in the example above) to select the ADC input
pin you wish to use.

Then you need to connect the ADC reading to your PWM driver with a HAL
signal like so:

https://github.com/machinekit/machinekit/blob/master/configs/ARM/BeagleBone/CRAMPS/CRAMPS.hal#L365-L366

...but you should use the .raw signal (ie: Therm.ch-04.raw) instead of
the value to get a value between 0-4095.

Since this is specifically a Machinekit question, you should probably
be asking on the Machinekit Google group:

https://groups.google.com/forum/#!forum/machinekit

On 4/20/2016 9:18 AM, Matus Kamensky wrote:
> Thanks for your answer. But i don´t know, how this structure or command 
> write. I 
> work with AVR microprocessor, no with linux. Can you send me some examples  
> of 
> command, which I solve my problem? . I need only number with range 0-4000 
> from 
> 0-1,8V (AIN0). I use machinekit,debian 3.8. and beagle bone black (own 
> cape).Thanks
> 
> 2016-04-20 16:06 GMT+02:00 Charles Steinkuehler  >:
> 
> On 4/20/2016 8:15 AM, Matus Kamensky wrote:
> > Hi. I use machinekit  for controlling my CNC mill and i need read ADC 
> pin (AIN0)
> > to set speed of my motor (0-4000rpm). I need convert voltage (0-1,8V) to
> > pwmgen.parameter(0-4000). Can You help me? Thanks.
> 
> Start with the BBB temperature code:
> 
> 
> https://github.com/machinekit/machinekit/blob/master/src/hal/user_comps/hal_temp_bbb.py
> 
> ...use "none" for the thermistor and use the .raw HAL pin in your HAL
> file.  If you want, you can delete the code that converts ADC values
> to a resistance and then a temperature value, or add some appropriate
> scaling so you can directly connect the .raw output pin to your pwmgen
> input.

-- 
Charles Steinkuehler
[email protected]

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/57179661.1040607%40steinkuehler.net.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Machinekit- READ ADC VALUE ONLY!!! (NO TEMPERATURE!!!)

2016-04-20 Thread Matus Kamensky
Thanks for your answer. But i don´t know, how this structure or command
write. I work with AVR microprocessor, no with linux. Can you send me some
examples  of command, which I solve my problem? . I need only number with
range 0-4000 from 0-1,8V (AIN0). I use machinekit,debian 3.8. and beagle
bone black (own cape).Thanks

2016-04-20 16:06 GMT+02:00 Charles Steinkuehler :

> On 4/20/2016 8:15 AM, Matus Kamensky wrote:
> > Hi. I use machinekit  for controlling my CNC mill and i need read ADC
> pin (AIN0)
> > to set speed of my motor (0-4000rpm). I need convert voltage (0-1,8V) to
> > pwmgen.parameter(0-4000). Can You help me? Thanks.
>
> Start with the BBB temperature code:
>
>
> https://github.com/machinekit/machinekit/blob/master/src/hal/user_comps/hal_temp_bbb.py
>
> ...use "none" for the thermistor and use the .raw HAL pin in your HAL
> file.  If you want, you can delete the code that converts ADC values
> to a resistance and then a temperature value, or add some appropriate
> scaling so you can directly connect the .raw output pin to your pwmgen
> input.
>
> --
> Charles Steinkuehler
> [email protected]
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/zTS1a2GxEYs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/57178CCD.9030907%40steinkuehler.net
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAC8WByYG2-ww6%2B3908jmErq_qNuRGqRkDJrDg91R6SVNqOW5Ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Machinekit- READ ADC VALUE ONLY!!! (NO TEMPERATURE!!!)

2016-04-20 Thread Charles Steinkuehler
On 4/20/2016 8:15 AM, Matus Kamensky wrote:
> Hi. I use machinekit  for controlling my CNC mill and i need read ADC pin 
> (AIN0) 
> to set speed of my motor (0-4000rpm). I need convert voltage (0-1,8V) to 
> pwmgen.parameter(0-4000). Can You help me? Thanks.

Start with the BBB temperature code:

https://github.com/machinekit/machinekit/blob/master/src/hal/user_comps/hal_temp_bbb.py

...use "none" for the thermistor and use the .raw HAL pin in your HAL
file.  If you want, you can delete the code that converts ADC values
to a resistance and then a temperature value, or add some appropriate
scaling so you can directly connect the .raw output pin to your pwmgen
input.

-- 
Charles Steinkuehler
[email protected]

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/57178CCD.9030907%40steinkuehler.net.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] machinekit on BBB - how to force enabled HDMI hardware from cmdline

2014-02-04 Thread doog
great to hear it works

Doug

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] machinekit on BBB - how to force enabled HDMI hardware from cmdline

2014-02-04 Thread joe2456001
I tried 
mmcpart=2
optargs=fixrtc video=HDMI-A-1:e capemgr.enable_partno=BB-BONELT-HDMI 
#importent change the line above 
uenvcmd=i2c mw 0x24 1 0x3e; kd=0; if test $mmcdev -eq 1; then mmc dev 0; if 
mmc$
loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${bootdir}/dtbs/${fdtfile}
loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${bootdir}/${bootfile} 

and it worked  thanks
best jason

On Tuesday, February 4, 2014 3:58:00 PM UTC-5, joe2456001 wrote:
>
> Thanks for the quick reply doug
>i tried 
> mmcpart=2
> optargs=fixrtc  video=HDMI-A-1:e
> uenvcmd=i2c mw 0x24 1 0x3e; kd=0; if test $mmcdev -eq 1; then mmc dev 0; 
> if mmc$
> loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${bootdir}/dtbs/${fdtfile}
> loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${bootdir}/${bootfile}
>
> and some other things still not working any other suggestions or did i did 
> it wrong? thanks a lot
> Best
> jason
>
> On Tuesday, February 4, 2014 1:14:18 PM UTC-5, doog wrote:
>>
>> in the uEnv.txt file there's a line starting with "optargs="
>> Add to the end of that line:
>> " video=HDMI-A-1:e"
>>
>> make sure there's a space before the "video=." and this should force 
>> the enabling of the HDMI port.
>>
>> Doug
>>
>>
>>
>> On Tuesday, February 4, 2014 9:06:03 AM UTC-8, joe2456001 wrote:
>>>
>>> HI Doug
>>>  I'm running into the same problem here using beagleboard black 
>>> running ubuntu-dsktop on a sd card 
>>> the /sys/class/drm/card0-HDMI-A-1/enabled shows  disabled
>>> cat /proc/cmdline shows this 
>>> console=ttyO0,115200n8 video capemgr=capemgr.enable_partno=BB-BONELT-HDMI 
>>> root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
>>>
>>>
>>> ubuntu@ubuntu-armhf:~$ cat /sys/devices/bone_capemgr.9/slots
>>>  0: 54:PF--- 
>>>  1: 55:PF--- 
>>>  2: 56:PF--- 
>>>  3: 57:PF--- 
>>>  4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
>>>  5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
>>>
>>> can u show me your uenv file? thx i try to edit my uenv doesn't work
>>> best
>>> jason
>>>
>>>
>>> On Tuesday, January 28, 2014 8:39:04 PM UTC-5, doog wrote:

 I had looked at it and overlooked what was the problem but you asking 
 and my copy/paste made me realize I'd cat'ed it onto the 
 capemgr.disable mesg with a comma instead of separating it. It now 
 works. Thanks for slap in the back of the head.

 Doug

 On Tuesday, January 28, 2014 5:29:22 PM UTC-8, Charles Steinkuehler 
 wrote:
>
> On 1/28/2014 6:57 PM, doog wrote: 
> > I'm getting going with LinuxCNC Machinekit on BBB but my first 
> hiccup is 
> > that I can't get HDMI hardware enabled. I have an HDMI-DVI cable and 
> for 
> > whatever reason the hardware has to be told to turn on. With 
> Angstrom I 
> > pass "video=HDMI-A-1:e" on optargs in uEnv.txt but default Debian in 
> > Machinekit doesn't do it. 
> > 
> > is there something I can do to force it on/enabled from the command 
> line? 
> >  I've tried shelling in with ssh -X then doing xrandr :0.0 --output 
> HDMI1 
> > --auto but it didn't work. 
> > I'm checking /sys/class/drm/card0-HDMI-A-1/enabled and when booting 
> > Angstrom without a display connected it states "enabled" as it 
> should. 
> > Booting Machinekit it states "disabled". 
>
> First, are you sure the option is being passed to the kernel?  What 
> does 
> "cat /proc/cmdline" return? 
>
> Second, have you tried the 'e' flag while also specifying a 
> resolution? 
>  Try something like: 
>
> kms_force_mode=video=HDMI-A-1:1024x768@60e 
>
> ...in /boot/uboot/uEnv.txt. 
>
> -- 
> Charles Steinkuehler 
> [email protected] 
>


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] machinekit on BBB - how to force enabled HDMI hardware from cmdline

2014-02-04 Thread joe2456001
Thanks for the quick reply doug
   i tried 
mmcpart=2
optargs=fixrtc  video=HDMI-A-1:e
uenvcmd=i2c mw 0x24 1 0x3e; kd=0; if test $mmcdev -eq 1; then mmc dev 0; if 
mmc$
loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${bootdir}/dtbs/${fdtfile}
loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${bootdir}/${bootfile}

and some other things still not working any other suggestions or did i did 
it wrong? thanks a lot
Best
jason

On Tuesday, February 4, 2014 1:14:18 PM UTC-5, doog wrote:
>
> in the uEnv.txt file there's a line starting with "optargs="
> Add to the end of that line:
> " video=HDMI-A-1:e"
>
> make sure there's a space before the "video=." and this should force 
> the enabling of the HDMI port.
>
> Doug
>
>
>
> On Tuesday, February 4, 2014 9:06:03 AM UTC-8, joe2456001 wrote:
>>
>> HI Doug
>>  I'm running into the same problem here using beagleboard black 
>> running ubuntu-dsktop on a sd card 
>> the /sys/class/drm/card0-HDMI-A-1/enabled shows  disabled
>> cat /proc/cmdline shows this 
>> console=ttyO0,115200n8 video capemgr=capemgr.enable_partno=BB-BONELT-HDMI 
>> root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
>>
>>
>> ubuntu@ubuntu-armhf:~$ cat /sys/devices/bone_capemgr.9/slots
>>  0: 54:PF--- 
>>  1: 55:PF--- 
>>  2: 56:PF--- 
>>  3: 57:PF--- 
>>  4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
>>  5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
>>
>> can u show me your uenv file? thx i try to edit my uenv doesn't work
>> best
>> jason
>>
>>
>> On Tuesday, January 28, 2014 8:39:04 PM UTC-5, doog wrote:
>>>
>>> I had looked at it and overlooked what was the problem but you asking 
>>> and my copy/paste made me realize I'd cat'ed it onto the 
>>> capemgr.disable mesg with a comma instead of separating it. It now 
>>> works. Thanks for slap in the back of the head.
>>>
>>> Doug
>>>
>>> On Tuesday, January 28, 2014 5:29:22 PM UTC-8, Charles Steinkuehler 
>>> wrote:

 On 1/28/2014 6:57 PM, doog wrote: 
 > I'm getting going with LinuxCNC Machinekit on BBB but my first hiccup 
 is 
 > that I can't get HDMI hardware enabled. I have an HDMI-DVI cable and 
 for 
 > whatever reason the hardware has to be told to turn on. With Angstrom 
 I 
 > pass "video=HDMI-A-1:e" on optargs in uEnv.txt but default Debian in 
 > Machinekit doesn't do it. 
 > 
 > is there something I can do to force it on/enabled from the command 
 line? 
 >  I've tried shelling in with ssh -X then doing xrandr :0.0 --output 
 HDMI1 
 > --auto but it didn't work. 
 > I'm checking /sys/class/drm/card0-HDMI-A-1/enabled and when booting 
 > Angstrom without a display connected it states "enabled" as it 
 should. 
 > Booting Machinekit it states "disabled". 

 First, are you sure the option is being passed to the kernel?  What 
 does 
 "cat /proc/cmdline" return? 

 Second, have you tried the 'e' flag while also specifying a resolution? 
  Try something like: 

 kms_force_mode=video=HDMI-A-1:1024x768@60e 

 ...in /boot/uboot/uEnv.txt. 

 -- 
 Charles Steinkuehler 
 [email protected] 

>>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] machinekit on BBB - how to force enabled HDMI hardware from cmdline

2014-02-04 Thread doog
in the uEnv.txt file there's a line starting with "optargs="
Add to the end of that line:
" video=HDMI-A-1:e"

make sure there's a space before the "video=." and this should force 
the enabling of the HDMI port.

Doug



On Tuesday, February 4, 2014 9:06:03 AM UTC-8, joe2456001 wrote:
>
> HI Doug
>  I'm running into the same problem here using beagleboard black 
> running ubuntu-dsktop on a sd card 
> the /sys/class/drm/card0-HDMI-A-1/enabled shows  disabled
> cat /proc/cmdline shows this 
> console=ttyO0,115200n8 video capemgr=capemgr.enable_partno=BB-BONELT-HDMI 
> root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
>
>
> ubuntu@ubuntu-armhf:~$ cat /sys/devices/bone_capemgr.9/slots
>  0: 54:PF--- 
>  1: 55:PF--- 
>  2: 56:PF--- 
>  3: 57:PF--- 
>  4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
>  5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
>
> can u show me your uenv file? thx i try to edit my uenv doesn't work
> best
> jason
>
>
> On Tuesday, January 28, 2014 8:39:04 PM UTC-5, doog wrote:
>>
>> I had looked at it and overlooked what was the problem but you asking and 
>> my copy/paste made me realize I'd cat'ed it onto the capemgr.disable 
>> mesg with a comma instead of separating it. It now works. Thanks for slap 
>> in the back of the head.
>>
>> Doug
>>
>> On Tuesday, January 28, 2014 5:29:22 PM UTC-8, Charles Steinkuehler wrote:
>>>
>>> On 1/28/2014 6:57 PM, doog wrote: 
>>> > I'm getting going with LinuxCNC Machinekit on BBB but my first hiccup 
>>> is 
>>> > that I can't get HDMI hardware enabled. I have an HDMI-DVI cable and 
>>> for 
>>> > whatever reason the hardware has to be told to turn on. With Angstrom 
>>> I 
>>> > pass "video=HDMI-A-1:e" on optargs in uEnv.txt but default Debian in 
>>> > Machinekit doesn't do it. 
>>> > 
>>> > is there something I can do to force it on/enabled from the command 
>>> line? 
>>> >  I've tried shelling in with ssh -X then doing xrandr :0.0 --output 
>>> HDMI1 
>>> > --auto but it didn't work. 
>>> > I'm checking /sys/class/drm/card0-HDMI-A-1/enabled and when booting 
>>> > Angstrom without a display connected it states "enabled" as it should. 
>>> > Booting Machinekit it states "disabled". 
>>>
>>> First, are you sure the option is being passed to the kernel?  What does 
>>> "cat /proc/cmdline" return? 
>>>
>>> Second, have you tried the 'e' flag while also specifying a resolution? 
>>>  Try something like: 
>>>
>>> kms_force_mode=video=HDMI-A-1:1024x768@60e 
>>>
>>> ...in /boot/uboot/uEnv.txt. 
>>>
>>> -- 
>>> Charles Steinkuehler 
>>> [email protected] 
>>>
>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] machinekit on BBB - how to force enabled HDMI hardware from cmdline

2014-02-04 Thread joe2456001
HI Doug
 I'm running into the same problem here using beagleboard black running 
ubuntu-dsktop on a sd card the /sys/class/drm/card0-HDMI-A-1/enabled shows 
 disabled
cat /proc/cmdline shows this 
console=ttyO0,115200n8 video capemgr=capemgr.enable_partno=BB-BONELT-HDMI 
root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait


ubuntu@ubuntu-armhf:~$ cat /sys/devices/bone_capemgr.9/slots
 0: 54:PF--- 
 1: 55:PF--- 
 2: 56:PF--- 
 3: 57:PF--- 
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI

can u show me your uenv file? thx i try to edit my uenv doesn't work
best
jason


On Tuesday, January 28, 2014 8:39:04 PM UTC-5, doog wrote:
>
> I had looked at it and overlooked what was the problem but you asking and 
> my copy/paste made me realize I'd cat'ed it onto the capemgr.disable 
> mesg with a comma instead of separating it. It now works. Thanks for slap 
> in the back of the head.
>
> Doug
>
> On Tuesday, January 28, 2014 5:29:22 PM UTC-8, Charles Steinkuehler wrote:
>>
>> On 1/28/2014 6:57 PM, doog wrote: 
>> > I'm getting going with LinuxCNC Machinekit on BBB but my first hiccup 
>> is 
>> > that I can't get HDMI hardware enabled. I have an HDMI-DVI cable and 
>> for 
>> > whatever reason the hardware has to be told to turn on. With Angstrom I 
>> > pass "video=HDMI-A-1:e" on optargs in uEnv.txt but default Debian in 
>> > Machinekit doesn't do it. 
>> > 
>> > is there something I can do to force it on/enabled from the command 
>> line? 
>> >  I've tried shelling in with ssh -X then doing xrandr :0.0 --output 
>> HDMI1 
>> > --auto but it didn't work. 
>> > I'm checking /sys/class/drm/card0-HDMI-A-1/enabled and when booting 
>> > Angstrom without a display connected it states "enabled" as it should. 
>> > Booting Machinekit it states "disabled". 
>>
>> First, are you sure the option is being passed to the kernel?  What does 
>> "cat /proc/cmdline" return? 
>>
>> Second, have you tried the 'e' flag while also specifying a resolution? 
>>  Try something like: 
>>
>> kms_force_mode=video=HDMI-A-1:1024x768@60e 
>>
>> ...in /boot/uboot/uEnv.txt. 
>>
>> -- 
>> Charles Steinkuehler 
>> [email protected] 
>>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] machinekit on BBB - how to force enabled HDMI hardware from cmdline

2014-01-28 Thread doog
I had looked at it and overlooked what was the problem but you asking and 
my copy/paste made me realize I'd cat'ed it onto the capemgr.disable 
mesg with a comma instead of separating it. It now works. Thanks for slap 
in the back of the head.

Doug

On Tuesday, January 28, 2014 5:29:22 PM UTC-8, Charles Steinkuehler wrote:
>
> On 1/28/2014 6:57 PM, doog wrote: 
> > I'm getting going with LinuxCNC Machinekit on BBB but my first hiccup is 
> > that I can't get HDMI hardware enabled. I have an HDMI-DVI cable and for 
> > whatever reason the hardware has to be told to turn on. With Angstrom I 
> > pass "video=HDMI-A-1:e" on optargs in uEnv.txt but default Debian in 
> > Machinekit doesn't do it. 
> > 
> > is there something I can do to force it on/enabled from the command 
> line? 
> >  I've tried shelling in with ssh -X then doing xrandr :0.0 --output 
> HDMI1 
> > --auto but it didn't work. 
> > I'm checking /sys/class/drm/card0-HDMI-A-1/enabled and when booting 
> > Angstrom without a display connected it states "enabled" as it should. 
> > Booting Machinekit it states "disabled". 
>
> First, are you sure the option is being passed to the kernel?  What does 
> "cat /proc/cmdline" return? 
>
> Second, have you tried the 'e' flag while also specifying a resolution? 
>  Try something like: 
>
> kms_force_mode=video=HDMI-A-1:1024x768@60e 
>
> ...in /boot/uboot/uEnv.txt. 
>
> -- 
> Charles Steinkuehler 
> [email protected]  
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] machinekit on BBB - how to force enabled HDMI hardware from cmdline

2014-01-28 Thread Charles Steinkuehler
On 1/28/2014 6:57 PM, doog wrote:
> I'm getting going with LinuxCNC Machinekit on BBB but my first hiccup is 
> that I can't get HDMI hardware enabled. I have an HDMI-DVI cable and for 
> whatever reason the hardware has to be told to turn on. With Angstrom I 
> pass "video=HDMI-A-1:e" on optargs in uEnv.txt but default Debian in 
> Machinekit doesn't do it.
> 
> is there something I can do to force it on/enabled from the command line? 
>  I've tried shelling in with ssh -X then doing xrandr :0.0 --output HDMI1 
> --auto but it didn't work.
> I'm checking /sys/class/drm/card0-HDMI-A-1/enabled and when booting 
> Angstrom without a display connected it states "enabled" as it should. 
> Booting Machinekit it states "disabled".

First, are you sure the option is being passed to the kernel?  What does
"cat /proc/cmdline" return?

Second, have you tried the 'e' flag while also specifying a resolution?
 Try something like:

kms_force_mode=video=HDMI-A-1:1024x768@60e

...in /boot/uboot/uEnv.txt.

-- 
Charles Steinkuehler
[email protected]

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.