VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Error compiling Ralink RT2500 drivers in VL 5.1 Std [Solved]  (Read 2702 times)

Ultra Magnus

  • Member
  • *
  • Posts: 11

I'm trying to create a symlink from /lib/modules/2.6.12/build to my kernel source directory (/usr/src/linux-2.6.12) in VL 5.1 Std.

I tried adding the following to my /etc/fstab file:

Code: [Select]
/lib/modules/2.6.12/build  /usr/src/linux-2.6.12  auto  defautls,user 0 0
which returned an error as /lib/modules/2.6.12/build is not a "block device".

all help much appreciated,
Ultra Magnus
« Last Edit: May 31, 2007, 12:20:43 pm by Ultra Magnus »
Logged

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
Re: Howto create a symlink in VL 5.1 Std?
« Reply #1 on: May 30, 2007, 07:00:14 pm »

ln -s /usr/src/linux-2.6.12 /lib/modules/2.6.12/build

that should do it for you
Logged

Ultra Magnus

  • Member
  • *
  • Posts: 11
Re: Howto create a symlink in VL 5.1 Std? [Solved]
« Reply #2 on: May 30, 2007, 07:16:25 pm »

thanks.

shame it didn't solve my bigger problem. oh well...

it's getting late, expect another post tomorrow  :)
Logged

Joe1962

  • Administrator
  • Vectorian
  • *****
  • Posts: 2499
    • Joe1962's Website
Re: Howto create a symlink in VL 5.1 Std? [Solved]
« Reply #3 on: May 30, 2007, 07:48:35 pm »

shame it didn't solve my bigger problem. oh well...
Which is...?  ???
Logged
O'Neill (RE the Asgard): "Usually they ask nicely before they ignore us and do what they damn well please."
http://joe1962.bigbox.info
Running: VL 7 Std 64 + self-cooked XFCE-4.10

Ultra Magnus

  • Member
  • *
  • Posts: 11
Error compiling Ralink RT2500 drivers in VL 5.1 Std
« Reply #4 on: May 31, 2007, 05:01:05 am »

I'm trying to compile drivers for my Ralink RT2500 PCMCIA wireless card here are the instructions

Quote
Compilation and Installation

  • Ensure that you have your current kernel sources expanded in the default directory (i.e. /usr/src/linux-2.x.x). We also recommend that the sources you have here are the ones you used to build your current running kernel.
  • Check that you have the Wireless Extensions built into your running kernel from the sources above. This option can be found in 'make menuconfig' under Network Device Support->Wireless LAN->Wireless LAN (non-hamradio).
  • Ensure you have a symlink from /lib/modules/2.x.x/build to that kernel source directory (i.e. symlink from /lib/modules/2.x.x/build ->
    /usr/src/linux-2.x.x)
  • Expand the rt2500 source package using tar -xzvf rt2500-x.x.x.tar.gz
  • Change into the rt2500-x.x.x/source folder
  • Run 'make'
  • Run 'make install'

However, when I run make, I get the following output:

Code: [Select]
make[1]: Entering directory `/usr/src/linux-2.6.12'

  WARNING: Symbol version dump /usr/src/linux-2.6.12/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /tmp/rt2500-1.1.0-b4/Module/rtmp_main.o
In file included from include/linux/if_ether.h:107,
                 from include/linux/netdevice.h:29,
                 from /tmp/rt2500-1.1.0-b4/Module/rt_config.h:69,
                 from /tmp/rt2500-1.1.0-b4/Module/rtmp_main.c:50:
include/linux/skbuff.h:30:26: net/checksum.h: No such file or directory
In file included from include/linux/if_ether.h:107,
                 from include/linux/netdevice.h:29,
                 from /tmp/rt2500-1.1.0-b4/Module/rt_config.h:69,
                 from /tmp/rt2500-1.1.0-b4/Module/rtmp_main.c:50:
include/linux/skbuff.h: In function `skb_add_data':
include/linux/skbuff.h:1065: warning: implicit declaration of function `csum_and_copy_from_user'
include/linux/skbuff.h:1069: warning: implicit declaration of function `csum_block_add'
include/linux/skbuff.h: In function `skb_postpull_rcsum':
include/linux/skbuff.h:1120: warning: implicit declaration of function `csum_sub'
include/linux/skbuff.h:1120: warning: implicit declaration of function `csum_partial'
make[2]: *** [/tmp/rt2500-1.1.0-b4/Module/rtmp_main.o] Error 1
make[1]: *** [_module_/tmp/rt2500-1.1.0-b4/Module] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.12'
rt2500.ko failed to build!
make: *** [module] Error 1

I assume I'm either missing some of the Kernel Sources—this is what the rt2x00 forums seems to think (despite much research, I'm still don't know what they are)—or the VL Kernel doesn't have the Wireless Extensions.
Logged

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: Error compiling Ralink RT2500 drivers in VL 5.1 Std
« Reply #5 on: May 31, 2007, 11:41:57 am »

I don't think VectorLinux 5.1 ships with full kernel source code.
You will need to get the 2.6.12 linux source code and recompile the kernel.
Logged

Ultra Magnus

  • Member
  • *
  • Posts: 11
Re: Error compiling Ralink RT2500 drivers in VL 5.1 Std [Solved]
« Reply #6 on: May 31, 2007, 12:20:14 pm »

in my quest for the 2.6.12 source I stumbled across a RT2500 package for VL 5.* bonus!

I'm now up and running on and, indeed, posting from VL :)

thanks for all the help guys.
Logged

]nbx*cmd[

  • Member
  • *
  • Posts: 8
Re: Error compiling Ralink RT2500 drivers in VL 5.1 Std [Solved]
« Reply #7 on: April 13, 2008, 12:06:49 pm »

nice for u but, could you tell me where on earth is this package? not in the repos afik  ???
Logged