Skip to contentSkip to conversation

How to add WiFi support

DISCUSSION Sean Liming 1 participant 3 messages Jul 3, 2013 – Jul 7, 2013

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:yocto- [email protected]] On Behalf Of Sean Liming
Sent: Wednesday, July 03, 2013 4:37 PM
To: [email protected]
Subject: [yocto] How to add WiFi support

I have searched and spotted different discussion on adding wireless

support

Quoted 1 line

but have not found a solution. I have a Intel Centrino Wireless-N 1000

card

Quoted 10 lines

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"
Quoted 5 lines

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

Quoted 1 line

the meta-intel/meta-cedartrail/recipes-kernel/Linux/files folder. The

Linux-

Quoted 7 lines

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

Quoted 3 lines

- 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

Quoted 18 lines

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} }
Quoted 2 lines

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

Quoted 3 lines

tried a Intel Centrino Ultimate-N 6300 same result.

1. Was a kernel modification the right direction to enable support for

this

Quoted 3 lines

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

Quoted 6 lines

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

#2 lore raw
Quoted 85 lines

-----Original Message-----
From: [email protected] [mailto:yocto- [email protected]] On Behalf Of Sean Liming
Sent: Thursday, July 04, 2013 11:26 AM
To: [email protected]
Subject: Re: [yocto] How to add WiFi support

Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:yocto- [email protected]] On Behalf Of Sean Liming
Sent: Wednesday, July 03, 2013 4:37 PM
To: [email protected]
Subject: [yocto] How to add WiFi support

I have searched and spotted different discussion on adding wireless

support

Quoted 1 line

but have not found a solution. I have a Intel Centrino Wireless-N 1000

card

Quoted 10 lines

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"
Quoted 6 lines

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

Quoted 1 line

the meta-intel/meta-cedartrail/recipes-kernel/Linux/files folder. The

Linux-

Quoted 8 lines

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

Quoted 4 lines

- 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

Quoted 18 lines

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} }
Quoted 4 lines

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

Quoted 3 lines

tried a Intel Centrino Ultimate-N 6300 same result.

1. Was a kernel modification the right direction to enable support for

this

Quoted 3 lines

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

Quoted 8 lines
Quoted 6 lines

and what should be used for the LICENSE ?

Regards,

Sean Liming

Update: After checking the /proc/config.gz, I noticed that the custom

kernel

Quoted 1 line

settings are not being set. Is there specific location for the

configuration

Quoted 1 line

fragment to be placed? I put it in the BSP's recipes-kernel/Linux/files

folder.

Quoted 2 lines

After installing Ubuntu on the target, iwlwifi is being used rather than

iwlagn.

Quoted 11 lines

I have a updated my custom config.

Regards,

Sean Liming

_______________________________________________
yocto mailing list
[email protected]
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