Ubuntu14.04 JMicron JMC250 Gigabit Ethernet Controller

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bolvtin/article/details/51713034


参考网址:https://bugs.launchpad.net/ubuntu/+source/linux/+bug/880316

方法一:

> sudo apt-get install linux-headers-$(uname -r) build-essential
> wget ftp://driver.jmicron.com.tw/Ethernet/Linux/jmebp-1.0.8.5.tar.bz
> tar xvf jmebp-1.0.8.5.tar.bz
> cd jmebp-1.0.8.5
> make
> sudo make install
> sudo update-initramfs -u



方法二:

写一个test.sh文件内容如下:

#!/bin/sh
apt-get install linux-headers-$(uname -r) build-essential
if [ $? -ne 0 ]
then
 echo "Failure to install headers and build-essential"
 exit 1
fi
#wget ftp://driver.jmicron.com.tw/Ethernet/Linux/jmebp-1.0.8.5.tar.bz
#if [ $? -ne 0 ]
#then
#	echo "Failure to wget jmicron drivers"
#	exit 2
#fi
#tar xvf jmebp-1.0.8.5.tar.bz
#if [ $? -ne 0 ]
#then
#	echo "Failure to untar jmicron drivers"
#	exit 3
#fi
cd jmebp-1.0.8.5
if [ $? -ne 0 ]
then
 echo "Failure to cd to jmicron directory"
 exit 4
fi
make
if [ $? -ne 0 ]
then
 echo "Failure to make jmicron drivers"
 exit 5
fi
make install
if [ $? -ne 0 ]
then
 echo "Failure to install jmicron drivers"
 exit 6
fi
update-initramfs -u
if [ $? -ne 0 ]
then
 echo "Failure to regenerate initramfs file"
 exit 7
fi
echo "Try rebooting to see if eth0 comes up"
exit 0



但是上述两个方法都会在编译时出现问题,需要更改jmebp-1.0.8.5文件夹下的,jme.c和jme.h文件

官方网址https://github.com/torvalds/linux/blob/master/drivers/net/ethernet/jme.c

修改:

在jme.c文件

最开始加上宏定义#define NETIF_F_CSUM_MASK (NETIF_F_V4_CSUM | NETIF_F_V4_CSUM)

在进行编译,成功编译



猜你喜欢

转载自blog.csdn.net/bolvtin/article/details/51713034