Live data from Hacker News

Linux on an 8-bit micro (2012)

dmitry.gr

21–30 of 47 posts

Re: Linux on an 8-bit micro (2012)

#21
post #7

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.

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)

#22

Does anyone know why these 8-bit processors are so expensive? The two he listed ATmega1284p and ATmega644a cost like $9.07 (qty 1) to $4.88 (qty 2.5k), and $7.08 (qty 1) to $3.79 (qty 2.5k) on Mouser. I would have thought we're talking like a $1.30 chip. Meanwhile look at what you get for $6 - http://linuxgizmos.com/quad-core-allwinner-soc-targets-low-c... Am I missing something? Or are his 8-bit microcontrollers act…

They're nice parts; 8-bit micros with a lot of Flash. ATtiny20 is the cheap end with hardly any Flash.

Re: Linux on an 8-bit micro (2012)

#23

Does anyone know why these 8-bit processors are so expensive? The two he listed ATmega1284p and ATmega644a cost like $9.07 (qty 1) to $4.88 (qty 2.5k), and $7.08 (qty 1) to $3.79 (qty 2.5k) on Mouser. I would have thought we're talking like a $1.30 chip. Meanwhile look at what you get for $6 - http://linuxgizmos.com/quad-core-allwinner-soc-targets-low-c... Am I missing something? Or are his 8-bit microcontrollers act…

The ATMega128... parts are the second-to-largest 8-bit micro that Atmel sells, I think they already have a strange combination of a lot of flash & RAM (for a 8-bit CPU), but not that many, or that complex, peripherals. So they might only be used in (comparatively) low volume in fringe applications.

As an example for "embedded, non Linux" microcontrollers, the lpc1227 (32bit Cortex-M0 @ 45MHz, 128k Flash) is only half the cost (~$2 @ 10k units) at much more CPU power and more versatile peripherals. Probably a much more balanced (and maybe more popular) choice for applications of a comparable complexity...

Re: Linux on an 8-bit micro (2012)

#24
post #21
post #7

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.

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 ...

Or if that's not "true" enough, Xenix was a Unix for 8-bit systems.

Re: Linux on an 8-bit micro (2012)

#25
post #22

Does anyone know why these 8-bit processors are so expensive? The two he listed ATmega1284p and ATmega644a cost like $9.07 (qty 1) to $4.88 (qty 2.5k), and $7.08 (qty 1) to $3.79 (qty 2.5k) on Mouser. I would have thought we're talking like a $1.30 chip. Meanwhile look at what you get for $6 - http://linuxgizmos.com/quad-core-allwinner-soc-targets-low-c... Am I missing something? Or are his 8-bit microcontrollers act…

They're nice parts; 8-bit micros with a lot of Flash. ATtiny20 is the cheap end with hardly any Flash.

sure, but he didn't get it working on attiny20 :) ($0.57 @ qty 5k) which is what the project kind of looks/sounds like...

Re: Linux on an 8-bit micro (2012)

#27
post #24
post #21

Earlier quoted context omitted.

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 ...

Or if that's not "true" enough, Xenix was a Unix for 8-bit systems.

Xenix ran on 16-bit systems.

Re: Linux on an 8-bit micro (2012)

#28
post #24

Earlier quoted context omitted.

Or if that's not "true" enough, Xenix was a Unix for 8-bit systems.

Xenix ran on 16-bit systems.

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)

#29
post #20
post #9

Unbelievable proof of concept. It is just genius that this guy made this. But what do you think that we can get out of this? Are there any practical reasons to run Linux on Micro-controller?

> But what do you think that we can get out of this? One can learn that sometimes it's worthwhile, or even the prudent thing to do, to emulate the hardware instead of porting code. Emulating a 32bit CPU on a 8bit µC is certainly a little over the edge, but it's not unheard of to emulate a legacy/antique CPU on a newer one to make use of proven code. See for example the ancient HP48 calculators, where the obsolete ori…

> it's not unheard of to emulate a legacy/antique CPU on a newer one to make use of proven code.

It's probably less to do with using proven code and more to do with maintaining perfect bug-for-bug compatibility. You can't even reimplement the bugs you haven't discovered yet. Also, writing an interpreter for most microcode is fairly methodical. Depending on what level of detail you need to emulate (clock timings, interrupts etc) it could be quicker and simpler than digging up an old fossil of a developer who knows enough about the original software to port it for you.

Re: Linux on an 8-bit micro (2012)

#30
post #28

Earlier quoted context omitted.

Xenix ran on 16-bit systems.

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."

FUZIX and UZIX runs on an Z80
Post reply on HN