LinuxCNC Uspace

More
7 years 2 weeks ago #148257 by andypugh
Replied by andypugh on topic LinuxCNC Uspace

Gene1934 wrote: Yes but that was a while back
...
What I have is a somewhat cobbled version of hm2_rpspi that is working against the 7i90HD


The image is a run-in-place linuxcnc-dev, so should be able to pull the latest LinuxCNC (including the updates hm2_rpspi) and recompile.

I don't know why it wouldn't boot for you, unless 2GB is too small.

Please Log in or Create an account to join the conversation.

More
7 years 2 weeks ago #148259 by Gene1934
Replied by Gene1934 on topic LinuxCNC Uspace
I have that code, and hm2_rpsi doesn't work. Something has broken the spi config for speed options, and the default spiclk_rate_rd of 31250 khz is too fast, so I edited mine to hard code read speeds I knew would work with my hardware. And it does.

Bertho is up to it in his stuff and may not get to this till that settles. In the mean time I have mine working, but not in the manor intended. I can live with that, and I can tell others what to do until then.

Take care Andy.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >

Please Log in or Create an account to join the conversation.

More
7 years 1 week ago - 7 years 1 week ago #148424 by macsddau@linuxcnc
Replied by macsddau@linuxcnc on topic LinuxCNC Uspace

BigJohnT wrote: I'm collecting in one place instructions to build/install the Preempt RT kernel on various OS's and building or getting LinuxCNC.

gnipsel.com/linuxcnc/uspace/index.html

JT


With this step by step instructions, I build my first RT kernel with success on LM19.1 and install LinuxCNC 2.8.

- First thing is the disc size; usually a create 20Gb partitions but I had to raise it to 50Gb during building kernel compilation.
Is it possible to add a warning at the beginning of the instruction, to get the right disc size ?

- During process, I get only one error with :
Code:
sudo apt-get dist-upgrade
This was corrected installing required dependencies with Sympatic Packet Manager and Re-run the command with success.

- make a copy of the lunuxcnc conf directory from the 2.7.14 Debian 7 Wheezy installation. Converted to 2.8 version at launch.
I get some troubles with vfd link. I can't connect with the USB device. I know a problem with brltty and remove it without change.
Here the launch report.

File Attachment:

File Name: linuxcnc.report.txt
File Size:57.38 KB

Have you got an idea ?
Last edit: 7 years 1 week ago by macsddau@linuxcnc.

Please Log in or Create an account to join the conversation.

More
7 years 1 week ago #148437 by Gene1934
Replied by Gene1934 on topic LinuxCNC Uspace
I too have found your instructions helpfull. Just today, taking advantage of the warmer weather, opened the gsarage door for working room behind the Sheldon lathe, and swapped the pi3 that has been running it for 2+ years, out for a pi4, running Raspbian buster v10.1 and a realtime kernel I built, and installed the debs of linuxcnc i've built on that pi4 over the last week. Not without some drama though.

Seems I had been power the 3 thru its OTG port, but the pi3 connector does mate with the pi4 version, so the fix was easy as the pi is upside down, exposing the bottom of the40 pin header, so it was easy enough to paste a couple wires to piins 2 and 6 to bring power into it from the 5 amp supply 4" away. But I also tried to drill a 5/8 hole fot hdmi cable access and miss-drilled it so its plugged in but at an angle that doesn't make a usable connection. So I'm going to have to move the back of the hole about 1/4" in oder to get a more straight on approach. Unforch, the alu at that point is 1/8" thick and yields very slowly to a dremel with a sanding drum.

So, wanting to see if the pi4 could move iron, I went to the console at the 6040 and logged into the rpi4, and ran linuxcnc from there. video a tad slow due to the network, but lcnc ran well as configured. If anything, smoother that ever.

So the weather folks are promising a warmer tomorrow and I may be able to fix the bad video connection.

I've had to hard code the spi speeds into hm2_rpspi as I make lcnc, as some of the changes made in adding the other 2 mesa cards, has cost it ts ability to respond to speed settings in the configure string passed to it from the bottom of the ini file.

No biggie for me, but will make it more difficult for the new user. As the defaults are too fast and it won't work. It can't read from a 7i90HD at the default 31250, and must be reduced to 25000 for spiclk_rate_rd.

So I'm rather happy overall, and the rpi4 should fix most of the glacial video I was getting with the pi3 running things. All I gotta do is get it hooked up.

My thanks for the tuts, they did help.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >

Please Log in or Create an account to join the conversation.

More
6 years 11 months ago #150331 by BigJohnT
Replied by BigJohnT on topic LinuxCNC Uspace

macsddau@linuxcnc wrote: I get some troubles with vfd link. I can't connect with the USB device. I know a problem with brltty and remove it without change.
Here the launch report.

File Attachment:

File Name: linuxcnc.report.txt
File Size:57.38 KB

Have you got an idea ?


Might be your not added to the dev or something like that... I seem to recall to get my VFD to work I had to add myself to something but it escapes me now.

JT

Please Log in or Create an account to join the conversation.

More
6 years 11 months ago #150332 by Gene1934
Replied by Gene1934 on topic LinuxCNC Uspace
I've never used a usb interface, but udev brings then up as root,
so on this machine I took a big club to udev, and in rc.local, have this to give heyu a port to a cm11a x10 interface.
==========================rc.local
# But, udev is being a cast iron bitch, so lets see if we can outwit udev
# and make heyu work. 0755 didn't work, Ed Dipold says 0666
chmod 0666 /dev/ttyUSB0
# and heyu runs as me, so give me perms to grab that port
chown gene:gene /dev/ttyUSB0
sleep 1
# Now, need some heyu stuff run but its not working since stretch, why?
su gene -c "/usr/local/bin/heyu engine &"
su gene -c "/usr/local/bin/heyu monitor &"
exit 0
rc.local end==========================

And it all Just Runs. It might take something along those lines for the OP?

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >

Please Log in or Create an account to join the conversation.

Time to create page: 0.371 seconds
Powered by Kunena Forum