#BTT ebb36 and u2c on Orangepi zero2

10 messages · Page 1 of 1 (latest)

sterile wadi
#

Good day. Im in the process of using the ebb36 v1.1 and u2c b1.1 boards on an Orangepi zero2 board. Im on the part of finding the canbus_uuid for new micro-controllers

~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0

But I got this error

orangepi@orangepizero2:~$ ~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
Traceback (most recent call last):
File "/home/orangepi/klipper/scripts/canbus_query.py", line 64, in <module>
main()
File "/home/orangepi/klipper/scripts/canbus_query.py", line 61, in main
query_unassigned(canbus_iface)
File "/home/orangepi/klipper/scripts/canbus_query.py", line 21, in query_unassigned
bustype='socketcan')
File "/home/orangepi/klippy-env/lib/python2.7/site-packages/can/interface.py", line 127, in new
return cls(channel, *args, **kwargs)
File "/home/orangepi/klippy-env/lib/python2.7/site-packages/can/interfaces/socketcan/socketcan.py", line 570, in init
self.socket = create_socket()
File "/home/orangepi/klippy-env/lib/python2.7/site-packages/can/interfaces/socketcan/socketcan.py", line 441, in create_socket
sock = socket.socket(PF_CAN, socket.SOCK_RAW, CAN_RAW)
File "/usr/lib/python2.7/socket.py", line 191, in init
_sock = _realsocket(family, type, proto)
socket.error: [Errno 97] Address family not supported by protocol

Details on the Orangepi:
Operating System: Ubuntu 20.04.5 LTS (Focal Fossa)
Kernel: Linux 4.9.170-sun50iw9
Architecture: arm64

What does this mean? Incompatibility issue? Is there a workaround? I apologize i have little knowledge in linux.. Any help will be highly appreciated. TIA.

fleet acorn
#

it might be you are missing some driver
module. can you paste your lsmod output?

#

so you have the u2c connected via usb?

fleet acorn
#

have you configured the can0 network? can you also type the command ifconfig and paste the results if you can see can0 in the interfaces?

fleet acorn
# sterile wadi

that’s shows you have only the wifi (I think?) driver loaded

#

can you paste ifconfig (hide your ip if it’s not a local ip)

sterile wadi
#

I made it to work on my spare rpi3b+ using teaching tech’s guide. Bought another set to test on the opizero2. Will update once i receive my orders.

sterile wadi
#

Update: i changed to another OPI OS from ubuntu focal to debian bullseye and now it can detect the uuid of the ebb