qemu 调试内核

最近开始启动调试iptables的工作,需要搭建一个内核环境。

问题:

  1. can't access tty,job control turned off
    进入busybox源码中,make menuconfig; 2. 找到选项中的 Applets->Shells->ash->job control,取消,重新编译; 3. 使用新的busybox测试,OK。

  2. 终端不能正常的工作
    在启动内核后,发现终端不能正常的工作,输入的字符会少或者不全。
    在/etc/inittab文件中,去掉::respawn:-bin/sh

  3. 内核目录
    rmmod: can't change directory to '/lib/modules': No such file or directory
    在文件系统中创建目录,/lib/modules/4.0.0+/

猜你喜欢

转载自www.cnblogs.com/linengier/p/11917291.html