I upgrade my jetson nano to jetpack 4.5 today. I need to use MCP2515 CanBus module for some automotive projects. My mcp2515 is china version and the oscillator clock frequency is 8MHz. There is already an MCP2515 driver in /boot/ file. Which file I should configure and how? I have a Jetson Nano b00 version. Can you please guide me? I don’t know what to do.
Then after changing the line, Converting kernel_tegra.dts file to kernel_tegra.dtb file. After that what should I do?
Which pin number I need to connect on Jetson nano?
Thanks for reply. Forget about the above mentioned I will tell you what I did step by step.
I have followed andrew_h’s mentions to enable mcp2515 on jetson nano. I am using Jetpack 4.4.1 now.
MCP2515 Jetson Nano
INT Pin22
SCK Pin23
SI Pin19
SO Pin21
CS Pin24
GND GND
Vcc 3.3V
I converted this dts file to dtbo file and copy mcp2515.dtbo file to /boot/
2.1 I copy andrew_h’s mcp251x.ko.txt file to /lib/modules/4.9.140-tegra/kernel/drivers/net/can/spi/ mcp251x.ko.txt (500.9 KB)
run jetson-io.py >> Configure jetson for compatible hardware >> MCP2515x Controller and save reboot
Setup can interface >> sudo ip link set can0 up type can bitrate 125000
On the other hand I have also tried on Jetpack 4.5 version.
There is already MCP2515 files in /boot/. So I connected 2 mcp2515 each other according to the pin numbers in dtbo file. But oscillator_clock_frequency set to 20 mhz because of that my mcp2515(8mhz) couldn’t read any message. What fixes do I need to make in Jetson Nano?