CURRENT_DIR=$PWD
cd JP6/Linux_for_Tegra/source
./generic_rt_build.sh "disable"
export CROSS_COMPILE=$HOME/l4t-gcc/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-
make -C kernel
export INSTALL_MOD_PATH=$CURRENT_DIR/JP6/Linux_for_Tegra/rootfs/
sudo -E make install -C kernel
cp kernel/kernel-jammy-src/arch/arm64/boot/Image $CURRENT_DIR/JP6/Linux_for_Tegra/kernel/Image
cd JP6/Linux_for_Tegra/source
export IGNORE_PREEMPT_RT_PRESENCE=1
export CROSS_COMPILE=$HOME/l4t-gcc/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-
export KERNEL_HEADERS=$PWD/kernel/kernel-jammy-src
make modules
sudo -E make modules_install
cd ..
sudo ./tools/l4t_update_initrd.sh
cd JP6/Linux_for_Tegra/source
export CROSS_COMPILE=$HOME/l4t-gcc/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-
export KERNEL_HEADERS=$PWD/kernel/kernel-jammy-src
make dtbs
cp nvidia-oot/device-tree/platform/generic-dts/dtbs/* $CURRENT_DIR/JP6/Linux_for_Tegra/kernel/dtb/
The construction was successful, but when I executed make menuconfig in source/kernel/kernel-jammy-src again, many default values were cancelled.
Why does this problem occur?
How to fix or restore default values
So I need to execute make savedefconfig before make -C kernel,
After all steps are completed,
Execute cp defconfig arch/arm/configs/my_cool_defconfig again?
make[2]: *** No rule to make target 'debian/canonical-certs.pem', needed by 'certs/x509_certificate_list'. Stop.
make[2]: *** Waiting for unfinished jobs....
還有你的config檔看起來問題很多
.config:5093:warning: symbol value 'm' invalid for GPIO_TPS68470
.config:6287:warning: symbol value 'm' invalid for RADIO_ADAPTERS
.config:6911:warning: symbol value 'm' invalid for DRM_GEM_SHMEM_HELPER
.config:7634:warning: symbol value 'm' invalid for SND_SOC_SOF_DEBUG_PROBES
.config:7677:warning: symbol value 'm' invalid for SND_SOC_SOF_HDA_PROBES
.config:10916:warning: override: SQUASHFS_DECOMP_MULTI changes choice state
.config:10917:warning: override: SQUASHFS_DECOMP_MULTI_PERCPU changes choice state
Hi @DaveYYY
I did not use make savedefconfig
Just add a few new additions to arch/arm64/configs/defconfig
No errors occurred in Build Kernel, DTBs, and Flash.
It’s because there are more than 5,000 defconfig projects generated by make savedefconfig
The default is only 1330