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 :
Enable/Install/Patch SPI(CAN FD) driver for MCP2518 on Nvidia Orin Nano.
Backup/Restore Script failing to backup drive.
Detailed Question # 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
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.
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.
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.