MCP2518 Driver Installation Help & Nvidia Orin Backup Restore Script Fails to Backup

Hello,

I am new to Nvidia embedded Ecosystem ( Jetson Orin Nano). I had a few questions I was hoping to get some experts guidance and hopefully get me pointed in the right direction.

I have 2 questions that revolve around with quick summary :

  1. Enable/Install/Patch SPI(CAN FD) driver for MCP2518 on Nvidia Orin Nano.
  2. Backup/Restore Script failing to backup drive.

Detailed Question # 1

  1. to run 4 CAN buses in parallel, in addition to 2 existing on-board CAN controllers, I was trying to figure out how to get access another CAN bus via MCP2518 from userspace/c++ app. So far my research has yielded these steps
  • Apply Kernel Patch to 5.15.122 tegra.
  • Enable MCp2518 Drive : CLI command.
  • Load Driver : Cli command.
  • Configure driver : use DTC to get DTS from DTB and add the config: interrupts, gpio, and bus speed.
  • SocketCan : just like existing CAN 0, 1 interfaces.

I am wondering if these are correct. and how would I go about applying the kernel patch.

Detailed Question # 2

  1. In order to apply a kernel patch, I was trying to get NVIDIA supplied backup/restore script working, but keep running into error stating usb connection issue. What I have tried
  • Different USB cords.
  • ensuring udisks2.service is stopped after usb is detected but before backup script is run.
  • confirmed FC_REC (pin3) is connected to GND (pin 4) of nvidia orin header under the fan in orin nano dev board.
  • rebooted ubuntu/host os and Orin Nano(turned on udisk2.service to find USB)
  • 2 instances of failed backup of logs are attached below.

backup_240830_6.log (90.4 KB)
backup_240830_4.log (90.4 KB)

Thank you for reviewing the post!!

Hello @amoghjain,

If you have a kernel patch.
You can apply it by following the next steps:

  1. Download the required Jetpack using SDK manager.
  2. Go into ~/nvidia//Linux_For_Tegra and use the sources sync script to download the jetpack sources.
  3. Appy the patch in the sources
  4. Compile
  5. Flash the new kernel, dtb and modules as required into the Jetson board.

Pleaset let us know if you require durther details.

Regards,
Andrew
ContactUs: support@proventusnova.com
www.proventusnova.com

1 Like

Hi amoghjain,

Are you using the devkit or custom board for Orin Nano?
What’s the Jetpack version in use?

They seem the different questions which are unrelated.
You can simply open 2 topics to discuss them in details.

You can refer to Kernel Customization — NVIDIA Jetson Linux Developer Guide 1 documentation to download and build the kernel souce.

To apply the change in kernel image/dtb, you can just use flash script to flash the board rather than using backup/restore script, which are used when you want to backup the data from first board and restore to another board.

1 Like

Hello!

Thank you for the quick response and the guidance!!!

While I was following the approach you had suggested, an accidental search for mcp25* in root directory resulted in

Later with further trial and error process which unfortunately i didnt document module (/usr/lib/modules/5.15.122-prod-g70b1f13ff483/extra/spi/mcp251xfd) successfully attaches and dto patch also appears to be added to the bootloader configuration.

attached screenshot shows adding the modules makes the driver show up. This ticket can be closed!

Thanks!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.