Ubuntu Kernel Tree Setup

    技术2022-05-19  22

    cd /usr/src

    sudo apt-get install mkinitramfs mkisofs

     

    sudo apt-get install build-essential kernel-package

     

    apt-cache search linux-source

     

    sudo apt-get install linux-source

     

    tar -jxvf linux-source-xxx.tar.bz2

     

    cd linux-source-xxx

     

    make menuconfig

     

    sudo make

     

    sudo make modules

     

    sudo make modules_install

     

    sudo cp .config /boot/config-xxx

    sudo mkinitramfs -o /boot/initrd-xxx.img xxx

    cp System.map /boot/System.map-xxx

     

    cp arch/x86/boot/bzImage /boot/vmlinuz-xxx

     

    sudo update-grub

     

    reboot


    最新回复(0)