20080316

FreeBSD/arm on a Linksys NSLU2 (slug)

Thanks to some encouragement from Gavin Atkinson, I have been able to boot the AVILA kernel on my Linksys NSLU2 (slug). I have it running of NFS root at 266MHz. Not super fast, but not too bad. I need to clean up a bunch of stuff still, but at least I have the basics working.

I'll post more in a few days, once I get a chance to clean up what I have and submit it to CVS. But this is very exciting...

7 comments:

Ken said...

Great stuff! The gang at http://www.nslu2-linux.org/ would probably be really interested in hearing all about it.

Warner Losh said...

I'll be sure to check them out when I have things working. There turns out to be an issue with USB at the moment, and there's a bunch of cleanup that's needed to the hacks I have. But the basics are working, and working with only a couple of hours of effort.

Warner Losh said...

Thanks to a bug fix by Sam Laffler for the Avila board he's working on, I now have working usb on the slug. I'm getting close to having a useful kernel that fits in 1MB that can be flashed into the slug with upslug2. All I need to do now is figure out why the packets that upslug2 is sending when built for FreeBSD are triggering a sanity check in the code (for a packet that's 45kb, no wonder we hit the santiy check!). My goal is to have a RAM disk and kernel image that can be flahsed into the unit, but with 6.25MB of available space for the RAM disk, it is going to be tight.

Anonymous said...

Oh man, I'd love to see this. Linux is fine but BSD just feels so much better on lighter hardware.

Don Hayford said...

Two questions: (1) How's it going - any idea when more details might get posted?
(2) If you're familiar with Debian/Apex on the NSLU2, you can have a kernel that is larger than 1 Mb. Have you considered that?

Thanks for getting this going.
Don

Warner Losh said...

(1) I have things basically working, but stalled for time. I'll be having a little more time for stuff like this in the coming weeks, and have been talking to others that also might be able to help push it into the tree.

When I left off, I was within striking distance on the size of the kernel for this device.

(2) I'm familiar with Debian/Apex, but had rather hoped to avoid going down that step.

Warner Losh said...

I just committed the kernel config file for basic support. See my newer blog entry about this.

http://bsdimp.blogspot.com/2008/08/nslu2-support-committed-to-freebsdarm.html