Linux Kernel?

Build (on Ubuntu)

  1. 패키지 설치

    sudo apt update
    sudo apt install build-essential libncurses5 libncurses5-dev bin86 kernel-package libssl-dev bison flex libelf-dev ncurses-dev
    
  2. 커널 다운로드 및 풀기

    #root
    cd /usr/src
    #Find Link in kernel.org
    wget <https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.0.6.tar.xz>
    tar -zxvf linux-6.0.6.tar.xz
    
  3. 기존 커널 설정 복사 및 불러오기

    #Copy configs from an existing kernel
    cp /boot/config-$(uname -r) /usr/src/linux-*/config 
    
    sudo make menuconfig
    
    1. Load → Ok (.config) → Exit

      Untitled

  4. sudo make-kpkg -j$``((nproc + 1)) --initrd --revision=1.0 kernel_image