SPI setup on jetson nano board

Please refer to the following thread for our verification of SPI loopback test.
Jetson Nano SPI Bus Not Working - #10 by KevinFFF

Hi
In the thread you posted it says that you can make a change from the source, but it’s not written how to do it

2-2-1. Method 1 - Remove from source
diff --git a/kernel-dts/porg-platforms/tegra210-porg-gpio-p3448-0000-b00.dtsi b/kernel-dts/porg-platforms/tegra210-porg-gpio-p3448-0000-b00.dtsi
index 1ea952f..49d4196 100644
--- a/kernel-dts/porg-platforms/tegra210-porg-gpio-p3448-0000-b00.dtsi
+++ b/kernel-dts/porg-platforms/tegra210-porg-gpio-p3448-0000-b00.dtsi
@@ -27,11 +27,6 @@
                gpio_default: default {
                        gpio-input = <
                                TEGRA_GPIO(BB, 0)
-                               TEGRA_GPIO(B, 4)
-                               TEGRA_GPIO(B, 5)
-                               TEGRA_GPIO(B, 6)
-                               TEGRA_GPIO(B, 7)
-                               TEGRA_GPIO(DD, 0)
                                TEGRA_GPIO(E, 6)
                                TEGRA_GPIO(S, 5)
                                TEGRA_GPIO(A, 5)
@@ -49,11 +44,6 @@
                                TEGRA_GPIO(J, 7)
                                TEGRA_GPIO(G, 2)
                                TEGRA_GPIO(G, 3)
-                               TEGRA_GPIO(C, 0)
-                               TEGRA_GPIO(C, 1)
-                               TEGRA_GPIO(C, 2)
-                               TEGRA_GPIO(C, 3)
-                               TEGRA_GPIO(C, 4)
                                TEGRA_GPIO(H, 2)
                                TEGRA_GPIO(H, 5)
                                TEGRA_GPIO(H, 6)

I don’t understand if I can make these changes in an already launched Jetpack

I tried this command:
dtc -I dtb -O dts -o tegra210-p3448-0000-p3449-0000-b00.dts tegra210-p3448-0000-p3449-0000-b00.dtb

and got this:

tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /clock has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /reserved-memory/iram-carveout has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /reserved-memory/ramoops_carveout has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /reserved-memory/fb0_carveout has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /reserved-memory/fb1_carveout has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /iommu has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /bpmp has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /mc has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /interrupt-controller has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/adsp has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/ahub has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/ahub/ope@702d8000/peq@702d8100 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/ahub/ope@702d8000/mbdrc@702d8200 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/ahub/ope@702d8400/peq@702d8500 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/ahub/ope@702d8400/mbdrc@702d8600 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/ahub/mvc@0x702da200 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /rtc has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /usb_cd has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/vi has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/dsi has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/vic has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/nvenc has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/tsec has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/tsecb has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/nvdec has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/nvjpg has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/sor has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/sor/dp-display/dp-lt-settings/lt-setting@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/sor/dp-display/dp-lt-settings/lt-setting@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/sor/dp-display/dp-lt-settings/lt-setting@2 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/sor1 has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/dpaux has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/dpaux1 has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/nvcsi/channel@0/ports/port@0/endpoint@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/nvcsi/channel@0/ports/port@1/endpoint@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/nvcsi/channel@1/ports/port@2/endpoint@2 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /host1x/nvcsi/channel@1/ports/port@3/endpoint@3 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /gpu has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /mipical has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /i2c@7000c400/iqs263@44 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /i2c@7000c500/battery-charger@6b has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /i2c@7000d000/max77620@3c/pinmux@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /i2c@7000d000/max77620@3c/fps/fps0 has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /i2c@7000d000/max77620@3c/fps/fps1 has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /i2c@7000d000/max77620@3c/fps/fps2 has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /soctherm@0x700E2000/fuse_war@fuse_rev_0_1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /soctherm@0x700E2000/fuse_war@fuse_rev_2 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /soctherm@0x700E2000/throttle@critical has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /soctherm@0x700E2000/throttle@heavy has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /soctherm@0x700E2000/throttle_dev@cpu_high has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /soctherm@0x700E2000/throttle_dev@gpu_high has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /tegra_cec has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ptm has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /mselect has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /adma@702e2000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/admaif@0x702d0000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/sfc@702d2000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/sfc@702d2200 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/sfc@702d2400 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/sfc@702d2600 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/spkprot@702d8c00 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/amixer@702dbb00 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/i2s@702d1000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/i2s@702d1100 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/i2s@702d1200 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/i2s@702d1300 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/i2s@702d1400 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/amx@702d3000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/amx@702d3100 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/adx@702d3800 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/adx@702d3900 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/dmic@702d4000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/dmic@702d4100 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/dmic@702d4200 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/afc@702d7000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/afc@702d7100 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/afc@702d7200 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/afc@702d7300 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/afc@702d7400 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/afc@702d7500 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/mvc@702da000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/mvc@702da200 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/iqc@702de000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/iqc@702de200 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/ope@702d8000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /ahub/ope@702d8400 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /sata@70020000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /camera-pcl/dpd/csia has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /camera-pcl/dpd/csib has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /camera-pcl/dpd/csic has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /camera-pcl/dpd/csid has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /camera-pcl/dpd/csie has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /camera-pcl/dpd/csif has a reg or ranges property, but no unit name
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@0/emc-table@204000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@0/emc-table@1600000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@0/emc-table-derated@204000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@0/emc-table-derated@1600000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@1/emc-table@204000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@1/emc-table@1600000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@1/emc-table-derated@204000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@1/emc-table-derated@1600000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /eeprom-manager/bus@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /eeprom-manager/bus@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@0/override@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@0/override@0/_overlay_/channel@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@0/override@0/_overlay_/channel@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@1/override@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@2 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@2/override@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@2/override@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@2/override@2 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@3 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@3/override@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@3/override@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@4 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@4/override@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@4/override@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@4/override@2 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@5 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@5/override@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@5/override@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@5/override@2 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@6 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@6/override@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@7 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@7/override@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@8 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@8/override@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@9 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@9/override@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@9/override@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@12 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@12/override@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment@12/override@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@13 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@13/override@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@13/override@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@13/override@2 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragement@13/override@3 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0/overrides@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0/overrides@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0/overrides@2 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0/overrides@3 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0/overrides@4 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0/overrides@6 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0/overrides@7 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0/overrides@8 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0/overrides@9 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0/overrides@10 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0/overrides@11 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-common@0/override@12 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-a00@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-a00@1/overrides@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-a00@1/override@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-b00@2 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-b00@2/overrides@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-b00@2/override@1 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-pins@3 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /plugin-manager/fragment-e2614-pins@3/overrides@0 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /dfll-max77621@70110000 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_vs_reg): Node /lens_imx219@RBPCV2 has a unit name, but no reg property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (pci_bridge): Node /pcie@1003000/pci@1,0 missing bus-range for PCI bridge
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (pci_bridge): Node /pcie@1003000/pci@2,0 missing bus-range for PCI bridge
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (unit_address_format): Failed prerequisite 'pci_bridge'
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (pci_device_reg): Failed prerequisite 'pci_bridge'
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge'
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/vi simple-bus unit address format error, expected "54080000"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/vi/ports missing or empty reg/ranges property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/vi-bypass missing or empty reg/ranges property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/dsi simple-bus unit address format error, expected "54300000"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/vic simple-bus unit address format error, expected "54340000"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/nvenc simple-bus unit address format error, expected "544c0000"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/tsec simple-bus unit address format error, expected "54500000"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/tsecb simple-bus unit address format error, expected "54100000"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/nvdec simple-bus unit address format error, expected "54480000"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/nvjpg simple-bus unit address format error, expected "54380000"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/sor simple-bus unit address format error, expected "54540000"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/sor1 simple-bus unit address format error, expected "54580000"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/dpaux simple-bus unit address format error, expected "545c0000"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/dpaux1 simple-bus unit address format error, expected "54040000"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /host1x/nvcsi missing or empty reg/ranges property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /extcon/disp-state missing or empty reg/ranges property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /regulators/regulator@10 simple-bus unit address format error, expected "a"
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (simple_bus_reg): Node /mods-simple-bus/mods-clocks missing or empty reg/ranges property
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (gpios_property): Missing property '#gpio-cells' in node /thermal-zones/AO-therm/trips/gpu-scaling5 or bad phandle (referred from /plugin-manager/fragment-e2614-pins@3/overrides@0/_overlay_:gpios[0])
tegra210-p3448-0000-p3449-0000-b00.dts: Warning (gpios_property): property 'gpio' size (15) is invalid, expected multiple of 4 in node /__symbols__

in the thread that you sent, the problem is indicated that spi pins are configured to work with regular gpio, but I want to use spi0, in device three I can see the “status okay”, this is the default firmware, in the jetson-io.py configuration these pins are also assigned using spi
Tell me, is it really not possible to use spi normally in the most basic version of the firmware?

SPI is not enabled by default so that I wrote the steps to enable it.

These modifications is to remove the SPI pins configured as GPIO.
You should download the kernel source and find the dts you are using which includes these configurations.
Or you could just refer to 2-2-2. Method 2 - Remove from decompiled dtb to do this.

Do I understand correctly that the 2-2-2 method requires re-building the system?

Hi @KevinFFF would you be able to help with the above question?

Hi

Probably your silence is a sign that the system still needs to be rebuilt.
I installed the toolchain and everything necessary, then I deleted these pins from the required file

  • TEGRA_GPIO(C, 0)
  • TEGRA_GPIO(C, 1)
  • TEGRA_GPIO(C, 2)
  • TEGRA_GPIO(C, 3)
  • TEGRA_GPIO(C, 4)

After that I built the device tree:

make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j8 --output-sync=target dtbs

And completed the image build:

make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j8 --output-sync=target zImage

Now I enter this command for flash and get this:

sudo ./flash.sh jetson-nano-qspi-sd mmcblk0p1
droid@droid:~/Documents/Lin/Linux_for_Tegra$ sudo ./flash.sh jetson-nano-qspi-sd mmcblk0p1
[sudo] password for droid: 
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 7.2
###############################################################################
# Target Board Information:
# Name: jetson-nano-qspi-sd, Board Family: t210ref, SoC: Tegra 210, 
# OpMode: production, Boot Authentication: , 
# Disk encryption: disabled ,
###############################################################################
./tegraflash.py --chip 0x21 --applet "/home/droid/Documents/Lin/Linux_for_Tegra/bootloader/nvtboot_recovery.bin" --skipuid --cmd "dump eeprom boardinfo cvm.bin" 
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 
[   0.0019 ] Generating RCM messages
[   0.0041 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm /home/droid/Documents/Lin/Linux_for_Tegra/bootloader/nvtboot_recovery.bin 0 0
[   0.0051 ] RCM 0 is saved as rcm_0.rcm
[   0.0058 ] RCM 1 is saved as rcm_1.rcm
[   0.0058 ] List of rcm files are saved in rcm_list.xml
[   0.0058 ] 
[   0.0058 ] Signing RCM messages
[   0.0079 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0087 ] Assuming zero filled SBK key
[   0.0142 ] 
[   0.0142 ] Copying signature to RCM mesages
[   0.0164 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
[   0.0181 ] 
[   0.0181 ] Boot Rom communication
[   0.0202 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml --skipuid
[   0.0212 ] RCM version 0X210001
[   0.1217 ] Boot Rom communication completed
[   1.1289 ] 
[   1.1291 ] dump EEPROM info
[   1.1330 ] tegrarcm --oem platformdetails eeprom /home/droid/Documents/Lin/Linux_for_Tegra/bootloader/cvm.bin
[   1.1349 ] Applet version 00.01.0000
[   1.2078 ] Saved platform info in /home/droid/Documents/Lin/Linux_for_Tegra/bootloader/cvm.bin
[   1.2851 ] 
[   1.2889 ] tegrarcm --reboot recovery
[   1.2909 ] Applet version 00.01.0000
[   1.3629 ] 
Board ID(3448) version(402) 
copying bctfile(/home/droid/Documents/Lin/Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg)... done.
copying bootloader(/home/droid/Documents/Lin/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done.
copying initrd(/home/droid/Documents/Lin/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
Making Boot image... done.
Existing sosfile(/home/droid/Documents/Lin/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
copying tegraboot(/home/droid/Documents/Lin/Linux_for_Tegra/bootloader/t210ref/nvtboot.bin)... done.
copying cpu_bootloader(/home/droid/Documents/Lin/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done.
copying bpffile(/home/droid/Documents/Lin/Linux_for_Tegra/bootloader/t210ref/sc7entry-firmware.bin)... done.
copying wb0boot(/home/droid/Documents/Lin/Linux_for_Tegra/bootloader/t210ref/warmboot.bin)... done.
Existing tosfile(/home/droid/Documents/Lin/Linux_for_Tegra/bootloader/tos-mon-only.img) reused.
Existing eksfile(/home/droid/Documents/Lin/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/home/droid/Documents/Lin/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0000-p3449-0000-b00.dtb)... done.
Copying nv_boot_control.conf to rootfs
sed: can't read /home/droid/Documents/Lin/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/droid/Documents/Lin/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/droid/Documents/Lin/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/droid/Documents/Lin/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/droid/Documents/Lin/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/droid/Documents/Lin/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/droid/Documents/Lin/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/droid/Documents/Lin/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
        populating kernel to rootfs... done.
        populating initrd to rootfs... done.
        populating kernel_tegra210-p3448-0000-p3449-0000-b00.dtb to rootfs... done.
Making system.img... 
/home/droid/Documents/Lin/Linux_for_Tegra/rootfs/boot/extlinux/extlinux.conf is not found, exiting...

Perhaps I made some mistake in the process or missed some step?

No, the Method 2 doesn’t require you to rebuild the kernel image.
Please just refer the steps to decompile the dtb and assemble it back.

Is there any file under Linux_for_Tegra_rootfs/?

so I still have to reflash my board, I’m asking about a method that makes changes to an already flashed board

image

No, you don’t need to reflash the board with Method 2.
You just need to extract the dtb under /boot/dtb/kernel_XXXX.dtb and modify it.

It seems you didn’t extract the sample rootfs in Linux_for_Tegra/rootfs/.

how can I extract the sample rootfs, what is needed for this?

Please refer to the following instruction to setup BSP package.
NVIDIA Jetson Linux Developer Guide : Quick Start | NVIDIA Docs

But you don’t need to do that if you are trying the Method 2 to modify device tree.

Hi @KevinFFF
I followed the instructions, downloaded rootfs from this site (https://developer.nvidia.com/embedded/linux-tegra-r3272) and build a new image
After that, I used the command (sudo ./flash.sh jetson-nano-qspi-sd mmcblk0p1) and flashed the module, but there is a nuance
The Ubuntu on the device is standard, it’s not JetPack, it’s just regular Ubuntu 18 without any nvidia tools

here is the sequence of steps I followed:

wget https://developer.nvidia.com/embedded/l4t/r32_release_v7.2/t210/jetson-210_linux_r32.7.2_aarch64.tbz2
wget https://developer.nvidia.com/embedded/dlc/l4t-gcc-7-3-1-toolchain-64-bit
wget https://developer.nvidia.com/downloads/embedded/l4t/r32_release_v7.4/t210/tegra_linux_sample-root-filesystem_r32.7.4_aarch64.tbz2

tar -xf gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz
tar -xf Jetson-210_Linux_R32.7.2_aarch64.tbz2

cd Linux_for_Tegra/
./sorce_sync.sh ( then enter tegra-l4t-r32.7.4 - kernel version 4.9-337 )

cd ..
tar -jxpf tegra_linux_sample-root-filesystem_r32.7.2_aarch64.tbz2 -C Linux_for_Tegra/rootfs/

export TEGRA_KERNEL_OUT=$PWD/kbuild
export CROSS_COMPILE=$PWD/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
export LOCALVERSION=-tegra

cd Linux_for_Tegra/sources/kernel/kernel-4.9/
mkdir -p $TEGRA_KERNEL_OUT

make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_defconfig
make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j8 --output-sync=target dtbs
make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j8 --output-sync=target zImage

cd $TEGRA_KERNEL_OUT

cp /arch/arm64/boot/Image ../Linux_for_Tegra/rootfs/boot/
cp /arch/arm64/boot/*tegra* ../Linux_for_Tegra/rootfs/boot/

cd ../Linux_for_Tegra

sudo ./flash.sh jetson-nano-qspi-sd mmcblk0p1

You may need to install SDK component with the following command on your board.

$ sudo apt install nvidia-jetpack

can’t find package nvidia-jetpack

photo_2023-09-22_08-55-29.jpg.zip (134.9 KB)

How did you flash your board?
Could you share the result of the following command on your board?

$ cat /etc/nv_tegra_release
$ cat /etc/nv_boot_control.conf

But it seems another issue and not relate to current SPI issue


Hello
I found a mistake
I missed applying the apply_binaries.sh script

after that I flashed my module and now there are nvidia components.

But I also continue to follow the Spi instructions
and I don’t get anything on spi pins