配置CONFIG_KPROBES=y 选项后,启动后异常

Hi NV team:
我在使用jetpact 5.1.3 版本,使用kernel 源码加入了我们自己的代码,编译出Image文件,但遇到了一个问题。
如果我屏蔽了kernel/kernel-5.10/arch/arm64/configs/tegra_defconfig 文件中的CONFIG_KPROBES=y之后,启动正常;
但如果打开CONFIG_KPROBES=y配置后,编译出的Image在启动后,会报如下的异常:


[   12.406282] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.406287] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.406290] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.407211] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.407917] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.408050] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.408615] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.409563] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.410238] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.412747] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.413805] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.413906] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.414093] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.420991] snd_soc_spdif_tx: disagrees about version of symbol module_layout
[   12.447628] snd_soc_simple_card_utils: disagrees about version of symbol module_layout
[   12.648803] nvadsp: disagrees about version of symbol module_layout
[   12.656724] sha1_ce: disagrees about version of symbol module_layout
[   12.656730] sha1_ce: disagrees about version of symbol module_layout
[   12.657971] sha1_ce: disagrees about version of symbol module_layout
[   12.658642] sha1_ce: disagrees about version of symbol module_layout
[   12.658838] sha1_ce: disagrees about version of symbol module_layout
[   12.659558] sha1_ce: disagrees about version of symbol module_layout
[   12.660326] sha1_ce: disagrees about version of symbol module_layout
[   12.660456] sha1_ce: disagrees about version of symbol module_layout
[   12.715213] sha256_arm64: disagrees about version of symbol module_layout
[   12.715215] sha256_arm64: disagrees about version of symbol module_layout
[   12.715216] sha256_arm64: disagrees about version of symbol module_layout
[   12.715502] sha256_arm64: disagrees about version of symbol module_layout
[   12.716020] sha256_arm64: disagrees about version of symbol module_layout
[   12.716690] sha256_arm64: disagrees about version of symbol module_layout
[   12.716933] sha256_arm64: disagrees about version of symbol module_layout
[   12.717687] sha256_arm64: disagrees about version of symbol module_layout
[   12.725306] ghash_ce: disagrees about version of symbol module_layout
[   12.725308] ghash_ce: disagrees about version of symbol module_layout
[   12.725498] ghash_ce: disagrees about version of symbol module_layout
[   12.726364] ghash_ce: disagrees about version of symbol module_layout
[   12.727075] ghash_ce: disagrees about version of symbol module_layout
[   12.727623] ghash_ce: disagrees about version of symbol module_layout
[   12.728837] ghash_ce: disagrees about version of symbol module_layout
[   12.733094] ghash_ce: disagrees about version of symbol module_layout
[   12.738813] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.738815] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.738976] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.739664] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.740020] hid_logitech_dj: disagrees about version of symbol module_layout
[   12.740563] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.741436] hid_logitech_dj: disagrees about version of symbol module_layout
[   12.741634] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.742179] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.743089] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.743254] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.743798] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.744720] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.745077] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.745452] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.747294] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.754829] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.758993] input_leds: disagrees about version of symbol module_layout
[   12.762257] aes_ce_cipher: disagrees about version of symbol module_layout
[   12.798039] cfg80211: disagrees about version of symbol module_layout
[   13.186403] binfmt_misc: disagrees about version of symbol module_layout
[   13.188768] using random self ethernet address
[   13.199717] using random host ethernet address
[   13.271612] binfmt_misc: disagrees about version of symbol module_layout
[   13.303883] binfmt_misc: disagrees about version of symbol module_layout
[   13.309351] loop: disagrees about version of symbol module_layout
[   13.335169] binfmt_misc: disagrees about version of symbol module_layout
[   13.428171] loop: disagrees about version of symbol module_layout
[   14.570742] reed_solomon: disagrees about version of symbol module_layout
[   14.647912] zram: disagrees about version of symbol module_layout
[   14.931788] mtd: disagrees about version of symbol module_layout
[   14.961858] realtek: disagrees about version of symbol module_layout


附件是异常日志信息
异常日志信息.txt (100.1 KB)

那只是你的kernel module沒有更新而已
module和kernel image的版本沒對上所以開機報錯

https://docs.nvidia.com/jetson/archives/r35.5.0/DeveloperGuide/SD/Kernel/KernelCustomization.html#building-the-kernel
你要跑這一步才會安裝in-tree modules,不能只換kernel image

sudo make ARCH=arm64 O=$TEGRA_KERNEL_OUT modules_install INSTALL_MOD_PATH=<top>/Linux_for_Tegra/rootfs/

這個應該是Linux的基本知識,和Jetson沒有什麼關係

你要不要檢查一下install modules的時候有沒有出現開機報錯的那幾個檔案 確定它們有被裝進去
還有也先把/lib/modules/裡default BSP的那一包modules刪掉 免得跟你自己重build的有衝突

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