Hello, I want to use SPI now, but I found out that I need to modify the DTB file to remove some GPIOs and then reflash the board.
Like this said: Jetson Nano SPI Bus Not Working - #10 by KevinFFF
Can I use flash.sh to only flash the DTB file? (Because I don’t want to rebuild the Python environment on the board). Is a command like this correct: sudo ./flash.sh -r -k DTB jetson-nano-emmc mmcblk0p1?
If this is possible, is this command correct? How do I know my board model: “jetson-nano-emmc” and “mmcblk0p1”?
Also, my board is a Jetson Nano B01 L4T: 32.7.4 Jetpack: 4.6.4.
OK, thank you for your reply.
My board have 16G emmc and SD card.
When I used the “lsblk”, shows as follow:
Does the "dmasg | -i kernel " show that did dtb load from /boot/dtb/?
@KevinFFF Thank you for your help.
My spi test success after I change dtb and rebuild kernel and flash the board.
But the result is different with yours, using the command “sudo cat /sys/kernel/debug/tegra_pinctrl_reg | grep -i spi”.
As follows showed, I would like to know if this has any impact.
Please check you log with “copying dtbfile”, you would know it is tegra210-p3448-0000-p3449-0000-b00.dtb
It seems the pinmux for SPI2 is not correct in your case for SPI usage.
If you just need the SPI1 work, then you can ignore this.
If you want to use SPI2, please check the pinmux configuration.