编译内核

  • 编译kernel

    cd linux-5.4.34
    make x86_64_defconfig
    make -j4
    
  • 准备initramfs

    tree initramfs
    initramfs
    ├── bin
    │   └── busybox
    └── init
    
  • 使用qemu启动内核

    qemu-system-x86_64 -serial mon:stdio -kernel ./linux-5.4.34/arch/x86/boot/bzImage -initrd initramfs.cpio.gz -append "console=ttyS0 nokaslr"
    

    env

results matching ""

    No results matching ""