kernel-3.10.0-693.el7.centos.toa.x86_64.rpm
網盤連接:https://pan.baidu.com/s/1cXB_3qPOnTiIGijFlQ_uzw
將文件上傳到服務器。
直接rpm安裝會報錯,以下:linux
[root@localhost CentOS 7.2 64]# rpm -ivh kernel-3.10.0-693.el7.centos.toa.x86_64.rpm error: Failed dependencies: dracut >= 033-502 is needed by kernel-3.10.0-693.el7.centos.toa.x86_64 linux-firmware >= 20170606-55 is needed by kernel-3.10.0-693.el7.centos.toa.x86_64 xfsprogs < 4.3.0 conflicts with kernel-3.10.0-693.el7.centos.toa.x86_64 kmod < 20-9 conflicts with kernel-3.10.0-693.el7.centos.toa.x86_64 kexec-tools < 2.0.14-3 conflicts with kernel-3.10.0-693.el7.centos.toa.x86_64 [root@localhost CentOS 7.2 64]#
須要先yum安裝一些服務,而後再rpm安裝。git
yum -y install dracut linux-firmware xfsprogs kmod kexec-tools rpm -ivh kernel-3.10.0-693.el7.centos.toa.x86_64.rpm
重啓後經過uname -r 查看版本,從3.10.0-327.el7.x86_64
變成了3.10.0-693.el7.centos.toa.x86_64
github
執行lsmod | grep toa
檢查 toa 模塊是否加載,沒有加載的話,可經過 modprobe toa
命令開啓。
正常加載toa模塊,回顯以下:vim
[root@localhost ~]# lsmod | grep toa toa 12745 0 [root@localhost ~]#
能夠實行開機自動加載toa模塊centos
vim /etc/rc.d/rc.local modprobe toa
kernel-2.6.32-220.23.2.ali_github.el6.x86_64.rpm
網盤連接:https://pan.baidu.com/s/12vscGK7xR19HSOjb-StcNw
無論是虛擬機或者是物理機,都有一下報錯服務器
CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 net/built-in.o: In function `inet6_getname_toa': /home/pukong/rpms/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64/net/toa/toa.c:156: undefined reference to `inet6_getname' net/built-in.o: In function `tcp_v6_syn_recv_sock_toa': /home/pukong/rpms/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64/net/toa/toa.c:221: undefined reference to `tcp_v6_syn_recv_sock' net/built-in.o: In function `hook_toa_functions': /home/pukong/rpms/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64/net/toa/toa.c:258: undefined reference to `inet6_stream_ops' /home/pukong/rpms/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64/net/toa/toa.c:259: undefined reference to `inet6_stream_ops' /home/pukong/rpms/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64/net/toa/toa.c:259: undefined reference to `inet6_getname' /home/pukong/rpms/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64/net/toa/toa.c:272: undefined reference to `ipv6_specific' /home/pukong/rpms/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64/net/toa/toa.c:273: undefined reference to `ipv6_specific' /home/pukong/rpms/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64/net/toa/toa.c:273: undefined reference to `tcp_v6_syn_recv_sock' net/built-in.o: In function `unhook_toa_functions': /home/pukong/rpms/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64/net/toa/toa.c:297: undefined reference to `inet6_stream_ops' /home/pukong/rpms/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64/net/toa/toa.c:297: undefined reference to `inet6_getname' /home/pukong/rpms/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64/net/toa/toa.c:309: undefined reference to `ipv6_specific' /home/pukong/rpms/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64/net/toa/toa.c:309: undefined reference to `tcp_v6_syn_recv_sock' make: *** [.tmp_vmlinux1] Error 1 [root@lvs-server linux-2.6.32-220.23.1.el6.x86_64]#
rpm -ivh --oldpackage 'kernel-2.6.32-220.23.1.el6.toa.x86_64.rpm'
成功過
注:上述命令只在vm虛擬機上測試成功,在hyper-v和物理機上均失敗,hyper-v是在編譯成功以後,出現網卡丟失的現象,物理機是沒法啓動centos6.5。微信
2018年8月29日:通過測試,在hyper-v中,CentOS6.x的系統,均存在編譯完內核後,網卡丟失的問題。tcp
微信公衆號,隨便發點有意思的東西ide