LinuxCNC on Raspberry Pi 4

More
30 Oct 2022 17:28 #255465 by dannym
Replied by dannym on topic LinuxCNC on Raspberry Pi 4
OK went for an older build, 2022.01.21, and it does boot.

I'm confused, I thought the hardware was so standard it should yield consistent results. Could it be that the 8GB is somehow not going to run the one tested on 4GB? I can't say.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
30 Oct 2022 19:55 #255479 by tommylight
Replied by tommylight on topic LinuxCNC on Raspberry Pi 4
Not standard anymore, even the same versions are not the same, from what i read, from version 1.5 and above even the official image has issues.

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

More
31 Oct 2022 05:15 - 31 Oct 2022 06:17 #255543 by dannym
Replied by dannym on topic LinuxCNC on Raspberry Pi 4
I got the 2022.01.21 Bookworm to boot, but username "pi", password "raspberry" didn't work. "user"/"live" and "user"/"password" also no-go. Checked caps lock.

I'm seeing that raspi.debian.net/ says it ships with no username/password set. But it's demanding those. Just hitting "enter" twice does not work.  I can't get a command line and don't see any way to continue yet

EDIT: turns out it's username "root", no password
Last edit: 31 Oct 2022 06:17 by dannym.

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

More
03 Nov 2022 01:55 #255814 by tjmarch
Replied by tjmarch on topic LinuxCNC on Raspberry Pi 4
Saw this so thought I would give bookworm a try everything went well until I ran my config setup. When starting Linuxcnc I received the error screen. Attached is error log file. Which contains the following error. HAL_PI_GPIO: ERROR: board revision 7 not supported. I have a RPI4 4GB.


Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
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
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/tim/linuxcnc/configs/rpi-grbl-mill'
Machine configuration file is 'rpi-grbl-mill.ini'
INIFILE=/home/tim/linuxcnc/configs/rpi-grbl-mill/rpi-grbl-mill.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins coordinates=XYZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./rpi-grbl-mill.hal
Found file(REL): ./custom.hal
Found file(REL): ./standard_pinout.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
HAL_PI_GPIO: ERROR: board revision 7 not supported
hal_pi_gpio: rtapi_app_main: Invalid argument (-22)
./standard_pinout.hal:8: waitpid failed /usr/bin/rtapi_app hal_pi_gpio
./standard_pinout.hal:8: /usr/bin/rtapi_app exited without becoming ready
./standard_pinout.hal:8: insmod for hal_pi_gpio failed, returned -1
1543
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Thu Nov 3 01:23:15 UTC 2022
            UTC Date: Thu Nov 3 01:23:15 UTC 2022
        this program: /usr/bin/linuxcnc_info
              uptime: 01:23:15 up 1 min, 1 user, load average: 1.97, 1.01, 0.39
     lsb_release -sa:
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/tim/linuxcnc/configs/rpi-grbl-mill
                USER: tim
             LOGNAME: tim
                HOME: /home/tim
              EDITOR:
              VISUAL:
            LANGUAGE:
                TERM: dumb
           COLORTERM:
             DISPLAY: :0.0
             DESKTOP: lightdm-xsession
        display size: 1440x900 pixels (381x238 millimeters)
                PATH: /usr/bin:/home/tim/linuxcnc/configs/rpi-grbl-mill/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
         nodename -n: rpi4-20221010
      kernel-name -s: Linux
      kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.0.5-1 (2022-10-28)
          machine -m: aarch64
        processor -p: unknown
         platform -i: unknown
      oper system -o: GNU/Linux

/proc items:
             cmdline: video=HDMI-A-1:1440x900M@60 dma.dmachans=0x37f5 bcm2709.boardrev=0xc03111 bcm2709.serial=0x212d5d51 bcm2709.uart_clock=48000000 bcm2709.disk_led_gpio=42 bcm2709.disk_led_active_low=0 smsc95xx.macaddr=DC:A6:32:08:46:E0 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=tty0 console=ttyS1,115200 root=LABEL=RASPIROOT rw fsck.repair=yes net.ifnames=0 rootwait processor.max_cstate=1 isolcpus=2,3
          model name:
               cores:
             cpu MHz:
             parport:
              serial:

Versions:
/usr/bin/linuxcnc_info: line 154: gcc: command not found
                 gcc:
              python: Python 3.10.8
                 git: not_in_PATH
          git commit: NA
                 tcl: 8.6
                  tk: 8.6
               glade: not_in_PATH

linuxcnc_var all:

     LINUXCNCVERSION: 2.9.0~pre0
LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp
LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples
            REALTIME: /usr/lib/linuxcnc/realtime
                 RTS: uspace
          HALLIB_DIR: /usr/share/linuxcnc/hallib
              PYTHON: /usr/bin/python3

dpkg -l '*linuxcnc*':
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version                             Architecture Description
+++-===================-===================================-============-=====================================================================
un  linuxcnc            <none>                              <none>       (no description available)
un  linuxcnc-dev        <none>                              <none>       (no description available)
un  linuxcnc-doc        <none>                              <none>       (no description available)
ii  linuxcnc-doc-en     2.9.0~pre0+git20220906.02744cdef6-1 all          motion controller for CNC machines and robots (English documentation)
un  linuxcnc-doc-es     <none>                              <none>       (no description available)
un  linuxcnc-doc-fr     <none>                              <none>       (no description available)
un  linuxcnc-sim        <none>                              <none>       (no description available)
un  linuxcnc-sim-dev    <none>                              <none>       (no description available)
ii  linuxcnc-uspace     2.9.0~pre0+git20220906.02744cdef6-1 arm64        motion controller for CNC machines and robots
ii  linuxcnc-uspace-dev 2.9.0~pre0+git20220906.02744cdef6-1 arm64        PC based motion controller for real-time Linux

 
Attachments:

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

More
03 Nov 2022 08:22 - 03 Nov 2022 10:29 #255823 by elovalvo
Replied by elovalvo on topic LinuxCNC on Raspberry Pi 4

Saw this so thought I would give bookworm a try everything went well until I ran my config setup. When starting Linuxcnc I received the error screen. Attached is error log file. Which contains the following error. HAL_PI_GPIO: ERROR: board revision 7 not supported. I have a RPI4 4GB.
 


The problem is due to the cpu_info.c file
github.com/LinuxCNC/linuxcnc/blob/master...al/drivers/cpuinfo.c

which refers to what is reported in this document:
www.raspberrypi.com/documentation/comput...ry-pi-revision-codes

To check what your Raspberry board revision is, see the result of the 'pinout' or 'cat /proc/cpuinfo' command executed in the terminal.

If the revision is present among those reported in the cpuinfo.c file, the version of linuxcnc used is not updated.
If it is not present, the file will need to be updated.

Let me know
Last edit: 03 Nov 2022 10:29 by elovalvo.

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

More
03 Nov 2022 14:35 #255846 by tjmarch
Replied by tjmarch on topic LinuxCNC on Raspberry Pi 4
Checked, cat /proc/cpuinfo
with the following output. Thank you for the help elovalvo, what next, looks like revision 3 which is there.

tim@rpi4-20221010:~$ cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

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

More
03 Nov 2022 15:57 #255850 by elovalvo
Replied by elovalvo on topic LinuxCNC on Raspberry Pi 4

Checked, cat /proc/cpuinfo
with the following output. Thank you for the help elovalvo, what next, looks like revision 3 which is there.


You forgot to report the last 4 lines that report revision information like this

processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Hardware : BCM2835
Revision : c03131
Serial : 1000000079326ffc
Model : Raspberry Pi 400 Rev 1.1

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

More
03 Nov 2022 16:29 - 03 Nov 2022 16:34 #255851 by tjmarch
Replied by tjmarch on topic LinuxCNC on Raspberry Pi 4
That is all that there was to report i have included a screen shot.

 
Attachments:
Last edit: 03 Nov 2022 16:34 by tjmarch.

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

More
03 Nov 2022 17:23 #255858 by tjmarch
Replied by tjmarch on topic LinuxCNC on Raspberry Pi 4
Maybe this may help I started Hal and issued
loadrt hal_pi_gpio dir=246244 exclude=63444491

With the following results

 
Attachments:

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

More
03 Nov 2022 18:19 - 04 Nov 2022 00:13 #255862 by tjmarch
Replied by tjmarch on topic LinuxCNC on Raspberry Pi 4
After reading your post links I used suggested method to detect raspberry pi board.


 
Attachments:
Last edit: 04 Nov 2022 00:13 by tjmarch. Reason: Not sowing properly

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

Time to create page: 0.222 seconds
Powered by Kunena Forum