2014-06-26 19:44:46

by Jonathan Bagg

[permalink] [raw]
Subject: mac80211 menu option missing in backports using kernel with imx_v6_v7_defconfig

mac80211 menu option is missing in backports using a kernel with
imx_v6_v7_defconfig but is fine with x86 kernel config. This causes all
the wifi drivers that depend on mac80211 to be hidden.

I built the kernel with the default imx config...
export
PATH=/home/xxx/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/:$PATH
export
CROSS_COMPILE=/home/xxx/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-
export ARCH=arm
make imx_v6_v7_defconfig
make uImage LOADADDR=0x70008000

when I run the backports menuconfig mac80211 is hidden....
make menuconfig
CROSS_COMPILE=/home/xxx/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-
ARCH=arm KLIB_BUILD=/home/xxx/imx_linux-3.10/ KLIB=~/home/xxx/rootfs/

Searching for mac80211 in backport's menuconfig shows its dependences are met
Symbol: MAC80211 [=n]
Type : tristate
Prompt: Generic IEEE 802.11 Networking Stack (mac80211)
Defined at net/mac80211/Kconfig:1
Depends on: m && <choice> && CFG80211 [=m] && CRYPTO [=y] &&
CRYPTO_ARC4 && CRYPTO_AES [=y] && CRYPTO_CCM && CRC32 [=y]
Selects: BACKPORT_AVERAGE [=n]

If I point backports to an x86 kernel mac80211 magically appears
make menuconfig KLIB_BUILD=/home/xxx/x86_linux-3.10/ KLIB=/home/xxx/rootfs/

Something in the imx_v6_v7_defconfig making backports unhappy? backports
broken? Am I missing something for the cross compile?

using backports-3.13.2-1

Jon







2014-06-26 20:47:54

by Hauke Mehrtens

[permalink] [raw]
Subject: Re: mac80211 menu option missing in backports using kernel with imx_v6_v7_defconfig

On 06/26/2014 09:23 PM, [email protected] wrote:
> mac80211 menu option is missing in backports using a kernel with
> imx_v6_v7_defconfig but is fine with x86 kernel config. This causes all
> the wifi drivers that depend on mac80211 to be hidden.
>
> I built the kernel with the default imx config...
> export
> PATH=/home/xxx/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/:$PATH
> export
> CROSS_COMPILE=/home/xxx/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-
> export ARCH=arm
> make imx_v6_v7_defconfig
> make uImage LOADADDR=0x70008000
>
> when I run the backports menuconfig mac80211 is hidden....
> make menuconfig
> CROSS_COMPILE=/home/xxx/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-
> ARCH=arm KLIB_BUILD=/home/xxx/imx_linux-3.10/ KLIB=~/home/xxx/rootfs/
>
> Searching for mac80211 in backport's menuconfig shows its dependences are met
> Symbol: MAC80211 [=n]
> Type : tristate
> Prompt: Generic IEEE 802.11 Networking Stack (mac80211)
> Defined at net/mac80211/Kconfig:1
> Depends on: m && <choice> && CFG80211 [=m] && CRYPTO [=y] &&
> CRYPTO_ARC4 && CRYPTO_AES [=y] && CRYPTO_CCM && CRC32 [=y]
> Selects: BACKPORT_AVERAGE [=n]
>
> If I point backports to an x86 kernel mac80211 magically appears
> make menuconfig KLIB_BUILD=/home/xxx/x86_linux-3.10/ KLIB=/home/xxx/rootfs/
>
> Something in the imx_v6_v7_defconfig making backports unhappy? backports
> broken? Am I missing something for the cross compile?
>
> using backports-3.13.2-1
>
> Jon

Have you set CONFIG_CRYPTO_CCM in your kernel config? This is needed for
mac80211 in backports.

Hauke

2014-06-26 21:18:26

by Jonathan Bagg

[permalink] [raw]
Subject: Re: mac80211 menu option missing in backports using kernel with imx_v6_v7_defconfig

>> when I run the backports menuconfig mac80211 is hidden....
>> make menuconfig
>> CROSS_COMPILE=/home/xxx/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/arm-linux-gnueabi-
>> ARCH=arm KLIB_BUILD=/home/xxx/imx_linux-3.10/ KLIB=~/home/xxx/rootfs/
>>
>> Searching for mac80211 in backport's menuconfig shows its dependences
>> are met
>> Symbol: MAC80211 [=n]
>> Type : tristate
>> Prompt: Generic IEEE 802.11 Networking Stack (mac80211)
>> Defined at net/mac80211/Kconfig:1
>> Depends on: m && <choice> && CFG80211 [=m] && CRYPTO [=y] &&
>> CRYPTO_ARC4 && CRYPTO_AES [=y] && CRYPTO_CCM && CRC32 [=y]
>> Selects: BACKPORT_AVERAGE [=n]
>>
>> If I point backports to an x86 kernel mac80211 magically appears
>> make menuconfig KLIB_BUILD=/home/xxx/x86_linux-3.10/
>> KLIB=/home/xxx/rootfs/
>>
>> Something in the imx_v6_v7_defconfig making backports unhappy?
>> backports
>> broken? Am I missing something for the cross compile?
>>
>> using backports-3.13.2-1
>>
>> Jon
>
> Have you set CONFIG_CRYPTO_CCM in your kernel config? This is needed for
> mac80211 in backports.
>
> Hauke

Enabling crypto_ccm and crypto_arc4 in the kernel fixed it. Thanks. I
guess I was looking for [=n] and didn't even see they were disabled.

Jon