Professional Web Applications Themes

Wireless Network NDIS - FreeBSD

HI there I get the following when i try an compile the following into the kernel. options NDISAPI device ndis device wlan /usr/src/sys/dev/if_ndis/if_ndis.c:85:30: ndis_driver_data.h: No such file or directory /usr/src/sys/dev/if_ndis/if_ndis_pccard.c:66:30: ndis_driver_data.h: No such file or directory /usr/src/sys/dev/if_ndis/if_ndis_pci.c:65:30: ndis_driver_data.h: No such file or directory mkdep: compile failed *** Error code 1 FRom FreeBSD newbie...

  1. #1

    Default Wireless Network NDIS

    HI there

    I get the following when i try an compile the following into the kernel.

    options NDISAPI
    device ndis
    device wlan

    /usr/src/sys/dev/if_ndis/if_ndis.c:85:30: ndis_driver_data.h: No such file or
    directory
    /usr/src/sys/dev/if_ndis/if_ndis_pccard.c:66:30: ndis_driver_data.h: No such
    file or directory
    /usr/src/sys/dev/if_ndis/if_ndis_pci.c:65:30: ndis_driver_data.h: No such file
    or directory
    mkdep: compile failed
    *** Error code 1

    FRom
    FreeBSD newbie
    Lourik Guest

  2. #2

    Default Re: Wireless Network NDIS

    On 03/23/05 14:09, Lourik Malan wrote: 
     

    "To build a functional driver, the user must have a copy of the driver
    distribution media for his or her card. From this distribution, the
    user must extract two files: the .SYS file containing the driver binary
    code, and its companion .INF file, which contains the definitions for
    driver-specific registry keys and other installation data such as device
    identifiers. These two files can be converted into a ndis_driver_data.h
    file using the ndiscvt(8) utility. This file contains a binary image of
    the driver plus registry key data. When the ndis driver loads, it will
    create sysctl(3) nodes for each registry key extracted from the .INF file."

    So, in short: You'll need to run the supplied Windows driver through
    ndiscvt(8) before you can build the ndis module.

    Regards,

    Phil.
    Phil Guest

  3. #3

    Default Re: Wireless Network NDIS

    hi There

    i've got the following files from the winxp folder

    Fw1130.bin
    FwRad16.bin
    FwRad17.bin
    TNET1130.INF
    radio16.bin
    radio17.bin
    tnet1130.cat
    tnet1130.sys

    i copied all of them to the correct folder /usr/src/sys/modules/if_ndis



    root solar:/usr/src/sys/modules/if_ndis# ndiscvt -i TNET1130.INF -s
    tnet1130.sys -f Fw1130.bin FwRad16.bin FwRad17.bin radio16.bin radio17.bin -o
    ndis_driver_data.h

    objcopy -I binary -O elf32-i386-freebsd -B i386 Fw1130.bin Fw1130.bin.o
    objcopy --redefine-sym _binary_Fw1130_bin_start=fw1130_bin_start
    --strip-symbol _binary_Fw1130_bin_size --redefine-sym
    _binary_Fw1130_bin_end=fw1130_bin_end Fw1130.bin.o Fw1130.bin.o
    ld -Bshareable -d -warn-common -o Fw1130.bin.ko Fw1130.bin.o

    root solar:/usr/src/sys/modules/if_ndis#make && make install

    # kldload ndis
    # kldload if_ndis

    this all works fine, but i can't compile it in permenantly and the wireless
    pcmcia card is not working

    Any help will be greatly appeciated



    On Wednesday 23 March 2005 15:17, Phil Schulz wrote: 
    >
    > "To build a functional driver, the user must have a copy of the driver
    > distribution media for his or her card. From this distribution, the
    > user must extract two files: the .SYS file containing the driver binary
    > code, and its companion .INF file, which contains the definitions for
    > driver-specific registry keys and other installation data such as device
    > identifiers. These two files can be converted into a ndis_driver_data.h
    > file using the ndiscvt(8) utility. This file contains a binary image of
    > the driver plus registry key data. When the ndis driver loads, it will
    > create sysctl(3) nodes for each registry key extracted from the .INF file."
    >
    > So, in short: You'll need to run the supplied Windows driver through
    > ndiscvt(8) before you can build the ndis module.
    >
    > Regards,
    >
    > Phil.
    > _______________________________________________
    > org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to
    > "org"[/ref]

    --
    Lourik Malan
    Woodlands Technologies
    Lourik Guest

Similar Threads

  1. ndis problem
    By Pablo in forum FreeBSD
    Replies: 6
    Last Post: March 8th, 08:11 PM
  2. Replies: 0
    Last Post: October 28th, 10:24 PM
  3. URGENT: Loss of wireless connection when hitting another wireless network
    By Barb Bowman [MVP-Windows] in forum Windows Networking
    Replies: 7
    Last Post: August 10th, 09:20 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139