• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Installing headers / Kernel clarifications  (Read 3317 times)
Manic
Newbie
*

Karma: 0
Posts: 17


View Profile
« on: September 20, 2009, 09:12:54 AM »

Hello

I am attempting to install a wireless USB dongle, namely a Belkin f5d7050 v4000 which has the zydas chipset (before they were aquired by Atheros). Drivers for the chipset exist, namely the zd1211b and zd1211rw.

My problem however is compiling the drivers on the sheeva, as the headers are not inlcuded by default. I reflashed my plug with the installer v1, and then upgraded to kernel v. 2.6.30.6 as per the instructions on the wiki, and all is well. Whoever manages sheeva.with-linux also kindly provides the headers for this distro, but they are given in a tar.gz ball, which when untared gives a usr directory.

Now at the risk of exposing my n00bishess, I dont know how to make the sheeva understand that these are its headers. Ive previously installed headers, but via apt-get and .deb files.

Ive tried creating symbolic links to point from /lib/modules/2.6.30.6/build to /usr/include as well as /usr/include/linux (I figured this is it as the dirs contain files ending in .h) but I get

Code:
root@ubuntu:~# cd zd1211-driver-r85
root@ubuntu:~/zd1211-driver-r85# make
/lib/modules/2.6.30.6/build
/root/zd1211-driver-r85
-I/root/zd1211-driver-r85/src/include -fomit-frame-pointer -O2 -Wall -Wstrict-prototypes -pipe -DZDCONF_WE_STAT_SUPPORT=1 -DHOST_IF_USB -DAMAC -DGCCK -DOFDM -DHOSTAPD_SUPPORT -DUSE_EP4_SET_REG -DDOWNLOADFIRMWARE -DfTX_GAIN_OFDM=0 -DfNEW_CODE_MAP=1 -DfWRITE_WORD_REG=1 -DfREAD_MUL_REG=1 -DENHANCE_RX=1 -DZD1211B
src/zd1205.o src/zdasocsvc.o src/zdauthreq.o src/zdauthrsp.o src/zdmmrx.o src/zdshared.o src/zdhci.o src/zdglobal.o src/zdencrypt.o src/zdpmfilter.o src/zdpsmon.o src/zdsynch.o src/zdbuf.o src/zd1205_proc.o src/zdhw.o src/zddebug.o src/zdtkipseed.o src/zdmic.o src/zdusb.o src/zd1211.o
make -C /lib/modules/2.6.30.6/build SUBDIRS=/root/zd1211-driver-r85 modules
make[1]: Entering directory `/usr/include/linux'
make[1]: *** No rule to make target `modules'.  Stop.
make[1]: Leaving directory `/usr/include/linux'
make: *** [all] Error 2
root@ubuntu:~/zd1211-driver-r85#

this is the same when build points to include.

I know im probably doing something exceedingly stupid and n00bish, but I dont have the required knowledge in Linux yet to figure out what. I would apreciate any help/insights on the matter  Grin
Logged

nephilim1973
Newbie
*

Karma: 0
Posts: 17


View Profile
« Reply #1 on: September 21, 2009, 06:03:20 AM »

@ Manic:

Same problem for me... Now, we are 2...  ;-)
Logged

ruidc
Newbie
*

Karma: 0
Posts: 36


View Profile
« Reply #2 on: September 21, 2009, 08:22:48 AM »

I've not done this before and am also a n00b (maybe if there's enough of us we can sort it out eh?), but which source are you using for the drivers? it looks like you are not using the source from kernel.org website (http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.4.tar.gz).

The Zyxel docs for the drivers for my USB dongle (http://www.zyxel.ch/files/treiber/linux_zd1211_4916_G220.zip) suggest editing their Makefile to edit the path to the source as follows:

KERNEL_SOURCE=/usr/src/linux-2.6.30.4

adapt for your path & version.
However their source looks different to kernel.org

Regards,
Rui
Logged

ruidc
Newbie
*

Karma: 0
Posts: 36


View Profile
« Reply #3 on: September 21, 2009, 02:03:55 PM »

This was probably overkill, but i followed the instructions on
http://plugcomputer.org/plugwiki/index.php/Compiling_Linux_Kernel_for_the_Plug_Computer
and cross-compiled the kernel on my Ubuntu VirtualBox environment, also took the following steps:
- applied the patches from http://sheeva.with-linux.com/sheeva/index.php?dir=2.6.30.4%2Fpatches%2F
- copied the .config available on the same website (http://sheeva.with-linux.com/sheeva/2.6.30.4/sheeva-2.6.30.4.config)
- changed line:
    # CONFIG_ZD1211RW is not set
to:
   CONFIG_ZD1211RW=m
ran the make as per continued instructions (i skipped all the U-boot related steps as i didn't want to flash my plug)
- copied the zd1211rw.ko file that was produced to the sheevaplug and loaded it with insmod zd1211rw.ko
- verified it was working with ifconfig!

I'm sure there's a way to bypass needing to do a full kernel compile and doing just the driver itself, but it did the trick for me!!!

HTH,
Rui
Logged

Pages: [1]
Print
Jump to: