How to use MCP3008 in jetson nano

Hi, I’m using jetson nano.
I want to use mcp 3008 in jetson, but it does not work. Output is zero. I used examples from the library and library in Adafruit. The circuit connection was good according to the pin map, and the spi connection was activated.
There are a few people running this code in Raspberry Pie and Jetson nano. What is my problem? Please help me…
like this : (How to use MCP3008 in Jetson nano?)

I setup a terminal running with $ dmesg --follow, have these mesage:
lulu@lulu-desktop:~$ dmesg --follow
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.337-tegra (buildbrain@mobile-u64-5434-d8000) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #1 SMP PREEMPT Thu Jun 8 21:19:14 PDT 2023
[ 0.000000] Boot CPU: AArch64 Processor [411fd071]
[ 0.000000] OF: fdt:memory scan node memory@80000000, reg size 32,
[ 0.000000] OF: fdt: - 80000000 , 7ee00000
[ 0.000000] OF: fdt: - 100000000 , 7f200000
[ 0.000000] earlycon: uart8250 at MMIO32 0x0000000070006000 (options ‘’)
[ 0.000000] bootconsole [uart8250] enabled
[ 0.000000] OF: reserved mem: initialized node vpr-carveout, compatible id nvidia,vpr-carveout
[ 0.000000] OF: reserved mem: initialized node iram-carveout, compatible id nvidia,iram-carveout
[ 0.000000] OF: reserved mem: initialized node ramoops_carveout, compatible id nvidia,ramoops
[ 0.000000] cma: Reserved 64 MiB at 0x00000000fac00000
[ 0.000000] On node 0 totalpages: 1039872
[ 0.000000] DMA zone: 8192 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 519168 pages, LIFO batch:31
[ 0.000000] Normal zone: 8136 pages used for memmap
[ 0.000000] Normal zone: 520704 pages, LIFO batch:31
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 24 pages/cpu s57816 r8192 d32296 u98304
[ 0.000000] pcpu-alloc: s57816 r8192 d32296 u98304 alloc=24*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] CPU features: enabling workaround for ARM erratum 832075
[ 0.000000] Speculative Store Bypass Disable mitigation not required
[ 0.000000] CPU features: enabling workaround for Spectre-BHB
[ 0.000000] CPU features: enabling workaround for ARM erratum 1742098
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1023544
[ 0.000000] Kernel command line: tegraid=21.1.2.0.0 ddr_die=4096M@2048M section=512M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,4 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_edp_mv=1125 core_edp_ma=4000 gpt earlycon=uart8250,mmio32,0x70006000 root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0
[ 0.000000] log_buf_len individual max cpu contribution: 32768 bytes
[ 0.000000] log_buf_len total cpu_extra contributions: 98304 bytes
[ 0.000000] log_buf_len min size: 32768 bytes
[ 0.000000] log_buf_len: 131072 bytes
[ 0.000000] early log buf free: 29724(90%)
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Memory: 3568248K/4159488K available (15486K kernel code, 2982K rwdata, 6716K rodata, 8640K init, 614K bss, 116104K reserved, 475136K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000] .text : 0x (ptrval) - 0x (ptrval) ( 15488 KB)
[ 0.000000] .rodata : 0x (ptrval) - 0x (ptrval) ( 6784 KB)
[ 0.000000] .init : 0x (ptrval) - 0x (ptrval) ( 8640 KB)
[ 0.000000] .data : 0x (ptrval) - 0x (ptrval) ( 2983 KB)
[ 0.000000] .bss : 0x (ptrval) - 0x (ptrval) ( 615 KB)
[ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum)
[ 0.000000] 0xffffffbf00000000 - 0xffffffbf03fc8000 ( 63 MB actual)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc0ff200000 ( 4082 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=4
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] /interrupt-controller@60004000: 192 interrupts forwarded to /interrupt-controller
[ 0.000000] t210 clock and reset probe
[ 0.000000] tegra-pmc: get_secure_pmc_setting: done secure_pmc=1
[ 0.000000] clk_cbus_recalc_rate: no gbus parent
[ 0.000000] clk_cbus_recalc_rate: no gbus parent
[ 0.000000] clk_cbus_recalc_rate: no gbus parent
[ 0.000000] clk_cbus_recalc_rate: no gbus parent
[ 0.000000] clk_cbus_recalc_rate: no gbus parent
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[ 0.000006] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ 0.001680] Console: colour dummy device 80x25
[ 0.001691] console [tty0] enabled
[ 0.001697] bootconsole [uart8250] disabled
[ 0.001716] kmemleak: Kernel memory leak detector disabled
[ 0.001735] Calibrating delay loop (skipped), value calculated using timer frequency… 38.40 BogoMIPS (lpj=76800)
[ 0.001748] pid_max: default: 32768 minimum: 301
[ 0.002228] Security Framework initialized
[ 0.002471] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.002476] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.003608] ftrace: allocating 47296 entries in 185 pages
[ 0.180137] sched-energy: CPU device node has no sched-energy-costs
[ 0.192253] ASID allocator initialised with 65536 entries
[ 0.219582] tegra-id: chipid=22117.
[ 0.219593] tegra-id: opt_subrevision=0.
[ 0.219611] Tegra Speedo/IDDQ fuse revision 4
[ 0.219616] Tegra: CPU Speedo ID 9, SoC Speedo ID 0, GPU Speedo ID 2
[ 0.219621] Tegra: CPU Process ID 0, SoC Process ID 0, GPU Process ID 0
[ 0.219626] Tegra: CPU Speedo Value 2056, SoC Speedo Value 1944, GPU Speedo Value 2043
[ 0.219630] Tegra: CPU IDDQ Value 1848, SoC IDDQ Value 2000, GPU IDDQ Value 2415
[ 0.219657] Tegra Revision: A02 SKU: 0x8f CPU Process: 0 SoC Process: 0
[ 0.219672] DTS File Name: /dvs/git/dirty/git-master_linux/kernel/kernel-4.9/arch/arm64/boot/dts/…/…/…/…/…/…/hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0000-p3449-0000-b00.dts
[ 0.219679] DTB Build time: Jun 8 2023 21:21:40
[ 0.269084] CPU1: Booted secondary processor [411fd071]
[ 0.300956] CPU2: Booted secondary processor [411fd071]
[ 0.332948] CPU3: Booted secondary processor [411fd071]
[ 0.333036] Brought up 4 CPUs
[ 0.333043] SMP: Total of 4 processors activated.
[ 0.333050] CPU features: detected feature: 32-bit EL0 Support
[ 0.333291] CPU: All CPU(s) started at EL2
[ 0.333308] alternatives: patching kernel code
[ 0.341436] devtmpfs: initialized
[ 0.379603] Initilizing CustomIPI irq domain
[ 0.379902] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.379923] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.391929] pinctrl core: initialized pinctrl subsystem
[ 0.392528] OS set in device tree is not L4T.
[ 0.392948] regulator-dummy: no parameters
[ 0.393255] Initializing plugin-manager
[ 0.393422] Plugin module not found
[ 0.393609] node /plugin-manager/fragement@0 match with board >=3448-0000-100
[ 0.394111] node /plugin-manager/fragment@1 match with board >=3448-0000-101
[ 0.395073] node /plugin-manager/fragement@7 match with odm-data enable-pmic-wdt
[ 0.395277] node /plugin-manager/fragement@8 match with odm-data enable-pmic-wdt
[ 0.395890] node /plugin-manager/fragement@13 match with board >=3448-0000-300
[ 0.399463] NET: Registered protocol family 16
[ 0.400756] pstore: using zlib compression
[ 0.400798] console [pstore-1] enabled
[ 0.400802] pstore: Registered ramoops as persistent store backend
[ 0.400807] ramoops: attached 0x200000@0xb0000000, ecc: 0/0
[ 0.421100] cpuidle: using governor menu
[ 0.424262] tegra_smmu 70019000.iommu: Loaded Tegra IOMMU driver
[ 0.426070] vdso: 2 pages (1 code @ (ptrval), 1 data @ (ptrval))
[ 0.426111] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.429495] atomic_pool_init():622: DMA: preallocated 1024 KiB pool for atomic allocations
[ 0.431805] Serial: AMBA PL011 UART driver
[ 0.432299] tegra_powergate_init: DONE
[ 0.432316] DTS File Name: /dvs/git/dirty/git-master_linux/kernel/kernel-4.9/arch/arm64/boot/dts/…/…/…/…/…/…/hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0000-p3449-0000-b00.dts
[ 0.432324] DTB Build time: Jun 8 2023 21:21:40
[ 0.434167] Tegra reboot handler registered.
[ 0.438662] iommu: Adding device tegra-carveouts to group 0
[ 0.438801] platform tegra-carveouts: domain= (ptrval) allocates as[0]= (ptrval)
[ 0.439157] iommu: Adding device smmu_test to group 1
[ 0.439203] platform smmu_test: domain= (ptrval) allocates as[0]= (ptrval)
[ 0.440026] mc: mapped MMIO address: 0x (ptrval) → 0x70019000
[ 0.440081] mc: mapped MMIO address: 0x (ptrval) → 0x7001c000
[ 0.440133] mc: mapped MMIO address: 0x (ptrval) → 0x7001d000
[ 0.440143] nv-tegra-mc 70019000.mc: No mssnvlink node
[ 0.440163] mc-err: mcerr ops are set to t21x
[ 0.447415] iommu: Adding device 70090000.xusb to group 2
[ 0.447695] iommu: Adding device 70006000.serial to group 3
[ 0.447763] platform 70006000.serial: domain= (ptrval) allocates as[0]= (ptrval)
[ 0.448174] iommu: Adding device 70006040.serial to group 4
[ 0.448439] iommu: Adding device 70006200.serial to group 5
[ 0.448662] iommu: Adding device sound to group 6
[ 0.448709] platform sound: domain= (ptrval) allocates as[0]= (ptrval)
[ 0.449338] iommu: Adding device 7000d400.spi to group 7
[ 0.449587] iommu: Adding device 7000d600.spi to group 8
[ 0.449860] iommu: Adding device 70410000.spi to group 9
[ 0.450166] iommu: Adding device 50000000.host1x to group 10
[ 0.450442] iommu: Adding device 54080000.vi to group 11
[ 0.450820] iommu: Adding device 54600000.isp to group 12
[ 0.451105] iommu: Adding device 54680000.isp to group 13
[ 0.451370] iommu: Adding device tegradc.0 to group 14
[ 0.451422] platform tegradc.0: domain= (ptrval) allocates as[0]= (ptrval)
[ 0.451941] platform tegradc.0: IOVA linear map 0x00000000d7000000(19000000)
[ 0.452257] iommu: Adding device tegradc.1 to group 15
[ 0.452306] platform tegradc.1: domain= (ptrval) allocates as[0]= (ptrval)
[ 0.452816] platform tegradc.1: IOVA linear map 0x00000000d7000000(19000000)
[ 0.453096] iommu: Adding device 54340000.vic to group 16
[ 0.453317] iommu: Adding device 544c0000.nvenc to group 17
[ 0.453520] iommu: Adding device 54500000.tsec to group 18
[ 0.453711] iommu: Adding device 54100000.tsecb to group 19
[ 0.453930] iommu: Adding device 54480000.nvdec to group 20
[ 0.454131] iommu: Adding device 54380000.nvjpg to group 21
[ 0.455192] iommu: Adding device 546c0000.i2c to group 22
[ 0.455530] iommu: Adding device 57000000.gpu to group 23
[ 0.455581] platform 57000000.gpu: domain= (ptrval) allocates as[0]= (ptrval)
[ 0.455618] platform 57000000.gpu: domain= (ptrval) allocates as[1]= (ptrval)
[ 0.455655] platform 57000000.gpu: domain= (ptrval) allocates as[2]= (ptrval)
[ 0.455709] platform 57000000.gpu: domain= (ptrval) allocates as[3]= (ptrval)
[ 0.456592] tegra-pmc 7000e400.pmc: i2c-thermtrip node not found, emergency thermal reset disabled.
[ 0.456603] tegra-pmc 7000e400.pmc: scratch reg offset dts data not present
[ 0.456615] tegra-pmc: ### PMC reset source: TEGRA_POWER_ON_RESET
[ 0.456619] tegra-pmc: ### PMC reset level: TEGRA_RESET_LEVEL_WARM
[ 0.456624] tegra-pmc: ### PMC reset status reg: 0x0
[ 0.509133] padctrl padctrl.0: Pad control driver tegra-pmc-padctrl registered
[ 0.509140] tegra-pmc: Clear bootloader IO dpd settings
[ 0.509157] tegra-pmc 7000e400.pmc: IO padctrl driver initialized
[ 0.509221] tegra-pmc 7000e400.pmc: PMC: Successfully configure bootrom reset commands
[ 0.509527] iommu: Adding device 70012000.se to group 24
[ 0.510101] iommu: Adding device 1003000.pcie to group 25
[ 0.510155] platform 1003000.pcie: domain= (ptrval) allocates as[0]= (ptrval)
[ 0.510602] iommu: Adding device 7000c000.i2c to group 26
[ 0.510854] iommu: Adding device 7000c400.i2c to group 27
[ 0.511105] iommu: Adding device 7000c500.i2c to group 28
[ 0.511362] iommu: Adding device 7000c700.i2c to group 29
[ 0.511617] iommu: Adding device 7000d000.i2c to group 30
[ 0.511864] iommu: Adding device 7000d100.i2c to group 31
[ 0.512155] iommu: Adding device sdhci-tegra.0 to group 32
[ 0.512202] platform sdhci-tegra.0: domain= (ptrval) allocates as[0]= (ptrval)
[ 0.513051] iommu: Adding device 700d0000.xudc to group 33
[ 0.516304] vdd-ac-bat: 5000 mV
[ 0.516643] vdd-5v0-sys: 5000 mV
[ 0.517324] vdd-5v0-hdmi: 5000 mV
[ 0.517738] vdd-5v0-hdmi: supplied by vdd-5v0-sys
[ 0.517984] vdd-1v8-sys: 1800 mV
[ 0.518379] vdd-fan: 5000 mV
[ 0.518602] vdd-fan: supplied by vdd-5v0-sys
[ 0.518801] vdd-usb-vbus: 5000 mV
[ 0.519008] vdd-usb-vbus: supplied by vdd-5v0-sys
[ 0.519342] vdd-usb-vbus2: 5000 mV
[ 0.550117] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.552395] gpio gpiochip0: gpio-line-names specifies 240 line names but there are 256 lines on the chip
[ 0.553606] GPIO line 6 (system-suspend-gpio) hogged as output/high
[ 0.553634] GPIO line 151 (camera-control-output-low) hogged as output/low
[ 0.553654] GPIO line 152 (camera-control-output-low) hogged as output/low
[ 0.553994] gpiochip_setup_dev: registered GPIOs 0 to 255 on device: gpiochip0 (tegra-gpio)
[ 0.561744] eventlib_kernel: keventlib is initialized, test id: 0
[ 0.562114] SCSI subsystem initialized
[ 0.562297] libata version 3.00 loaded.
[ 0.562558] usbcore: registered new interface driver usbfs
[ 0.562607] usbcore: registered new interface driver hub
[ 0.562646] usbcore: registered new device driver usb
[ 0.566559] max77620 4-003c: PMIC Version OTP:0x35 and ES:0x8
[ 0.572342] vdd-core: 600 ↔ 1162 mV at 1125 mV
[ 0.573392] vdd-ddr-1v1: Bringing 1125000uV into 1150000-1150000uV
[ 0.576302] vdd-ddr-1v1: 1150 mV
[ 0.580233] vdd-pre-reg-1v35: 1350 mV
[ 0.584231] vdd-1v8: 1800 mV
[ 0.588230] avdd-sys-1v2: 1200 mV
[ 0.592231] vdd-pex-1v0: 1050 mV
[ 0.592894] vddio-sdmmc-ap: 1800 ↔ 3300 mV at 3300 mV
[ 0.593431] max77620-ldo3: at 3100 mV
[ 0.596231] vdd-rtc: 850 ↔ 1100 mV at 1000 mV
[ 0.596765] max77620-ldo5: at 3100 mV
[ 0.600237] vddio-sdmmc3-ap: 1800 ↔ 3300 mV at 2800 mV
[ 0.604229] avdd-1v05-pll: 1050 mV
[ 0.608228] avdd-io-hdmi-dp: 1050 mV
[ 0.610862] GPIO line 505 (spmic-default-output-high) hogged as output/high
[ 0.611196] gpiochip_setup_dev: registered GPIOs 504 to 511 on device: gpiochip1 (max77620-gpio)
[ 0.611490] max77620 4-003c: max77620 probe successful
[ 0.614192] media: Linux media interface: v0.10
[ 0.614247] Linux video capture interface: v2.00
[ 0.615154] pps_core: LinuxPPS API ver. 1 registered
[ 0.615162] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.615184] PTP clock support registered
[ 0.618217] tegra210-emc 7001b000.external-memory-controller: validated EMC DFS table
[ 0.619078] Advanced Linux Sound Architecture Driver Initialized.
[ 0.619676] Bluetooth: Core ver 2.22
[ 0.619723] NET: Registered protocol family 31
[ 0.619726] Bluetooth: HCI device and connection manager initialized
[ 0.619739] Bluetooth: HCI socket layer initialized
[ 0.619748] Bluetooth: L2CAP socket layer initialized
[ 0.619770] Bluetooth: SCO socket layer initialized
[ 0.621512] tegra210_dvfs: no clock found for sdmmc2_ddr
[ 0.621530] tegra210_dvfs: no clock found for sdmmc4_ddr
[ 0.621577] tegra210_dvfs: no clock found for sdmmc1_ddr
[ 0.621592] tegra210_dvfs: no clock found for sdmmc3_ddr
[ 0.624914] tegra_dvfs: Unable to get vdd-cpu rail for step info, defering probe
[ 0.626036] vdd-3v3-sys: 3300 mV
[ 0.626376] vdd-3v3-sys: supplied by vdd-5v0-sys
[ 0.626450] vdd-1v8-sys: supplied by vdd-3v3-sys
[ 0.629032] vdd-usb-vbus2: supplied by vdd-3v3-sys
[ 0.629451] vdd-3v3-sd: 3300 mV
[ 0.629832] vdd-3v3-sd: supplied by vdd-3v3-sys
[ 0.630579] avdd-io-edp-1v05: 1050 mV
[ 0.630920] avdd-io-edp-1v05: supplied by avdd-1v05-pll
[ 0.631047] vdd-usb-hub-en: 5000 mV
[ 0.631387] vdd-usb-hub-en: supplied by vdd-1v8-sys
[ 0.632587] camchar: rtcpu character device driver loaded
[ 0.633350] extcon-gpio-states extcon:extcon@1: Cable state:0, cable id:0
[ 0.634664] clocksource: Switched to clocksource arch_sys_counter
[ 0.675484] VFS: Disk quotas dquot_6.6.0
[ 0.675616] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.676112] nvmap_heap_init: nvmap_heap_init: created heap block cache
[ 0.676527] dma_declare_coherent_resizable_cma_memory:324: resizable heap=vpr, base=0x00000000d7000000, size=0x19000000
[ 0.676545] dma-vpr: heap size is not multiple of cma_chunk_size heap_info->num_chunks (13) rem_chunk_size(0x1000000)
[ 0.676729] cma: enabled page replacement for spfn=d7000, epfn=f0000
[ 0.676734] dma_declare_coherent_resizable_cma_memory:373: resizable cma heap=vpr create successful
[ 0.676747] tegra-carveouts tegra-carveouts: assigned reserved memory node vpr-carveout
[ 0.676770] tegra-carveouts tegra-carveouts: iram :dma coherent mem declare 0x0000000040001000,258048
[ 0.676775] tegra-carveouts tegra-carveouts: assigned reserved memory node iram-carveout
[ 0.676800] nvmap: nvmap_select_cache_ops() nvmap cache ops set to set/ways
[ 0.676807] nvmap_page_pool_init: Total RAM pages: 1010846
[ 0.676812] nvmap_page_pool_init: nvmap page pool size: 126355 pages (493 MB)
[ 0.676899] nvmap_background_zero_thread: PP zeroing thread starting.
[ 0.677378] misc nvmap: created heap iram base 0x (ptrval) size (252KiB)
[ 0.678266] misc nvmap: created heap vpr base 0x (ptrval) size (409600KiB)
[ 0.686502] thermal thermal_zone0: Registering thermal zone thermal_zone0 for type AO-therm
[ 0.687001] thermal thermal_zone1: Registering thermal zone thermal_zone1 for type CPU-therm
[ 0.687368] thermal thermal_zone2: Registering thermal zone thermal_zone2 for type GPU-therm
[ 0.687639] thermal thermal_zone3: Registering thermal zone thermal_zone3 for type PLL-therm
[ 0.687816] thermal thermal_zone4: Registering thermal zone thermal_zone4 for type PMIC-Die
[ 0.688104] pre_t19x_iso_plat_init(): iso emc max clk=1600000KHz
[ 0.688108] pre_t19x_iso_plat_init(): max_iso_bw=11520000KB
[ 0.688566] NET: Registered protocol family 2
[ 0.688706] IP idents hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.706939] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.707149] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[ 0.707650] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.707803] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[ 0.707894] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[ 0.708316] NET: Registered protocol family 1
[ 0.709014] RPC: Registered named UNIX socket transport module.
[ 0.709020] RPC: Registered udp transport module.
[ 0.709024] RPC: Registered tcp transport module.
[ 0.709028] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.709042] PCI: CLS 0 bytes, default 64
[ 0.709283] Trying to unpack rootfs image as initramfs…
[ 1.017433] Freeing initrd memory: 6988K
[ 1.027034] host1x 50000000.host1x: initialized
[ 1.028752] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 1.032018] audit: initializing netlink subsys (disabled)
[ 1.032085] audit: type=2000 audit(0.875:1): initialized
[ 1.032746] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[ 1.042341] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.043873] ntfs: driver 2.1.32 [Flags: R/W].
[ 1.044690] 9p: Installing v9fs 9p2000 file system support
[ 1.047929] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 240)
[ 1.048048] io scheduler noop registered
[ 1.048344] io scheduler cfq registered (default)
[ 1.051224] gic 702f9000.agic: GIC IRQ controller registered
[ 1.054181] iommu: Adding device 702ef000.adsp to group 34
[ 1.063372] iommu: Adding device aconnect@702c0000:adsp_audio to group 35
[ 1.063558] tegra-aconnect aconnect@702c0000: Tegra ACONNECT bus registered
[ 1.064170] tegra-xusb-padctl 7009f000.xusb_padctl: TEGRA_FUSE_SKU_CALIB_0 = 0x81c8c0d
[ 1.064179] tegra-xusb-padctl 7009f000.xusb_padctl: TEGRA_FUSE_USB_CALIB_EXT_0 = 0x4
[ 1.065737] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-usb2.0, lane = usb2-0, function = xusb
[ 1.065843] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-usb2.1, lane = usb2-1, function = xusb
[ 1.065932] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-usb2.2, lane = usb2-2, function = xusb
[ 1.066115] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.3, lane = pcie-0, function = pcie-x1
[ 1.066205] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.4, lane = pcie-1, function = pcie-x4
[ 1.066293] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.5, lane = pcie-2, function = pcie-x4
[ 1.066386] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.6, lane = pcie-3, function = pcie-x4
[ 1.066468] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.7, lane = pcie-4, function = pcie-x4
[ 1.066555] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.8, lane = pcie-5, function = xusb
[ 1.066639] tegra-xusb-padctl 7009f000.xusb_padctl: dev = phy-pcie.9, lane = pcie-6, function = xusb
[ 1.072642] tegra-pwm 7000a000.pwm: PWM clk cannot sleep in ops
[ 1.074273] tegra-dfll-pwm 70110000.pwm: DFLL pwm-rate: 12800000
[ 1.076173] tegra-pcie 1003000.pcie: 4x1, 1x1 configuration
[ 1.077448] tegra-pcie 1003000.pcie: PCIE: Enable power rails
[ 1.077796] tegra-pcie 1003000.pcie: probing port 0, using 4 lanes
[ 1.079021] tegra_camera_platform tegra-camera-platform: tegra_camera_probe:camera_platform_driver probe
[ 1.079236] misc tegra_camera_ctrl: tegra_camera_isomgr_register isp_iso_bw=1500000, vi_iso_bw=1500000, max_bw=1500000
[ 1.079470] Adding domain tsec-pd to PM domain host1x-pd
[ 1.081550] tegra-pcie 1003000.pcie: probing port 1, using 1 lanes
[ 1.082394] tsec 54500000.tsec: initialized
[ 1.083954] tsec 54100000.tsecb: initialized
[ 1.084648] Adding domain nvdec-pd to PM domain host1x-pd
[ 1.087999] nvdec 54480000.nvdec: initialized
[ 1.089075] Adding domain vic03-pd to PM domain host1x-pd
[ 1.089262] Adding domain msenc-pd to PM domain host1x-pd
[ 1.089427] Adding domain nvjpg-pd to PM domain host1x-pd
[ 1.093323] falcon 54340000.vic: initialized
[ 1.094573] falcon 544c0000.nvenc: initialized
[ 1.095912] falcon 54380000.nvjpg: initialized
[ 1.100108] tegra_cec 70015000.tegra_cec: dt=1 start=0x70015000 end=0x70015FFF irq=97
[ 1.100153] tegra_cec 70015000.tegra_cec: Enable clock result: 0.
[ 1.100187] tegra_cec 70015000.tegra_cec: tegra_cec_init started
[ 1.100369] tegradc tegradc.0: disp0 connected to head0->/host1x/sor1
[ 1.100464] tegra_cec 70015000.tegra_cec: cec_add_sysfs ret=0
[ 1.100469] tegra_cec 70015000.tegra_cec: probed
[ 1.100474] display board info: id 0x0, fab 0x0
[ 1.100564] generic_infoframe_type: 0x87
[ 1.100721] tegradc tegradc.0: DT parsed successfully
[ 1.100774] tegradc tegradc.0: Display dc. (ptrval) registered with id=0
[ 1.104501] tegradc tegradc.0: probed
[ 1.105189] Console: switching to colour frame buffer device 80x30
[ 1.105225] tegradc tegradc.0: fb registered
[ 1.106443] tegradc tegradc.1: disp1 connected to head1->/host1x/sor
[ 1.106530] tegradc tegradc.1: No lt-data, using default setting
[ 1.106559] tegradc tegradc.1: No hpd-gpio in DT
[ 1.106594] tegradc tegradc.1: DT parsed successfully
[ 1.106646] tegradc tegradc.1: Display dc. (ptrval) registered with id=1
[ 1.108583] tegra-apbdma 60020000.dma: Tegra20 APB DMA driver register 32 channels
[ 1.109108] tegradc tegradc.1: dpd enable lookup fail:-19
[ 1.614890] Host read timeout at address 545c00c4
[ 1.616419] tegradc tegradc.1: probed
[ 1.616791] tegradc tegradc.1: fb registered
[ 1.617185] tegra-adma 702e2000.adma: Tegra210 ADMA driver registered 22 channels
[ 1.617934] tegra-fuse-burn 7000f800.efuse:efuse-burn: shutdown limit check disabled
[ 1.617940] tegra-fuse-burn 7000f800.efuse:efuse-burn: Fuse burn driver initialized
[ 1.618208] kfuse 7000fc00.kfuse: initialized
[ 1.619104] tegra-pmc-iopower pmc-iopower: Regulator supply iopower-dbg-supply not available
[ 1.619881] tegra-pmc-iopower pmc-iopower: NO_IOPOWER setting 0x0
[ 1.620032] hpd: state 7 (Takeover from bootloader), hpd 0, pending_hpd_evt 1
[ 1.620039] hpd: switching from state 7 (Takeover from bootloader) to state 0 (Reset)
[ 1.620048] hpd: state 0 (Reset), hpd 0, pending_hpd_evt 0
[ 1.620063] tegradc tegradc.1: blank - powerdown
[ 1.620084] extcon-disp-state extcon:disp-state: cable 44 state 0 already set.
[ 1.620088] Extcon DP: HPD disabled
[ 1.620093] hpd: hpd_switch 0
[ 1.620099] hpd: switching from state 0 (Reset) to state 1 (Check Plug)
[ 1.620108] hpd: state 1 (Check Plug), hpd 0, pending_hpd_evt 0
[ 1.620117] hpd: switching from state 1 (Check Plug) to state 3 (Disabled)
[ 1.620965] tegra-dfll-pwm 70110000.pwm: DFLL_PWM regulator is available now
[ 1.620977] vdd-cpu: 708 ↔ 1322 mV at 708 mV
[ 1.621371] pwm-regulator pwm_regulators:pwm-regulator@0: PWM regulator registration passed
[ 1.622697] vdd-gpu: applied init 1000000uV constraint
[ 1.622704] vdd-gpu: 708 ↔ 1323 mV at 997 mV
[ 1.623075] pwm-regulator pwm_regulators:pwm-regulator@1: PWM regulator registration passed
[ 1.626317] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 1.626419] No Device Node present for smmu client: serial8250 !!
[ 1.626428] platform serial8250: No iommus property found in DT node, got swgids from fixup(101004000)
[ 1.626466] iommu: Adding device serial8250 to group 36
[ 1.628821] console [ttyS0] disabled
[ 1.628917] 70006000.serial: ttyS0 at MMIO 0x70006000 (irq = 63, base_baud = 25500000) is a Tegra
[ 1.639197] console [ttyS0] enabled
[ 1.640091] 70006040.serial: ttyTHS1 at MMIO 0x70006040 (irq = 64, base_baud = 0) is a TEGRA_UART
[ 1.640365] serial-tegra 70006200.serial: RX in PIO mode
[ 1.640447] 70006200.serial: ttyTHS2 at MMIO 0x70006200 (irq = 65, base_baud = 0) is a TEGRA_UART
[ 1.641436] [drm] Initialized
[ 1.655881] brd: module loaded
[ 1.660997] loop: module loaded
[ 1.661085] tegra_profiler: version: 1.145, samples/io: 49/28
[ 1.661208] tegra_profiler: auth: init
[ 1.662565] THERMAL EST: found 2 subdevs
[ 1.662571] THERMAL EST num_resources: 0
[ 1.662578] [THERMAL EST subdev 0]
[ 1.662585] [THERMAL EST subdev 1]
[ 1.663094] thermal thermal_zone5: Registering thermal zone thermal_zone5 for type thermal-fan-est
[ 1.663098] THERMAL EST: thz register success.
[ 1.663251] THERMAL EST: end of probe, return err: 0
[ 1.664474] sd: No Scsi addr parsed to reserve index
[ 1.664512] hisi_sas: driver version v1.6
[ 1.673706] tegra-qspi 70410000.spi: Prod settings list not found
[ 1.675031] qspi_mtd spi32766.0: MX25U3235F (4096 Kbytes)
[ 1.675039] qspi_mtd spi32766.0: mtd .name = spi32766.0, .size = 0x400000 (4MiB) .erasesize = 0x00001000 (4KiB) .numeraseregions = 0
[ 1.678755] tun: Universal TUN/TAP device driver, 1.6
[ 1.678763] tun: (C) 1999-2004 Max Krasnyansky maxk@qualcomm.com
[ 1.679731] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 1.679736] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.679789] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[ 1.679794] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.679839] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[ 1.679844] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 1.679892] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version 4.4.0-k
[ 1.679897] ixgbe: Copyright (c) 1999-2016 Intel Corporation.
[ 1.680950] PPP generic driver version 2.4.2
[ 1.681319] PPP BSD Compression module registered
[ 1.681326] PPP Deflate Compression module registered
[ 1.681368] PPP MPPE Compression module registered
[ 1.681376] NET: Registered protocol family 24
[ 1.681449] usbcore: registered new interface driver r8152
[ 1.681496] usbcore: registered new interface driver asix
[ 1.681542] usbcore: registered new interface driver ax88179_178a
[ 1.681575] usbcore: registered new interface driver cdc_ether
[ 1.681606] usbcore: registered new interface driver net1080
[ 1.681636] usbcore: registered new interface driver cdc_subset
[ 1.681670] usbcore: registered new interface driver zaurus
[ 1.681729] usbcore: registered new interface driver cdc_ncm
[ 1.681938] VFIO - User Level meta-driver version: 0.3
[ 1.683558] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 1.683583] ehci-pci: EHCI PCI platform driver
[ 1.683627] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 1.683641] ohci-pci: OHCI PCI platform driver
[ 1.683687] ohci-platform: OHCI generic platform driver
[ 1.686406] tegra-xusb 70090000.xusb: USB2 port 0 has OTG_CAP
[ 1.687046] tegra-xusb-padctl 7009f000.xusb_padctl: enabled OTG on UTMI pad 0
[ 1.688263] tegra-xusb 70090000.xusb: extcon 0: (ptrval) id
[ 1.689591] usbcore: registered new interface driver uas
[ 1.689663] usbcore: registered new interface driver usb-storage
[ 1.689858] usbcore: registered new interface driver usbserial
[ 1.692426] tegra-xusb 70090000.xusb: Firmware timestamp: 2023-04-25 07:35:59 UTC, Version: 50.29 release
[ 1.692493] tegra-xusb 70090000.xusb: xHCI Host Controller
[ 1.692524] tegra-xusb 70090000.xusb: new USB bus registered, assigned bus number 1
[ 1.693318] tegra-xusb 70090000.xusb: hcc params 0x0184f525 hci version 0x100 quirks 0x00050010
[ 1.693370] tegra-xusb 70090000.xusb: irq 61, io mem 0x70090000
[ 1.693487] tegra-xudc-new 700d0000.xudc: device count: 1
[ 1.693567] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.693574] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.693580] usb usb1: Product: xHCI Host Controller
[ 1.693585] usb usb1: Manufacturer: Linux 4.9.337-tegra xhci-hcd
[ 1.693589] usb usb1: SerialNumber: 70090000.xusb
[ 1.694311] hub 1-0:1.0: USB hub found
[ 1.694449] hub 1-0:1.0: 5 ports detected
[ 1.695385] tegra-xudc-new 700d0000.xudc: USB charger detection disabled
[ 1.695403] tegra-xudc-new 700d0000.xudc: vbus state: 0
[ 1.695445] tegra-xudc-new 700d0000.xudc: entering ELPG
[ 1.695452] tegra-xusb 70090000.xusb: xHCI Host Controller
[ 1.695468] tegra-xusb 70090000.xusb: new USB bus registered, assigned bus number 2
[ 1.695596] usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
[ 1.695707] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[ 1.695713] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.695717] usb usb2: Product: xHCI Host Controller
[ 1.695722] usb usb2: Manufacturer: Linux 4.9.337-tegra xhci-hcd
[ 1.695726] usb usb2: SerialNumber: 70090000.xusb
[ 1.695762] tegra-xudc-new 700d0000.xudc: entering ELPG done
[ 1.696357] hub 2-0:1.0: USB hub found
[ 1.696402] hub 2-0:1.0: 4 ports detected
[ 1.696597] mousedev: PS/2 mouse device common for all mice
[ 1.696751] usbcore: registered new interface driver xpad
[ 1.697212] tegra-xusb 70090000.xusb: Upgrade port 0 to USB3.0
[ 1.697220] tegra-xusb 70090000.xusb: Upgrade port 1 to USB3.0
[ 1.718748] tegra-xusb-padctl 7009f000.xusb_padctl: power on UTMI pads 1
[ 1.781236] max77686-rtc max77620-rtc: rtc core: registered max77620-rtc as rtc0
[ 1.783677] rtc rtc1: alarm rtc device
[ 1.783700] tegra_rtc 7000e000.rtc: rtc core: registered 7000e000.rtc as rtc1
[ 1.783753] tegra_rtc 7000e000.rtc: Tegra internal Real Time Clock
[ 1.784416] i2c /dev entries driver
[ 1.786377] i2c i2c-6: Added multiplexed i2c bus 7
[ 1.786804] i2c i2c-6: Added multiplexed i2c bus 8
[ 1.786811] i2c-mux-gpio cam_i2cmux: 2 port mux on Tegra I2C adapter adapter
[ 1.787655] imx219 7-0010: tegracam sensor driver:imx219_v2.0.6
[ 1.810999] tegra-vii2c 546c0000.i2c: no acknowledge from address 0x10
[ 1.811089] imx219 7-0010: imx219_board_setup: error during i2c read probe (-121)
[ 1.818748] imx219 7-0010: board setup failed
[ 1.823220] imx219: probe of 7-0010 failed with error -121
[ 1.823856] imx219 8-0010: tegracam sensor driver:imx219_v2.0.6
[ 1.847149] tegra-vii2c 546c0000.i2c: no acknowledge from address 0x10
[ 1.847237] imx219 8-0010: imx219_board_setup: error during i2c read probe (-121)
[ 1.854820] imx219 8-0010: board setup failed
[ 1.859259] imx219: probe of 8-0010 failed with error -121
[ 1.860627] max77620-power max77620-power: Event recorder REG_NVERC : 0x0
[ 1.863254] tegra_soctherm 700e2000.soctherm: pllx_offset tz:0 max:14, min:2
[ 1.863261] tegra_soctherm 700e2000.soctherm: pllx_offset tz:2 max:8, min:4
[ 1.863717] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 1.863733] tegra_soctherm 700e2000.soctherm: thermtrip: will shut down when cpu reaches 102500 mC
[ 1.863742] tegra_soctherm 700e2000.soctherm: throttrip: will throttle when cpu reaches 100500 mC
[ 1.863879] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 1.863889] tegra_soctherm 700e2000.soctherm: thermtrip: will shut down when gpu reaches 103000 mC
[ 1.863897] tegra_soctherm 700e2000.soctherm: throttrip: will throttle when gpu reaches 101000 mC
[ 1.864040] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 1.864050] tegra_soctherm 700e2000.soctherm: thermtrip: will shut down when pll reaches 127000 mC
[ 1.864057] tegra_soctherm 700e2000.soctherm: throttrip: pll: missing hot temperature
[ 1.864234] tegra_soctherm 700e2000.soctherm: failed to register sensor: -19
[ 1.865032] tegra_aotag tegra-aotag: Registering sensor 0
[ 1.865088] tegra_aotag tegra-aotag: Invalid temp readout
[ 1.865118] tegra_aotag tegra-aotag: Invalid temp readout
[ 1.865136] tegra_aotag tegra-aotag: Bound to TZ : ID 0
[ 1.865146] tegra_aotag tegra-aotag: Probe done [SUCCESS]:0
[ 1.866031] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 1.866050] tegra_dfll_action dfll-cdev-cap: Tegra DFLL ‘cap cooling device’ registered
[ 1.866231] tegra_aotag tegra-aotag: Invalid temp readout
[ 1.866263] tegra_dfll_action dfll-cdev-floor: Tegra DFLL ‘floor cooling device’ registered
[ 1.866733] parse_throttle_dt_data: Num cap clks = 6
[ 1.866739] parse_throttle_dt_data: clk=cclk_g type=2
[ 1.866756] parse_throttle_dt_data: clk=gpu type=4
[ 1.866782] parse_throttle_dt_data: clk=cap.throttle.c2bus type=0
[ 1.866803] parse_throttle_dt_data: clk=cap.throttle.c3bus type=0
[ 1.866827] parse_throttle_dt_data: clk=cap.throttle.sclk type=0
[ 1.866832] parse_throttle_dt_data: clk=emc type=3
[ 1.867209] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 1.867317] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 1.867459] tegra_throttle_probe: probe successful. #cdevs=4
[ 1.868235] FAN dev name: pwm-fan
[ 1.868316] FAN:gpio request success.
[ 1.868375] pwm_fan_driver pwm-fan: cap state:7, cap pwm:255
[ 1.868686] pwm_fan_driver pwm-fan: got pwm for fan. polarity is normal
[ 1.868901] pwm_fan_driver pwm-fan: fan tach request irq success
[ 1.868911] pwm_fan_driver pwm-fan: tach period: 1000
[ 1.869018] pwm_fan_driver pwm-fan: index 0: pwm=0, rpm=0, rru=40, rrd=40, state:2
[ 1.869023] pwm_fan_driver pwm-fan: index 1: pwm=80, rpm=1000, rru=2, rrd=2, state:2
[ 1.869028] pwm_fan_driver pwm-fan: index 2: pwm=120, rpm=2000, rru=1, rrd=1, state:2
[ 1.869033] pwm_fan_driver pwm-fan: index 3: pwm=160, rpm=3000, rru=1, rrd=1, state:2
[ 1.869038] pwm_fan_driver pwm-fan: index 4: pwm=255, rpm=4000, rru=1, rrd=1, state:3
[ 1.869043] pwm_fan_driver pwm-fan: index 5: pwm=255, rpm=5000, rru=1, rrd=1, state:3
[ 1.869047] pwm_fan_driver pwm-fan: index 6: pwm=255, rpm=6000, rru=1, rrd=1, state:3
[ 1.869052] pwm_fan_driver pwm-fan: index 7: pwm=255, rpm=7000, rru=1, rrd=1, state:4
[ 1.869057] pwm_fan_driver pwm-fan: index 8: pwm=255, rpm=10000, rru=1, rrd=1, state:4
[ 1.869062] pwm_fan_driver pwm-fan: index 9: pwm=255, rpm=11000, rru=1, rrd=1, state:4
[ 1.871911] device-mapper: uevent: version 1.0.3
[ 1.872392] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
[ 1.877793] tegra210-cpufreq cpufreq: probe()…completed
[ 1.878490] sdhci: Secure Digital Host Controller Interface driver
[ 1.878492] sdhci: Copyright(c) Pierre Ossman
[ 1.878494] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.879061] sdhci-tegra sdhci-tegra.0: Got CD GPIO
[ 1.879419] sdhci-tegra sdhci-tegra.0: Client registration for eMC Successful
[ 1.879545] sdhci-tegra sdhci-tegra.0: wakeup init done, cdirq 300
[ 1.883860] tegra-se 70012000.se: tegra_se_probe: complete
[ 1.884341] hidraw: raw HID events driver (C) Jiri Kosina
[ 1.885472] usbcore: registered new interface driver usbhid
[ 1.885474] usbhid: USB HID core driver
[ 1.886897] ashmem: initialized
[ 1.887820] tegra21x_actmon 6000c800.actmon: in actmon_register()…
[ 1.887982] tegra21x_actmon 6000c800.actmon: initialization Completed for the device mc_all
[ 1.890141] nvpmodel: initialized successfully
[ 1.891245] usbcore: registered new interface driver snd-usb-audio
[ 1.891300] No Device Node present for smmu client: snd-soc-dummy !!
[ 1.891305] platform snd-soc-dummy: No iommus property found in DT node, got swgids from fixup(101004000)
[ 1.891323] iommu: Adding device snd-soc-dummy to group 37
[ 1.896496] input: tegra-hda HDMI/DP,pcm=3 as /devices/70030000.hda/sound/card0/input0
[ 1.913072] OPE platform probe
[ 1.913161] OPE platform probe successful
[ 1.913415] OPE platform probe
[ 1.913495] OPE platform probe successful
[ 1.926912] mmc0: SDHCI controller on sdhci-tegra.0 [sdhci-tegra.0] using ADMA 64-bit with 64 bit addr
[ 1.937610] tegra-asoc: sound: ADMAIF1 ↔ ADMAIF1 mapping ok
[ 1.937745] tegra-asoc: sound: ADMAIF2 ↔ ADMAIF2 mapping ok
[ 1.937875] tegra-asoc: sound: ADMAIF3 ↔ ADMAIF3 mapping ok
[ 1.938008] tegra-asoc: sound: ADMAIF4 ↔ ADMAIF4 mapping ok
[ 1.938134] tegra-asoc: sound: ADMAIF5 ↔ ADMAIF5 mapping ok
[ 1.938263] tegra-asoc: sound: ADMAIF6 ↔ ADMAIF6 mapping ok
[ 1.938394] tegra-asoc: sound: ADMAIF7 ↔ ADMAIF7 mapping ok
[ 1.938523] tegra-asoc: sound: ADMAIF8 ↔ ADMAIF8 mapping ok
[ 1.938685] tegra-asoc: sound: ADMAIF9 ↔ ADMAIF9 mapping ok
[ 1.938823] tegra-asoc: sound: ADMAIF10 ↔ ADMAIF10 mapping ok
[ 1.942732] usb 1-2: new high-speed USB device number 2 using tegra-xusb
[ 1.950294] u32 classifier
[ 1.950297] Actions configured
[ 1.950370] Initializing XFRM netlink socket
[ 1.951144] NET: Registered protocol family 10
[ 1.951821] NET: Registered protocol family 17
[ 1.951831] NET: Registered protocol family 15
[ 1.951914] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 1.951957] Bluetooth: RFCOMM socket layer initialized
[ 1.951973] Bluetooth: RFCOMM ver 1.11
[ 1.951978] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.951983] Bluetooth: HIDP socket layer initialized
[ 1.952001] 9pnet: Installing 9P2000 support
[ 1.952049] Key type dns_resolver registered
[ 1.952455] Registered cp15_barrier emulation handler
[ 1.952462] Registered setend emulation handler
[ 1.953506] registered taskstats version 1
[ 1.954033] Adding domain ve2-pd to PM domain host1x-pd
[ 1.954281] Adding domain ve-pd to PM domain host1x-pd
[ 1.957196] isp 54600000.isp: initialized
[ 1.958571] isp 54680000.isp: initialized
[ 1.968962] last reset is due to power on reset
[ 1.968966] KERNEL: PMC reset status reg: 0x0
[ 1.969028] BL: PMC reset status reg: 0x0
[ 1.969031] BL: PMIC poweroff Event Recorder: 0x40
[ 1.970453] clk_cbus_recalc_rate: no gbus parent
[ 1.970459] clk_cbus_round_rate: no gbus parent
[ 1.970461] clk_cbus_round_rate: no gbus parent
[ 1.970466] clk_cbus_recalc_rate: no gbus parent
[ 1.970563] clk_cbus_recalc_rate: no gbus parent
[ 1.970567] clk_cbus_round_rate: no gbus parent
[ 1.970569] clk_cbus_round_rate: no gbus parent
[ 1.970573] clk_cbus_recalc_rate: no gbus parent
[ 1.971238] usb 1-2: New USB device found, idVendor=0bda, idProduct=5411
[ 1.971243] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.971247] usb 1-2: Product: USB2.1 Hub
[ 1.971250] usb 1-2: Manufacturer: Generic
[ 1.971268] tegra_dvfs: GPU-cap: registered
[ 1.971325] tegra dvfs: vdd-cpu: nominal 1168mV, offset 708000uV, step 19200uV, scaling enabled
[ 1.971327] tegra dvfs: vdd-core: nominal 1125mV, offset 600000uV, step 12500uV, scaling enabled
[ 1.971330] tegra dvfs: vdd-gpu: nominal 1068mV, offset 708000uV, step 10000uV, scaling enabled
[ 1.972221] hub 1-2:1.0: USB hub found
[ 1.972762] tegra_dvfs: vdd-gpu-vts: registered
[ 1.972800] hub 1-2:1.0: 5 ports detected
[ 1.973465] tegra_core_action core_dvfs_cdev_floor: Tegra CORE DVFS ‘floor cooling device’ registered
[ 1.974062] tegra_core_action core_dvfs_cdev_cap: Tegra CORE DVFS ‘cap cooling device’ registered
[ 1.974582] input: gpio-keys as /devices/gpio-keys/input/input1
[ 2.008160] tegra_rtc 7000e000.rtc: setting system clock to 2000-01-01 01:00:16 UTC (946688416)
[ 2.009165] vi 54080000.vi: vi_probe: ++
[ 2.012179] vi 54080000.vi: initialized
[ 2.014261] vi 54080000.vi: subdev nvcsi–2 bound
[ 2.014364] vi 54080000.vi: subdev nvcsi–1 bound
[ 2.015195] Disable partitions left on by BL
[ 2.015198] disb
[ 2.015239] bwmgr: missing cdev-type property
[ 2.015362] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 2.015369] DRAM derating cdev registered.
[ 2.016294] ALSA device list:
[ 2.016297] #0: tegra-hda at 0x70038000 irq 83
[ 2.016300] #1: tegra-snd-t210ref-mobile-rt565x
[ 2.019622] Freeing unused kernel memory: 8640K
[ 2.026687] tegra-pcie 1003000.pcie: link 0 down, retrying
[ 2.043871] Root device found: mmcblk0p1
[ 2.098673] tegra-xusb-padctl 7009f000.xusb_padctl: power down UTMI pad 1
[ 2.106721] tegra_cec 70015000.tegra_cec: Can’t find physical addresse.
[ 2.106724] tegra_cec 70015000.tegra_cec: tegra_cec_init Done.
[ 2.118668] usb 1-2: usb_suspend_both: status 0
[ 2.119086] usb 2-1: new SuperSpeed USB device number 2 using tegra-xusb
[ 2.125224] mmc0: hw tuning done …
[ 2.125260] mmc0: new ultra high speed SDR104 SDXC card at address aaaa
[ 2.125620] mmcblk0: mmc0:aaaa SD64G 59.5 GiB
[ 2.130983] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14
[ 2.146667] usb 2-1: New USB device found, idVendor=0bda, idProduct=0411
[ 2.146672] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.146676] usb 2-1: Product: USB3.2 Hub
[ 2.146680] usb 2-1: Manufacturer: Generic
[ 2.147630] hub 2-1:1.0: USB hub found
[ 2.148383] hub 2-1:1.0: 4 ports detected
[ 2.206862] usb usb1: usb_suspend_both: status 0
[ 2.248876] Found dev node: /dev/mmcblk0p1
[ 2.282588] EXT4-fs (mmcblk0p1): warning: mounting fs with errors, running e2fsck is recommended
[ 2.298721] usb 2-1: usb_suspend_both: status 0
[ 2.298848] usb usb2: usb_suspend_both: status 0
[ 2.311914] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[ 2.313835] Rootfs mounted over mmcblk0p1
[ 2.345058] Switching from initrd to actual rootfs
[ 2.430668] tegra-pcie 1003000.pcie: link 0 down, retrying
[ 2.548991] systemd[1]: System time before build time, advancing clock.
[ 2.592101] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.604844] cgroup: cgroup2: unknown option “nsdelegate”
[ 2.627712] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[ 2.628493] systemd[1]: Detected architecture arm64.
[ 2.651268] systemd[1]: Set hostname to .
[ 2.779375] systemd[1]: File /lib/systemd/system/systemd-journald.service:36 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 2.779384] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 2.842674] tegra-pcie 1003000.pcie: link 0 down, retrying
[ 2.844694] tegra-pcie 1003000.pcie: link 0 down, ignoring
[ 2.943827] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.943866] systemd[1]: Reached target User and Group Name Lookups.
[ 2.944183] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.945988] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 2.946024] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.946050] systemd[1]: Reached target Mounting snaps.
[ 2.946091] systemd[1]: Reached target Mounted snaps.
[ 2.948054] systemd[1]: Created slice System Slice.
[ 2.950023] tegra-pcie 1003000.pcie: PCI host bridge to bus 0000:00
[ 2.950029] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 2.950033] pci_bus 0000:00: root bus resource [mem 0x13000000-0x1fffffff]
[ 2.950040] pci_bus 0000:00: root bus resource [mem 0x20000000-0x3fffffff pref]
[ 2.950045] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 2.950067] pci 0000:00:02.0: [10de:0faf] type 01 class 0x060400
[ 2.950138] pci 0000:00:02.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 2.950268] iommu: Adding device 0000:00:02.0 to group 38
[ 2.950343] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 2.950454] pci 0000:01:00.0: [10ec:8168] type 00 class 0x020000
[ 2.950480] pci 0000:01:00.0: reg 0x10: [io 0x0000-0x00ff]
[ 2.950514] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00000fff 64bit]
[ 2.950535] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit]
[ 2.950729] pci 0000:01:00.0: supports D1 D2
[ 2.950732] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 2.950905] iommu: Adding device 0000:01:00.0 to group 39
[ 2.962780] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 2.962812] pci 0000:00:02.0: BAR 14: assigned [mem 0x13000000-0x130fffff]
[ 2.962817] pci 0000:00:02.0: BAR 13: assigned [io 0x1000-0x1fff]
[ 2.962824] pci 0000:01:00.0: BAR 4: assigned [mem 0x13000000-0x13003fff 64bit]
[ 2.962843] pci 0000:01:00.0: BAR 2: assigned [mem 0x13004000-0x13004fff 64bit]
[ 2.962861] pci 0000:01:00.0: BAR 0: assigned [io 0x1000-0x10ff]
[ 2.962870] pci 0000:00:02.0: PCI bridge to [bus 01]
[ 2.962874] pci 0000:00:02.0: bridge window [io 0x1000-0x1fff]
[ 2.962879] pci 0000:00:02.0: bridge window [mem 0x13000000-0x130fffff]
[ 2.963177] pcieport 0000:00:02.0: Signaling PME through PCIe PME interrupt
[ 2.963181] pci 0000:01:00.0: Signaling PME through PCIe PME interrupt
[ 2.963186] pcie_pme 0000:00:02.0:pcie001: service driver pcie_pme loaded
[ 2.963285] aer 0000:00:02.0:pcie002: service driver aer loaded
[ 2.963475] r8168 0000:01:00.0: enabling device (0000 → 0003)
[ 2.963494] r8168 Gigabit Ethernet driver 8.045.08-NAPI loaded
[ 2.977950] r8168 0000:01:00.0 (unnamed net_device) (uninitialized): Invalid ethernet address 00:00:00:00:00:00, trying device tree node
[ 2.978022] r8168 0000:01:00.0 (unnamed net_device) (uninitialized): Found valid ethernet address 48:b0:2d:f5:ba:fd from device tree
[ 2.978506] r8168: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[ 2.978520] r8168 Copyright (C) 2017 Realtek NIC software team nicfae@realtek.com
This program comes with ABSOLUTELY NO WARRANTY; for details, please see http://www.gnu.org/licenses/.
This is free software, and you are welcome to redistribute it under certain conditions; see http://www.gnu.org/licenses/.
[ 3.008428] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[ 3.147608] nvgpu: 57000000.gpu gm20b_init_clk_setup_sw:1268 [INFO] GPCPLL initial settings: NA mode, M=1, N=34, P=3 (id = 1)
[ 3.328311] systemd-journald[1944]: Received request to flush runtime journal from PID 1
[ 3.946868] random: systemd-journal: uninitialized urandom read (16 bytes read)
[ 3.994688] tegra-xusb 70090000.xusb: entering ELPG
[ 3.995725] tegra-pmc: PMC tegra_pmc_utmi_phy_enable_sleepwalk : port 1, speed 3
[ 3.995925] tegra-pmc: PMC tegra_pmc_utmi_phy_enable_sleepwalk : port 2, speed 0
[ 3.997835] tegra-xusb 70090000.xusb: entering ELPG done
[ 4.047057] random: systemd: uninitialized urandom read (16 bytes read)
[ 4.049077] random: systemd-journal: uninitialized urandom read (16 bytes read)
[ 4.282111] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 4.282133] cpu-throttle-alert cooling device registered.
[ 4.282274] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 4.282288] gpu-throttle-alert cooling device registered.
[ 4.282472] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 4.282485] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000
[ 4.282499] hot-surface-alert cooling device registered.
[ 4.550686] random: crng init done
[ 4.554093] random: 228 urandom warning(s) missed due to ratelimiting
[ 4.698134] using random self ethernet address
[ 4.702726] using random host ethernet address
[ 5.764739] Mass Storage Function, version: 2009/09/11
[ 5.764744] LUN: removable file: (no medium)
[ 5.770002] using random self ethernet address
[ 5.774543] using random host ethernet address
[ 5.851613] rndis0: HOST MAC a6:95:54:9c:44:7c
[ 5.851859] rndis0: MAC a6:95:54:9c:44:7d
[ 5.852660] usb0: HOST MAC a6:95:54:9c:44:7e
[ 5.852855] usb0: MAC a6:95:54:9c:44:7f
[ 5.852877] tegra-xudc-new 700d0000.xudc: exiting ELPG
[ 5.853622] tegra-xudc-new 700d0000.xudc: exiting ELPG done
[ 5.853642] tegra-xudc-new 700d0000.xudc: ep 0 (type: 0, dir: out) enabled
[ 5.853674] tegra-xudc-new 700d0000.xudc: entering ELPG
[ 5.854000] tegra-xudc-new 700d0000.xudc: entering ELPG done
[ 5.854023] tegra-xudc-new 700d0000.xudc: exiting ELPG
[ 5.854729] tegra-xudc-new 700d0000.xudc: exiting ELPG done
[ 5.854742] tegra-xudc-new 700d0000.xudc: entering ELPG
[ 5.855091] tegra-xudc-new 700d0000.xudc: entering ELPG done
[ 5.861948] l4tbr0: port 1(rndis0) entered blocking state
[ 5.861952] l4tbr0: port 1(rndis0) entered disabled state
[ 5.862119] device rndis0 entered promiscuous mode
[ 5.871832] IPv6: ADDRCONF(NETDEV_UP): rndis0: link is not ready
[ 5.878240] l4tbr0: port 2(usb0) entered blocking state
[ 5.878245] l4tbr0: port 2(usb0) entered disabled state
[ 5.879111] device usb0 entered promiscuous mode
[ 5.887944] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 5.967965] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 5.991352] eth0: 0xffffff800ab93000, 48:b0:2d:f5:ba:fd, IRQ 407
[ 6.041257] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6.304052] zram: Added device: zram0
[ 6.306888] zram: Added device: zram1
[ 6.310852] zram: Added device: zram2
[ 6.314639] zram: Added device: zram3
[ 6.359851] zram0: detected capacity change from 0 to 519553024
[ 6.685155] Adding 507372k swap on /dev/zram0. Priority:5 extents:1 across:507372k SS
[ 6.691411] zram1: detected capacity change from 0 to 519553024
[ 6.702907] Adding 507372k swap on /dev/zram1. Priority:5 extents:1 across:507372k SS
[ 6.706245] zram2: detected capacity change from 0 to 519553024
[ 6.717244] Adding 507372k swap on /dev/zram2. Priority:5 extents:1 across:507372k SS
[ 6.720740] zram3: detected capacity change from 0 to 519553024
[ 6.731836] Adding 507372k swap on /dev/zram3. Priority:5 extents:1 across:507372k SS
[ 7.988230] Bridge firewalling registered
[ 8.008596] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 8.090695] r8168: eth0: link up
[ 8.090732] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.147186] Netfilter messages via NETLINK v0.30.
[ 8.150114] ctnetlink v0.93: registering with nfnetlink.
[ 8.259354] IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready
[ 8.822602] tegradc tegradc.0: blank - powerdown
[ 8.822612] tegradc tegradc.1: blank - powerdown
[ 9.695191] tegra-i2c 7000c000.i2c: no acknowledge from address 0x50
[ 9.702144] tegra-i2c 7000c400.i2c: no acknowledge from address 0x50
[ 9.891198] tegra-xusb 70090000.xusb: exiting ELPG
[ 9.891525] tegra-xusb-padctl 7009f000.xusb_padctl: power on UTMI pads 1
[ 9.894689] tegra-xusb 70090000.xusb: Firmware timestamp: 2023-04-25 07:35:59 UTC, Version: 50.29 release
[ 9.894964] tegra-pmc: PMC tegra_pmc_utmi_phy_disable_sleepwalk : port 0
[ 9.894984] tegra-pmc: PMC tegra_pmc_utmi_phy_disable_sleepwalk : port 1
[ 9.895002] tegra-pmc: PMC tegra_pmc_utmi_phy_disable_sleepwalk : port 2
[ 10.026755] tegra-xusb 70090000.xusb: exiting ELPG done
[ 10.054910] usb usb2: usb_suspend_both: status 0
[ 10.239709] tegra-i2c 7000c000.i2c: no acknowledge from address 0x50
[ 10.246564] tegra-i2c 7000c400.i2c: no acknowledge from address 0x50
[ 10.402691] tegra-xusb-padctl 7009f000.xusb_padctl: power down UTMI pad 1
[ 10.422790] usb 1-2: usb_suspend_both: status 0
[ 10.422881] usb usb1: usb_suspend_both: status 0
[ 10.628468] fuse init (API version 7.26)
[ 12.030736] tegra-xusb 70090000.xusb: entering ELPG
[ 12.031770] tegra-pmc: PMC tegra_pmc_utmi_phy_enable_sleepwalk : port 1, speed 3
[ 12.031962] tegra-pmc: PMC tegra_pmc_utmi_phy_enable_sleepwalk : port 2, speed 0
[ 12.033527] tegra-xusb 70090000.xusb: entering ELPG done
[ 12.981859] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 12.981868] Bluetooth: BNEP socket layer initialized
[ 33.917359] vdd-fan: disabling
[ 33.917404] vdd-usb-vbus: disabling
[ 33.917437] vdd-usb-vbus2: disabling
[ 33.917544] vddio-sdmmc3-ap: disabling
[ 33.918243] avdd-io-edp-1v05: disabling
[ 33.918276] vdd-usb-hub-en: disabling
[ 316.536733] EXT4-fs (mmcblk0p1): error count since last fsck: 1
[ 316.542961] EXT4-fs (mmcblk0p1): initial error at time 1713843068: ext4_find_entry:1478: inode 549403
[ 316.552418] EXT4-fs (mmcblk0p1): last error at time 1713843068: ext4_find_entry:1478: inode 549403
[ 1161.339169] tegra-i2c 7000c000.i2c: no acknowledge from address 0x50
[ 1161.345936] tegra-i2c 7000c400.i2c: no acknowledge from address 0x50
[ 1350.107176] tegra-i2c 7000c000.i2c: no acknowledge from address 0x50
[ 1350.113922] tegra-i2c 7000c400.i2c: no acknowledge from address 0x50

Why it is says i2c:tegra-i2c 7000c000.i2c: no acknowledge from address 0x50
I’m obviously using SPI.

Hi lululu991129,

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

Have you verified SPI loopback test before connecting it with your MCP3008 module?

Please share the block diagram of your connection for MCP3008. (i.e. I want to know that how you connect MCP3008 to Jetson Nano).

Please also note that DO NOT paste all logs contents here, it may be hard to read for others.
You can share it as file here instead.

I use the using the devkit board for Jetson Nano. My Jetpack version is 4.6.4
I do not verify SPI loopback test before connecting it with MCP3008 module.
I connect MCP3008 to Jetson Nano like this, however, my MISO and MOSI of jetson nano board in pin19 and pin21, not in pin 21 and pin 19 as usual. (I don’t know why.)


Okay, I’ll pay attention to it later.

I used the test tool later to verified SPI loopback test . But I get the RX is all zero as below:


The test tool is : rm-hull/spidev-test (github.com)

@KevinFFF
I change the dtb file: kernel_tegra210-p3448-0000-p3449-0000-b00-user-custom.dtb.


and use this file in FDT:

But when I check kernel whether use this dtb, it seems not.

Please help me. I don’t know what is wrong and what I can do next.

It seems your SPI loopback test is failed.
Please refer to Jetson Nano SPI Bus Not Working - #10 by KevinFFF to verify if you can receive the data you send correctly.

Must It do these steps in PC? Can I do this in my board?

The massage of command "dmesg | grep -i kernel " seems shows that my extlinux.conf do not work.


Before the 2-2-2-5 step, should I rebuild the kernel?

You have to get a host to re-flash your board to apply the change.

You don’t need to rebuild kernel with any step from that thread.
But you should perform Step 2-2-2 from BSP package (<Linux_for_Tegra>/) of host PC.

Please help me.
After I followed those steps, I still got the result of spi:


I use the SDK manager to flash, and itself download the BSP, I changed the dtb:/home/lulu/Downloads/nvidia/sdkm_downloads/Jetson-210_Linux_R32.7.4_aarch64/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0000-p3449-0000-b00.dtb in the download menu.
But I still can’t use spi.
Please help me.

@KevinFFF Hello, I found that when I modify the dtb in the SDK manager download file. The SDK manager will download again before flash the board because the old one and the new one have not same size, so I can’t modify the dtb . what can I do.

Please use the following command to flash the board instead of using SDKM.

If you are using Jetson Nano devkit with SD module:

$ sudo ./flash.sh jetson-nano-devkit mmcblk0p1

If you are using Jetson Nano devkit with eMMC module:

$ sudo ./flash.sh jetson-nano-emmc mmcblk0p1

OK, thank you. My spi do work. But I have to rebuild the kernel. Otherwise, it will prompt that the extlinux.conf file is missing.

okay, you can build your custom driver for MCP3008 into kernel image.