News for hackers. Stuff that matters.
Re:Linux on an 8-bit micro? (2012) by teddyh on Tuesday September 20, 2016 @03:44AM (#12537837)
More like Linux on 32-bit ARM, but running in an emulator on an 8-bit processor. I don't think this qualifies as “Running” Linux on an 8-bit processor.

I voiced the same complaint when somebody claimed to “run” Windows 3 on an Apple watch (IIRC), which also was achieved by running a standard PC-hardware emulator, and running Windows 3 on that.

These are somewhat interesting accomplishments, but the click-bait factor is high.

Re:Linux on an 8-bit micro? (2012) by nullc on Tuesday September 20, 2016 @03:59AM (#12537907)
So Linux isn't 'running' on your x86_64 cpu because cpu is microcoded... or transmeta? Or... Linux is written in C.. so it's not running on your computer because it doesn't execute C directly?

Come on. There is a 8-bit microcontroller running a linux system, the rest is implementation details and semantics.

Re:Linux on an 8-bit micro? (2012) by derefr on Tuesday September 20, 2016 @04:25AM (#12537984)
I think the argument is that one would expect "Linux running on architecture Foo" to imply support in Linux for Foo, rather than support in Foo for Linux that allows Linux to run unmodified. I certainly expected, when I clicked, to read about someone's effort to rewrite a minimal subset of the Linux kernel to use exclusively 8-bit registers and no MMU.
Re:Linux on an 8-bit micro? (2012) by poizan42 on Tuesday September 20, 2016 @04:58AM (#12538084)
Linux can already run on MMU-less systems (CONFIG_NOMMU). GCC already supports AVRs, though you may have to tweak the backend a bit so ints are 32-bit wide etc.

These are not the big issues in porting the Linux kernel to an AVR. The major problem is that AVR is Harvard architecture and there's probably tons of assumptions in the kernel that code and data resides in the same memory space.

Re:Linux on an 8-bit micro? (2012) by poizan42 on Tuesday September 20, 2016 @07:14AM (#12538574)
- also ATmega1284P and ATmega644A mentioned in the article doesn't support external code memory nor changing the code memory after boot. However they do support a boot loader that can load code initially. So you would have to implement some sort of paging by resetting the cpu to give control to the bootloader to load the new code. Sound like fun. Also the kernel itself is far too large to fit in code memory, so it would constantly have to page parts in and out through this mechanism.
Re:Linux on an 8-bit micro? (2012) by nullc on Tuesday September 20, 2016 @11:41AM (#12540353)
Fair enough, I didn't read the comment in terms of adding arch specific support in linux.
Re:Linux on an 8-bit micro? (2012) by tomtomtom777 on Tuesday September 20, 2016 @04:52AM (#12538059)
I wouldn't exactly call it click-bait.

The crux of both the article and the accomplishment is writing an 32-bits ARM emulator that works on an 8-bit machine.

Definitely not child's play, and a valid route to run Linux on 8-bit.

Re:Linux on an 8-bit micro? (2012) by teddyh on Tuesday September 20, 2016 @04:59AM (#12538089)
Rhetorical question: If writing the emulator was the “crux”, then why doesn’t the headline mention it? Why isn’t the whole article about it? I would certainly have upvoted and whole-heartedly lauded a story entitled “An 32-bit ARM emulator for an 8-bit CPU”.

Instead, they used the headline and article content to heavily imply to actually have ported Linux to an 8-bit processor. It’s not until into about half the article that they reveal the emulation bit. Therefore, click bait, pure and simple.

Re:Linux on an 8-bit micro? (2012) by VLM on Tuesday September 20, 2016 @08:13AM (#12538873)
There is some wonderousness that they completed the emulation enough to run something complicated like linux.

Its very easy to use something limited, say a HP48 in RPN mode and some arrays as "memory" and variables as registers to implement a couple opcodes of say a 68hc11. I did that around '93 or so when the 'hc11 was contemporary (its ancient history now, but it was kind of a 6809-like microcontroller with pretty good specs for the era)

On the other hand its hard to get a complete emulator working of everything, or at least close enough to everything to boot a major software project on top of it.

Sort of like implement a system/360 emulator that only does opcode ADD, well, ok cool, but when you can boot MVS/360 thats a whole nother level of wow.

Re:Linux on an 8-bit micro? (2012) by teddyh on Tuesday September 20, 2016 @09:42AM (#12539398)
Sure it’s a cool emulator. Which is why they should have led with that. But they implied they did something else and waited until half the article to even mention the emulator.
Re:Linux on an 8-bit micro? (2012) by nickpsecurity on Tuesday September 20, 2016 @01:27PM (#12541262)
I'm with you on the title and such. I thought it was a port of Linux to 8-bit with something like uCLinux. Then I saw it was a project emulating a 32-bit CPU to spend 4 hours booting Ubuntu. A cool accomplishment but not what title made me think.
Re:Linux on an 8-bit micro? (2012) by joosters on Tuesday September 20, 2016 @09:59AM (#12539518)
I think it's actually more impressive that this runs linux by emulating a 32-bit ARM on an 8-bit processor!
Re:Linux on an 8-bit micro? (2012) by cellularmitosis on Tuesday September 20, 2016 @06:02PM (#12543783)
Indeed! It is also a nice real-world analogy to the idea of a Turing machine. As long as the machine can advance and rewind the tape, and read and write to the tape, it can accomplish any computational task...