Skip to contentSkip to conversation

Build compat-wireless for linus tree

DISCUSSION Shuo 2 participants 4 messages Nov 16, 2012 – Dec 2, 2012 2 messages not in the archive

lore
Share & tools
lore

Shuo

author
#0 lore raw

Hi list,
How could i get the latest compat-wireless code and compile against an new kernel which pull from linus' tree?
I am using v3.7-rc4. It seems there is no ready compat-wireless code for it. Is there any repo for this?

Any comment would be appreciated!

Shuo

#1 lore raw
Quoted 9 lines · Shuo

Hi list,
How could i get the latest compat-wireless code and compile against an new kernel which pull from linus' tree?
I am using v3.7-rc4. It seems there is no ready compat-wireless code for it. Is there any repo for this?

Any comment would be appreciated!

Shuo

Hi Shuo,

compat-drivers compiles for me against kernel 3.7-rc6 without any problems. Try out the latest version:
http://www.orbit-lab.org/kernel/compat-wireless/

Hauke

#4 lore raw
In reply to a message not in the archive
Quoted 24 lines · Shuo

Hi Hauke,
Sorry for disturb again.
I am trying compat-wireless-2012-11-25 for v3.7-rc7, but it fails. I downloaded the tar package and unpackaged, driver-select b43, make Some logs:

Processing new driver-select request...
Backing up makefile: Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backing up makefile: drivers/misc/eeprom/Makefile.bk
Backing up makefile: net/wireless/Makefile.bk
Backing up makefile: drivers/net/wireless/Makefile.bk
./scripts/gen-compat-autoconf.sh /home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/.config /home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/3.7.0-rc7-shuo-main+//build M=/home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25 modules
make[1]: Entering directory `/home/lskakaxi/work/linux/kernel_build'
/home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/config.mk:247: "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m."
CC [M] /home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/compat/main.o
In file included from /home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/include/linux/pm_qos.h:9:0,

                 from /home/lskakaxi/work/linux/linux/include/linux/netdevice.h:28,
                 from /home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/include/linux/compat-2.6.29.h:5,
                 from /home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/include/linux/compat-2.6.h:50,
                 from <command-line>:0:
Quoted 8 lines

/home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/include/linux/pm_qos_params.h:7:38: fatal error: linux/pm_qos_params.h: No such file or directory compilation terminated.

I found the linux/pm_qos_params.h has been renamed to pm_qos.h one year ago. I am confused why compat-wirelss need this old header. Anything i missed?

Shuo

Hi Shuo,

There seams to be something wrong with your kernel. The include done in include/linux/pm_qos.h:9:0 should not happen on your kernel version.

Does include/generated/uapi/linux/version.h in your kernel directory contains #define LINUX_VERSION_CODE 197895 or does it contain some other number?

Hauke

author
#5 lore raw
Quoted 33 lines · Hauke Mehrtens
Quoted 24 lines · Shuo

Hi Hauke,
Sorry for disturb again.
I am trying compat-wireless-2012-11-25 for v3.7-rc7, but it fails. I downloaded the tar package and unpackaged, driver-select b43, make Some logs:

Processing new driver-select request...
Backing up makefile: Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backing up makefile: drivers/misc/eeprom/Makefile.bk
Backing up makefile: net/wireless/Makefile.bk
Backing up makefile: drivers/net/wireless/Makefile.bk
./scripts/gen-compat-autoconf.sh /home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/.config /home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/3.7.0-rc7-shuo-main+//build M=/home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25 modules
make[1]: Entering directory `/home/lskakaxi/work/linux/kernel_build'
/home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/config.mk:247: "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m."
CC [M] /home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/compat/main.o
In file included from /home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/include/linux/pm_qos.h:9:0,

                 from /home/lskakaxi/work/linux/linux/include/linux/netdevice.h:28,
                 from /home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/include/linux/compat-2.6.29.h:5,
                 from /home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/include/linux/compat-2.6.h:50,
                 from <command-line>:0:
Quoted 8 lines

/home/lskakaxi/work/extern_modules/compat-wireless/compat-wireless-2012-11-25/include/linux/pm_qos_params.h:7:38: fatal error: linux/pm_qos_params.h: No such file or directory compilation terminated.

I found the linux/pm_qos_params.h has been renamed to pm_qos.h one year ago. I am confused why compat-wirelss need this old header. Anything i missed?

Shuo

Quoted 9 lines

Hi Shuo,

There seams to be something wrong with your kernel. The include done in include/linux/pm_qos.h:9:0 should not happen on your kernel version.

Does include/generated/uapi/linux/version.h in your kernel directory contains #define LINUX_VERSION_CODE 197895 or does it contain some other number?

The problem had been resolved.
There is an old LINUX_VERSION_CODE in the version.h. So i clean the kernel tree and make a full compile again. The errors above went away. Another thing is i found the latest compat driver contains some graphics drivers. When i install a wireless driver, such as b43, the graphics drivers also will be installed. That will break my original in-tree graphic drivers dep and caused some issue when X startup. So now, i turn to use latest wireless and graphic in-tree drivers with the latest kernel. They work well.
Thanks, again!

Quoted 1 line

Hauke

Shuo