Re: Building of compat-wireless-old in 2.6.25 BSP kernel for PowerPC architecture

Luis R. Rodriguez
2010-01-27T18:06:36Z

On Wed, Jan 27, 2010 at 2:48 AM, PAN Sunny S K <sunnypan@ust.hk> wrote:
> Hi,
>
> Thanks Pavel, Xiao and especially Luis for their quick reply.
> So as suggested, I'll firstly try to build the latest compat-wireless
> driver with the 2.6.25 kernel. And update the kernel to 2.6.34 as the last
> attempt which requires support from Freescale.
>
> Let me briefly mention a little background and the problem I've
> encountered when building the driver.
>
> Our project is base on a Freescale MPC8377EWLAN reference design which
> runs by a MPC8377 PowerQUICC II PowerPC processor. It uses LTIB to develop
> and deploy BSP for this architecture and the Linux kernel version provided
> is 2.6.25 (a slightly patched kernel to adapt the processor) The wireless
> interface we're using is Wistron DNMA-83 (equivalent to Unex DNMA-83)
> which uses Atheros AR9160 chipset.
>
> To fully utilize the 802.11 a/b/g/n mode provided by the chipset (and the
> proprietary driver came with the package has too many problems), we look
> for the ath9k driver and would like to build it with the 2.6.25 kernel.
>
> So what I did to build the driver is to provide the KLIB and KLIB_BUILD
> with the path of 2.6.25 source and modified the CROSS_COMPILE variable in
> the .config of the kernel to make sure it uses the MPC8377 toolchain to
> compile the source. However, the following error occurred (With my latest
> trial of the bleeding edge compat-wireless-2.6):
>
> make -C /MyProject/ltib-mpc8377ewlan-20090922/rpm/BUILD/linux-2.6.25
> M=/root/Desktop/compat-wireless-2009-12-11 modules
> make[1]: Entering directory

compat-wireless-2009-12-11 is from a bleeding edge snapshot. Bleedign
edge snapshots
do not yet have MQ support backported, but MQ support was not merged
by then, so hmm...

OK try this:

./scripts/driver-select ath9k

That will only enable to compile ath9k.

If you hit a debugfs compile error then you've hit the other blocker
from backporting down to 2.6.23 on bleedigng edge.

If you want to try something that actually does compile for sure
against 2.6.25 try the stable compat-wireless for 2.6.32.5 and use
./scripts/driver-select:

http://bombadil.infradead.org/~mcgrof/tmp/compat-wireless-2.6.32.5-rc3.tar.bz2

Luis