参考网址: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
官方网址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)
在进行编译,成功编译