Chuck Zmudzinski
2010-12-11 22:35:35 UTC
I saw in the mailing list archives a few weeks back that iwn(4) for
5100/5300 AGN devices was working in netbsd-current but hasn't been
ported to netbsd-5 yet. I decided to try and get it working in
netbsd-5 with minimal changes to the netbsd-5 kernel sources.
I got it working to the point I could run 'dhcp iwn0' and get a
dhcp lease, but pinging the router gave me this error from arp:
arpresolve: can't allocate llinfo on iwn0 for 192.168.6.1
See the copy of my message to netbsd-users about how my patch to netbsd-5
kernel source was constructed.
If anyone can direct me about how to fix this error in arp, let me
know. Would it require a lot of work, or a simple fix?
-----Original Message-----
From: Chuck Zmudzinski<***@netscape.net>
To: netbsd-***@netbsd.org
Sent: Fri, Dec 10, 2010 11:55 am
Subject: iwn 5100AGN for netbsd-5 success
I saw in the mailing list archives a few weeks back that iwn(4) for
5100/5300 AGN devices was working in netbsd-current but hasn't been
ported to netbsd-5 yet. I decided to try and get it working in
netbsd-5 with minimal changes to the netbsd-5 kernel sources.
Seven files were patched in src/sys/dev/pci: if_iwn.c, if_iwnreg.h
if_iwnvar.h, pcidevs, pcidevs.h pcidevs_data.h, and pcireg.h.
The details:
1. Used the first of version of src/sys/dev/if_iwn.c that works with
the 5100/5300 iwn devices from the current branch (revision 1.33), but
removed the two lines associated with revision 1.25 of
src/sys/dev/if_iwn.c. The iwn(4) driver failed in netbsd-5 with that
revision included - that revision was part of a major commit to the
netbsd-current kernel networking code.
2. Used the first version of src/sys/dev/if_iwnreg.h that works with
the 5100/5300 iwn devices from the current branch (revision 1.6).
3. Used the first version of src/sys/dev/if_iwnvar.h that works with
the 5100/5300 iwn devices from the current branch (revision 1.6).)
4. Edited the src/sys/dev/pcidevs file to add the new iwn devices
(these changes were derived from additions to pcidevs between revision
1.967 and 1.968 of src/sys/dev/pcidevs, but I changed "Pro/Wireless" to
"PRO/Wireless" for consistency with the other devices):
5. Regenerated src/sys/dev/pcidevs.h and src/sys/dev/pcidevs_data.h
using 'make -f Makefile.pcidevs'
6. Edited the src/sys/dev/pcireg.h file to add the changes that were
included in the changes to pcireg.h when the support was added for the
new iwn(4) devices in netbsd-current. It is essentially revision 1.57
(the netbsd-5 version) of pcireg.h patched with the changes between
revision 1.60 and 1.61 of pcireg.h.
7. Added the updated firmware for the 5100 AGN to my filesystem.
The 5100 iwn(4) device in my Toshiba laptop successfully runs 'dhclient
iwn0' in my patched netbsd-5 kernel (I am using the 5.0.2 release)
where it listened for dhcp offers, but I haven't tested it with an
actual wireless network in range yet to see if it makes a connection -
I assume it will work with a network in range; if it doesn't when I try
it I'll post a followup message.
The actual patchfile against the netbsd-5 kernel is too big to post
here (about 300K) because the difference in if_iwn.c between the
netbsd-5 version (revision 1.22.4.3 I think) and revision 1.33 is
rather large.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
5100/5300 AGN devices was working in netbsd-current but hasn't been
ported to netbsd-5 yet. I decided to try and get it working in
netbsd-5 with minimal changes to the netbsd-5 kernel sources.
I got it working to the point I could run 'dhcp iwn0' and get a
dhcp lease, but pinging the router gave me this error from arp:
arpresolve: can't allocate llinfo on iwn0 for 192.168.6.1
See the copy of my message to netbsd-users about how my patch to netbsd-5
kernel source was constructed.
If anyone can direct me about how to fix this error in arp, let me
know. Would it require a lot of work, or a simple fix?
-----Original Message-----
From: Chuck Zmudzinski<***@netscape.net>
To: netbsd-***@netbsd.org
Sent: Fri, Dec 10, 2010 11:55 am
Subject: iwn 5100AGN for netbsd-5 success
I saw in the mailing list archives a few weeks back that iwn(4) for
5100/5300 AGN devices was working in netbsd-current but hasn't been
ported to netbsd-5 yet. I decided to try and get it working in
netbsd-5 with minimal changes to the netbsd-5 kernel sources.
Seven files were patched in src/sys/dev/pci: if_iwn.c, if_iwnreg.h
if_iwnvar.h, pcidevs, pcidevs.h pcidevs_data.h, and pcireg.h.
The details:
1. Used the first of version of src/sys/dev/if_iwn.c that works with
the 5100/5300 iwn devices from the current branch (revision 1.33), but
removed the two lines associated with revision 1.25 of
src/sys/dev/if_iwn.c. The iwn(4) driver failed in netbsd-5 with that
revision included - that revision was part of a major commit to the
netbsd-current kernel networking code.
2. Used the first version of src/sys/dev/if_iwnreg.h that works with
the 5100/5300 iwn devices from the current branch (revision 1.6).
3. Used the first version of src/sys/dev/if_iwnvar.h that works with
the 5100/5300 iwn devices from the current branch (revision 1.6).)
4. Edited the src/sys/dev/pcidevs file to add the new iwn devices
(these changes were derived from additions to pcidevs between revision
1.967 and 1.968 of src/sys/dev/pcidevs, but I changed "Pro/Wireless" to
"PRO/Wireless" for consistency with the other devices):
5. Regenerated src/sys/dev/pcidevs.h and src/sys/dev/pcidevs_data.h
using 'make -f Makefile.pcidevs'
6. Edited the src/sys/dev/pcireg.h file to add the changes that were
included in the changes to pcireg.h when the support was added for the
new iwn(4) devices in netbsd-current. It is essentially revision 1.57
(the netbsd-5 version) of pcireg.h patched with the changes between
revision 1.60 and 1.61 of pcireg.h.
7. Added the updated firmware for the 5100 AGN to my filesystem.
The 5100 iwn(4) device in my Toshiba laptop successfully runs 'dhclient
iwn0' in my patched netbsd-5 kernel (I am using the 5.0.2 release)
where it listened for dhcp offers, but I haven't tested it with an
actual wireless network in range yet to see if it makes a connection -
I assume it will work with a network in range; if it doesn't when I try
it I'll post a followup message.
The actual patchfile against the netbsd-5 kernel is too big to post
here (about 300K) because the difference in if_iwn.c between the
netbsd-5 version (revision 1.22.4.3 I think) and revision 1.33 is
rather large.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de