Author Topic: Newbie, Kernel change will this work?  (Read 215 times)

Offline noob420

  • Full Member
  • ***
  • Posts: 79
  • Support Type 1 Diabetes Reasearch
Newbie, Kernel change will this work?
« on: November 21, 2012, 04:16:23 AM »
OK I just installed latest pclos after being away for over a year. Well had a piece of hardware not work(Netgear wna3100 wireless usb) Since I am very curious about learning this problem started a quest for me. LOL Well after trying and reading I found this  http://sourceforge.net/apps/mediawiki/ndiswrapper/index.php?title=Netgear_WNA3100

Add the following to ntoskernal_io.c

wstdcall NTSTATUS WIN_FUNC(IoUnregisterPlugPlayNotification,1)
(void *tag)
{
      TRACE2("%p", tag);
      TODO(); /* Probably Not, legacy function abandoned in Windows 7 */
      IOEXIT(return STATUS_SUCCESS); /* Linux doesn't use it either */
}

There is no need any more for custom compilation, it is already done in the current version(1.57) of ndiswrapper.

So after reading and try to understand GRUB, can I use GRUB to load this modified file? I would copy it do the recompiling(?) then replace file and would GRUB load this file? Right? also I would not delete or overwrite the original file just change ext. to old.
Is this the best way?
Tahks for any help!

Offline noob420

  • Full Member
  • ***
  • Posts: 79
  • Support Type 1 Diabetes Reasearch
Re: Newbie, Kernel change will this work?
« Reply #1 on: November 21, 2012, 04:18:34 AM »
Forgot to add the Netgear is my only connection to the Internet. That is a major problem, can't update!! the easy way LOL

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3981
Re: Newbie, Kernel change will this work?
« Reply #2 on: November 21, 2012, 05:01:13 AM »
I don't think that code needs adding to the kernel, but to a file in the ndiswrapper source called ntoskernal_io.c. As I read the wiki, it is already added to ndiswrapper 1.57 and later, so the logical thing would be to ask for an upgrade to ndiswrapper.

There is no need to touch GRUB.


-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline noob420

  • Full Member
  • ***
  • Posts: 79
  • Support Type 1 Diabetes Reasearch
Re: Newbie, Kernel change will this work?
« Reply #3 on: November 21, 2012, 09:54:08 AM »
Thanks really don't know my way around yet! I will check in S manager and see which one I have and if not correct, do you know if pclos has it and I can try to download and install manual. Again really a newbie with Linux just saw kernal and have messed around in Windows XP kernel files LOL love to hack!

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3981
Re: Newbie, Kernel change will this work?
« Reply #4 on: November 21, 2012, 01:22:33 PM »
Pclos only normally has one version of any program, so your version should be 1.55, the same as mine. However, you can look for the Package Update request part of the forum (read the rules there before posting) and then ask for an upgrade. If someone feels friendly they might oblige.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf