debian 9 (stretch)中编译nvidia驱动

89 篇文章 1 订阅
84 篇文章 4 订阅

通过netboot方式启动的终端,在终端上编译需要的nvidia驱动(NVIDIA-Linux-x86_64-430.40.run)时,没有出现安装提示。因此做如下操作
1,由于终端启动后是只读文件系统(nfs挂载时的属性导致)
vim /etc/exports
内容:
/opt/live/binary(这个路径随便设置) *(ro,no_root_squashfs,secure,sync,no_subtree_check)
这个属性设置了只读,导致终端无法通过修改etc/modprobe.d/blacklist-nvidia.conf方式,屏蔽自带的驱动:
blacklist nouveau
options nouveau modeset=0

#重新生成 kernel initramfs

#update-initramfs –u

2,修改netboot启动方式中的live.cfg文件:添加参数nomodeset
append boot =live netboot=nfs nfsroot=服务器IP地址:tftp路径 nomodeset queit spash
然后重启服务:systemctl restart tftpd-hpa
接着重新启动终端,即可正常进入桌面系统,为了编译nvidia驱动,需要进进入命令行模式:ctrl+alt+f1
以下操作使用超级用户权限:
sudo -i 进入超级用户权限
systemctl stop lightdm (关停这个服务,该服务和gdm3类似,在stretch版本特有,目前还不清楚debian 10是不是该服务)
同时查看是否有自带的nouveau驱动:
lsmod | grep nouveau
若有的话,需要先卸载nouveau:rmmod nouveau
chmod +x NVIDIA-Linux-x86_64-430.40.run (提前把nvidia驱动加载终端上)
./NVIDIA-Linux-x86_64-430.40.run
接着,出现以下提示:
would you like to resister the kernel module sources with DKMS? this wille allow DKMS to automatically build a new module ,if you install a different kernel later ? (此处我选了否)
然后出现warning:。。。。。 直接点击OK
出现:
an incomplete installation of libglvnd was found,… (我选择了 don’t install
)
出现:would you like to run the nvidia-xconfig utility to automatically update your x configuration file so that the nvidia x driver will be used …(选择yes)
等待完成。
附件:安装日志(https://blog.csdn.net/a985588764/article/details/100103749)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值