I followed the steps below to compile and install the kernel. I was able to compile and install the kernel successfully, but the graphical interface was not displayed. I can now control it only through the serial console。The steps are as follows:
export TEGRA_KERNEL_OUT=pwd
sudo make mrproper
make O=$TEGRA_KERNEL_OUT tegra_defconfig
make O=$TEGRA_KERNEL_OUT menuconfig
sudo nano .config# modify LOCALVERSION=‘-tegra’
Compile kernel image and kernel modules
time make -j12 Image
time make -j12 modules
Install modules and kernel image
$ sudo make modules_install
$ sudo cp arch/arm64/boot/Image /boot/Image
sudo depmod -a
sudo reboot