Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JMicron千兆网卡不能识别和驱动的问题 #4543

Closed
carlyang1986 opened this issue May 5, 2020 · 3 comments
Closed

JMicron千兆网卡不能识别和驱动的问题 #4543

carlyang1986 opened this issue May 5, 2020 · 3 comments

Comments

@carlyang1986
Copy link

我的笔记本电脑自带了一个JMicron PCI Express Gigabit Ethernet Adapter 的千兆网卡,但是我没能在make menu_config 中找到这个网卡的驱动,编译后的镜像也无法识别该网卡。我在kernel.org的4.14以及4.19版本的driver/net/ethernet中都查到了该网卡的驱动jme.c和jme.h。想请问一下如何编译才能够识别出该网卡。

@dongjuanyong
Copy link
Contributor

dongjuanyong commented May 5, 2020

把下面这一段加在 package/kernel/linux/modules/netdevices.mk 里面:

define KernelPackage/jme
  SUBMENU:=$(NETWORK_DEVICES_MENU)
  TITLE:=JMicron(R) PCI-Express Gigabit Ethernet support
  DEPENDS:=@PCI_SUPPORT +kmod-mii
  KCONFIG:=CONFIG_JME
  FILES:=$(LINUX_DIR)/drivers/net/ethernet/jme.ko
  AUTOLOAD:=$(call AutoProbe,jme)
endef

define KernelPackage/jme/description
 Kernel modules for JMicron(R) PCI-Express Gigabit Ethernet adapters
endef

$(eval $(call KernelPackage,jme))

make menuconfig里面Kernel modules->Network Devices->kmod-jme按y打上*

@coolsnowwolf
Copy link
Owner

很少见这个型号

@carlyang1986
Copy link
Author

把下面这一段加在 package/kernel/linux/modules/netdevices.mk 里面:

define KernelPackage/jme
  SUBMENU:=$(NETWORK_DEVICES_MENU)
  TITLE:=JMicron(R) PCI-Express Gigabit Ethernet support
  DEPENDS:=@PCI_SUPPORT +kmod-mii
  KCONFIG:=CONFIG_JME
  FILES:=$(LINUX_DIR)/drivers/net/ethernet/jme.ko
  AUTOLOAD:=$(call AutoProbe,jme)
endef

define KernelPackage/jme/description
 Kernel modules for JMicron(R) PCI-Express Gigabit Ethernet adapters
endef

$(eval $(call KernelPackage,jme))

make menuconfig里面Kernel modules->Network Devices->kmod-jme按y打上*

感谢指导,现在驱动正常打进去了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants