filepath to ntoskernal_io.c

Asked by David Turner on 2011-07-19

I am trying to set up bcmwlhigh5.inf, the driver for Netgear WNA3100 Wireless USB Adapter. On other help files it states to make manual alterations to the file ntoskernal_io.c.

I am unable to locate this file on my Ubuntu11.04 installatation.

Additionally ls -R ntos* |more FAILS
And tree FAILS, telling me it isn't installed so I am at this moment unable to do a full directory search

Would appreciate any help...???

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ndiswrapper Edit question
Assignee:
No assignee Edit question
Solved by:
Eliah Kagan
Solved:
2011-07-22
Last query:
2011-07-22
Last reply:
2011-07-22

The best ways to search from the command line are locate and find. You can view their manual pages at http://manpages.ubuntu.com.

Also, I suspect that the file is called ntoskernel_io.c rather than ntoskernal_io.c.

Manfred Hampl (m-hampl) said : #2

There is an extra package called tree that you would have to install first before you can use it.

But there is a standard Unix command that allows searching for a file.

Open a terminal and enter the following command:

find / -name "ntoskern*l_io.c" -print 2>/dev/null

David Turner (dturnertms) said : #3

Manfred,

Thanks for your answer - the "list" syntax was very helpful - I was missing the '/' before.

I have been able to do a full directory search from the $ (where you can't cd .. any further : I can't call it 'root' cos theres a root folder!)

and entered the find command in the form find /host -name "*ntosk*.c"
for every directory host, root, sys, etc, lost+found etcetera AND...

it returned zero results. [I am content the syntax is correct because using the pattern "*k*.c" worked - (but not finding the file I wanted)]

there are a few folders and sub-folders that have permissions off and I set some of these using sudo chmod -R a+rwx and re-ran
the find but again zero results. I didn't set permissions for all the folders but I don't think the file I'm after is in there.

I think that the file I am searching for "ntoskern*.c" doesn't exist in Ubuntu 11.04.

I was directed to this file from the link at :
http://www.tomshardware.co.uk/forum/29833-18-linux-driver-wna3100-adapter
which tells me to add some script to the file to get ndiswrapper to work correctly with bcmwlhigh5.inf - the driver for Netgear WNA3100 wireless adapter.

This link might be referring to a previous version of Ubuntu???

If so my question is:

a) is there an equivalent .c file in 11.04 and if so should I just add the script to the end and carry out the other instructions in the link?
b) if there is no equivalent how do I get Netgear WNA3100 running on Ubuntu? Its currently running correctly on Windows7.

Thanks for reading through all this and if you are able to help further.

David

> To: <email address hidden>
> From: <email address hidden>
> Subject: Re: [Question #165369]: filepath to ntoskernal_io.c
> Date: Wed, 20 Jul 2011 08:06:35 +0000
>
> Your question #165369 on ndiswrapper in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ndiswrapper/+question/165369
>
> Manfred Hampl proposed the following answer:
> There is an extra package called tree that you would have to install
> first before you can use it.
>
> But there is a standard Unix command that allows searching for a file.
>
> Open a terminal and enter the following command:
>
> find / -name "ntoskern*l_io.c" -print 2>/dev/null
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/ndiswrapper/+question/165369/+confirm?answer_id=1
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/ndiswrapper/+question/165369
>
> You received this question notification because you asked the question.

/usr/src/ndiswrapper-1.56+r2729/ntoskernel_io.c is provided in Ubuntu 11.04 by the package ndiswrapper-dkms. Install that package, and you should have the file.

David Turner (dturnertms) said : #5

Eliah

I had already installed ndiswrapper (-utils and -common) from another site using the Ubuntu Software Centre [just by right clicking on the
.deb file from the USB drive and selecting it]. I then tried installing drivers but they failed and at that point I was stuck until I was
referred to another site directing the change to the ntoskernel_io.c file.

The file ntoskernel_io_c wasn't in the etc/src folder and I now think that I didn't install ndiswapper correctly the first time and missed some files : I think I manually copied some files - not understanding an installer is meant to be used!

I downloaded though just now the package ndiswrapper-dkms from
http://packages.debian.org/squeeze/all/ndiswrapper-dkms from my working windows envioronment, copied it to USB and attempted to install it on Ubuntu.

I used the Ubuntu Software Centre again and this time it wouldn't allow me even to click on the Install button, coming up with the message "Dependency is not satisfiable"

I unzipped the .deb file on the USB file and did find the ntoskernel_io.c file nested in one of the folders BUT how do I now get all this lot ported to the correct places within Ubunut and installed properly???

AND - do I need to try to uninstall the exsiting ndiswrapper? [what is the best tool to do this with???]

AND - the site above talks of Debian and not Ubuntu: is this still ok? I am on the AMD chipset not the i386.

Thanks

David

 > To: <email address hidden>
> From: <email address hidden>
> Subject: Re: [Question #165369]: filepath to ntoskernal_io.c
> Date: Wed, 20 Jul 2011 23:35:51 +0000
>
> Your question #165369 on ndiswrapper in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ndiswrapper/+question/165369
>
> Status: Open => Answered
>
> Eliah Kagan proposed the following answer:
> /usr/src/ndiswrapper-1.56+r2729/ntoskernel_io.c is provided in Ubuntu
> 11.04 by the package ndiswrapper-dkms. Install that package, and you
> should have the file.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/ndiswrapper/+question/165369/+confirm?answer_id=3
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/ndiswrapper/+question/165369
>
> You received this question notification because you asked the question.

You should not obtain ndiswrapper-dkms from http://packages.debian.org/squeeze/all/ndiswrapper-dkms. The Debian version is not appropriate for an Ubuntu system. You should get the Ubuntu version instead. You should also make sure you have the Ubuntu versions of the other packages you've installed. What site did you get ndiswrapper-utils and ndiswrapper-common from? (As an alternative to telling me what site and having me check to see if you got the right packages--which I am willing to do, if you want--you could simply uninstall them in the Software Center and replace them with the packages discussed below.)

Launchpad has download links for the correct packages. The Launchpad links are not the only correct links, but the advantage of downloading them from Launchpad rather than from an Ubuntu software archive site is that Launchpad is https rather than http, which means that the likelihood of a corrupted download is enormously less--the data won't decrypt and check out as genuine if it is modified between the server and your computer, and that applies to transmission errors just as much as it applies to malicious man-in-the-middle attacks. (When you download software on an Internet-connected Ubuntu system through automated means, it uses http connections, but that's OK in that case because it checks the digital signatures on each downloaded package file after downloading it.)

See https://launchpad.net/ubuntu/+source/ndiswrapper for all the packages whose names start with ndiswrapper-. Expand "The Natty Narwhal". If you have a 32-bit PC or 32-bit Intel Mac, you should get the packages whose names say i386. If you have a 64-bit PC or Intel Mac, you should get the packages whose names say amd64, whether or not your CPU is actually an AMD. (Actually, if you are running the 32-bit version of Ubuntu on a 64-bit machine, then you should get the i386 versions; it's a matter of what version of Ubuntu you're running rather than what your architecture actually is.) Get all the .deb files for your architecture (or, if you're absolutely sure that the ndiswrapper-common and ndiswrapper-utils packages you installed were the right ones, you can just get ndiswrapper-dkms and ndiswrapper-source). You should install ndiswrapper-source if you haven't installed it already. (And if you have installed it already, you should make sure that you have installed the correct package for it.)

You will also need dkms, as ndiswrapper-dkms depends on it. You can get it at https://launchpad.net/ubuntu/+source/dkms; as with the ndiswrapper- packages, expand "The Natty Narwhal". There's only one .deb file, so that's the one you want.

David Turner (dturnertms) said : #7

Thanks Eliah, I managed to uninstall all ndiswrapper components using Ubuntu Software Centre and installed ndiswrapper-commona and ndiswrapper-utils. The other two : -dkms and -source came up with "Dependency is not satisfied" BUT I noticed the link you gave me had dependencies available for download too so will try this tomorrow.

For ndiswrapper-dkms, you need dkms; I have provided information on how to get that, above.

I did neglect to provide information about ndiswrapper-source's dependencies. You will probably need the module-assistant package, as a dependency of ndiswrapper-source. You can get module-assistant at https://launchpad.net/ubuntu/+source/module-assistant. Like with dkms, the packages are not architecture-specific, so just expand The Natty Narwhal and download the .deb file. Install that before installing ndiswrapper-source.

David Turner (dturnertms) said : #9

I installed module-assistant_0.11.4-all.deb from the link you gave me and installed using the Ubuntu Software Centre.

When I tried then to install ndiswrapper-source it came back with
"Dependency is not satisfiable:debhelper(>=5)"

When I tried then to install ndiswrapper-dkms it came back with
"Dependency is not satisfiable:dkms(>=2.1.0.0)

"Dependency is not satisfiable:debhelper(>=5)"

You can get debhelper at https://launchpad.net/ubuntu/+source/debhelper (like dkms and module-assistant, there is just one .deb file under The Natty Narwhal, and that's the one you need).

"Dependency is not satisfiable:dkms(>=2.1.0.0):

Did you install dkms (https://launchpad.net/ubuntu/+source/dkms) before installing ndiswrapper-dkms?

I don't know how many more dependencies there will be; I guess my Natty machine has a lot more stuff installed on it than yours does. But you can simulate the installation of the packages you are trying to install, which will reveal their dependencies with a reasonably good degree of accuracy. (It would be with perfect accuracy, except your local package information is not fully current, and cannot reasonably be made current in your current situation.)

To do this, open a Terminal and run this command (it is intentional that I did not start the command with sudo):

apt-get -s install packagename

Replace packagename with the name of the package you want to simulate installing. Please note that this does not actually install anything. You can see the unmet dependencies listed under the text "The following extra packages will be installed:". You should be able to find them by noticing the pattern in the URL's that I have sent you for finding packages (alternatively, you can go to https://launchpad.net, click on Ubuntu in the featured packages list, and search for the package you're interested in in the package search box). If you have trouble finding them, please feel free to post a reply asking for help. For some packages, there might be multiple versions available for The Natty Narwhal. In these cases, you should probably pick the latest version (highest version number), unless it is indicated to be provided by 'proposed' or 'backports' but not also by 'updates' and/or 'security'.

David Turner (dturnertms) said : #11

Thanks. I was able to install all the dependencies and now have

ndiswrapper-common, -utils, -source and -dkms sucessfully installed via the Ubuntu Software Centre

ndiswrapper-dkms depended upon debhelper which had itself dependencies. I unzipped the .deb and looked at the control file
which listed about 10 dependencies, 2 of which were not present on my machine which were:

    Html2text.deb and po-debconf.deb

I downloaded both of these from the same source - launchpad and got debhelpher isntalled afterwards.
Initially I used the i386 build but the Ubuntu Software Centre didn't like it and came back with "wrong architecture". After I used the Amd build which worked.

I now have all 4 necessary ndiswrapper files so next will go to the ntoskernel.io.c file and make alterations as per instructions on another site.

Theres a few stages after that to finally get the adpater working so I might be back. Cheers,