I know, I know... don't use the non-standard kernels unless you have to... BUT: I have a D-Link N150 USB card. Bus 001 Device 004: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271] This isn't supported in C5, but it is supported in newer kernels (ath9k_htc). So let's try NDISwrapper: # rpm -i kmod\-ndiswrapper\-1.56\-1.el5.elrepo.i686.rpm ndiswrapper\-utils\-1.56\-1.el5.elrepo.i386.rpm warning: kmod-ndiswrapper-1.56-1.el5.elrepo.i686.rpm: Header V3 DSA signature: NOKEY, key ID baadae52 Working. This may take some time ... Done. # cd WLAN/ # ls athuw.sys* netathuw.cat* netathuw.inf* # ndiswrapper -i netathuw.inf installing netathuw ... forcing parameter MapRegisters from 256 to 64 forcing parameter MapRegisters from 256 to 64 [repeated multiple times] # ndiswrapper -l netathuw : driver installed device (0846:9030) present # modprobe ndiswrapper # dmesg | tail -5 ndiswrapper: driver netathuw (,09/30/2010,7.7.0.98) loaded wlan0: ethernet device c4:3d:c7:bc:ea:89 using NDIS driver: netathuw, version: 0x70007, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 0846:9030.F.conf wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK usbcore: registered new driver ndiswrapper ADDRCONF(NETDEV_UP): wlan0: link is not ready # ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr C4:3D:C7:BC:EA:89 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) # /sbin/iwlist wlan0 scan | grep ESSID.*sweh ESSID:"sweh" So far, so good! BUT... # iwconfig wlan0 nickname fred # iwconfig wlan0 essid sweh # iwconfig wlan0 wlan0 IEEE 802.11g ESSID:off/any Nickname:"fred" Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated Bit Rate=150 Mb/s Encryption key:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 Hmm, ESSID isn't being set. If I try to configure wpa_supplicant then it never associates properly. So I'm not totally convinced ndiswrapper is working for me. So I figured... dammit; let's try a generic kernel. Not good, but... I compile 3.2.9, install the modules and then try an boot... and it fails to find my root disk and panics. I can see from the boot messages that the kernel is seeing them, but it's failing to mount and switchroot. (of course I can't get useful information 'cos you can't do anything useful after a panic!) Looking at the initrd, it seems to have all the right drivers and modules, and the init script _looks_ correct... but it's just not working. Has anyone else tried to get 3.2.9 to work with C5.8? Or has anyone any advice for getting ndiswrapper to work for me (or other ways of running the N150 card)? Thanks! -- rgds Stephen
On Wed, Apr 4, 2012 at 9:51 AM, Stephen Harris <lists at spuddy.org> wrote:> I know, I know... don't use the non-standard kernels unless you have to... > > BUT: I have a D-Link N150 USB card.(snip)> > Has anyone else tried to get 3.2.9 to work with C5.8?Alan Bartlett of ELRepo built a 3.0.x kernel for EL5. http://elrepo.org/people/ajb/devel/kernel-ml/el5/ and is asking people to test. Please note that this is strictly for *testing* purposes. It may or may not boot, but you can certainly give it a try and see if your hardware works. Akemi
Carlos Daniel Ruvalcaba Valenzuela
2012-Apr-04 17:07 UTC
[CentOS] 3.2 kernel with C5? Or ndiswrapper?
> I compile 3.2.9, install the modules and then try an boot... ?and > it fails to find my root disk and panics. ?I can see from the boot > messages that the kernel is seeing them, but it's failing to mount and > switchroot.Seems to me that your kernel build configuration does not include the FS module, for example, if your root FS is ext4 or xfs you should select it as compiled into kernel not as a module, that should ease a lot of pain. Also the problem with compiling a new kernel is that the vanilla configuration may not work for you and configuring kernel options can be pretty daunting at first and even with each new version new stuff keeps piling in. If you are going the kernel route I suggest to check if you can get the centos kernel config, check if the centos kernel has config build-in, if it does you should have a file in /proc/config.gz which should help you bootstrap the new kernel with the correct options. Regards, Carlos Ruvalcaba
On Wed, Apr 4, 2012 at 9:51 AM, Stephen Harris <lists at spuddy.org> wrote:> I know, I know... don't use the non-standard kernels unless you have to... > > BUT: I have a D-Link N150 USB card. > > Bus 001 Device 004: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271]OK, we are back here. Your device seems to be supported by ELRepo's kmod-compat-wireless. Details are here: http://elrepoproject.blogspot.com/2012/03/one-size-fits-all-compat-wireless-fits.html So, give it a try. :) Akemi
On 4/4/2012 10:51 AM, Stephen Harris wrote:> > I compile 3.2.9, install the modules and then try an boot... and > it fails to find my root disk and panics.By "install the modules," do you mean you rebuilt the initrd? If not, try that. A missing or mismatched initrd could explain your inability to boot the new kernel.
On 04/04/2012 11:51 AM, Stephen Harris wrote:> I know, I know... don't use the non-standard kernels unless you have to... > > BUT: I have a D-Link N150 USB card. > > Bus 001 Device 004: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271] > > This isn't supported in C5, but it is supported in newer kernels (ath9k_htc). > > So let's try NDISwrapper: > > # rpm -i kmod\-ndiswrapper\-1.56\-1.el5.elrepo.i686.rpm ndiswrapper\-utils\-1.56\-1.el5.elrepo.i386.rpm > warning: kmod-ndiswrapper-1.56-1.el5.elrepo.i686.rpm: Header V3 DSA signature: NOKEY, key ID baadae52 > Working. This may take some time ... > Done. > # cd WLAN/ > # ls > athuw.sys* netathuw.cat* netathuw.inf* > # ndiswrapper -i netathuw.inf > installing netathuw ... > forcing parameter MapRegisters from 256 to 64 > forcing parameter MapRegisters from 256 to 64 > [repeated multiple times] > # ndiswrapper -l > netathuw : driver installed > device (0846:9030) present > # modprobe ndiswrapper > # dmesg | tail -5 > ndiswrapper: driver netathuw (,09/30/2010,7.7.0.98) loaded > wlan0: ethernet device c4:3d:c7:bc:ea:89 using NDIS driver: netathuw, version: 0x70007, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 0846:9030.F.conf > wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK > usbcore: registered new driver ndiswrapper > ADDRCONF(NETDEV_UP): wlan0: link is not ready > # ifconfig wlan0 > wlan0 Link encap:Ethernet HWaddr C4:3D:C7:BC:EA:89 > UP BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > > # /sbin/iwlist wlan0 scan | grep ESSID.*sweh > ESSID:"sweh" > > So far, so good! > > BUT... > # iwconfig wlan0 nickname fred > # iwconfig wlan0 essid sweh > # iwconfig wlan0 > wlan0 IEEE 802.11g ESSID:off/any Nickname:"fred" > Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated > Bit Rate=150 Mb/s > Encryption key:off > Power Management:off > Link Quality:0 Signal level:0 Noise level:0 > Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 > Tx excessive retries:0 Invalid misc:0 Missed beacon:0 > > Hmm, ESSID isn't being set. If I try to configure wpa_supplicant > then it never associates properly. > > So I'm not totally convinced ndiswrapper is working for me. > > So I figured... dammit; let's try a generic kernel. Not good, but... > > I compile 3.2.9, install the modules and then try an boot... and > it fails to find my root disk and panics. I can see from the boot > messages that the kernel is seeing them, but it's failing to mount and > switchroot. > > (of course I can't get useful information 'cos you can't do anything > useful after a panic!) > > Looking at the initrd, it seems to have all the right drivers and > modules, and the init script _looks_ correct... but it's just not > working. > > Has anyone else tried to get 3.2.9 to work with C5.8? > > Or has anyone any advice for getting ndiswrapper to work for me (or > other ways of running the N150 card)? >You might try the uek2 kernel (rebuilt from the oracle sources) for el5 from the testing repo too: http://dev.centos.org/centos/5/ That is based on a 3.1.x kernel, though it is versioned as 2.6.39-* -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20120404/cc1098b2/attachment-0003.sig>
On Wed, Apr 04, 2012 at 04:16:29PM -0500, Johnny Hughes wrote:> On 04/04/2012 11:51 AM, Stephen Harris wrote:> > Bus 001 Device 004: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271]> You might try the uek2 kernel (rebuilt from the oracle sources) for el5 > from the testing repo too: > > http://dev.centos.org/centos/5/ > > That is based on a 3.1.x kernel, though it is versioned as 2.6.39-*Hmm. $ mkdir X $ cd X $ rpm2cpio < ../kernel-uek-2.6.39-100.5.1.el5uek.i686.rpm | cpio -id 146014 blocks $ depmod -b . 2.6.39-100.5.1.el5uek $ grep 0846 lib/modules/2.6.39\-100.5.1.el5uek/modules.alias | grep 9030 $ Nope, doesn't have the drivers :-( Thanks for the idea, though! -- rgds Stephen