Wifi driver

Bret has written a Wifi driver for DSLinux. It has been added to CVS and is enabled in all builds.
Like the sound driver added recently, it still contains bugs, but it’s fun to try it out anyway.

This is what he says about it:

Alpha version of wireless driver.

There are some new files in the tar file new_files.tar.
There are also patches to existing files wifi_patches. (I hope
people can patch with this). After you build you will also
find a new directory and new script in images/linux/usr/share/udhcpc
that you will need to copy to your card. (I should put this
in /etc I suppose, next release…)

I am developing with a SUPERCARDCF, so that is what these
config files configure. To use this with other builds, someone
will need to update the config.linux-2.6.x for the other
product types.

To use this driver try the following

iwconfig nds channel N essid your_essid
ifconfig nds up
udhcpc -n -q -i nds

Network should now be up.

try ping www.yahoo.com

Other things you can do
iwlist nds scanning

NOTES:
1) This is really ALPHA quality code. It needs lots of cleanup. It
is all just a big hack for now. I was mainly trying to get it to
work based on the wifi_lib from Stephen Stair. Now that is does,
I can clean it up more and make it more functional.
2) scanning doesn’t scan the channels, it just reports the ap list it
has. You can manualy step through all the channels, and get a full
list of all the ap’s.
3) Don’t fully support all options to iwconfig. Coming soon.
4) ap association needs retry logic/timers.
5) seems like large data transfers get system into stuck state.
6) haven’t tested adhoc networks. Anyone with a handy adhoc network,
give it a try and let me know.
7) WEP. The code is there but I haven’t yet tried to get it to work.
Which it doesn’t. So, non WEP stuff for now. WEP coming soon.
8) In general I know very little about the 802.11 standards. I get
them off the web, but they are dense reading. So, I would love to
chat with someone with more wireless experience.

18 Responses to “Wifi driver”

  1. Kineox Says:

    And if you don’t have DHCP on your wireless network :

    iwconfig nds channel N essid <your_essid>
    ifconfig nds <nds_ip>
    route add default gw <your_gateway_ip>

    Then edit /etc/resolv.conf adding:
    nameserver <your_dns_server>

  2. bucko Says:

    Will WPA support ever come wonce WAP is finished?

    Great work so far :D .

  3. bucko Says:

    Wups I mean WEP…^

  4. somedood Says:

    Very nice work! Glad to see that things are progressing… I take it TCP and such arent’t working yet?

  5. DynaStab Says:

    TCP is built into linux….

  6. pepsiman Says:

    TCP is enabled and works until it crashes.

  7. El_hobito Says:

    oooooh this is exciting! im thinking, linux shoutcast……

  8. YEeeeeeah Says:

    I’m thinking… browsers, email, streaming video and the like.

  9. Tom Says:

    Can’t say i’m a DS user but from me and the rest of the PSP community…. good job

  10. Linux DS now supports WiFi at Nintendo DS Box Says:

    […] to try out LinuxDS on my original DS after I buy DSLite. via [Digg] Nintendo, DS, DS Hacks read more | digg story
    If you enjoyed this post Bookmark it on del.icio.us

    […]

  11. Joe Says:

    So since Wifi & TCP is (kinda) working, SSH and such are possible right *now*?

  12. Nathanael L Says:

    Add support for IPv6! Exept that, I don“t have anything to say other than good job.
    I hope it supports GBA-cards with USB, so you can plug in cameras, printers, and stuff.
    I also hopes that it will have a browser, possibility to download stuff, and that it will support Wi-Fi connection with Linux, Mac, and Windows, so that you can transfer files, etc., trough the Wi-Fi connection.

  13. FlyingSquirrl Says:

    Fantastic work!!!!!! I haven’t gotten it to work yet with my PowerBook either in ad-hoc mode or managed with Internet Sharing, but sometimes connecting to WFC for Animal Crossing through my PowerBook is finnicky. I will try my access point at home tonight. I see there’s a telnet app built in to DSLinux too!

  14. Desmume Says:

    Can we expect some built in apps - so that we don’t have to type all the commands?

  15. Leif902 Says:

    uhoh, when i run this (on the newest version as of Feb 10 06) w/o essid it goes into an infinite loop saying (over and over) something “transferfault3″… -Leif902 (i’ll make sure not to forget the essid tag next time :D )

  16. Bret Says:

    I wasn’t able to reproduce the infinite loop bug. How exactly did you get into that mode.

    Also, any reports of things that do and don’t work with the wifi driver would be appreciated. I can fix them as I have time.

  17. TheBigL Says:

    Nintendo announced that the opera webbrowser will be released for the ds. on a cartridge.

  18. Linux Unix » Linux on Nintendo DS now supports wifi (alpha) Says:

    […] s blog that there is now alpha wifi support for DSLinux, the Linux port to the Nintendo DS.read more | digg story Comments are closed. […]