I follow RPi microcontroller - Klipper documentation to create a host mcu on orangepi zero 3.
Already add the klipper-mcu.service to system,make and flash linux process.
In systemctl , seems it work correctly:
But did not see klipper-mcu appear in /tmp/
orangepi@orangepizero3:~/klipper$ ls /tmp
systemd-private-d70b38420c994537929b08508daf4232-bluetooth.service-xx3I8j
systemd-private-d70b38420c994537929b08508daf4232-chrony.service-yE0VHv
systemd-private-d70b38420c994537929b08508daf4232-haveged.service-C8WDsF
systemd-private-d70b38420c994537929b08508daf4232-systemd-logind.service-z7ttjn
systemd-private-d70b38420c994537929b08508daf4232-vnstat.service-590dgC
timelapse
klippy.log:
mcu 'mcu': Starting serial connect
webhooks client 281473441614096: New connection
webhooks client 281473441614096: Client info {'program': 'Moonraker', 'version': 'v0.8.0-138-gfe12095'}
Loaded MCU 'mcu' 107 commands (v0.11.0-240-g6d48adf9 / gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.35.2-2+14+b2) 2.35.2)
MCU 'mcu' config: ADC_MAX=4095 BUS_PINS_i2c1=PB6,PB7 BUS_PINS_i2c1a=PB8,PB9 BUS_PINS_i2c2=PB10,PB11 BUS_PINS_spi1=PA6,PA7,PA5 BUS_PINS_spi1a=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi3=PB4,PB5,PB3 CLOCK_FREQ=72000000 INITIAL_PINS=!PA14 MCU=stm32f103xe PWM_MAX=255 RESERVE_PINS_USB=PA11,PA12 STATS_SUMSQ_BASE=256 STEPPER_BOTH_EDGE=1
mcu 'opi': Starting connect
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
mcu 'opi': Unable to open port: [Errno 2] No such file or directory: '/tmp/klipper_host_mcu'
MCU error during connect
Traceback (most recent call last):
File "/home/orangepi/klipper/klippy/mcu.py", line 800, in _mcu_identify
self._serial.connect_pipe(self._serialport)
File "/home/orangepi/klipper/klippy/serialhdl.py", line 165, in connect_pipe
self._error("Unable to connect")
File "/home/orangepi/klipper/klippy/serialhdl.py", line 61, in _error
raise error(self.warn_prefix + (msg % params))
serialhdl.error: mcu 'opi': Unable to connect
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/orangepi/klipper/klippy/klippy.py", line 176, in _connect
self.send_event("klippy:mcu_identify")
File "/home/orangepi/klipper/klippy/klippy.py", line 263, in send_event
return [cb(*params) for cb in self.event_handlers.get(event, [])]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/orangepi/klipper/klippy/klippy.py", line 263, in <listcomp>
return [cb(*params) for cb in self.event_handlers.get(event, [])]
^^^^^^^^^^^
File "/home/orangepi/klipper/klippy/mcu.py", line 803, in _mcu_identify
raise error(str(e))
mcu.error: mcu 'opi': Unable to connect
Build file /home/orangepi/klipper/klippy/../.config(857): Mon Aug 7 03:30:44 2023
I used to run successfully by putting klipper-mcu-start.sh into /init.d, but now this .sh does not seem to exist in /klipper/scripts/
What should I do?