- Download and install MINIBIAN
The default un/pw is root/raspberry - Install raspi-config
Code: Select all
apt-get update apt-get install -y raspi-config raspberrypi-bootloader
- Configure RPi
Code: Select all
raspi-config
- Expand Filesystem
- Overclock
- reboot to apply changes
- Add Machinekit repo:
Code: Select all
apt-key adv --keyserver hkp://keys.gnupg.net --recv-key 43DDF224 echo "deb http://deb.machinekit.io/debian raspbian main" > /etc/apt/sources.list.d/machinekit.list apt-get update
- Install RT-PREEMPT kernel
- RPi1
Code: Select all
apt-get install -y linux-image-rpi-rt
- RPi2
Code: Select all
apt-get install -y linux-image-rpi2-rt
- RPi1
- Update /boot/config.txt to use the new kernel
- RPi1Use the corect dtb file for your board.
Code: Select all
cd /boot echo kernel=$(ls kernel_rt*.img) >> config.txt echo device_tree=dtbs_rt/bcm2708-rpi-b-plus.dtb >> config.txt
- RPi2
Code: Select all
cd /boot echo kernel=$(ls kernel_rt*.img) >> config.txt echo device_tree=dtbs_rt/bcm2709-rpi-2-b.dtb >> config.txt
Code: Select all
root@minibian:~# cat /boot/config.txt gpu_mem=16 arm_freq=1000 core_freq=500 sdram_freq=500 over_voltage=2 kernel=kernel-4.4.3-rt9-v7+.img device_tree= dtbs_rt/bcm2709-rpi-2-b.dtb
- RPi1
- Add the following parameters to /boot/cmdline.txt
Sample /boot/cmdline.txt
Code: Select all
dwc_otg.fiq_enable=0 dwc_otg.fiq_fsm_enable=0 dwc_otg.nak_holdoff=0
Code: Select all
root@minibian:~# cat /boot/cmdline.txt dwc_otg.fiq_enable=0 dwc_otg.fiq_fsm_enable=0 dwc_otg.nak_holdoff=0 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext4 fsck.repair=yes rootwait
- Install Machinekit
Code: Select all
apt-get install -y machinekit-dev machinekit-rt-preempt
- Install PICnc-v2 driver
Code: Select all
cd ~/ wget https://github.com/kinsamanka/PICnc-V2/raw/master/HAL/picnc.{c,h} comp --compile picnc.c sudo cp picnc.so /usr/lib/linuxcnc/rt-preempt
- Install your favorite DE
Replace lxde with whatever suits your fancy
Code: Select all
apt-get install lxde
- Add Machinekit user
Code: Select all
adduser mk
- Reboot
Code: Select all
reboot
MINIBIAN was chosen to keep the installation size small. Standard raspbian image can also be used, just omit the DE installation step.
The rt-preempt kernels are still considered beta, tests are needed to see if this is suitable for Machinekit.
updates: Added RPi2 kernel