All of lore.kernel.org
 help / color / mirror / Atom feed
* How to add WiFi support
@ 2013-07-03 23:36 Sean Liming
  2013-07-04 18:25 ` Sean Liming
  0 siblings, 1 reply; 3+ messages in thread
From: Sean Liming @ 2013-07-03 23:36 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2353 bytes --]

I have searched and spotted different discussion on adding wireless support
but have not found a solution. I have a Intel Centrino Wireless-N 1000 card
plugged into a Intel Atom N2800 (Cedar Trail) platform. I am using Yocto
Project 1.3.1, Cedar Trail BSP, core-image-x11

BB_VERSION        = "1.16.0"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "cedartrail-nopvr"
DISTRO            = "poky"
DISTRO_VERSION    = "1.3.1"
TUNE_FEATURES     = "m32 core2"
Core-image-x11

Following the instructions to use menuconfig and create configuration
fragment, I have enabled the various kernel options to include the iwlagn
driver. The configuration fragment called mydiff.cfg (attached) was placed
in the meta-intel/meta-cedartrail/recipes-kernel/Linux/files folder. The
Linux-yocto_3.0.bbappend was modified with the following:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://mydiff.cfg"

After building the image, ifconfig didn't show wireless and neither does
iwconfig. The adapter is found when I do a lspci. The kernel wireless
website - http://wireless.kernel.org/en/users/Drivers/iwlwifi  lists a
firmware package needed for installation. I tried to create a recipe to
place the firmware file in the /lib/firmware folder, but it doesn't get put
in. The lack of what to do for the LICENSE might be a problem. Here is the
recipe:

DESCRIPTION = "Intel WiFi 1000 Adapter"
LICENSE = "GPL"-?????
LIC_FILES_CHKSUM =
"file://${WORKDIR}/LICENSE.iwlwifi-1000-ucode;md5=aa2bfb02c7e0712680334b9f47
f8dc61"

SRC_URI = "file://LICENSE.iwlwifi-1000-ucode \
	   file://iwlwifi-1000-3.ucode \ 
	   "
FWPATH = "lib/firmware"
do_install_apped() {
	install -m 0644 LICENSE.iwlwifi-1000-ucode ${D}${FWPATH}
	install -m 0644 iwlwifi-1000-3.ucode ${D}${FWPATH}
}

I manually created the /lib/firmware folder and copied the firmware file
(iwlwifi-1000-3.ucode) to the folder. Nothing changed after a reboot. I also
tried a Intel Centrino Ultimate-N 6300 same result.

1. Was a kernel modification the right direction to enable support for this
driver?
2. Did I miss anything with regards to the configuration fragment setup?
3. Is the firmware really needed? If so why is there no /lib/firmware folder
and what should be used for the LICENSE ?


Regards,

Sean Liming


[-- Attachment #2: mydiff.cfg --]
[-- Type: application/octet-stream, Size: 2354 bytes --]

++ .confignew	2013-07-03 14:56:58.000000000 -0700
# CONFIG_NETFILTER_XT_TARGET_LED is not set
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_CFG80211=y
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
# CONFIG_CFG80211_REG_DEBUG is not set
CONFIG_CFG80211_DEFAULT_PS=y
# CONFIG_CFG80211_DEBUGFS is not set
# CONFIG_CFG80211_INTERNAL_REGDB is not set
CONFIG_CFG80211_WEXT=y
CONFIG_WIRELESS_EXT_SYSFS=y
CONFIG_MAC80211=y
CONFIG_MAC80211_HAS_RC=y
# CONFIG_MAC80211_RC_PID is not set
CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_MAC80211_RC_MINSTREL_HT=y
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
# CONFIG_MAC80211_MESH is not set
CONFIG_MAC80211_LEDS=y
# CONFIG_MAC80211_DEBUGFS is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
# CONFIG_LIBERTAS_THINFIRM is not set
# CONFIG_AT76C50X_USB is not set
# CONFIG_USB_NET_RNDIS_WLAN is not set
# CONFIG_RTL8180 is not set
# CONFIG_RTL8187 is not set
# CONFIG_ADM8211 is not set
# CONFIG_MAC80211_HWSIM is not set
# CONFIG_MWL8K is not set
# CONFIG_ATH_COMMON is not set
# CONFIG_B43 is not set
# CONFIG_B43LEGACY is not set
# CONFIG_IPW2100 is not set
# CONFIG_IPW2200 is not set
CONFIG_IWLAGN=y

#
# Debugging Options
#
# CONFIG_IWLWIFI_DEBUG is not set
# CONFIG_IWLWIFI_DEVICE_TRACING is not set
# CONFIG_IWLWIFI_DEVICE_SVTOOL is not set
# CONFIG_IWL_P2P is not set
# CONFIG_IWL4965 is not set
# CONFIG_IWL3945 is not set
# CONFIG_IWM is not set
# CONFIG_LIBERTAS is not set
# CONFIG_HERMES is not set
# CONFIG_P54_COMMON is not set
# CONFIG_RT2X00 is not set
# CONFIG_RTL8192CE is not set
# CONFIG_RTL8192SE is not set
# CONFIG_RTL8192CU is not set
# CONFIG_WL1251 is not set
# CONFIG_WL12XX_MENU is not set
# CONFIG_ZD1211RW is not set
# CONFIG_MWIFIEX is not set
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y

#
# LED drivers
#
# CONFIG_LEDS_ALIX2 is not set
# CONFIG_LEDS_CLEVO_MAIL is not set
# CONFIG_LEDS_INTEL_SS4200 is not set
CONFIG_LEDS_TRIGGERS=y

#
# LED Triggers
#
# CONFIG_LEDS_TRIGGER_TIMER is not set
# CONFIG_LEDS_TRIGGER_HEARTBEAT is not set
# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set

#
# iptables trigger is under Netfilter config (LED target)
#
CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_ARC4=y
CONFIG_AVERAGE=y

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to add WiFi support
  2013-07-03 23:36 How to add WiFi support Sean Liming
@ 2013-07-04 18:25 ` Sean Liming
  2013-07-07  2:35   ` Sean Liming
  0 siblings, 1 reply; 3+ messages in thread
From: Sean Liming @ 2013-07-04 18:25 UTC (permalink / raw)
  To: yocto

> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-
> bounces@yoctoproject.org] On Behalf Of Sean Liming
> Sent: Wednesday, July 03, 2013 4:37 PM
> To: yocto@yoctoproject.org
> Subject: [yocto] How to add WiFi support
> 
> I have searched and spotted different discussion on adding wireless
support
> but have not found a solution. I have a Intel Centrino Wireless-N 1000
card
> plugged into a Intel Atom N2800 (Cedar Trail) platform. I am using Yocto
> Project 1.3.1, Cedar Trail BSP, core-image-x11
> 
> BB_VERSION        = "1.16.0"
> TARGET_ARCH       = "i586"
> TARGET_OS         = "linux"
> MACHINE           = "cedartrail-nopvr"
> DISTRO            = "poky"
> DISTRO_VERSION    = "1.3.1"
> TUNE_FEATURES     = "m32 core2"
> Core-image-x11
> 
> Following the instructions to use menuconfig and create configuration
> fragment, I have enabled the various kernel options to include the iwlagn
> driver. The configuration fragment called mydiff.cfg (attached) was placed
in
> the meta-intel/meta-cedartrail/recipes-kernel/Linux/files folder. The
Linux-
> yocto_3.0.bbappend was modified with the following:
> 
> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> SRC_URI += "file://mydiff.cfg"
> 
> After building the image, ifconfig didn't show wireless and neither does
> iwconfig. The adapter is found when I do a lspci. The kernel wireless
website
> - http://wireless.kernel.org/en/users/Drivers/iwlwifi  lists a firmware
> package needed for installation. I tried to create a recipe to place the
> firmware file in the /lib/firmware folder, but it doesn't get put in. The
lack of
> what to do for the LICENSE might be a problem. Here is the
> recipe:
> 
> DESCRIPTION = "Intel WiFi 1000 Adapter"
> LICENSE = "GPL"-?????
> LIC_FILES_CHKSUM =
> "file://${WORKDIR}/LICENSE.iwlwifi-1000-
> ucode;md5=aa2bfb02c7e0712680334b9f47
> f8dc61"
> 
> SRC_URI = "file://LICENSE.iwlwifi-1000-ucode \
> 	   file://iwlwifi-1000-3.ucode \
> 	   "
> FWPATH = "lib/firmware"
> do_install_apped() {
> 	install -m 0644 LICENSE.iwlwifi-1000-ucode ${D}${FWPATH}
> 	install -m 0644 iwlwifi-1000-3.ucode ${D}${FWPATH} }
> 
> I manually created the /lib/firmware folder and copied the firmware file
> (iwlwifi-1000-3.ucode) to the folder. Nothing changed after a reboot. I
also
> tried a Intel Centrino Ultimate-N 6300 same result.
> 
> 1. Was a kernel modification the right direction to enable support for
this
> driver?
> 2. Did I miss anything with regards to the configuration fragment setup?
> 3. Is the firmware really needed? If so why is there no /lib/firmware
folder
> and what should be used for the LICENSE ?
> 
> 
> Regards,
> 
> Sean Liming

Update: After checking the /proc/config.gz, I noticed that the custom kernel
settings are not being set. Is there specific location for the configuration
fragment to be placed? I put it in the BSP's recipes-kernel/Linux/files
folder.

After installing Ubuntu on the target, iwlwifi is being used rather than
iwlagn. I have a updated my custom config.

Regards,

Sean Liming




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to add WiFi support
  2013-07-04 18:25 ` Sean Liming
@ 2013-07-07  2:35   ` Sean Liming
  0 siblings, 0 replies; 3+ messages in thread
From: Sean Liming @ 2013-07-07  2:35 UTC (permalink / raw)
  To: yocto




> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-
> bounces@yoctoproject.org] On Behalf Of Sean Liming
> Sent: Thursday, July 04, 2013 11:26 AM
> To: yocto@yoctoproject.org
> Subject: Re: [yocto] How to add WiFi support
> 
> > -----Original Message-----
> > From: yocto-bounces@yoctoproject.org [mailto:yocto-
> > bounces@yoctoproject.org] On Behalf Of Sean Liming
> > Sent: Wednesday, July 03, 2013 4:37 PM
> > To: yocto@yoctoproject.org
> > Subject: [yocto] How to add WiFi support
> >
> > I have searched and spotted different discussion on adding wireless
> support
> > but have not found a solution. I have a Intel Centrino Wireless-N 1000
> card
> > plugged into a Intel Atom N2800 (Cedar Trail) platform. I am using
> > Yocto Project 1.3.1, Cedar Trail BSP, core-image-x11
> >
> > BB_VERSION        = "1.16.0"
> > TARGET_ARCH       = "i586"
> > TARGET_OS         = "linux"
> > MACHINE           = "cedartrail-nopvr"
> > DISTRO            = "poky"
> > DISTRO_VERSION    = "1.3.1"
> > TUNE_FEATURES     = "m32 core2"
> > Core-image-x11
> >
> > Following the instructions to use menuconfig and create configuration
> > fragment, I have enabled the various kernel options to include the
> > iwlagn driver. The configuration fragment called mydiff.cfg (attached)
> > was placed
> in
> > the meta-intel/meta-cedartrail/recipes-kernel/Linux/files folder. The
> Linux-
> > yocto_3.0.bbappend was modified with the following:
> >
> > FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> > SRC_URI += "file://mydiff.cfg"
> >
> > After building the image, ifconfig didn't show wireless and neither
> > does iwconfig. The adapter is found when I do a lspci. The kernel
> > wireless
> website
> > - http://wireless.kernel.org/en/users/Drivers/iwlwifi  lists a
> > firmware package needed for installation. I tried to create a recipe
> > to place the firmware file in the /lib/firmware folder, but it doesn't
> > get put in. The
> lack of
> > what to do for the LICENSE might be a problem. Here is the
> > recipe:
> >
> > DESCRIPTION = "Intel WiFi 1000 Adapter"
> > LICENSE = "GPL"-?????
> > LIC_FILES_CHKSUM =
> > "file://${WORKDIR}/LICENSE.iwlwifi-1000-
> > ucode;md5=aa2bfb02c7e0712680334b9f47
> > f8dc61"
> >
> > SRC_URI = "file://LICENSE.iwlwifi-1000-ucode \
> > 	   file://iwlwifi-1000-3.ucode \
> > 	   "
> > FWPATH = "lib/firmware"
> > do_install_apped() {
> > 	install -m 0644 LICENSE.iwlwifi-1000-ucode ${D}${FWPATH}
> > 	install -m 0644 iwlwifi-1000-3.ucode ${D}${FWPATH} }
> >
> > I manually created the /lib/firmware folder and copied the firmware
> > file
> > (iwlwifi-1000-3.ucode) to the folder. Nothing changed after a reboot.
> > I
> also
> > tried a Intel Centrino Ultimate-N 6300 same result.
> >
> > 1. Was a kernel modification the right direction to enable support for
> this
> > driver?
> > 2. Did I miss anything with regards to the configuration fragment setup?
> > 3. Is the firmware really needed? If so why is there no /lib/firmware
> folder
> > and what should be used for the LICENSE ?
> >
> >
> > Regards,
> >
> > Sean Liming
> 
> Update: After checking the /proc/config.gz, I noticed that the custom
kernel
> settings are not being set. Is there specific location for the
configuration
> fragment to be placed? I put it in the BSP's recipes-kernel/Linux/files
folder.
> 
> After installing Ubuntu on the target, iwlwifi is being used rather than
iwlagn.
> I have a updated my custom config.
> 
> Regards,
> 
> Sean Liming
> 
> 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

SOLVED: Deviated from the documentation to get the configuration fragment
working, and found a Linux-firmware package that pulls in the firmware.

Regards,

Sean Liming



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-07  2:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-03 23:36 How to add WiFi support Sean Liming
2013-07-04 18:25 ` Sean Liming
2013-07-07  2:35   ` Sean Liming

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.