L4T r35.4.1 no Linux_for_Tegra/rootfs/usr/lib/modules folder

Hi,
I plan to upgrade my Orin NX from r35.3.1 to r35.4.1.
I follow the steps to make kernel. Kernel Customization — Jetson Linux Developer Guide documentation

After run bulid script. It’s successful.
./nvbuild.sh -o $PWD/kernel_out

But the 5th step failed as there isn’t Linux_for_Tegra/rootfs/usr/lib/modules folder.

Replace Linux_for_Tegra/rootfs/usr/lib/modules/$(uname -r)/kernel/drivers/gpu/nvgpu/nvgpu.ko with a copy of this file:
$kernel_out/drivers/gpu/nvgpu/nvgpu.ko

Just a reminder. These steps are running on x86 host PC but not your jetson.

yes,native ubuntu 18.04

Then what do you have in your Linux_for_Tegra/rootfs/?

there isn’t modules folder as below pic shows.

I extract tar files again, and still not find modules folder.
$ tar xf ${L4T_RELEASE_PACKAGE}
$ sudo tar xpf ${SAMPLE_FS_PACKAGE} -C Linux_for_Tegra/rootfs/

抱歉, 我現在才注意到文件給的路徑錯了

/lib/modules 沒有/usr.

我們下一版文件會更新

ok. but in r35.3.1 folder, it has /usr.

For r35.4.1,
For ubuntu 18.04 host, I can’t find lib/modules.
For ubuntu 20.04 host, I can find lib/modules.

請問一下你到底在找什麼…?

這跟你ubuntu host根本一點關係都沒有…
我們在講Linux_for_Tegra/rootfs, 這是從同一包package裡面解壓縮出來的東西. 如果你兩台host只有其中一台有, 代表另外一台的BSP準備步驟有漏…

為了避免你依然不知道在找什麼東西…
這是jetpack5.1.1版本的kernel module位置

$JetPack_5.1.1_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/rootfs/lib/modules$ ls
5.10.104-tegra

這是jetpack5.1.2版本的kernel module位置

$JetPack_5.1.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/rootfs/lib/modules$ ls
5.10.120-tegra

To be more clear, I extract r35.4.1 tar files on Ubuntu 18.04 and Ubuntu 20.04 separately.
$ tar xf ${L4T_RELEASE_PACKAGE}
$ sudo tar xpf ${SAMPLE_FS_PACKAGE} -C Linux_for_Tegra/rootfs/
The results is different.
For ubuntu 18.04 host, I can’t find lib/modules.
For ubuntu 20.04 host, I can find lib/modules.

Maybe my 18.04 host environment is destroyed. But it’s good before when using r35.3.1 to build kernel and flash to board.
Anyway, r35.4.1 works now on my 20.04 host.

Thank you, Wayne.

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