Results 1 to 4 of 4

Thread: RT2870 compilation error

  1. #1
    Just burned his ISO
    Join Date
    Feb 2008
    Posts
    13

    Default RT2870 compilation error

    Up until now I've been using a flash drive to run BT3. After installing it to my HDD im having some troubles compiling the linux driver for my usb network adapter, problems i wouldn't normally have compiling the driver on the Live installation.
    When I try and run the Make file on the Live version things go smoothly:
    Code:
    bt 2008_0506_RT2870_Linux_STA_v1.3.0.0 # make
    make -C tools
    make[1]: Entering directory `/root/2008_0506_RT2870_Linux_STA_v1.3.0.0/tools'
    gcc -g bin2h.c -o bin2h
    make[1]: Leaving directory `/root/2008_0506_RT2870_Linux_STA_v1.3.0.0/tools'
    /root/2008_0506_RT2870_Linux_STA_v1.3.0.0/tools/bin2h
    cp -f os/linux/Makefile.6 /root/2008_0506_RT2870_Linux_STA_v1.3.0.0/os/linux/Makefile
    make  -C  /lib/modules/2.6.21.5/build SUBDIRS=/root/2008_0506_RT2870_Linux_STA_v1.3.0.0/os/linux modules
    make[1]: Entering directory `/usr/src/linux-2.6.21.5'
    make[2]: Warning: File `/root/2008_0506_RT2870_Linux_STA_v1.3.0.0/os/linux/config.mk' has modification time 2.7e+06 s in the future
      CC [M]  /root/2008_0506_RT2870_Linux_STA_v1.3.0.0/os/linux/../../common/rtmp_init.o
      CC [M]
    Running the make file on the newly installed HDD BT3 is a different story
    Code:
    make -C tools
    make[1]: Entering directory `/root/2008_0506_RT2870_Linux_STA_v1.3.0.0/tools'
    gcc -g bin2h.c -o bin2h
    make[1]: Leaving directory `/root/2008_0506_RT2870_Linux_STA_v1.3.0.0/tools'
    /root/2008_0506_RT2870_Linux_STA_v1.3.0.0/tools/bin2h
    cp -f os/linux/Makefile.6 /root/2008_0506_RT2870_Linux_STA_v1.3.0.0/os/linux/Makefile
    make  -C  /lib/modules/2.6.21.5/build SUBDIRS=/root/2008_0506_RT2870_Linux_STA_v1.3.0.0/os/linux modules
    make: *** /lib/modules/2.6.21.5/build: No such file or directory. Stop.
    make: *** [LINUX] ERROR 2
    The thing that i don't understand is In the HDD I can 'cd' into /libs/modules/2.6.21.5/ then i can 'ls' and i see 'build@' just like i would in the live version, for some reason it just can't be accessed from the HDD version.
    Any help would be greatly appreciated.

  2. #2
    Very good friend of the forum drgr33n's Avatar
    Join Date
    Jan 2010
    Location
    Dark side of the moon ...
    Posts
    699

    Default

    Its because that folder is a symlink that links to the kernel source. BT3 is missing the kernel sources so you will have to either build them yourself or download the kernel source from the wiki.

    For full kernel upgrade instructions:

    http://forums.remote-exploit.org/showthread.php?t=13426

    And heres how its done with the BT source.

    first get the kernel source from the wiki and add it to your HDD install.

    Code:
    cd /
    wget http://www.offensive-security.com/modules/kernel.lzm
    lzm2dir kernel.lzm /
    cd /lib/modules/2.6.21.5
    rm build
    ln -s /usr/src/linux-2.6.21.5 /lib/modules/2.6.21.5/build
    Now you should be able to install. You could also update your kernel, that would fix this issue to.

  3. #3
    Just burned his ISO
    Join Date
    Feb 2008
    Posts
    13

    Default

    Thanks Dr_GrEeN, I followed your tutorial to upgrade the kernel and it worked like a charm.
    Code:
    # uname -r 
    2.6.25.4
    and now the make runs perfectly

  4. #4
    Very good friend of the forum drgr33n's Avatar
    Join Date
    Jan 2010
    Location
    Dark side of the moon ...
    Posts
    699

    Default

    thats no problem D3f4Z10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •