Kernel error: nvgpu: Unknown symbol dev_warn (err -22)

L4T version: 32.6.1
GCC version: gcc-linaro-7.3.1
Platform: agx xavier industrial

I add the ethernet switch chip 88EA6321 driver to the kernel and re-compile the kernel.
There are the following error messages. Where is the problem?

[ 6.766723] cgroup: cgroup2: unknown option “nsdelegate”
[ 7.966088] nvgpu: disagrees about version of symbol dev_warn
[ 7.966292] nvgpu: Unknown symbol dev_warn (err -22)
[ 7.967821] nvgpu: disagrees about version of symbol __dynamic_dev_dbg
[ 7.968004] nvgpu: Unknown symbol __dynamic_dev_dbg (err -22)
[ 7.968176] nvgpu: disagrees about version of symbol wake_up_process
[ 7.968317] nvgpu: Unknown symbol wake_up_process (err -22)
[ 7.970740] nvgpu: disagrees about version of symbol device_show_int
[ 7.973264] nvgpu: Unknown symbol device_show_int (err -22)
[ 7.975864] nvgpu: disagrees about version of symbol device_create_file
[ 7.978282] nvgpu: Unknown symbol device_create_file (err -22)
[ 7.980842] nvgpu: disagrees about version of symbol perf_trace_run_bpf_submit
[ 7.983252] nvgpu: Unknown symbol perf_trace_run_bpf_submit (err -22)
[ 7.985805] nvgpu: disagrees about version of symbol device_create
[ 7.988268] nvgpu: Unknown symbol device_create (err -22)
[ 7.991064] nvgpu: disagrees about version of symbol dev_err
[ 7.994580] nvgpu: Unknown symbol dev_err (err -22)
[ 7.997347] nvgpu: disagrees about version of symbol device_destroy
[ 7.999932] nvgpu: Unknown symbol device_destroy (err -22)
[ 8.002763] nvgpu: disagrees about version of symbol device_remove_file
[ 8.005386] nvgpu: Unknown symbol device_remove_file (err -22)
[ 8.077795] userspace_alert: disagrees about version of symbol thermal_of_cooling_device_register
[ 8.080231] userspace_alert: Unknown symbol thermal_of_cooling_device_register (err -22)
[ 8.080589] bluedroid_pm: disagrees about version of symbol kobject_uevent_env
[ 8.080596] bluedroid_pm: Unknown symbol kobject_uevent_env (err -22)
[ 8.106906] userspace_alert: disagrees about version of symbol kobject_uevent_env
[ 8.109357] userspace_alert: Unknown symbol kobject_uevent_env (err -22)
[ 8.111772] userspace_alert: disagrees about version of symbol dev_err
[ 8.114105] userspace_alert: Unknown symbol dev_err (err -22)
[ 8.116492] userspace_alert: disagrees about version of symbol thermal_cooling_device_unregister
[ 8.118835] userspace_alert: Unknown symbol thermal_cooling_device_unregister (err -22)
[ 8.122749] random: crng init done
[ 8.124931] random: 7 urandom warning(s) missed due to ratelimiting
[ 8.154758] userspace_alert: disagrees about version of symbol thermal_of_cooling_device_register
[ 8.157262] userspace_alert: Unknown symbol thermal_of_cooling_device_register (err -22)
[ 8.159856] userspace_alert: disagrees about version of symbol kobject_uevent_env
[ 8.162346] userspace_alert: Unknown symbol kobject_uevent_env (err -22)
[ 8.162387] userspace_alert: disagrees about version of symbol dev_err
[ 8.162390] userspace_alert: Unknown symbol dev_err (err -22)
[ 8.162412] userspace_alert: disagrees about version of symbol thermal_cooling_device_unregister
[ 8.162415] userspace_alert: Unknown symbol thermal_cooling_device_unregister (err -22)
[ 8.182931] userspace_alert: disagrees about version of symbol thermal_of_cooling_device_register
[ 8.186042] userspace_alert: Unknown symbol thermal_of_cooling_device_register (err -22)
[ 8.186066] userspace_alert: disagrees about version of symbol kobject_uevent_env
[ 8.186069] userspace_alert: Unknown symbol kobject_uevent_env (err -22)
[ 8.186203] userspace_alert: disagrees about version of symbol dev_err
[ 8.186205] userspace_alert: Unknown symbol dev_err (err -22)
[ 8.186228] userspace_alert: disagrees about version of symbol thermal_cooling_device_unregister
[ 8.186230] userspace_alert: Unknown symbol thermal_cooling_device_unregister (err -22)
[ 8.272300] tegra_udrm: disagrees about version of symbol dev_warn
[ 8.272309] tegra_udrm: Unknown symbol dev_warn (err -22)
[ 8.272332] tegra_udrm: disagrees about version of symbol kobject_uevent_env
[ 8.272334] tegra_udrm: Unknown symbol kobject_uevent_env (err -22)
[ 8.452473] using random self ethernet address
[ 8.456207] using random host ethernet address
[ 9.065736] overlay: disagrees about version of symbol revert_creds
[ 9.074660] overlay: Unknown symbol revert_creds (err -22)
[ 9.078248] overlay: disagrees about version of symbol vfs_rename
[ 9.080462] using random self ethernet address
[ 9.080467] using random host ethernet address
[ 9.090596] overlay: Unknown symbol vfs_rename (err -22)
[ 9.090623] overlay: disagrees about version of symbol lookup_one_len
[ 9.090626] overlay: Unknown symbol lookup_one_len (err -22)
[ 9.090659] overlay: disagrees about version of symbol generic_readlink
[ 9.090661] overlay: Unknown symbol generic_readlink (err -22)
[ 9.090675] overlay: disagrees about version of symbol generic_permission
[ 9.090678] overlay: Unknown symbol generic_permission (err -22)
[ 9.090699] overlay: disagrees about version of symbol vfs_unlink
[ 9.090701] overlay: Unknown symbol vfs_unlink (err -22)
[ 9.090714] overlay: disagrees about version of symbol path_put
[ 9.090716] overlay: Unknown symbol path_put (err -22)
[ 9.090720] overlay: disagrees about version of symbol __put_cred
[ 9.090723] overlay: Unknown symbol __put_cred (err -22)
[ 9.090726] overlay: disagrees about version of symbol vfs_mkdir
[ 9.090728] overlay: Unknown symbol vfs_mkdir (err -22)
[ 9.090763] overlay: disagrees about version of symbol __check_sticky
[ 9.090765] overlay: Unknown symbol __check_sticky (err -22)
[ 9.090780] overlay: disagrees about version of symbol prepare_creds
[ 9.090782] overlay: Unknown symbol prepare_creds (err -22)
[ 9.090792] overlay: disagrees about version of symbol vfs_get_link
[ 9.090794] overlay: Unknown symbol vfs_get_link (err -22)
[ 9.090805] overlay: disagrees about version of symbol vfs_whiteout
[ 9.090807] overlay: Unknown symbol vfs_whiteout (err -22)
[ 9.090814] overlay: disagrees about version of symbol lock_rename
[ 9.090816] overlay: Unknown symbol lock_rename (err -22)
[ 9.090835] overlay: disagrees about version of symbol kern_path
[ 9.090837] overlay: Unknown symbol kern_path (err -22)
[ 9.090846] overlay: disagrees about version of symbol unlock_rename
[ 9.090848] overlay: Unknown symbol unlock_rename (err -22)
[ 9.090851] overlay: disagrees about version of symbol vfs_rmdir
[ 9.090853] overlay: Unknown symbol vfs_rmdir (err -22)
[ 9.090865] overlay: disagrees about version of symbol override_creds
[ 9.090867] overlay: Unknown symbol override_creds (err -22)
[ 9.090875] overlay: disagrees about version of symbol vfs_symlink
[ 9.090877] overlay: Unknown symbol vfs_symlink (err -22)
[ 9.090890] overlay: disagrees about version of symbol vfs_mknod
[ 9.090891] overlay: Unknown symbol vfs_mknod (err -22)
[ 9.090935] overlay: disagrees about version of symbol lookup_one_len_unlocked
[ 9.090938] overlay: Unknown symbol lookup_one_len_unlocked (err -22)
[ 9.090951] overlay: disagrees about version of symbol vfs_link
[ 9.090953] overlay: Unknown symbol vfs_link (err -22)
[ 9.090964] overlay: disagrees about version of symbol inode_permission
[ 9.090966] overlay: Unknown symbol inode_permission (err -22)
[ 9.090981] overlay: disagrees about version of symbol vfs_create
[ 9.090983] overlay: Unknown symbol vfs_create (err -22)
[ 9.534806] zram: disagrees about version of symbol crypto_alloc_base
[ 9.536882] zram: Unknown symbol crypto_alloc_base (err -22)
[ 9.538881] zram: disagrees about version of symbol crypto_destroy_tfm
[ 9.540828] zram: Unknown symbol crypto_destroy_tfm (err -22)
[ 11.482444] device-mapper: table: 253:0: thin-pool: unknown target type
[ 11.482753] device-mapper: ioctl: error adding target to table

Try to build the kernel modules with same host/toolchain as where you build the kernel image.

Hi,Wanyne
I unzipped the kernel source again,
I get the Image file is normal after the “make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_defconfig” and "make ARCH=arm64 O=$TEGRA_KERNEL_OUT ".
The Image is abnormal when add the “CONFIG_NET_DSA =y” to the kernel.

Did you also rebuild the kernel modules after you rebuild your kernel or not?

Do you understand what I am asking here?

I rebuild the all include Image and *.ko modules.
But , replace the Image to “./32.6.1/Linux_for_Tegra/kernel/ ” only .

Do you mean that the files in the directory(“./32.6.1/Linux_for_Tegra/rootfs/lib/modules/4.9.253-tegra/”) also need to be updated?

Yes…

1 Like