Insmod NVIDIA-kernel-module-source-TempVersion Failed

Version: L4T 35.4.1
Jetson Xavier NX
I compiled the linux kernel with rt patch, and then I compiled NVIDIA-kernel-module-source-TempVersion successfully too, but reported an error when insmod nvidia*.ko ;
Could you tell me how to fix this problem;
Thank you

lw@lw:/lib/modules/5.10.120-rt70-tegra/extra/opensrc-disp$ ls
nvidia-drm.ko  nvidia-modeset.ko  nvidia.ko
lw@lw:/lib/modules/5.10.120-rt70-tegra/extra/opensrc-disp$ sudo insmod nvidia.ko 
insmod: ERROR: could not insert module nvidia.ko: No such device
lw@lw:/lib/modules/5.10.120-rt70-tegra/extra/opensrc-disp$ uname -a
Linux lw 5.10.120-rt70-tegra #2 SMP PREEMPT RT Tue Sep 19 21:55:08 CST 2023 aarch64 aarch64 aarch64 GNU/Linux

dmesg show some errors

[   54.612492] tegra-xudc 3550000.xudc: EP 13 (type: bulk, dir: in) enabled
[   54.612506] tegra-xudc 3550000.xudc: EP 8 (type: bulk, dir: out) enabled
[   54.612630] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
[   54.612763] l4tbr0: port 2(usb0) entered blocking state
[   54.612771] l4tbr0: port 2(usb0) entered forwarding state
[  452.758602] nvidia_drm: loading out-of-tree module taints kernel.
[  452.759924] nvidia_drm: Unknown symbol nvKmsKapiGetFunctionsTable (err -2)
[  479.381234] NVRM: No NVIDIA GPU found.
[  630.254521] NVRM: No NVIDIA GPU found.
[  637.073667] NVRM: No NVIDIA GPU found.
[ 3765.417815] NVRM: No NVIDIA GPU found.
[ 4232.342641] NVRM: No NVIDIA GPU found

What is the result of “lsmod” before you insmod the module?

Hi Wayne

lw@lw:~$ lsmod
Module                  Size  Used by
xt_conntrack           16384  1
xt_MASQUERADE          16384  1
nf_conntrack_netlink    49152  0
nfnetlink              20480  2 nf_conntrack_netlink
iptable_nat            16384  1
nf_nat                 94208  2 iptable_nat,xt_MASQUERADE
nf_conntrack          188416  4 xt_conntrack,nf_nat,nf_conntrack_netlink,xt_MASQUERADE
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
libcrc32c              16384  2 nf_conntrack,nf_nat
xt_addrtype            16384  2
iptable_filter         16384  1
br_netfilter           32768  0
lzo_rle                16384  36
lzo_compress           16384  1 lzo_rle
zram                   36864  6
overlay               122880  0
ramoops                28672  0
reed_solomon           20480  1 ramoops
realtek                24576  1
snd_soc_tegra186_asrc    40960  1
snd_soc_tegra210_ope    36864  1
snd_soc_tegra186_dspk    20480  2
snd_soc_tegra210_iqc    16384  0
snd_soc_tegra186_arad    28672  2 snd_soc_tegra186_asrc
snd_soc_tegra210_mvc    20480  2
snd_soc_tegra210_afc    20480  6
snd_soc_tegra210_dmic    20480  4
snd_soc_tegra210_adx    32768  4
snd_soc_tegra210_amx    36864  4
snd_soc_tegra210_i2s    24576  6
snd_soc_tegra210_mixer    49152  1
snd_soc_tegra210_admaif   131072  1
snd_soc_tegra210_sfc    61440  4
snd_soc_tegra_pcm      16384  1 snd_soc_tegra210_admaif
aes_ce_blk             36864  0
crypto_simd            24576  1 aes_ce_blk
cryptd                 32768  1 crypto_simd
aes_ce_cipher          20480  1 aes_ce_blk
ghash_ce               28672  0
sha2_ce                20480  0
sha256_arm64           28672  1 sha2_ce
loop                   40960  1
sha1_ce                20480  0
input_leds             16384  0
snd_soc_spdif_tx       16384  0
snd_soc_tegra_machine_driver    16384  0
leds_gpio              16384  0
max77620_thermal       16384  0
snd_soc_tegra210_adsp   774144  1
snd_soc_tegra_utils    32768  3 snd_soc_tegra210_admaif,snd_soc_tegra_machine_driver,snd_soc_tegra210_adsp
snd_soc_simple_card_utils    24576  1 snd_soc_tegra_utils
snd_soc_tegra210_ahub  1273856  3 snd_soc_tegra210_ope,snd_soc_tegra210_sfc
nvadsp                118784  1 snd_soc_tegra210_adsp
tegra210_adma          28672  2 snd_soc_tegra210_admaif,snd_soc_tegra210_adsp
snd_hda_codec_hdmi     65536  4
tegra_bpmp_thermal     16384  0
userspace_alert        16384  0
snd_hda_tegra          16384  0
rtl8822ce            3121152  0
nv_imx219              20480  0
snd_hda_codec         135168  2 snd_hda_codec_hdmi,snd_hda_tegra
cfg80211              860160  1 rtl8822ce
snd_hda_core           98304  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_tegra
spi_tegra114           32768  0
ina3221                24576  0
pwm_fan                24576  0
nvgpu                2789376  0
nvmap                 225280  2 nvgpu
ip_tables              36864  2 iptable_filter,iptable_nat
x_tables               53248  5 xt_conntrack,iptable_filter,xt_addrtype,ip_tables,xt_MASQUERADE
lw@lw:~$ 

Hi,

Have you run sudo depmod -a after re-flashing with the new kernel?
Ideally, you don’t need to manually insert these modules.

Hi, Dave
After build rootfs success, I run depmod -a in qemu, and I tried in jetson-xavier-nx run this cmd, but modprobe still an error; thank you

lw@lw:~$ sudo depmod -a
[sudo] password for lw: 
lw@lw:~$ modprobe nvidia
modprobe: ERROR: could not insert 'nvidia': Operation not permitted
lw@lw:~$ sudo modprobe nvidia
[ 1547.607158] nvidia: loading out-of-tree module taints kernel.
modprobe: ERROR: could not insert 'nvidia': No such device
lw@lw:~$ dmesg
[   48.653342] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   61.013633] Bridge firewalling registered
[ 1547.607158] nvidia: loading out-of-tree module taints kernel.
[ 1547.626851] NVRM: No NVIDIA GPU found.

Hi,

I just noticed that you are using Xavier NX, then it’s expected that modprobing these modules will fail because kernel stuff regarding display is handled differently on Xavier and Orin.
You don’t need these modules on Xavier to have display work.

By referring to build rootfs, are you using the basic rootfs as you did in this post?

If your goal is to have access to GUI, then only the desktop flavor contains packages for GUI, but not the minimal flavor or the basic flavor.

1 Like

Hi Dave
You are right, on xavier nx, jetson can display normally without this driver. After I flash basic rootfs, jetson can also display a terminal UI.
Thank you;

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.