Under Linux_for_Tegra/source/kernel/kernel-jammy-src/:
make ARCH=arm64 LOCALVERSION=-davey-tegra defconfig
make ARCH=arm64 LOCALVERSION=-davey-tegra menuconfig
make ARCH=arm64 LOCALVERSION=-davey-tegra -j8 Image
make ARCH=arm64 LOCALVERSION=-davey-tegra -j8 modules
sudo make modules_install INSTALL_MOD_PATH=/Linux_for_Tegra/rootfs
(Manually copy Image into Linux_for_Tegra/kernel/Image and Linux_for_Tegra/rootfs/boot/Image)
Under Linux_for_Tegra/source/:
export KERNEL_HEADERS=$PWD/kernel/kernel-jammy-src
make modules
export INSTALL_MOD_PATH=Linux_for_Tegra/rootfs
sudo -E make modules_install
Under Linux_for_Tegra/:
sudo ./tools/l4t_update_initrd.sh
Then flash the device.
出现错误提示,提示为
arch/arm64/Makefile:36: Detected assembler with broken .inst; disassembly will be unreliable
SYNC include/config/auto.conf.cmd
arch/arm64/Makefile:36: Detected assembler with broken .inst; disassembly will be unreliable
warning: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
warning: LSE atomics not supported by binutils
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
gcc: error: unrecognized command-line option ‘-mlittle-endian’
make[1]: *** [scripts/Makefile.build:295: scripts/mod/empty.o] Error 1
make[1]: *** Waiting for unfinished jobs....
gcc: error: unrecognized command-line option ‘-mlittle-endian’
make[1]: *** [scripts/Makefile.build:122: scripts/mod/devicetable-offsets.s] Error 1
make: *** [Makefile:1265: prepare0] Error 2
Run the following commands to install the kernel and in-tree modules:
$ export INSTALL_MOD_PATH=<install-path>/Linux_for_Tegra/rootfs/
$ sudo -E make install -C kernel
$ cp kernel/kernel-jammy-src/arch/arm64/boot/Image \
<install-path>/Linux_for_Tegra/kernel/Image