I am triying to port newracom driver (nrc7292) on nvidia jetson nano developer kit

I am trying to port newracom driver (nrc7292) on nvidia jetson nano developer kit. I am able to build the NRC7292 host driver on jetson nano but when trying to load the Newracom NRC7292 kernel module. I get following errors!
when checking with dmesg command

Screenshot from 2021-08-03 12-19-12|690x80

can anyone help me with the installation of newracom driver on jetson nano.

note: 1. the driver works on the raspberry pi
2. I am using the silex SX-newah 802.11ah module.
3. Jetson nano in headless mode

The resource available :

https://github.com/newracom/nrc7292_sw_pkg

https://github.com/wzab/nrc7292-buildroot/tree/rpi3-5.8

Since you already have the code, why not just add some print in the probe function and see which one gets errro?

I checked that and the problem is caused by

[ 87.274858] spi-tegra114 7000d400.spi: chipselect 0 already in use

I tried to disable the spi driver using following method :

- Kernel Module Blacklisting
	$ echo "blacklist spidev" >> /etc/modprobe.d/blacklist.conf

- Module Renaming
	$ cd  /lib/modules/4.9.201-tegra/kernel/drivers/spi
	$ sudo mv spidev.ko spidev.ko~

- “rmmod” command
	$ sudo rmmod spidev

and tried again to build and load the driver but the same error is there again regarding chipselect 0 already in use

Could you remove below from the device tree in spi@7000d400 {}

		spi@0 {
			compatible = "spidev";
			reg = <0x0>;
			spi-max-frequency = <0x1f78a40>;

			controller-data {
				nvidia,enable-hw-based-cs;
				nvidia,rx-clk-tap-delay = <0x7>;
			};
		};

		spi@1 {
			compatible = "spidev";
			reg = <0x1>;
			spi-max-frequency = <0x1f78a40>;

			controller-data {
				nvidia,enable-hw-based-cs;
				nvidia,rx-clk-tap-delay = <0x7>;
			};
		};

can you provide the path where this file is located

1 Like

Check it here.

…/hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-porg-p3448-common.dtsi

gtnano2@gtnano2:~$ cat /proc/device-tree/nvidia,dtsfilename
/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

I can see this but can’t access the folder path " …/hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-porg-p3448-common.dtsi " to edit the file. is there anything else I have to do before this or how can I access the dts file to edit it

You need to download the source code, download it to a ubuntu x86 host and follow the document to build it.

Not searching it on your jetson.

this ??

https://developer.nvidia.com/embedded/linux-tegra

Please check the software version you are using.

Also can check this document to build the kernel Image and DTB.

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/kernel_custom.html

hello

I have used this instruction to build the kernel

https://developer.ridgerun.com/wiki/index.php?title=Jetson_Nano/Development/Building_the_Kernel_from_Source

so when I am trying to Copy kernel, device tree and modules into jetpack from above link steps

cd ${JETPACK_4_3_P3448}
# Copy kernel generated
cp $JETSON_NANO_KERNEL_SOURCE/build/arch/arm64/boot/Image kernel/
# Copy device tree generated
cp $JETSON_NANO_KERNEL_SOURCE/build/arch/arm64/boot/dts/${DTB} kernel/dtb/

I am getting the following error

amit@amit-HP-15-Notebook-PC:~$ cd ${JETPACK_4_3_P3448}
bash: cd: /home/amit/nvidia/nvidia_sdk//JetPack_4.3_Linux_P3448/Linux_for_Tegra: No such file or directory
amit@amit-HP-15-Notebook-PC:~$ ^C
amit@amit-HP-15-Notebook-PC:~$ cp $JETSON_NANO_KERNEL_SOURCE/build/arch/arm64/boot/Image kernel/
cp: cannot stat '/build/arch/arm64/boot/Image': No such file or directory
amit@amit-HP-15-Notebook-PC:~$ cp $JETSON_NANO_KERNEL_SOURCE/build/arch/arm64/boot/dts/${DTB} kernel/dtb/
cp: cannot stat '/build/arch/arm64/boot/dts/tegra210-p3448-0000-p3449-0000-a02.dtb': No such file or directory

The jetson nano is in recovery mode:

amit@amit-HP-15-Notebook-PC:~$ lsusb
Bus 001 Device 004: ID 05c8:036e Cheng Uei Precision Industry Co., Ltd (Foxlink) Webcam
Bus 001 Device 003: ID 0bda:b001 Realtek Semiconductor Corp. 
Bus 001 Device 002: ID 8087:8000 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 25a7:fa67  
Bus 002 Device 004: ID 0955:7f21 NVidia Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root

can you point what is the issue?

Why not just check the error log first?

sorry my bad error got solved

11

note : " The kernel source version must match the version of firmware flashed on the Jetson. "