Step 3 : Build Linux Kernel ============================== .. tab-set:: .. tab-item:: Build Linux Kernel * In this program, you are going to learn .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow * How to ? .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`Build Linux Kernel ` .. _barelinux_qemu_rpi4b_step3_0: .. tab-set:: .. tab-item:: Build Linux Kernel * Create a config file with cross-compilation architecture. .. code-block:: c $ ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- make defconfig * Use kvm_guest config as the base config which is compatible for qemu. .. code-block:: c $ ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- make kvm_guest.config * Build the kernel .. code-block:: c $ ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- make -j8 * Copy the image to qemu_rpi_3b directory. .. code-block:: c $ cp arch/arm64/boot/Image $HOME/qemu_rpi_3b