Linux On a Motorola 68000 Solder-less Breadboard 147
New submitter lars_stefan_axelsson writes: When I was an undergrad in the eighties, "building" a computer meant that you got a bunch of chips and a soldering iron and went to work. The art is still alive today, but instead of a running BASIC interpreter as the ultimate proof of success, today the crowning achievement is getting Linux to run: "What does it take to build a little 68000-based protoboard computer, and get it running Linux? In my case, about three weeks of spare time, plenty of coffee, and a strong dose of stubbornness. After banging my head against the wall with problems ranging from the inductance of pushbutton switches to memory leaks in the C standard library, it finally works! (video)"
Pretty cool (Score:4, Funny)
Beats playing Assassins Creed all day.
Re: (Score:2)
I think this should be a meme.
Awesome (Score:5, Interesting)
Hats off. The 68000 was the first CPU owned (Atari ST) and I had a good six years of assembly skills behind me when it was finally time to leave. Awesome CPU for the kind of magic demo tricks only hard core assembler coding could bring out.
Relevant discussion: http://compgroups.net/comp.os.... [compgroups.net]
Re: (Score:2)
Hats off.
Indeed. This is the kind of story I like to see here now and then, although I was surprised that the headline didn't start off with "10 year old genius builds super computer on a bread board..." as has been the trend here.
Re: (Score:2)
Hats off.
Indeed. This is the kind of story I like to see here now and then, although I was surprised that the headline didn't start off with "10 year old genius builds super computer on a bread board..." as has been the trend here.
I remember taking logic gate classes in University using Motorola 68000 chips and assembler. It gave me a decent understanding of how things work at the hardware level vs the abstracted software level.
Re: (Score:2)
Re: (Score:2)
Its probably just as cheap as buying a Raspberry Pi or clone. Its probably more useful to start out on assembler with a fully functional computer unit like the RPi. I would see doing assembler on a 6502 more like "embedded" programming, and that's going to be a lost art at some point in the next decade. (The low end with the FPGAs/ASICs and the high end with Artificial Intelligence will eat up most of the market.)
Re: (Score:2)
Kudos.
The first computer I built used a 6809 and ran either Flex or a homebrew monitor.
I have PLENTY of experience with AMOS on 68k systems. As Caroll Oconnor and Jean Stapleton sang: "Those were the days!"
Re: (Score:1)
Re: (Score:2)
It's a 68008, as used in... (Score:1)
Re: (Score:2)
Re: (Score:2)
68000? Easier than 8086, absolutely, but probably not easier than ARM. People should be learning assembler on an RPi, or clone, or arduino.
Comment removed (Score:4, Funny)
Re: (Score:3)
You are standing at the end of a road before a small brick building.
Around you is a forest. A small stream flows out of the building and
down a gully...
xyzzy
Bah .. kids these days.
I smell a wumpus
Re: (Score:1)
Re: As long as... (Score:2)
Just keep hitting Insert until it dies...
Re: (Score:2)
Woe to ye that goeth about saying "Hello Sailor."
Re: (Score:2)
You are in open forest, with a deep valley to one side.
You need to create the tutorial (Score:2)
Re:You need to create the tutorial (Score:4, Insightful)
I can't imagine the tutorial needed for something like this. To do something like this takes a lot of skill and knowledge. If you managed it you would have learned a lot and it'd take more than a weekend.
Re: (Score:2)
Re: (Score:3)
Re: (Score:2)
Don't feed the troll. There are plenty of useful reasons why you would want to release this in a kit form. Simply taking a look at the Arduino development platform and more specifically how it's used is a great example. Some of the projects make engineers shudder. I.e. using an Arduino as a configurable timer that pulses at regular intervals. Yes we could bust out the soldering iron a 555 timer or a bistable resonator, but while a lot of those engineers are still looking for the right value of resistor to p
Re: (Score:3)
Then after you were done, you had 256 bytes of RAM, and no keyboard.
In any case, if you look at that, it will give you the imagination needed for a tutorial for something like th
Re: (Score:2)
Learn by doing!
Outstanding (Score:3)
Kudos.
ICs? (Score:3)
You're just using the breadboard to connect a bunch of ICs. :-p
Bust out the designs for those IC's, wire the components up discretely, then I'll be impressed.
Granted, you'll likely have no room left in your house for your bed or furniture... but that's not my problem
(I'm just being snarky, well done man)
Re: (Score:2)
http://www.homebrewcpu.com/
Re: (Score:2)
Re: (Score:2)
You could kind-of build your own architecture on a breadboard using bit-slice chips. ...
Each chip does 4 bits of ALU. Put your own microcode in EEPROM, some high speed registers, lots of glue,
Not quite the same as discrete logic, but more achievable at home.
http://en.wikipedia.org/wiki/A... [wikipedia.org]
Thanks for crashing my web server! (Score:5, Informative)
Thanks for all the comments! This "68 Katy" is my project. The video is a good overview, and lots more tech details are at http://bigmessowires.com/2014/... [bigmessowires.com] and the rest of the site. I've built a couple of other home-made CPU / computer projects in the past, including "Big Mess o' Wires" a few years ago, but this was the first time I tried to add a real OS. Cramming Linux into 512K was a challenge!
The CPU is a 68008, which is a low cost version of the familiar 68000 with an 8-bit bus and fewer external address pins. It has a max of 1 MB of total address space. It’s paired with a 512K 8-bit SRAM, and a 512K Flash ROM (of which 480K is addressable – the remaining 32K is memory-mapped I/O devices). My 68008 runs at 2 MHz (it was unstable when tested at 4 MHz), providing similar performance to a 1 MHz 68000. That’s pretty slow, even in comparison to 68000 systems from the early 1980s, which were typically 8 MHz or faster. So frame rates in the latest games aren't great...
Re:Thanks for crashing my web server! (Score:4, Informative)
I'm surprised he got it to run that fast. AM radio in the US broadcasts from about .5 to 1.5 Mhz. Without a ground plane and shielding, there is a lot of coupling between wires. I bet he can't listen to any distant AM radio stations in the same room with that running.
Good job getting a breadboard computer to clock over 1MHZ.
Re:Thanks for crashing my web server! (Score:4, Informative)
+1
but I hate to tell you that it won't help with getting dates.
Re: (Score:3)
There are plenty of nerds that would love to hang out Friday or Saturday night and talk about his 68000 and other geekiness...
Oh, you mean "with a girl" kind of date?
Re: (Score:2)
I thought the Y2K problem was solved over a decade ago? What kind of help do you need with dates?
Re: (Score:1)
Re: (Score:2)
Re: (Score:1)
I think when I watched the video it seemed like you could get another four times the processor power just by stopping the blinking LEDs though? ;)
Re: (Score:2)
Re: (Score:2)
+1 Inspiring
Re: (Score:1)
Thanks for crashing my web server! (Score:5, Informative)
- you are welcome, but you may want to reconsider running your web server on your vanilla 68 Katy, I suggest adding a turbo mode for that :)
Re: (Score:2)
First off, wow. Linux from base chips on a solderless breadboard is incredibly impressive!
For some reason I also love the 555 timer interrupt :)
My 68008 runs at 2 MHz (it was unstable when tested at 4 MHz), providing similar performance to a 1 MHz 68000.
Any ideas why? Is it the 68008, the PAL chips or some other things?
Blast from the past! (Score:2)
Re: (Score:1)
Reminds me of this old article:
Bringing Up A Surplus 68000 Board - Micro Cornucopia, p. 28 [trailing-edge.com]
I miss that magazine and the old Byte.
Excellent! (Score:1)
I too am glad to see more of the nerd and less of the news. I've been encouraging my boys using the book, 'From Transitors to Tetris' (don't have the exact title as the book isn't handy).
This is an important, fundamental skill - knowing how the technology works and not just picking up a game boy and playing for hours (back in my day that was the reward for building a system).
xyzzy
Can it run Crysis (Score:3)
I am sure it will fly through through an emulator
next... (Score:2)
The 68008 was discontinued 20 years ago, so this isn't really all that useful even as an educational exercise. Why not pick a current breadboardable, cheap microprocessor and get Linux to run on that? That way, other people can benefit.
Re: (Score:3)
Re: (Score:2)
Like what ? Typical modern microprocessors capable of running Linux aren't very breadboard friendly.
Really? [dmitry.gr]
Well 8bit micros are easy to find in a DIP package. For everything else there's adapter boards which are dime a dozen on ebay.
Or if you shop around I'm sure you can find a 32bit Arm Cortex M0 in a DIP package. [seeedstudio.com]
Re: (Score:2)
Plus the smell is something you don't forget. Mmmmmmm.
Re:next... (Score:5, Insightful)
The 68008 was discontinued 20 years ago, so this isn't really all that useful even as an educational exercise. Why not pick a current breadboardable, cheap microprocessor and get Linux to run on that? That way, other people can benefit.
Why even bother with hardware. Why not just emulate it?
But then again .. why emulate it when you can buy time on a virtual system?
Then again why do all that when you could just be watching TV?
Re: (Score:2)
Came here to say something like this, but you hammered the point home much more eloquently.
Re: (Score:2)
Actually I am agreeing that it is a super awesome project as OP has. Grandfather OP is the Mr.Genius you should be replying to.
Re: (Score:2)
I'd argue that Slashdot is a website with a national presence and has better topics to cover than a hack in some parent's basement, but apparently not.
Re: (Score:2)
I'd argue that Slashdot is a website with a national presence and has better topics to cover than a hack in some parent's basement, but apparently not.
Ah yes. A website of national presence so it must be boring and serious and all business business business business. Business business. Business business business.
Slashdot has always had ool hacks, and this more than qualifies. It's certainly cooler than any hack you've ever done.
Re: (Score:2)
Why even bother with hardware. Why not just emulate it?
Because you won't develop hardware skills? You won't have the satisfaction of building your own?
Re: (Score:2)
Re: (Score:2)
The 68008 was discontinued 20 years ago, so this isn't really all that useful even as an educational exercise. Why not pick a current breadboardable, cheap microprocessor and get Linux to run on that? That way, other people can benefit.
Couldn't agree more w/ this one. We all know that Linux can run everywhere, from a calculator to a supercomputer, but there's really nothing impressive about this. When the original 68k was what the first Sun workstations were made of, and therefore ran SunOS. Granted, it was not Linux, but close enough (since things like X11, GNOME, et al do not apply).
In fact, why not pick a BeagleBone, or Raspberry Pi or Arduino - depending on one's attitude about Broadcom vs Atheros vs whoever else is putting a con
Trouble running vi? (Score:3, Funny)
Why not try emacs instead?
-- .... :w :q :wq :wq! ^d
:quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT
Disclaimer - These opiini^H^H damn! ^H^H ^Q ^[
exit X Q ^C ^?
man quit ^C ^c ?Quit ?q CtrlShftDel "Hey, what does this button d..."
Re: (Score:2)
Not enough ram or cpu power. With vi he only had 200k free
Nice... (Score:3)
Getting it working on a breadboard is no small feat. Kudos. I'm sure it helps to only run at 2MHz.
Rather than, as has been suggested, spin a PCB for it, why not try wire-wrapping next time? Less capacitance than a breadboard and a bit more permanent.
Back at DeVry(haha) we built 7MHz 68k systems using wirewrap. Great times. I freaking love 68k assembly. We(well, the smart ones) also used 22V10 PALs for address decoding to save on 74 series logic chips.
Another next step - find a chip with an MMU so you can run real linux. I think a 68020 or '030 has one. Much higher clock speed too. The pin density is still low enough(I think it's 0.1 but in a grid) that you can work with it. Check old electronic stores' back shelves for sockets.
Re: (Score:2)
The 68030 has an MMU providing you don't have the cut down 68EC030 model...
Motorola made an external MMU for the 68020, known as the 68851 i believe.
Some 68000 based machines also used an external MMU, but typically not a Motorola design, eg the early sun workstations.
Re: (Score:2)
IIRC the hottest 68k in a DIP package was the '020
Re: (Score:2)
I freaking love 68k assembly.
Agreed. It's the friendliest assembly language I've ever run across.
--
.nosig
Re: (Score:2)
Good point about the socket strips.
The point? Well, it gives you an appreciation for digital layout(crosstalk, trace capacitance, etc). You also understand intimately how the pieces fit together, so when you encounter them in an integrated package you have a better feeling for what's going on. I get you though - I wouldn't try to use a wirewrapped 68k for anything I need to rely on.
Re: (Score:2)
Motorola did produce a HCMOS version of the 68000 and related cpus. e.g. the 68hc000 and friends, which I used extensively. HCMOS was billed as a 'fast' version of CMOS, trading off some current draw for speed. As people might remember, HCMOS pulls and pushes about the same (though the ground paths are rated higher). About 50 ohms to either rail, more capacitive than resistive so current draw ran more inline with the frequency and you could use 1M pull-down resistors on the tri-state busses and the logi
Re: (Score:2)
No, the 68451 was for the 68010 - though since it was a segmented MMU (rather than demand-paged), I imagine it could have worked with the 68000, too. The 68020 used the 68851, which was a demand-paged MMU.
http://en.wikipedia.org/wiki/M... [wikipedia.org]
http://en.wikipedia.org/wiki/M... [wikipedia.org]
Ya but... does it run Linux? (Score:2)
nevermind. Very cool.
Re: (Score:2)
Excellent! (Score:2)
I cut my teeth programming the 68k on the original Mac - well, did 8086/8008/4004/z80 and 6502 long before. Loved programming the 68K.
No easy task getting the home brew hardware to work. The capacitance and inductance of the breadboard and wires is limiting performance. Always fun to write the loader and make it come to life.
its nice reading real 'nerd' stories. Anyone here belittling your work likely has no understanding of the effort and skill required to build an operational computer from scratch. Gre
The original 68000 interrupts were inadequate (Score:1)
The original 68000 was almost there for running a real multi-tasking OS. But, it didn't save enough state on the stack during an interrupt. You couldn't guarantee restoring a process's exact state when returning from an interrupt. I heard stories of designs that used two 68000s where one was running one step behind the other. I don't know how true they were. I see on the wikipedia that Motorola fixed that with the 68010 in 1982 and that's when the 68008 came out. So maybe the 68008 doesn't have that p
Re: (Score:3)
Interrupts worked fine. It was bus errors (i.e. for off-chip memory protection and/or mapping units) that were a problem. The 68010 fixed that particular issue if I recall. I'm guessing later 68008's also did but I dunno. Doesn't matter since he isn't running with any memory protection.
You could in fact run a real multi-tasking OS on the 68000. I was running one of my own design for my telemetry projects. It didn't have memory mapping but it did have memory protection via an external static ram, 8:1 s
Re: (Score:2)
You're correct, except for the fact that it wasn't a bug. The original 68000 simply wasn't designed for use with demand-paged virtual memory. To make that happen, you need to either save the processor state somewhere (which the 68010, 68020, etc. did) or have restartable instructions (the approach used by National Semiconductor, for their
Ammazing (Score:2)
I love to see someone doing this stuff, Gratz!
Hey, congratulations (Score:3)
Congratulations, you are now in a rare group indeed. But I gotta say, you haven't lived until you've programmed a 6502 directly in machine code. No assembler :-)
One of my telemetry systems which I built and designed 25+ years ago used the 68000 running at around 10 MHz (with a jumper for 20 MHz, which it could actually do though I didn't deploy it at those speeds). The coolest thing about it was that I had built a rudimentary memory protection unit using a static ram and an 8:2 selector. Any user mode accesses pumped the high address bits into the ram with 2 address bits going to the selector along with the R/~W bit. The result was gated into the bus error logic. The top three bits of the static ram were directly controlled by the kernel which allowed the kernel to 'cache' up to 8 process's worth of protection data in the ram at any given moment, so context switches were still very fast.
Before the 68030 and 68040 came out, Sun (I think) was running two 68000's in lockstep, one one cycle behind the other, in order to implement their own MMU. When a fault would occur, they bus-errored the lead chip and paused the second 'behind' chip so they could take the bus fault, resolve the mapping issue, and then resume the behind chip. Then the 68010 came along and fixed the bus error interrupt stacking bugs in the 68000, and the 68020 came along after that.
The 68030 could hold short loops in its chip logic with some tricks, despite not really having a cache. Unfortunately, the 68040's on-chip cache implementation was horrible and created all sorts of problems for implementers, and by then Intel chips were running much much faster.
When Motorola retired the 68K series some of their larger embedded users asked motorola to re-test the 68000 chip specs at a higher clock, since by then the HCMOS process could obviously run the chip much faster than the ~10-12 MHz that was speced. Motorola tested the HCMOS version of the chip to around 50-70 MHz or so. Such a nice 32-bit chip, I was really sorry to see Moto lose to Intel (mostly because Moto gave up).
-Matt
Re: (Score:2)
Er, I meant 8:1 selector (the R/~W bit was fed into one of the select inputs). The function code logic was used to selectively enable/disable the memory protection unit, so supervisor accesses bypassed it while user accesses did not. Which is good because it wouldn't have been able to boot otherwise.
Another use for the FC logic is to speed up the auto-vector code. The 68K had wonderful asynchronous interrupt logic. You basically had 8 priority levels and you could feed your I/O chips into a simple 8:3 p
Re: (Score:2)
No, you're thinking of the 68010's "loop mode", where tight loops didn't require memory accesses for instruction fetches (after the initial instruction fetch). Both the 68020 and 68030 had caches.
http://en.wikipedia.org/wiki/M... [wikipedia.org]
http: [wikipedia.org]
No Instruction restart, No MMU... (Score:2)
Not an interesting project.
the MC68000 has no way to restart an instruction and no MMU.
Both of these are critical to running a Linux kernel today!
You could emulate a 68000 on a Beaglebone Black and have
it run faster.
*nix like OS have been built and run on a 68000 Idris is one
historic port of Unix. Little or no protection to keep processes
from running over memory and I/O and doing bad things but a
worthy *nix all in all for its day.
Step up a little to the MC68010 add an external TLB/MMU built
from modest si
Credits (Score:1)
Re:LOL fag (Score:4, Funny)
No, a Wang would be based on the older 8086 processor, this machine uses a 68000.
Re: (Score:1)
Not to mention, I'd be impressed with a 2-inch Wang; I've got one virtualized (so it could probably run under emulation on a 2-inch device), but shrinking the actual hardware to that size would be a neat accomplishment in itself!
Re: (Score:1)
Re:LOL fag (Score:4, Insightful)
Hell, we finally get an actual geek article on slashdot and this is the response? Take your penis envy somewhere else.
Re: (Score:2)
This comeback reply could not have come from someone with a better username for this topic.
Re: (Score:3)
About fifteen years ago I had a Macintosh Centris 660AV running Linux, just as an experiment. I kind of wish that I still had that computer; it had an AUI port so I could adapt to 10Base-T Ethernet, and could have redirected all incoming unsolicited network connections to it. Let 'em hack it; with no compiler, all binaries for m68K only, and 16.9 bogoMIPS it would have made for an entertaining
Re:How is this "News for Nerds"? (Score:4, Insightful)
Haha!
For a long time I used to something similar. All ports that were not in use on my firewall would redirect to a port on an old Toshiba T4800CT: 486 with 8MB of RAM and 500mb disk, running linux kernel 2.0.
It would run nethack on that port, so anyone who would try a connect scan would end up in nethack. Probably confused a bunch of people, and if someone managed to break through that, would be interesting to see what they would make of it.
Re: (Score:2)
About fifteen years ago I had a Macintosh Centris 660AV running Linux, just as an experiment.
I had netbsd on a IIci with a cache card. Oh, the novelty! Then I binned it. Because it was just uselessly slow. Hilarity: My first Sun machine was a 3/260, which had a slower CPU and graphics than the IIci. Had more RAM though (24MB instead of 8)
Re: (Score:2)
At the time I was into seti@home. I had a 486 Microchannel box running it, it took a very, very long time to do packets. If there even was a seti@home client that could run on that IIci I wonder how long it would have taken to do a single packet...
Re: (Score:3)
It is running uCLinux which is intended to run on MMUless microcontrollers (hence the uC). uCLinux doesn't require a MMU nor does it support virtual memory, or memory protection. It isn't ideal for a user system since memory can become fragmented over time, but that hasn't stopped people. It is primarily used in embedded systems that are running a stable set of programs after boot, leaving the rest of the memory to the primary app(s)
Re: (Score:1)
uClinux - can be built without MMU support. There's no memory protection, and program binaries have to be patched up by the loader, so that address references reflect the physical memory address at which the binary is loaded. http://www.uclinux.org/ [uclinux.org]
Re: (Score:1)
I chose to use uClinux, a Linux distribution designed for microcontrollers and other low-end hardware, particularly CPUs without an MMU and that can’t support virtual memory.
Re: (Score:2)
No, you can run full blown linux on the Amiga if you have a model with an MMU (which an A1200 with accelerator typically does), see https://www.debian.org/ports/m... [debian.org] for instance.
I used to run linux on an A1200 with a 68040, and i still have an A4000 with linux installed on one of the drives.
Re: (Score:1)
Holy shit you're right, that's actually a pretty cool idea! Last I checked you can still buy ISA connectors from Digi-key.
Re: (Score:2)
Re: (Score:2)
There's no good reason to do that, you can run old linux on an SBC and get it in a teensy package.
Re: (Score:2)
However, ISA bus support has been lost in the post-Windows XP world and in modern Linux as well.
Has it? There's still instructions out there about how to configure ISA sound cards on ubuntu 12.04:
http://www.pc-freak.net/blog/c... [pc-freak.net]
Re: (Score:2)
I've actually used one of those. Pretty decent machines, for their day. I especially liked how they had two ways to access the graphics memory: one by bit-planes, and the other by pixels.
You're lucky; my first 68K experience was on a Vicom image processor. It was a 68000-based machine, running VersaDOS. Talk about a terrible OS - even MS/DOS would have been better.