Advanced Search

Search Results (Searched for: raspberry)

09 May 2023 07:38
Replied by tommylight on topic Raspberry Pi Zero W?

Raspberry Pi Zero W?

Category: Installing LinuxCNC

Probably not.
That is just a guess from what i read.
Try running the ready made image in the download section.
09 May 2023 03:18

Raspberry Pi Zero W?

Category: Installing LinuxCNC

I've been searching around, but can't find an answer to the questions of "Will LinuxCNC work on a Raspberry Pi Zero W?" or "Can I drive a Mesa 7C81 board with LinuxCNC on a Raspberry Pi Zero?"

For background, I built a router with LinuxCNC years ago, and I just acquired a Bridgeport CNC mill this past weekend.  The drivers for the steppers on the BP are from "Ah-Ha", which went out of business about 20yrs ago.  So, I want to replace the steppers with modern hybrids, and get a compact electronics installation.  I have an Acorn controller board, but that would require a Windows PC out in the workshop.  OTOH, I've got the Pi Zero right here in hand, surplus from another project.  If it could drive the Mesa, I'd be halfway there.
07 May 2023 13:21 - 07 May 2023 13:29

Linux parallel port 0 not found error in fedora

Category: Driver Boards

Hi I installed linuxcnc on fedora raspberry pi 4b 8GB
When I lunch linuxcnc application I am getting this error

LINUXCNC - 2.10.0-0.94.20230401git85305d7.fc38Machine configuration directory is '/home/user/linuxcnc/configs/my-config'Machine configuration file is 'my-config.ini'Starting LinuxCNC...linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmodFound file(REL): ./my-config.halUnexpected realtime delay on task 0 with period 100000This Message will only display once per session.Run the Latency Test and resolve before continuing.config string '0 out'Linux parallel port 0 not foundhal_parport: rtapi_app_main: No such file or directory (-2)./my-config.hal:6: waitpid failed /usr/bin/rtapi_app hal_parport./my-config.hal:6: /usr/bin/rtapi_app exited without becoming ready./my-config.hal:6: insmod for hal_parport failed, returned -1Shutting down and cleaning up LinuxCNC...LinuxCNC terminated with an error. You can find more information in the log:/home/user/linuxcnc_debug.txtand/home/user/linuxcnc_print.txtas well as in the output of the shell command 'dmesg' and in the terminal

File /home/user/linuxcnc_print

RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib64/tcl8.6/linuxcnc2.10.0
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
Using previous INI file: /home/user/linuxcnc/configs/my-config/my-config.ini
INIFILE=/home/user/linuxcnc/configs/my-config/my-config.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=
DISPLAY=gmoccapy
COORDINATES=X Y Z
KINEMATICS=trivkins coordinates=XYZ
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

System Info is here and some config files

uname -a
Linux fedora 6.2.13-300.fc38.aarch64 #1 SMP PREEMPT_DYNAMIC Thu Apr 27 01:54:55 UTC 2023 aarch64 GNU/Linux

lscpu
Architecture:          aarch64
CPU op-mode(s):   32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                    4
Model name:         Cortex-A72

lspci

00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2711 PCIe Bridge (rev 20)
01:00.0 USB controller: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller (rev 01)

06 May 2023 10:58 - 06 May 2023 10:59

LinuxCNC on Rpi4 / Rpi3 / DietPi

Category: Installing LinuxCNC

You should try BookWorm as i am pretty sure it has armf packages already, so all you would need after installing Debian is:
sudo apt install linuxcnc-uspace
This should also install RT kernel.

Actually, Debian offer Raspberry Specific images. I have installed Bookworm and Bullsey on the Raspberry. It only gets you to a terminal prompt but it's easy to install a graphical environment from there. I compiled some notes you may like to follow.
docs.google.com/document/d/1S0K-UBlXnsYC...b_0/edit?usp=sharing 
06 May 2023 10:44

Notes from installation of ethercat on Raspberry Pi 4

Category: EtherCAT

You have a Intel NIC which is not as likely to have real time communication delays.

It is not unexpected that you record better performance. . The ethercat protocol is much more efficient than normal TCP/IP comms, I don't think you will need to make any special meaures
06 May 2023 05:04

Notes from installation of ethercat on Raspberry Pi 4

Category: EtherCAT

RK3399现在可以安装linuxcnc了,并且ethercat也可以使用了。我用的内核是4.4-rt176和4.19.rt87。firefly的平台。系统是debian10
这里要感谢rodw.

For rodw:
Thanks a lot for your etherlab repositories.And I have a question, that generic device driver has better delay than normal TCP/IP protocol. If I use the standard ethercat netword card such as e1000, How can add the specific module base on your projects.Thanks again.
05 May 2023 21:48

LinuxCNC on Rpi4 / Rpi3 / DietPi

Category: Installing LinuxCNC

For the realtime kernel
Ideally you don't want to be building the kernel sources on a SD card
so personally I tend to keep /boot on the sd card but move everything else across to a USB Hard Disk
I won't bother to go into details on how to do that here unless someone asks.

raspian recently merged 6.1.27 into they're 6.1 branch
github.com/raspberrypi/linux/tree/83cf6b...b7fef70b1a7c9539b0b9
using this in combination with this patch
mirrors.edge.kernel.org/pub/linux/kernel...-6.1.26-rt8.patch.xz
this seems to work ok for a realtime rpi kernel, at least for the Pi4

Install some dependencies
sudo apt install git bc bison flex libssl-dev make gcc raspberrypi-kernel-headers libc6-dev
sudo apt install patch xz-utils libncurses-dev

Download Linux Sources
cd /usr/src/
wget https://github.com/raspberrypi/linux/archive/refs/heads/rpi-6.1.y.tar.gz
tar -xvf rpi-6.1.y.tar.gz
mv linux-rpi-6.1.y linux-6.1.27-linuxcnc-rt

Patch Sources
wget https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/6.1/patch-6.1.26-rt8.patch.xz
cd linux-6.1.27-linuxcnc-rt
xzcat ../patch-6.1.26-rt8.patch.xz | patch -p1

Set the default config for the rpi
# 64bit Rpi4 / Rpi3
KERNEL=kernel8
make bcm2711_defconfig

# 32Bit Rpi3
KERNEL=kernel7
make bcm2709_defconfig

# 32Bit Rpi4
KERNEL=kernel7l
make bcm2711_defconfig
  • Run make menuconfig
  • under General -> Preemption Model, switch this to real-time
  • Edit .config and add something to the end of `CONFIG_LOCALVERSION` to make it unique
  • such as "-linuxcnc-rt"
Next to build the sources
In this example I'm using a subdirectory of /boot/rt/
this way we're free to switch back to the original kernel if needed
# For 64bit
make -j4 Image.gz modules dtbs
make modules_install
mkdir -p /boot/rt/overlays/
cp arch/arm64/boot/dts/broadcom/*.dtb /boot/rt/
cp arch/arm64/boot/dts/overlays/*.dtb* /boot/rt/overlays/
cp arch/arm64/boot/dts/overlays/README /boot/rt/overlays/
cp arch/arm64/boot/Image.gz /boot/rt/$KERNEL.img

# For 32bit
make -j4 zImage modules dtbs
make modules_install
mkdir -p /boot/rt/overlays/
cp arch/arm/boot/dts/*.dtb /boot/rt/
cp arch/arm/boot/dts/overlays/*.dtb* /boot/rt/overlays/
cp arch/arm/boot/dts/overlays/README /boot/rt/overlays/
cp arch/arm/boot/zImage /boot/rt/$KERNEL.img

To boot to the new kernel
Edit the /boot/config.txt file.
Add os_prefix=/rt/ to the top, this will select the files under /boot/rt where the new kernel will be located
If anything goes wrong then just put the sd card in a usb adapter and comment out that line to switch back to the old kernel

If using a Pi3 I'd suggest sticking to 32bit
Also there seems to be some issues with it's USB Controller and Realtime
forums.raspberrypi.com/viewtopic.php?t=159170

One workaround for this is to add dwc_otg.fiq_enable=0 dwc_otg.fiq_fsm_enable=0 to the end of cmdline.txt
Which I think makes it more stable but I'm not entirely sure if it's fully stable
as I was still seeing some messages related to mmc1 under dmesg with network traffic
The Pi4 by comparison seems a lot more stable

I've not got an orangePi 5 to test but they're official kernels seems to be older at around version 5.4.65
with some branches going up to 5.18.
I think Armbian may have patches for a later kernel for the rock chipset.
This probably also applies to a lot of the other rpi alternatives since a lot of those also use the same rock chipset
Pi4's are starting to make they're way back onto Amazon now but they are a bit expensive still
Displaying 961 - 967 out of 967 results.
Time to create page: 1.201 seconds
Powered by Kunena Forum