How to set up for SPI with Jetson Nano B01 devkit

I would like to set up for SPI with Jetson Nano B01 devkit.
I used the jetson-io tool to enable SPI and utilized “insmod and modprobe” command for loading the spidev.ko.
After that, I tried to run the script of the loopback test for SPI with reference to the following:
https://sciencompass.com/electrical_work/jetson-nano/spi-set

However, I could see not ”0x01 0x02″ but ”0x00 0x00″ when I use the script of the loopback test for SPI. I think I cannot use the SPI at this status.

I also checked the following link:

So, do we need to prepare for the native linux host PC to set up for SPI with Jetson Nano B01 devkit? or we can set up for SPI on Jetson Nano B01 devkit?

Did you using customized carrier board?
Have check the pin by sudo cat /sys/kernel/debug/tegra_gpio

It is not customized carrierboard but Jetson Nano B01 Devkit.
After installing JetPack4.6 and then when I checked the pin by sudo cat /sys/kernel/debug/tegra_gpio, I get the attached messagesgpio (1.1 KB)

The pin status looks correct.

Have a check if the value is the like below.

sudo cat /sys/kernel/debug/tegra_pinctrl_reg | grep -i spi

Bank: 1 Reg: 0x70003050 Val: 0x0000e044 -> spi1_mosi_pc0
Bank: 1 Reg: 0x70003054 Val: 0x0000e044 -> spi1_miso_pc1
Bank: 1 Reg: 0x70003058 Val: 0x0000e044 -> spi1_sck_pc2
Bank: 1 Reg: 0x7000305c Val: 0x0000e048 -> spi1_cs0_pc3
Bank: 1 Reg: 0x70003060 Val: 0x0000e048 -> spi1_cs1_pc4
Bank: 1 Reg: 0x70003064 Val: 0x00006044 -> spi2_mosi_pb4
Bank: 1 Reg: 0x70003068 Val: 0x00006044 -> spi2_miso_pb5
Bank: 1 Reg: 0x7000306c Val: 0x00006044 -> spi2_sck_pb6
Bank: 1 Reg: 0x70003070 Val: 0x00006048 -> spi2_cs0_pb7
Bank: 1 Reg: 0x70003074 Val: 0x00006048 -> spi2_cs1_pdd0
Bank: 1 Reg: 0x70003078 Val: 0x0000e015 -> spi4_mosi_pc7
Bank: 1 Reg: 0x7000307c Val: 0x0000e015 -> spi4_miso_pd0
Bank: 1 Reg: 0x70003080 Val: 0x0000e015 -> spi4_sck_pc5
Bank: 1 Reg: 0x70003084 Val: 0x0000e015 -> spi4_cs0_pc6

It looks same value.
spi_reg (1.3 KB)

Have a reference to this link for spidev_test.

https://elinux.org/Jetson/TX2_SPI#Testing_Communication