From e6cd6c0ff67764b3289a1ef0ec51d1c6b5a71f7e Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Wed, 5 Feb 2014 09:09:26 +1100 Subject: [PATCH 1/3] linux: compile sunxi-emac into kernel for cubieboard The network driver needs to be compiled into the kernel for booting from network over NFS. --- conf/machine/cubieboard.conf | 4 ---- recipes-kernel/linux/linux/cubieboard/defconfig | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/conf/machine/cubieboard.conf b/conf/machine/cubieboard.conf index 1917cdf..a43ba18 100644 --- a/conf/machine/cubieboard.conf +++ b/conf/machine/cubieboard.conf @@ -17,10 +17,6 @@ SERIAL_CONSOLE = "115200 ttyS0" MACHINE_EXTRA_RRECOMMENDS += "\ kernel-module-sw-ahci-platform \ - kernel-module-sunxi-emac \ " -#autoload ethernet module at boot -module_autoload_sunxi_emac = "sunxi_emac" - MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa" diff --git a/recipes-kernel/linux/linux/cubieboard/defconfig b/recipes-kernel/linux/linux/cubieboard/defconfig index 55d7d36..01fa1e2 100644 --- a/recipes-kernel/linux/linux/cubieboard/defconfig +++ b/recipes-kernel/linux/linux/cubieboard/defconfig @@ -123,7 +123,7 @@ CONFIG_SATA_AHCI_PLATFORM=y CONFIG_SW_SATA_AHCI_PLATFORM=m CONFIG_NETDEVICES=y CONFIG_TUN=m -CONFIG_SUNXI_EMAC=m +CONFIG_SUNXI_EMAC=y CONFIG_PHYLIB=y CONFIG_USB_KAWETH=m CONFIG_USB_PEGASUS=m From e7d8f0c85621ff0cadc903be7ab1e34f419d126e Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Wed, 5 Feb 2014 09:10:33 +1100 Subject: [PATCH 2/3] linux: compile sunxi-emac into kernel for cubieboard2 The network driver needs to be compiled into the kernel for booting from network over NFS. --- conf/machine/cubieboard2.conf | 7 ------- recipes-kernel/linux/linux/cubieboard2/defconfig | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/conf/machine/cubieboard2.conf b/conf/machine/cubieboard2.conf index f77427f..1a98983 100644 --- a/conf/machine/cubieboard2.conf +++ b/conf/machine/cubieboard2.conf @@ -15,11 +15,4 @@ UBOOT_LOADADDRESS = "0x40008000" SERIAL_CONSOLE = "115200 ttyS0" -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "\ - kernel-module-sunxi-emac \ - " - -#autoload ethernet module at boot -module_autoload_sunxi_emac = "sunxi_emac" - MACHINE_FEATURES = "screen apm usbgadget usbhost vfat" diff --git a/recipes-kernel/linux/linux/cubieboard2/defconfig b/recipes-kernel/linux/linux/cubieboard2/defconfig index 7cb6ab9..2bdad9d 100644 --- a/recipes-kernel/linux/linux/cubieboard2/defconfig +++ b/recipes-kernel/linux/linux/cubieboard2/defconfig @@ -1436,7 +1436,7 @@ CONFIG_NET_VENDOR_SMSC=y # CONFIG_SMSC911X is not set CONFIG_NET_VENDOR_STMICRO=y # CONFIG_STMMAC_ETH is not set -CONFIG_SUNXI_EMAC=m +CONFIG_SUNXI_EMAC=y CONFIG_PHYLIB=y # From 1b9656c39dc6c7151982f969e6a83892190a381d Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Wed, 5 Feb 2014 09:10:48 +1100 Subject: [PATCH 3/3] linux: compile sunxi-emac into kernel for cubietruck The network driver needs to be compiled into the kernel for booting from network over NFS. --- conf/machine/cubietruck.conf | 7 ------- recipes-kernel/linux/linux/cubietruck/defconfig | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/conf/machine/cubietruck.conf b/conf/machine/cubietruck.conf index f0bbef7..ce25c45 100644 --- a/conf/machine/cubietruck.conf +++ b/conf/machine/cubietruck.conf @@ -15,11 +15,4 @@ UBOOT_LOADADDRESS = "0x40008000" SERIAL_CONSOLE = "115200 ttyS0" -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "\ - kernel-module-sunxi-emac \ - " - -#autoload ethernet module at boot -module_autoload_sunxi_emac = "sunxi_emac" - MACHINE_FEATURES = "screen apm usbgadget usbhost vfat" diff --git a/recipes-kernel/linux/linux/cubietruck/defconfig b/recipes-kernel/linux/linux/cubietruck/defconfig index 0634954..73ec075 100644 --- a/recipes-kernel/linux/linux/cubietruck/defconfig +++ b/recipes-kernel/linux/linux/cubietruck/defconfig @@ -477,6 +477,7 @@ CONFIG_NETDEVICES=y CONFIG_NETCONSOLE=y CONFIG_NETCONSOLE_DYNAMIC=y CONFIG_TUN=m +CONFIG_SUNXI_EMAC=y CONFIG_PHYLIB=y CONFIG_MICREL_KS8995MA=m CONFIG_PLIP=m