Ubuntu14.04 JMicron JMC250 Gigabit Ethernet Controller


参考网址: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)

在进行编译,成功编译



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值