News for hackers. Stuff that matters.
Re:Linux on an 8-bit micro (2012) by duaneb on Wednesday December 24, 2014 @03:03AM (#8792057)
This is probably one of the crazier projects I've ever seen. I've often contemplated what running a "true os" on an 8 bit CPU would entail, and TBH the idea of an emulator never struck me.

On top of that, a hand-wired linux computer with hand-written arm emulator? Ridiculous.

Re:Linux on an 8-bit micro (2012) by reidrac on Wednesday December 24, 2014 @04:48PM (#8794649)
I'm not an expert but AFAIK it makes sense: he's using an AVR and that's Harvard architecture, meaning code and data use different buses so all you can run must be in the flash of the microprocessor.

So emulation is a way to workaround that "limitation".

Edit: on mobile, typos

Re:Linux on an 8-bit micro (2012) by pantalaimon on Wednesday December 24, 2014 @12:07PM (#8793518)
What about RIOT [1], Contiki [2] or TinyOS [3]?

[1] http://riot-os.de/ [2] http://www.contiki-os.org/ [3] http://www.tinyos.net/

Re:Linux on an 8-bit micro (2012) by duaneb on Wednesday December 24, 2014 @01:48PM (#8794009)
Of those, it seems like only TinyOS would qualify (a full userland stack that you can develop from) under the same qualifications that netbsd might qualify....

To be clear, by "true os", I mean a posix runtime, preemptive multitasking with threads and processes, memory protection.

Still, cool links (I'll save that TinyOS for later this week), and I like the username.

Re:Linux on an 8-bit micro (2012) by revelation on Wednesday December 24, 2014 @01:52PM (#8794030)
Most 8 bit micros don't have an MMU, so you can't have memory protection or virtual memory. That's a hardware limitation.
Re:Linux on an 8-bit micro (2012) by duaneb on Wednesday December 24, 2014 @02:48PM (#8794261)
> so you can't have memory protection

You can if you emulate all memory.... I had never considered that solution before, that was my original point :)

Re:Linux on an 8-bit micro (2012) by pantalaimon on Friday December 26, 2014 @10:49AM (#8799102)
I think you will like NuttX [1] even more :)

[1] http://www.nuttx.org/

Re:Linux on an 8-bit micro (2012) by pjc50 on Wednesday December 24, 2014 @06:46AM (#8792502)
Well, you could run CP/M on an 8-bit system, which would have been called a "true OS" at the time it was written and sold ...
Re:Linux on an 8-bit micro (2012) by duaneb on Wednesday December 24, 2014 @01:49PM (#8794014)
Hah, I've actually run CP/M on a DEC Robin! I wouldn't call that a "true os" by my (own, flawed, unspecified) definition because it doesn't have memory protection or preemptive multitasking.
Re:Linux on an 8-bit micro (2012) by dalke on Wednesday December 24, 2014 @07:03AM (#8792537)
Or if that's not "true" enough, Xenix was a Unix for 8-bit systems.
Re:Linux on an 8-bit micro (2012) by justin66 on Wednesday December 24, 2014 @08:26AM (#8792755)
Xenix ran on 16-bit systems.
Re:Linux on an 8-bit micro (2012) by dalke on Wednesday December 24, 2014 @09:13AM (#8792882)
Oops! Yes. 16 bit. I was thinking of the 8 bit data bus of the 16 bit 8088.

What about Micronix? http://www.retrotechnology.com/herbs_stuff/mnix_micronix.htm... - "As far as I know, Micronix was the only Unix-like multiuser system ever to run on an 8 bit processor."

Re:Linux on an 8-bit micro (2012) by Zardoz84 on Wednesday December 24, 2014 @10:43AM (#8793183)
FUZIX and UZIX runs on an Z80
Re:Linux on an 8-bit micro (2012) by dalke on Wednesday December 24, 2014 @11:30AM (#8793378)
Cool! And it meets the 'multiuser' qualifier too: "UZI180 is a multi-tasking, multi-user operating for the Zilog Z180 family of microprocessors.", from https://github.com/EtchedPixels/FUZIX/tree/master/Kernel .
Re:Linux on an 8-bit micro (2012) by duaneb on Wednesday December 24, 2014 @01:49PM (#8794017)
Wow, great find! Thanks!