I love free software.
All this was done with a static IP, but of course any embedded device worth its salt needs to be able to acquire a dynamic IP. This is fairly easy to activate in lwip, provided that the rest of the framework is interacting well with the custom-written Ethernet driver.
The proof is, however, in the
puddingtesting: I didn’t have a spare router or anything lying at work though, and didn’t want to risk plugging the devboard into the office LAN (and thereby potentially bringing down the office network at 5pm). I tried in vain for a while to configure my desktop (a Mac) to enable DHCP on it, but then gave up. It seems that tools you pay for is really hard to use, especially if you want it to do something that doesn’t have a cute little icon in the “System Preferences” dialog.
So instead I fired up my personal linux laptop, installed dhcp3-server via apt, and voila! the devboard leased an address and it was up and running!
If you are not a geek, the reason that this is so cool is that… ugh, never mind :)