当我试图编译内核版本3.17.0-Rc5时,会出现以下错误:
Error! Bad return status for module build on kernel: 3.17.0-rc5+ (x86_64)
为什么我会得到这个错误,这意味着什么?
全部产出:
sh ./arch/x86/boot/install.sh 3.17.0-rc5+ arch/x86/boot/bzImage \
System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.17.0-
我有一个关于linux设备驱动程序的一般性问题。更常见的情况是,我弄不清楚在linux设备驱动程序中允许或不允许执行哪些操作?
是否有任何规则或查找列表可遵循?
例如,下面的例子是不允许的?
msleep(1000);
al = kmallock(sizeof(val));
printk(KERN_ALERT "faild to print\n";
ret = adc_get_val()*0.001;
这是一个bug https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1412057
#prime-select nvidia
Info: the current alternatives in use are: ['mesa', 'mesa']
Info: selecting nvidia-346 for the nvidia profile
update-alternatives: using /usr/lib/nvidia-346/ld.so.conf to provide /etc/ld
在Ubuntu18.04上,当我想安装推荐的Nvidia驱动程序时,我会得到这个。
sudo apt install nvidia-340
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libargtable2-0 libass5 libavcodec-ffmpeg56 libavdevi