Advertising (This ad goes away for registered users. You can Login or Register)

Ubuntu Linux 11.04 and WNA3100 Help....

Everything related to computers that doesn't go in other categories
Post Reply
cheeze6661
Posts: 98
Joined: Fri Jun 24, 2011 7:34 am
Location: Greenfield, TN.

Ubuntu Linux 11.04 and WNA3100 Help....

Post by cheeze6661 » Thu Aug 25, 2011 9:48 pm

I didn't know if this was the right section for this or not. It's completely off topic but I need a linux guru's help. I'm not a linux master but prefer it as my everyday o.s.. I barely use a windows o.s. for anything. I purchased a Netgear N300 wireless adapter today but it will not work on Ubuntu Natty. I need a pre-patched ndiswrapper for the use of a wna3100 adapter for linux kernel 2.6.38.11. PLEASE!!! Thank you!!! I do know how to "make" and "install".... Just looking for someone who can send me the ndiswrapper patched source for the above adapter and kernel. I cannot for some reason apply the patches to the source myself. I've been working on this issue for hours and have wore myself out. Your help will be greatly appreciated.
Advertising
Last edited by cheeze6661 on Thu Aug 25, 2011 11:34 pm, edited 1 time in total.
Gotta go for the PRO!!!

[spoiler]Image[/spoiler]

Follow me on Facebook or Twitter

User avatar
codestation
Big Beholder
Posts: 1660
Joined: Wed Jan 19, 2011 3:45 pm
Location: /dev/negi

Re: Ubuntu Linux 11.04 and WNA3100 Help....

Post by codestation » Thu Aug 25, 2011 10:14 pm

Why you can't add the patches? what errors are you getting? Check this thread, he has instructions on how to patch the files (he even provides the already patches files in case you don't want or know how to patch).

<rant>/me wants a Linux subforum</rant>

[spoiler]If i were you, i would already thrown that adapter through the window and get one with real linux drivers.[/spoiler]
Advertising
Plugin list
Working on: QPSNProxy, QCMA - Open source content manager for the PS Vita
Playing: Error: ENOTIME
Repositories: github, google code
Just feel the code..

cheeze6661
Posts: 98
Joined: Fri Jun 24, 2011 7:34 am
Location: Greenfield, TN.

Re: Ubuntu Linux 11.04 and WNA3100 Help....

Post by cheeze6661 » Thu Aug 25, 2011 10:50 pm

codestation wrote:Why you can't add the patches? what errors are you getting? Check this thread, he has instructions on how to patch the files (he even provides the already patches files in case you don't want or know how to patch).

<rant>/me wants a Linux subforum</rant>

[spoiler]If i were you, i would already thrown that adapter through the window and get one with real linux drivers.[/spoiler]
Thank you codestation... I'm getting a line error... ???? I'm probably not using the right command and/or don't have the patch in the correct directory. I'm still learning how to use the linux commands efficiently. I will follow your link and use the information there and hopefully be able to report back to this thread with success.

And I can second your motion for a linux forums. I would like to learn this complete system because I am a daily linux user.

Edit still getting errors:

Code: Select all

cheeze@theunknown-linux:~$ cd Downloads
cheeze@theunknown-linux:~/Downloads$ cd ndiswrapper
cheeze@theunknown-linux:~/Downloads/ndiswrapper$ sudo make
[sudo] password for cheeze: 
make -C utils
make[1]: Entering directory `/home/cheeze/Downloads/ndiswrapper/utils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/cheeze/Downloads/ndiswrapper/utils'
make -C driver
make[1]: Entering directory `/home/cheeze/Downloads/ndiswrapper/driver'
make -C /usr/src/linux-headers-2.6.38-11-generic M=/home/cheeze/Downloads/ndiswrapper/driver
make[2]: Entering directory `/usr/src/linux-headers-2.6.38-11-generic'
  CC [M]  /home/cheeze/Downloads/ndiswrapper/driver/wrapndis.o
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:34:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:686:38: error: expected ‘)’ before ‘param’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1121:40: error: expected ‘)’ before ‘param’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c: In function ‘notifier_event’:
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1725:36: error: ‘struct ndis_device’ has no member named ‘netdev_name’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1726:13: error: ‘struct ndis_device’ has no member named ‘netdev_name’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1727:20: error: ‘struct ndis_device’ has no member named ‘netdev_name’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c: In function ‘ndis_start_device’:
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1837:12: error: ‘struct ndis_device’ has no member named ‘netdev_name’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1837:52: error: ‘struct ndis_device’ has no member named ‘netdev_name’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c: In function ‘NdisAddDevice’:
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:2070:47: error: macro "initialize_work" passed 3 arguments, but takes just 2
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:2070:2: error: ‘initialize_work’ undeclared (first use in this function)
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:2070:2: note: each undeclared identifier is reported only once for each function it appears in
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:2088:51: error: macro "initialize_work" passed 3 arguments, but takes just 2
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c: In function ‘wrapndis_init’:
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:2119:2: error: implicit declaration of function ‘wrap_worker_init’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:2119:25: warning: assignment makes pointer from integer without a cast
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c: At top level:
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:596:11: warning: ‘mp_tx_packets’ defined but not used
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:899:13: warning: ‘update_iw_stats’ defined but not used
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:989:13: warning: ‘link_status_off’ defined but not used
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1001:13: warning: ‘link_status_on’ defined but not used
make[3]: *** [/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.o] Error 1
make[2]: *** [_module_/home/cheeze/Downloads/ndiswrapper/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-11-generic'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/cheeze/Downloads/ndiswrapper/driver'
make: *** [driver] Error 2
I'm not sure why this is.... :( Why couldn't I have just got a wireless usb device that would work out of the box!? I like Netgear products but didn't have any idea it would be this difficult to use.

Edit; Would it be because of me using a 64bit Ubuntu??? Everyone who I've read that has this device working seems to be on 32bit.
Gotta go for the PRO!!!

[spoiler]Image[/spoiler]

Follow me on Facebook or Twitter

cheeze6661
Posts: 98
Joined: Fri Jun 24, 2011 7:34 am
Location: Greenfield, TN.

Re: Ubuntu Linux 11.04 and WNA3100 Help....

Post by cheeze6661 » Thu Aug 25, 2011 11:49 pm

This makes no sense.... Sorry for the double post but:

Code: Select all

cheeze@theunknown-linux:~/Downloads/Broadcom$ sudo ndiswrapper -i bcmn43xx64.inf[sudo] password for cheeze: 
driver bcmn43xx64 is already installed
and I run:

Code: Select all

cheeze@theunknown-linux:~$ ndiswrapper -l
bcmn43xx64 : driver installed
	device (0846:9020) present
bcmwlhigh6 : driver installed
	device (0846:9020) present
Then:

Code: Select all

cheeze@theunknown-linux:~$ sudo modprobe ndiswrapper
But it shows nothing.... And my wireless device does not work even after saying the driver is present and it recognizes it as present.
Gotta go for the PRO!!!

[spoiler]Image[/spoiler]

Follow me on Facebook or Twitter

User avatar
codestation
Big Beholder
Posts: 1660
Joined: Wed Jan 19, 2011 3:45 pm
Location: /dev/negi

Re: Ubuntu Linux 11.04 and WNA3100 Help....

Post by codestation » Thu Aug 25, 2011 11:57 pm

cheeze6661 wrote: Edit still getting errors:

Code: Select all

cheeze@theunknown-linux:~$ cd Downloads
cheeze@theunknown-linux:~/Downloads$ cd ndiswrapper
cheeze@theunknown-linux:~/Downloads/ndiswrapper$ sudo make
[sudo] password for cheeze: 
make -C utils
make[1]: Entering directory `/home/cheeze/Downloads/ndiswrapper/utils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/cheeze/Downloads/ndiswrapper/utils'
make -C driver
make[1]: Entering directory `/home/cheeze/Downloads/ndiswrapper/driver'
make -C /usr/src/linux-headers-2.6.38-11-generic M=/home/cheeze/Downloads/ndiswrapper/driver
make[2]: Entering directory `/usr/src/linux-headers-2.6.38-11-generic'
  CC [M]  /home/cheeze/Downloads/ndiswrapper/driver/wrapndis.o
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:34:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:686:38: error: expected ‘)’ before ‘param’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1121:40: error: expected ‘)’ before ‘param’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c: In function ‘notifier_event’:
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1725:36: error: ‘struct ndis_device’ has no member named ‘netdev_name’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1726:13: error: ‘struct ndis_device’ has no member named ‘netdev_name’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1727:20: error: ‘struct ndis_device’ has no member named ‘netdev_name’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c: In function ‘ndis_start_device’:
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1837:12: error: ‘struct ndis_device’ has no member named ‘netdev_name’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1837:52: error: ‘struct ndis_device’ has no member named ‘netdev_name’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c: In function ‘NdisAddDevice’:
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:2070:47: error: macro "initialize_work" passed 3 arguments, but takes just 2
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:2070:2: error: ‘initialize_work’ undeclared (first use in this function)
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:2070:2: note: each undeclared identifier is reported only once for each function it appears in
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:2088:51: error: macro "initialize_work" passed 3 arguments, but takes just 2
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c: In function ‘wrapndis_init’:
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:2119:2: error: implicit declaration of function ‘wrap_worker_init’
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:2119:25: warning: assignment makes pointer from integer without a cast
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c: At top level:
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:596:11: warning: ‘mp_tx_packets’ defined but not used
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:899:13: warning: ‘update_iw_stats’ defined but not used
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:989:13: warning: ‘link_status_off’ defined but not used
/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.c:1001:13: warning: ‘link_status_on’ defined but not used
make[3]: *** [/home/cheeze/Downloads/ndiswrapper/driver/wrapndis.o] Error 1
make[2]: *** [_module_/home/cheeze/Downloads/ndiswrapper/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-11-generic'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/cheeze/Downloads/ndiswrapper/driver'
make: *** [driver] Error 2
Do you have the the linux-headers for your current kernel installed?
I'm not sure why this is.... :( Why couldn't I have just got a wireless usb device that would work out of the box!? I like Netgear products but didn't have any idea it would be this difficult to use.
Blame broadcom for not providing any driver for your device under non-windows OS. You just had bad luck, i have a usb device with a ralink chipset and it works aut of the box.
Edit; Would it be because of me using a 64bit Ubuntu??? Everyone who I've read that has this device working seems to be on 32bit.
Unrelated, as there are 64bit windows drivers to emulate. (i have used ndiswrapper in the past under 64bits without much problems).
Plugin list
Working on: QPSNProxy, QCMA - Open source content manager for the PS Vita
Playing: Error: ENOTIME
Repositories: github, google code
Just feel the code..

cheeze6661
Posts: 98
Joined: Fri Jun 24, 2011 7:34 am
Location: Greenfield, TN.

Re: Ubuntu Linux 11.04 and WNA3100 Help....

Post by cheeze6661 » Fri Aug 26, 2011 12:08 am

How would I change the header to 2.6.38.11 because the info is for patching for kernel 2.6.39 which is not available via ppa
Gotta go for the PRO!!!

[spoiler]Image[/spoiler]

Follow me on Facebook or Twitter

User avatar
codestation
Big Beholder
Posts: 1660
Joined: Wed Jan 19, 2011 3:45 pm
Location: /dev/negi

Re: Ubuntu Linux 11.04 and WNA3100 Help....

Post by codestation » Fri Aug 26, 2011 12:26 am

cheeze6661 wrote:

Code: Select all

cheeze@theunknown-linux:~$ sudo modprobe ndiswrapper
But it shows nothing.... And my wireless device does not work even after saying the driver is present and it recognizes it as present.
That command only shows output in case of errors so the module got loaded. Read the last 15-20 lines of the dmesg command output after the modprobe, you will get the messages from the ndiswrapper (and errors if any).
Plugin list
Working on: QPSNProxy, QCMA - Open source content manager for the PS Vita
Playing: Error: ENOTIME
Repositories: github, google code
Just feel the code..

cheeze6661
Posts: 98
Joined: Fri Jun 24, 2011 7:34 am
Location: Greenfield, TN.

Re: Ubuntu Linux 11.04 and WNA3100 Help....

Post by cheeze6661 » Fri Aug 26, 2011 12:46 am

here's dmesg where the errors started:

Code: Select all

cheeze@theunknown-linux:~$ lsusb | grep -e NetGear
Bus 001 Device 002: ID 0846:9020 NetGear, Inc. 
cheeze@theunknown-linux:~$ dmesg | grep -e ndis -e wlan
[   15.257137] ndiswrapper version 1.56 loaded (smp=yes, preempt=no)
[   15.563355] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   16.067271] ndiswrapper (import:233): unknown symbol: ntoskrnl.exe:'IoUnregisterPlugPlayNotification'
[   16.067288] ndiswrapper (import:233): unknown symbol: ntoskrnl.exe:'IoRegisterPlugPlayNotification'
[   16.067306] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisQueueIoWorkItem'
[   16.067312] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisFreeIoWorkItem'
[   16.067318] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMSetMiniportAttributes'
[   16.067326] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMResetComplete'
[   16.067331] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMAllocatePort'
[   16.067337] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisAllocateIoWorkItem'
[   16.067342] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMSendNetBufferListsComplete'
[   16.067348] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMDeregisterMiniportDriver'
[   16.067353] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisAllocateNetBufferListPool'
[   16.067361] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMNetPnPEvent'
[   16.067369] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMRegisterMiniportDriver'
[   16.067375] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMFreePort'
[   16.067380] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMIndicateReceiveNetBufferLists'
[   16.067386] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMPauseComplete'
[   16.067391] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMOidRequestComplete'
[   16.067397] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisFreeNetBufferListPool'
[   16.067402] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisCancelTimerObject'
[   16.067407] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisOpenConfigurationEx'
[   16.067413] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisSetTimerObject'
[   16.067418] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisFreeTimerObject'
[   16.067425] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisAllocateTimerObject'
[   16.067431] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMIndicateStatusEx'
[   16.067436] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisFreeNetBufferList'
[   16.067446] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisMGetBusData'
[   16.067452] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisGetSystemUpTimeEx'
[   16.067457] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisAllocateNetBufferAndNetBufferList'
[   16.067463] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisAllocateMdl'
[   16.067473] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisAllocateMemoryWithTagPriority'
[   16.067486] ndiswrapper (import:233): unknown symbol: NDIS.SYS:'NdisFreeMdl'
[   16.067490] ndiswrapper (import:233): unknown symbol: WDFLDR.SYS:'WdfVersionBind'
[   16.067494] ndiswrapper (import:233): unknown symbol: WDFLDR.SYS:'WdfVersionBindClass'
[   16.067499] ndiswrapper (import:233): unknown symbol: WDFLDR.SYS:'WdfVersionUnbindClass'
[   16.067503] ndiswrapper (import:233): unknown symbol: WDFLDR.SYS:'WdfVersionUnbind'
[   16.067506] ndiswrapper (load_sys_files:206): couldn't prepare driver 'bcmwlhigh6'
[   16.067961] ndiswrapper (load_wrap_driver:108): couldn't load driver bcmwlhigh6; check system log for messages from 'loadndisdriver'
[   16.068011] usbcore: registered new interface driver ndiswrapper
[  143.345998] wlan0: authenticate with 68:7f:74:51:54:63 (try 1)
[  143.350051] wlan0: authenticated
[  143.350081] wlan0: associate with 68:7f:74:51:54:63 (try 1)
[  143.353797] wlan0: RX AssocResp from 68:7f:74:51:54:63 (capab=0x411 status=0 aid=1)
[  143.353802] wlan0: associated
[  143.361222] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  153.490163] wlan0: no IPv6 routers present
Gotta go for the PRO!!!

[spoiler]Image[/spoiler]

Follow me on Facebook or Twitter

User avatar
codestation
Big Beholder
Posts: 1660
Joined: Wed Jan 19, 2011 3:45 pm
Location: /dev/negi

Re: Ubuntu Linux 11.04 and WNA3100 Help....

Post by codestation » Fri Aug 26, 2011 1:06 am

Were you using the generic ndiswrapper from the ubuntu repos? those lines indicated some undefined symbols that were solved by the patches from the other link.

Or... try with this one: http://sourceforge.net/projects/ndiswra ... /1.57-rc1/, it seems that it has those patches integrated already so give it a try.
Plugin list
Working on: QPSNProxy, QCMA - Open source content manager for the PS Vita
Playing: Error: ENOTIME
Repositories: github, google code
Just feel the code..

cheeze6661
Posts: 98
Joined: Fri Jun 24, 2011 7:34 am
Location: Greenfield, TN.

Re: Ubuntu Linux 11.04 and WNA3100 Help....

Post by cheeze6661 » Fri Aug 26, 2011 1:18 am

OMG!!!! All day I've been working on this and guess what!!!!???? I got it!!!! :D I had to remove the drivers i already had active, remove the ndiswrapper, edit and recompile the new source and install. Restart the computer then I installed the usb wireless driver again. Restarted and the blue light started flashing on my netgear device!!! Success!! Thank you codestation for your support and sending me that info. ;) VERY VERY Helpful!!

Edit: to answer you codestation... I was using the 1.57-rc1 but I had already installed the one from ubuntu repo. And then I tried making the edits that I read in all the other forums and would get either errors after sudo make or it would compile and I'd get errors after sudo make install. But I got it. I just un-installed everything that I had already done and did it one step at a time to re-make and re-install the correct ndiswrapper for my product. I'm currently connected with it now.
Gotta go for the PRO!!!

[spoiler]Image[/spoiler]

Follow me on Facebook or Twitter

Post Reply

Return to “General”