Geil-o-mat/PC: Unterschied zwischen den Versionen

aus Metalab Wiki, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Zur Navigation springenZur Suche springen
(add push command)
(some further information about Bios)
Zeile 1: Zeile 1:
 
How to set up the LinuxCNC PC
 
How to set up the LinuxCNC PC
  
 +
* In the BIOS, set the parallel port settings as follows:
 +
  Port Address: 378
 +
  Port Mode: ECP+EPP
 +
  EPP Version: 1.9
 +
  ECP Mode DMA Channel: DMA3
 +
  Parallel Port IRQ: IRQ5
 +
at least this works for this specific mainboard. '''ECP+EPP''' is probably the most important thing! The Port address is also important but can be changed in the .hal files.
 
* Download ISO from LinuxCNC Homepage, <tt>dd if=linuxcnc.iso of=/dev/stick</tt> on usb stick and install: [http://linuxcnc.org/docs/html/getting-started/getting-linuxcnc.html Download Page]
 
* Download ISO from LinuxCNC Homepage, <tt>dd if=linuxcnc.iso of=/dev/stick</tt> on usb stick and install: [http://linuxcnc.org/docs/html/getting-started/getting-linuxcnc.html Download Page]
 
* After installation put network to static, use <tt>10.20.30.60/16</tt> as IP Address, look up current gateway and DNS server
 
* After installation put network to static, use <tt>10.20.30.60/16</tt> as IP Address, look up current gateway and DNS server
Zeile 7: Zeile 14:
 
* Tweak the Jitter, see [http://wiki.linuxcnc.org/cgi-bin/wiki.pl?The_Isolcpus_Boot_Parameter_And_GRUB2 isolcpus Boot parameter]: put <tt>GRUB_CMDLINE_LINUX_DEFAULT="noapic isolcpus=1 idle=poll nohlt quiet rootdelay=5"
 
* Tweak the Jitter, see [http://wiki.linuxcnc.org/cgi-bin/wiki.pl?The_Isolcpus_Boot_Parameter_And_GRUB2 isolcpus Boot parameter]: put <tt>GRUB_CMDLINE_LINUX_DEFAULT="noapic isolcpus=1 idle=poll nohlt quiet rootdelay=5"
 
</tt> into <tt>/etc/default/grub</tt> config and <tt>update-grub</tt>
 
</tt> into <tt>/etc/default/grub</tt> config and <tt>update-grub</tt>
 +
* If you really need to, you can try adding <tt>acpi=off</tt> as well, but that also removes the ability to shut the PC off without pressing the power button in the end (and it seems to have not a huge impact as for example the <tt>isolcpus</tt>).
 
* After a reboot, you should get really nice jitter values, see screenshot
 
* After a reboot, you should get really nice jitter values, see screenshot
  

Version vom 4. Januar 2017, 18:57 Uhr

How to set up the LinuxCNC PC

  • In the BIOS, set the parallel port settings as follows:
 Port Address: 378
 Port Mode: ECP+EPP
 EPP Version: 1.9
 ECP Mode DMA Channel: DMA3
 Parallel Port IRQ: IRQ5

at least this works for this specific mainboard. ECP+EPP is probably the most important thing! The Port address is also important but can be changed in the .hal files.

  • Download ISO from LinuxCNC Homepage, dd if=linuxcnc.iso of=/dev/stick on usb stick and install: Download Page
  • After installation put network to static, use 10.20.30.60/16 as IP Address, look up current gateway and DNS server
  • Clone the config: git clone https://github.com/Metalab/linuxcnc_config.git linuxcnc
  • Add lp group to cnc user: adduser cnc lp
  • Tweak the Jitter, see isolcpus Boot parameter: put GRUB_CMDLINE_LINUX_DEFAULT="noapic isolcpus=1 idle=poll nohlt quiet rootdelay=5"

into /etc/default/grub config and update-grub

  • If you really need to, you can try adding acpi=off as well, but that also removes the ability to shut the PC off without pressing the power button in the end (and it seems to have not a huge impact as for example the isolcpus).
  • After a reboot, you should get really nice jitter values, see screenshot

Jitter.png

  • To push the LinuxCNC config back to github, you need an github account that is associated with the Metalab repos. Then use the ssh agent to forward your key to the CNC machine and use git push github-ssh master to push. You can also use origin as remote, which is the HTTPS method.