gpt4 book ai didi

linux - 单个分区且无 initramfs linux 启动会出现内核 panic

转载 作者:太空宇宙 更新时间:2023-11-04 05:59:37 27 4
gpt4 key购买 nike

  • 使用gentoo规范为Thinkpad T430编译了内核

  • 挂载空的 ext4 硬盘并在其上创建 boot/目录,将 bzImage 和 System.map 移入其中

  • 使用“extlinux --install [挂载目录]/boot”安装 extlinux

  • 使用以下配置将 syslinux.cfg 放入其中:

    DEFAULT linux
    SAY Now booting the kernel from EXTLINUX...
    LABEL linux
    KERNEL /boot/bzImage
    APPEND root=/dev/sdb rw init=/bin/bash
  • 在安装的硬盘中创建 bin/文件夹,将 bash 二进制文件放入其中

此时我可以将内核引导到必须运行 init 的位置,但是它会出现 panic :

---[ Kernel Panic - not syncing: Requested init /bin/bash failed (error -2). ]---

最佳答案

4chan 在 10 分钟内解决了我的问题,我没有 libc.so 库

关于linux - 单个分区且无 initramfs linux 启动会出现内核 panic ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53257103/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com