Slashdot Mirror


GameBoy Web Server

Huma79 writes "Adrian O'Grady has successfully gotten TCP/IP and PPP working on his handheld Gameboy Advance for a web server. Pictures of the server running and a telnet session to it can be found at fivemouse.com."

61 of 212 comments (clear)

  1. Re:But why? by Kronovohr · · Score: 5, Funny

    maybe he intends to build a beowulf clu*WHACKWHACKWHACK* OW DAMNIT! I didn't say it! I *SWEAR!*

  2. Re:But why? by Moonshadow · · Score: 5, Insightful

    Because you can.

    The motto of all true engineers.

  3. This is all well and good by Saint+Aardvark · · Score: 4, Funny
    until the damn thing crashes and loses your high score for SuperMarioLand. You listening, Adrian? Don't come crying to us then, sucker!

  4. Re:But why? by ryants · · Score: 5, Insightful
    Why? WHY!?
    It's a Zen thing: if you have to ask, you'll never understand the answer.
    You have to push the limits of that which is sane and accepted, not push the limits of that which is practical.
    Is this an attempt at a koan?
    --

    Ryan T. Sammartino
    "Ancora imparo"

  5. GBA.battle.net by Vardamir · · Score: 4, Interesting

    I'd like to see a program written for the Gamecube and/or PC(this includes macs, etc.) that allows you to connect your gameboy advance (for the gamecube there is already the GCN-GBA link) and play with other GBA players over the internet (when the NIC for the Gamebue is available) as if GBA's were directly linked.

    Right now, I'm mainly thinking about playing Golden Sun against other people.

    1. Re:GBA.battle.net by cscx · · Score: 2, Funny

      That is sooo not practical. The lag would be unbearable. You're better off playing chess with someone in Europe by writing your each individual move on paper, putting it in a glass bottle, and throwing it into the North Atlantic.

    2. Re:GBA.battle.net by Sludge · · Score: 3

      Uh, the guy said Golden Sun. It's turn based combat. I'm pretty sure my cable modem could stand up to the bandwidth needed to play those sorts of games.

    3. Re:GBA.battle.net by Anonymous Coward · · Score: 4, Funny
      You're better off playing chess with someone in Europe by writing your each individual move on paper, putting it in a glass bottle, and throwing it into the North Atlantic.

      I tried that once, and almost had a checkmate. Thanks Él Niño for ruining my game!

    4. Re:GBA.battle.net by alvi · · Score: 2, Funny
      North Atlantic

      I claim that the North Atlantic has more bandwidth than your cable modem. The latency is another story though.

  6. this is cool 8) by Anonymous Coward · · Score: 4, Funny

    I can see now: Access Denied. You are not allowed to view /personalrecords.pl until you have successfully found all 6 Diamond Crystals and converted them to Gaia Armor or until you have beaten stage 4 in the Darm Realm, "Ville of the Damned." add more excitement to that dull intarnet!

  7. *sigh* by beowulf_26 · · Score: 4, Interesting

    Does anyone else hear the rumble of Nintendo closing in on this poor chap? I think it's sad when I read something like this and I first think "Oh cool. That's really smart, useless but cool." and then I cringe thinking about people like him getting squashed in litigation. I got five bucks that says he gets a cease and desist letter...

    Heh, that or I've been successfully turned to /. pessimism. You decide.

    --

    --I hate big sigs.
    1. Re:*sigh* by anticypher · · Score: 5, Funny

      He is using a FlashLinker from Lik-Sang in Taiwan. Covered before on /.

      Fortunately, the UK doesn't (yet) outlaw a simple data cable as a DMCA circumvention device, unlike other countries with far fewer freedoms for CompSci students.

      So when the UK gets its laws in order, then Nintendo can crack down on eeeviiiilll hackers like Adrian, who obviously are going to use this webserver as a warez site :-)

      the AC

      --
      Hemos is like...sci-fi fans;he thinks technology is cool, but he hasn't bothered to understand the science it's based on
    2. Re:*sigh* by welshsocialist · · Score: 2, Insightful

      I see no problems for the lad as long he doesn't reverse-engineer the GBA.

      --
      Support the Chagossians
  8. Re:But why? by ryants · · Score: 5, Funny
    ... after actually reading the article ...
    What a concept.
    --

    Ryan T. Sammartino
    "Ancora imparo"

  9. GBA programming by Anonymous Coward · · Score: 5, Informative

    It's amazingly easy to write programs for the Gameboy Advance. Since it has an ARM processor, gcc is readily available, and there is a strong developer community. Even a programming novice could probably write a few decent demos or games. For anyone who is interested in game programming, check out gbadev.org.

    Don't be intimidated; the webserver looks like it took a lot more work than it would take to create a game. The hardest part for his project was probably establishing a PPP link.

    1. Re:GBA programming by Canis · · Score: 3, Insightful
      Yup, there's plenty of emulators available to get started with and if you want to see stuff running on actual hardware, all you need is a multiboot cable (you can get them from Lik-Sang). Because the GBA allows multiplayer games to run with only one cartridge, it already has a protocol in place for transmitting programs from one GBA to another -- the MB cable simulates this from a PC, allowing you to upload your software to the GBA, which is pretty damn cool. Later, you may wish to get a flash-cart writer which allows you to dump your software into flash RAM in a GBA-compatible cartridge, which gives you more space to work with and you can take it with you instead of being tethered to the PC... however you may want to watch that DMCA if you're in the USA as this may be classed as a 'circumvention device' (sigh).

      Another interesting handheld console to check out is the GP32 (Note: site's mostly in Korean). I think it's been mentioned on /. before. Very similar layout to GBA, but where the GBA runs at ~16mhz, the GP32's ARM processor can have its clockspeed set by software up to 133mhz (though obviously this drains batteries faster). It doesn't have any custom graphics hardware, you just write 16-bit RGB colour values to a linear frame buffer, but even at the more-usual 60mhz clock speed, it runs Doom very nicely. Oh yes, and the screen is 320x240 as opposed to the GBA's 240x160.

      Of course, it's not a Nintendo, so it's almost guaranteed to fail, as Ninty have that market pretty sewn up. Still, if you just want to write something for your own entertainment, the GP32's sweet.

  10. Other GBA hacking projects.... by Anonymous Coward · · Score: 5, Informative

    I haven't heard of Nintendo exactly "closing in" on other projects for the GBA, such as an NES emulator or the Afterburner front-light mod....

    By the way, the NES emulator alone is worth getting a GBA for - not some dumb old webserver that nobody (especially not the Big N) is going to care about :)

    AC

  11. Re:People have too much time on their hands by ryants · · Score: 5, Interesting
    You can write a TCP/IP stack for some processor on some platform? Yeah, we all _know_ that can be done, but, why waste your time doing something useless?
    I'm willing to be the guy learned a great deal by doing this. A while ago I wrote a spaceship flying demo in OpenGL. Utterly useless. It's been done before. But hey, I learned a lot about OpenGL in the process.

    If you're just going to sit there doing only "useful" stuff that's completely original, you aren't going to get much done.

    --

    Ryan T. Sammartino
    "Ancora imparo"

  12. Whats at the end? by tbx2000 · · Score: 2, Funny

    PPP on a gameboy? What's next? I know I, for one, will not be happy until somebody TCP/IP-izes my old Atari 2600...

  13. Not as cool as... by ralian · · Score: 4, Funny

    the Spud Server!!

    --

    -raph

    1. Re:Not as cool as... by quantaman · · Score: 3, Funny

      Which reminds me, how the heck are we supposed to /. this thing if he doesn't post a link?!? Anyone find a link to the actual gameboy?

      --
      I stole this Sig
    2. Re:Not as cool as... by FattMattP · · Score: 3, Informative

      I think you mean this link for a webserver that's really powered by potatos: http://world.std.com/~fwhite/spud/

      --
      Prevent email address forgery. Publish SPF records for y
  14. Apache? by Galahad2 · · Score: 4, Funny

    Yeah, echo server is all and good, but I'd like to see them get Apache 2.0 on there.
    Oh.. that's right... no mod_pearl. Oh well.

  15. Re:People have too much time on their hands by Tazzy531 · · Score: 2
    I mean, I guess it's cool, but what have you proved? You can write a TCP/IP stack for some processor on some platform? Yeah, we all _know_ that can be done, but, why waste your time doing something useless? It's not like someone is going to throw out their NT or Linux server and replace with a GameBoy Advance or Lego brick anytime soon


    Quite true that this is useless to you/the world, but to him, the person that did this, he has learned a great deal. I mean, what have you done? what "valuable" asset have you produced? [I'm not saying this to say that you are worthless, but to point out that big things tend to start out small. Look at Napster for example, I don't think Shawn Fanning sat down one day and decided to make an P2P app to turn the record industry on its head...]

    In addition, it just shows that the same thing that all these bloated programs/os's that we have out there can be done on a rather small device with limited hardware. I remember back in the days when the ultimate thing was to be able to design a graphic intense demo using only 640K. I keep seeing it all the time and it's just getting worse. Lazy coders and uneducated programmers don't bother writing code that can be done with 25% less lines or 25% less resources just because right now there's no need. The hardware is far ahead of the software demands. This typically leads to bloat.
    --


    _______________________________
    "I'm not Conceited...I'm just a realist..."
  16. Poor mario... by 42forty-two42 · · Score: 3, Funny

    If he didn't have a super mushroom he'd never survive all those SYN packets...

  17. Re:But why? by the_2nd_coming · · Score: 2

    sorry, he ment " because you can, the motto of a true hacker (in the classical sence of thew term)"

    --



    I am the Alpha and the Omega-3
  18. Re:next. by darc · · Score: 2, Informative

    Basically, porting linux would be fairly difficult. Since the GBA doesn't have an MMC, you can only port embedded versions, like ucLinux, without serious work. The hardware is also totally foreign, so in the end, it's pretty damn hard to do.

    Not impossible, but still really hard.

    --
    Tired of legitimate data sources? Try UNCYCLOPEDIA
  19. Re:People have too much time on their hands by ryants · · Score: 4, Insightful
    I detect a hint of sarcasm.

    If all you can see is he learned about writing web servers for GBA, and you think this is not a very marketable skill, then you are very myopic.

    I prefer to look at it this way: the guy probably learned a fair bit about embedded programming (on a very constrained system no less), along with networking.

    The Next Big Thing for console games (disclaimer: I work for EA) is going to be to get them online and networked.

    Hmmm.... put those two together, and I'll bet even you can figure out where I'm going with this....

    --

    Ryan T. Sammartino
    "Ancora imparo"

  20. Re:People have too much time on their hands by mgv · · Score: 3, Interesting

    Quite true that this is useless to you/the world, but to him, the person that did this, he has learned a great deal. I mean, what have you done? what "valuable" asset have you produced?

    Yes, I'd agree. Probably the most useful things I did was to write a ROM ripper for the C-64 to read game cartridges, and a graphic printer driver for the MPS 802 printer (No mean feat - it only had one 8x8 graphic character per line - boy did that print head fly with all those carriage returns).

    Point is, neither of those things were terribly useful. So what. They were fun. I don't look back at my youth with regret because I could have done something else with my time.

    To be truthful, I'm rather envious of Adrian for having the skills to do this sort of thing.

    Michael

    --
    There is no cryptographic solution to the problem where the intended receiver and the attacker are the same entity.
  21. Re:ok.... by sydneyfong · · Score: 3, Insightful

    I'm having trouble seeing it as pratical or useful

    So do I. Because it's not intended to be any of those. Why does everything have to be USEFUL? I bet the guy had loads of fun hacking this thing together. And besdies, it's damn cool. Oh well, I guess it should be useful to the guy who made it, since he'd have learnt a great deal in the process.

    On the other hand, I fail to see how your comment is useful or practical either. It's great that you took the time to write it but I'm not gonna take it. Feel free to mod me flamebait ;-)

    --
    Don't quote me on this.
  22. wehavethewayout.com by Traser · · Score: 3, Funny

    In related news, port scans of wehavethewayout.com indicate that it is running on a GameBoy Advance. It is reputed to be much more stable than the Windows IIS put in to replace the FreeBSD box.

    --
    Insanity is contagious. - Yossarian
  23. Pays an homage to saint Linus... by anticypher · · Score: 5, Interesting

    If you look way down on his web page, back to the october days, he starts by creating a multi-threading kernel, and then writing alternate A's and B's to the screen. This is what Linus did when he was testing his first attempt at multi-threading two processes.

    If you read through the site, you get the idea he is learning all kinds of requisite CompSci skills along the way. That's good enough reason to do a project like this.

    From a late night hacking session on 3rd April 2002: I believe this may be a world first. My GBA is currently connected to the Internet (yes, if I gave you the address, you could access it right now!).

    Now, if he only would post that IP address, we could see how it stands up to the /. effect :-)

    the AC

    --
    Hemos is like...sci-fi fans;he thinks technology is cool, but he hasn't bothered to understand the science it's based on
  24. Re:But why? by ciole · · Score: 2, Funny

    Me and my homeboy back in the admin lab almost ten years ago, fixing 286s or 8088s, i forget, got the idea to see how many monitors and separate video cards we could put in one box. When our supervisor walked in, he said "Are all those monitors running off that one computer? Why do you have three monitors attached to it?"

    We replied, "Because four wouldn't work."

  25. For everyone who is asking why by Anonymous Coward · · Score: 5, Informative

    This is taken from an interview with the author http://www.consolevision.com/features/interviews/g ba/adrianon.shtml

    "I wanted to write something that was technically perfect but practically useless so that the university couldn't make any money out of my project. "

  26. Re:But why? by minusthink · · Score: 2

    for the same reason writers write novels and not instruction manuals.

    or something.

    --
    "when life gets complicated, I like to take a nap in a tree and wait for dinner" - Hobbes.
  27. Read this for everyone who is asking why by Anonymous Coward · · Score: 4, Informative

    blah. This is taken from an interview with the author http://www.consolevision.com/features/interviews/g ba/adrianon.shtml

    "I wanted to write something that was technically perfect but practically useless so that the university couldn't make any money out of my project. "

    i like girls

  28. Re:But why? by Lumpy · · Score: 5, Insightful

    Ok we can explain this easily...

    If you wanted to write a comms protocol for the GBA that was a standard (TCP/IP over ppp) to write a game that can play against multiple players you (if you have a brain) use an established and open protocol. now you need to figure out how to write clients and servers... well the easiest thing to write is a http server.

    this guy wrote it for learning.. he now has the tools to make something really cool for the GBA.

    this is why.. edu-ma-cation and learning and research.

    why did we go to the moon? we knew what was there. so why did we kill 3 astronauts, and waste gagillions to do it? we could have just bought a 30 billion dollar telescope to look at it.

    understand now?

    --
    Do not look at laser with remaining good eye.
  29. Re:Interesting... by DarkEdgeX · · Score: 2

    Well, supposedly the largest (EP)ROM you can buy right now is 255 Mbit (note, not megabyte, megabit, so 32 megabytes).. can Linux be squeezed into such a small space and still have functionality to boot/etc? Is there even enough volatile memory available in a GBA to work? I know NetBSD was running on a Dreamcast (though I don't think they've (the developers) have gone much farther than just getting it to boot and run), so it seems reasonable to see atleast that running on the GBA's ARM processor...

    Does anyone know the minimum memory/media constraints for Linux though? I've never given it much thought. =)

    --
    All I know about Bush is I had a good job when Clinton was president.
  30. Re:But why? by EvilGwyn · · Score: 5, Funny

    Hell yeah. I heard someone actually wrote a version of the UNIX kernel that would run on home PCs. Like anyone would ever use something like that.

    --
    Phear my l33t homepage.
  31. AMEN - Because you can... by GrendelT · · Score: 5, Insightful

    "If you have to ask why, you're not a member of the intended audience. Please go on about your business and accept my apologies for this distraction."
    ---Bob Zinbinski, author of TTYQuake

  32. Ping? by SeanTobin · · Score: 5, Funny

    If you ping it, will it pong?

    --
    Karma: SELECT `karma` FROM `users` WHERE `userid`=138474;
  33. Heh, it balances out by Wheaty18 · · Score: 2, Funny

    The fact that it can run a web server certainly makes me overlook the "screen is too dark" issue.

  34. Re:But why? by Waffle+Iron · · Score: 5, Interesting
    Obviously working for hour upon hour to write a web server for a freakin' Game Boy that no one will use will ever fit any of those categories.

    It's called play. Most curious people learn through playing. A few people with Eric Cartman-like personalities, however, can't understand the concept.

  35. oh, of course by yzquxnet · · Score: 3, Funny

    soo... what games do you have for your GBA?

    games? oh, I never got into the whole gaming thing.

    so what are you doing with a GBA?

    oh, just hosting a website or two. you know, in my spare time.

  36. http://dunkels.com/adam/uip/ by Anonymous Coward · · Score: 2, Informative

    Are you happy now?

  37. Re:Big deal. by redcliffe · · Score: 2

    Got a website about that? I'd like to see how you built it....

  38. Re:But why? by Moonshadow · · Score: 2

    Actually, in my experience, engineers will spend more time, money, and effort developing an easier, faster, more cost-efficient way than if they had just done it the normal way in the first place. :)

  39. How does one measure usefulness? by NanoGator · · Score: 5, Insightful

    I skimmed some of the posts on this topic and was a little disheartened by some people's reactions to the usefulness of this hack. Let's put a couple of things into perspective:

    1.) It's not a product

    2.) It looks as though he just wanted to do it for shits and giggles, not seriously trying to solve any probelms other than 'it can be done.'

    A lot of things we take for granted today were based on ideas that people questioned the usefulness of. Did anybody think Pong was useful? "Why would I pay $119 for a game that I could play on a pingpong table?"

    Consider that usefulness depends on the individual too. You yourself may not care about running a websever on a GBA, but soembody might find an interesting use for it. If I were setting up a brand new network somewhere, I could see the potential of firing up a GBA, getting it on the network, and seeing if I could connect to it. It could be a troubleshooting device, maybe. (Although if it's connected to a Linux machine, that idea seems a little absurd. But if they made the GBA independent of it...)

    What of somebody took the code from this project and made the GBA into a VNC client? I think there are sysadmins out there who would find that rather useful. Seeing as how GBA's are $70 nowadays, that could turn into an interesting product. There are some of us out there that would think it was totally cool that I could buy a GBA and get reimbursed from my company with it, heh.

    Come to think of it... if the XBOX were a little more open, it could turn into one hell of a sysadmin tool....

    --
    "Derp de derp."
    1. Re:How does one measure usefulness? by NanoGator · · Score: 2

      Because I wouldn't have to set the damn thing up?

      --
      "Derp de derp."
    2. Re:How does one measure usefulness? by NanoGator · · Score: 2

      It'd be seperate software. :P

      I never said anything about 'out of the box'. Heh.

      --
      "Derp de derp."
    3. Re:How does one measure usefulness? by Toraz+Chryx · · Score: 2

      Because an Xbox can be had for a bit less than a 700Mhz PC?

      because microsoft take a loss anytime someone buys one?

  40. Somebody needs to get that dude laid. by LWolenczak · · Score: 3, Funny

    Somebody needs to get that dude laid.

  41. Re:But why? by SkewlD00d · · Score: 2

    License to "Be Silly": $0
    Skills learned: priceless

    Hands on tinckering is a good way to learn, even if the result is silly.

    Yeah, but a webserver on a PIC is a much cooler thing. Yes, even your watch could have a web server. I'm thinking that building something cool and useful is even more l337. I think that a line of sight optikal ethernet link is pretty kewl (and useful!).

    That's just my 10b cents.

    --
    The biggest trick the devil pulled was letting lawyers become politicians so they can write the laws.
  42. Re:Big deal. by NoMoreNicksLeft · · Score: 2

    While this was meant as a joke (and moderated as "Troll"... do they hand out free crack with the 5 points?) I could point you in the right direction. Personally, I've been into hardware hacking for about 3 years now, and I have tried my hand at 10baseT. Good thing I'm an amateur too, sucess rate has only been about 50%. 802.11 is something else entirely though... I know *just* enough to know that I'll never be any sort of RF engineer. This doesn't seem as important at first, providing that you can get ahold of some sample chips, it's not like you're designing a fancy antenna, right? The thing is pretty much a 1 chip solution. The problem is, that the whole pcb itself tends to affect the signal in ways that I just can't understand, no matter how I try. I'm one of those guys, that all the physics I know, I learned from star trek (another joke, crackmoderator... besides, I just got my karma up to 40, have fun trying to knock me down).

    Now... have someone figure out the RF aspect of it, and I might have a shot. It wouldn't be the best designed 802.11 card ever, it would probably even be pretty skanky, but I might manage a functional design. And since this guy already has a tcp/ip stack written...

    Actually, there are 2 pico ip stacks that I know of anyway, if that's even necessary. The GBA is pretty beefy, right? No longer the ugly little z80 with 32k of ram. Hell, you might even manage to funk the linux kernel and drivers well enough, to not have to worry so much about drivers. Haha, that might actually be fun, providing you can make it small enough to fit a pass through connector... play multi-player wireless (I'm not so great on the software side of things, but some sort of software shim to make it think that you were using the serial port can't be that impossible). Hell, I might even go for wireless web browsing. Does the color screen do high enough rez to get some porn on it? ;-)

    If you're truly interested, email me at john.oyler@attbi.if-u-cant-figure-this-out-i-dont- want-to-talk-to-you.com. I can at least walk you through the process of finagling crystal to send some sample chips (not so keen on hobbyists).

  43. But.. by ByteHog · · Score: 2

    If we slashdot it, will it catch on fire? I always wonder what happens to all these little webservers people keep making.. a watch, a gameboy... what will a DoS attack do to it?

    Drain the batteries for sure..

    --
    - This isn't the sig you're looking for. Move along, move along..
  44. Re:But why? by MaxVlast · · Score: 2

    "why did we go to the moon? we knew what was there. so why did we kill 3 astronauts, and waste gagillions to do it? we could have just bought a 30 billion dollar telescope to look at it."

    Because the Soviets put the first satellite and astro/cosmonaut in orbit?

    --
    There should be a moratorium on the use of the apostrophe.
    Max V.
    NeXTMail/MIME Mail welcome
  45. Re:But why? by user32.ExitWindowsEx · · Score: 3, Funny

    TI-89.....
    *thinks*
    *laughs evily*
    *disappears into darkness*

    --
    "Evil will always triumph because good is dumb." -- Dark Helmet
  46. Re:People have too much time on their hands by mgv · · Score: 2

    In other words, anybody with an EPROM burner could 'rip' a C64 cartridge

    Getting off topic here, and replying to an AC post as well, but the aim was to copy the ROM to tape or disk and then run from RAM, so you didn't need any extra hardware.

    Michael

    --
    There is no cryptographic solution to the problem where the intended receiver and the attacker are the same entity.
  47. Re:WHY?? by saintlupus · · Score: 2

    Think about it... how about plugging your gba into your network and firing up a gamespy type utility on your gba

    If only I could code worth a damn - this would be a great toy to port tcpdump to. Set it up to fill a flash EPROM and dump it all across the 'net to one of my own boxen, maybe, and leave it sitting in a drop ceiling somewhere.

    --saint

  48. FTP server on a palm by SCHecklerX · · Score: 3, Interesting

    What *I* really want is and ftp server, or SMB share, on my Clie (any palm, really). Sure would make grabbing stuff from it or putting stuff on it quite nice. It shouldn't be hard, somebody just has to write it...yeah, I know, but it's not so important to me to take my time away from other projects yet :)

  49. Now. LikSang no longer uses UPS. by yerricde · · Score: 3, Informative

    When can I buy liksang items here in the USA ?!?!?!

    Now. LikSang.com still sells Game Boy Advance development accessories to customers in the U.S. It has just dropped UPS for United States destinations. Just ship your accessories via EMS Speedpost, and you'll be fine.

    [ /me goes back to playing his spinning tetris clone on GBA ]

    --
    Will I retire or break 10K?