Waveshare RS485 CAN HAT on AML-S905X-CC Le Potato

git clone https://github.com/libre-computer-project/libretech-wiring-tool.git lwt
cd lwt
make
./ldto enable spicc
./ldto enable spicc-mcp2515-can0

https://netmodule-linux.readthedocs.io/en/latest/howto/can.html

Brought to you by @Tonymac32

Hey Tony. Thx for doing this. I’m getting a “no vendor found!” error when running ldto. Any help?

Doesn’t appear to be a /sys/class/dmi directory on my system.

$ uname -a
Linux lepotato 5.10.147-meson64 #22.08.4 SMP PREEMPT Fri Oct 7 16:37:19 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

The wiring tool doesn’t support Armbian. You need to use our Ubuntu or Raspbian images.

Please share the exact steps to use Waveshare RS485 CAN HAT on AML-S905X-CC Le Potato.

I want to run a python program on Le Potato which uses python-can library.

Thanks