LinuxCNC install + upgrade to dev (documentation issues) plasmac related.

More
19 Jul 2019 12:22 #139875 by robertspark
Hello,

Sorry I didn't know where to put this as its probably a mixture of a load of things (me being inept and or poor and or outdated and or incorrect documenation).

I have dabbled with Linux for 20 years (consider me the equivalent of a 6 month novice user, I have used bash with RPi / tinkerboaqrd etc).

So I had a working Linuxcnc RT distobution running over a Mint install I followed on here, but I thought I'd dabble with plasmac as it looks interesting (my usable cnc is UCCNC).

Given I've just replaced my PC with a fanless i7 5550u, I decided to install via a linuxcnc live install disk on USB stick, all fine, no issues, run sudo apt-get update + sudo apt-get upgrade and again no issues.

Then I thought (as it was linux 2.7r14 that I'd give the current master / development a go (2.9.0) as I'm looking to dabble with plasmac, and have done to this thread
forum.linuxcnc.org/plasma-laser/35449-an...ma-component?start=0

I followed this link on the above page
buildbot.linuxcnc.org/
and just got errors (rejected) when I ran this in terminal
sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-key EF1B07FEE0EE663E

giving up on that, I then went to this link on the above page:
linuxcnc.org/docs/master/html/code/building-linuxcnc.html
and after running this in terminal:
git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc-dev
]
it too just gave errors {albeit I suspect that the linuxcnc-dev is probably the issue, and maybe should be " -b master "}

again, giving up on that, I then tried this line on the above forum page:
linuxcnc.org/docs/devel/html/plasma/plas...u_have_linuxcnc_v2_7
and tried this running in terminal

git clone git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc-dev

but it too spat out errors..... although I suspect that this too is because there are too many "git clone" statements in the line.

eventually.... I ran Synaptic Package Manager and upgraded linuxcnc to 2.9 from there.... which has plasmac and appears to be working.

My point is Linuxcnc never seems to make it easy for new users to try out the package if its difficult to install and the code does not run without errors.

Maybe I am nieve and expect that I should be able to install from a linuxcnc live disc and follow at least one of the methods to get it to work..... afterall that is going to be the best way to bring out new users is it not? Any maybe check that the code is correct or still works from the terminal that may have been written some time ago


_______________________________________________________

slightly seperate issue.... I was obviously testing / checking my latency, given I was running a newer fanless PC with an i7 5550u against my older N3150 fanless pc and having a look at this thread
wiki.linuxcnc.org/cgi-bin/wiki.pl?Latency-Test

I noticed that it refered to "isolcpus"

wiki.linuxcnc.org/cgi-bin/wiki.pl?The_Is..._Parameter_And_GRUB2

I thried to follow the info posted but am not sure if its still current with the latest linuxcnc / debian distro's given multiproccessor CPU's are the norm these days..... but again I'm not sure if adding "isolcpus=1" will make any difference

found this thread forum.linuxcnc.org/9-installing-linuxcnc...lspus-1-still-needed too

Note I am going to be running a Mesa 7i76E which I have so am only interested in the servo (1msec) thread / loop, but I kind of expected that the jitter would be lower than it is.

Thanks,

Rob

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

More
19 Jul 2019 14:51 #139882 by rodw
Robert, funny, I just copied the first 2 lines you quoted and both worked perfectly (settnig the key server and cloning from git.)
I'm sitting in front of a fresh install of Linux Mint 19.1 (tesa)
plasma2@plasma2:~$ sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-key EF1B07FEE0EE663E
[sudo] password for plasma2:        
Executing: /tmp/apt-key-gpghome.Q45epSLDj4/gpg.1.sh --keyserver hkp://keys.gnupg.net --recv-key EF1B07FEE0EE663E
gpg: key EF1B07FEE0EE663E: public key "LinuxCNC Buildbot <nomail@linuxcnc.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
plasma2@plasma2:~$ git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc-devCloning into 'linuxcnc-dev'...
remote: Enumerating objects: 78, done.
remote: Counting objects: 100% (78/78), done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 212978 (delta 34), reused 47 (delta 24), pack-reused 212900
Receiving objects: 100% (212978/212978), 127.00 MiB | 2.31 MiB/s, done.
Resolving deltas: 100% (162286/162286), done.
Checking out files: 100% (6070/6070), done.
plasma2@plasma2:~$ 

I suspect that there may be some dependencies (probably including git) that was missing.

I'm currently compiling the Linux PREEMPT_RT kernel for a mesa 7i76e and I have installed these dependencies for that purpose (you will need to do that too if you wish to continue to use Mint and a 7i76e.
sudo apt-get install build-essential bin86 kernel-package libqt4-dev libncurses5-dev libssl-dev pkg-config

I don't recommend anybody depend too much on the Wiki as its user maintained and has some obsolete info in it. Everything you need is in the docs but be sure to follow the link to the correct version as there are significant differences between versions.

Thanks for pointing out the error in the plasmac manual. I'm sure Phill will note it and push a fix over the weekend.

Right now V 2.7 is really on an end of life OS . V 2.8 has been quarantined and the Devs are working hard on completing testing and final revisions before release which will retire V 2.7. Plasmac will be in that release (minus the reverse run). So really Plasmac is a pre-release config right now. It can't run on 2.7.

I played with isolcpus and I think its acknowledged it does not help on current hardware.(again its not in the official docs - probably for a reason).

LinuxCNC does not need an i7 and would be quite happy on your old PC. The N3150 is ideal for mesa hardware. The PC I'm working on right now is a J1850 and My other PC's have been a J1900 (currently on my machine now) and a N3160. You just need to disable some power saving and some internal wifi cards result in unusable latency (replace with a USB Wifi Dongle).

Using the Synaptic package manager is the correct way to get V 2.9 (unless you want to compile the source.)

So right now I have 2 of these little J1850's one has Mint on it and the other has the Stretch 2.7 default ISO install. I was going to document the process. Maybe it might get included in some instructions somewhere.

One final note I found out while writing this. I just had a failure with Linux Mint compiling the PREEPT_RT kernel while I was writing this. So stick to the stretch ISO www.linuxcnc.org/testing-stretch-rtpreempt/

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

More
19 Jul 2019 15:33 #139890 by robertspark
Thanks Rod,

I tried to go the "easy" route, and just used the live debian from here:
www.linuxcnc.org/testing-stretch-rtpreempt/

linuxcnc-stretch-uspace-amd64-r13.iso

onto a usb stick using rufus +dd and it booted just fine and then installed it onto the HDD (conventional disk SATA not SSD)

I'll have a play over the weekend as I really want to give linuxcnc a go for curiosity more than anything.

I didn't see the point of installing Mint this time as it shouldn't offer anything over pure debian stretch , and I found the RT patch a pia if I remember from last time.

Git appeared to be installed ... like I said I'll have another go at it.

Thanks again

Rob

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

More
19 Jul 2019 23:57 #139936 by phillc54

again, giving up on that, I then tried this line on the above forum page:
linuxcnc.org/docs/devel/html/plasma/plas...u_have_linuxcnc_v2_7
and tried this running in terminal
git clone git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc-dev

but it too spat out errors..... although I suspect that this too is because there are too many "git clone" statements in the line.

Oops, another typo. Thanks.

eventually.... I ran Synaptic Package Manager and upgraded linuxcnc to 2.9 from there.... which has plasmac and appears to be working.

For this to work you must have changed the repositories somehow...

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

More
22 Jul 2019 18:46 #140214 by robertspark
Thanks all for the replies.

Been playing with mint over the weekend + (re)building kernels to (try to) improve jitter.

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

More
22 Jul 2019 19:32 #140226 by rodw
With Mesa hardware, you really don't need to worry too much about Jitter. I think anything under 200,000 is useable but < 100,000 is fine. I think the little PC I'm working with is about 65,000. I did not have much luck with Mint and PREEMPT_RT. Its always been easy before but this time, Its related to a known kantankerous BIOS and UFE booting. It seemed the fix might include setting different parameters in xconfig so I have not got back to it.

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

More
22 Jul 2019 19:45 #140229 by robertspark
Yes, I'm probably over thinking / tinkering with it....

I've been following this link / thread to install mint 19.1 and patch the RT kernel + rebuild the kernel.

forum.linuxcnc.org/9-installing-linuxcnc...cnc-on-linux-mint-19
>>
gnipsel.com/linuxcnc/uspace/linuxmint19-rt.html

when I ran
make xconfig

I could not help but take a look at the kernel config, and one setting I found has puzzled me {given the instructions were :

Use ctrl f and search for preempt. Select Fully Preemptible Kernel(RT) Save and close


I ran across:
CONFIG_HZ_100

should this not be set at:
CONFIG_HZ_1000
which should improve latency?

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

More
24 Jul 2019 22:40 #140480 by rodw
Kernel source is here. I'm not making a call one way or another.
github.com/torvalds/linux/blob/master/kernel/Kconfig.hz

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

More
28 Jul 2019 17:48 - 28 Jul 2019 17:48 #140823 by andypugh

I followed this link on the above page
buildbot.linuxcnc.org/
and just got errors (rejected) when I ran this in terminal
sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-key EF1B07FEE0EE663E

giving up on that,


I have had trouble with the key in the past. It turns out that you can just ignore it, you get a prompt about an unsigned package (or something like that) but can still install.

I then went to this link on the above page:
linuxcnc.org/docs/master/html/code/building-linuxcnc.html
and after running this in terminal:

git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc-dev
]
it too just gave errors {albeit I suspect that the linuxcnc-dev is probably the issue, and maybe should be " -b master "}


I have a feeling that you need a github account to use git:// and the more general command would be
git clone https://github.com/LinuxCNC/linuxcnc.git linuxcnc-dev
Last edit: 28 Jul 2019 17:48 by andypugh.

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

More
28 Jul 2019 17:53 #140825 by robertspark
thanks got it all working at the moment (well mint 19 + linuxcnc 2.9 / dev) installed

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

Time to create page: 0.085 seconds
Powered by Kunena Forum