小编wjr*_*ber的帖子

编译的内核 4.19 将无法启动:“内核恐慌不同步:系统在内存上死锁”

我正在 Ubuntu 14.04 上编译内核 4.19,因为我有一个添加系统调用的任务,但是当我尝试启动这个内核时出现错误:

Kernel panic - not syncing: System is deadlocked on memory
Run Code Online (Sandbox Code Playgroud)

出现此消息后没有任何反应

启动顺序在死锁错误时停止

  1. 我已经多次编译内核并安装了模块。旧终端中没有显示错误。
  2. 我使用 GParted 来扩大我的/dev/sda1,我已经建立了一个交换区,一切都完成了。
  3. 库存 Ubuntu 14.04 内核启动良好。我可以顺利登录并使用。
  4. 我使用的命令:

    sudo cp /boot/config-**** .config
    sudo make menuconfig               # I did not change anything here
    sudo make -j4
    sudo make modules_install
    sudo make install
    reboot
    
    Run Code Online (Sandbox Code Playgroud)
  5. 对于系统调用,我只是在以下文件中添加了一个非常简单的 helloworld sys.c

    asmlinkage int sys_mysyscall(int arg){printk("hello %d\n",arg);return 0;}
    
    Run Code Online (Sandbox Code Playgroud)

    我已将其添加到syscalls.hand 中syscall_64.tbl

compiling ubuntu kernel memory deadlock

5
推荐指数
1
解决办法
8852
查看次数

标签 统计

compiling ×1

deadlock ×1

kernel ×1

memory ×1

ubuntu ×1