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
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/
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.