0
\$\begingroup\$

I am going to put linux on a microcontroller, attach an LED to the microcontroller, a battery and hope that the LED blinks. But before I do that I need to put Linux on a microcontroller. And to put linux on a microcontroller I need to know what kind of microcontroller linux can be loaded on.

So my question is this:

What kind of microcontroller can linux be put on (ex. mmu? ARM Cortex A0? max number of timers? max core size?)?

\$\endgroup\$
  • 1
    \$\begingroup\$ What are you trying to do? meta.stackexchange.com/q/66377/154425 \$\endgroup\$ – tyblu Jun 29 '12 at 20:50
  • 2
    \$\begingroup\$ Linux kernels are custom-built for specific platforms and applications. Perhaps you could tell us your application in order to get better answers. \$\endgroup\$ – tyblu Jun 29 '12 at 20:59
  • 2
    \$\begingroup\$ Luckily, if your end goal is to blink an LED, you don't need Linux at all! \$\endgroup\$ – dext0rb Jun 29 '12 at 21:12
  • \$\begingroup\$ @dext0rb my end goal is to have 3 buttons, a camera module, and some earpieces on a circuit attached to a mircocontroller that has linux running. When one of the buttons is pressed it will preform an action in the operating system (Linux). \$\endgroup\$ – Coder404 Jun 29 '12 at 22:11
  • 1
    \$\begingroup\$ You might be interested in the Raspberry Pi -- an ARM GNU/Linux box for as little as $25. It's not available yet (which is why I'm not making this an answer) but outfits like Newark are taking preorders for the Model B (which has an Ethernet port, Model A does not) for $35. \$\endgroup\$ – tcrosley Jun 29 '12 at 22:51
6
\$\begingroup\$

There are so many varieties of microcontrollers and Linux installations (angstrom, debian, uCLinux, ...) that the first place to start is with your microcontroller demands...

3 buttons, a camera module, and some earpieces

Buttons and LEDs are GPIO pins and should be easy to accomodate on any processor.

Choose an IC with built in camera and audio support (Atmel 9261 and the TI DaVinci series come to mind but there a lots that have this).

How will you send the earpieces data? SPDIF? I2S? I8S? Analog out?

Look into the battery requirements. How much power will your circuit draw? What voltages are required? What microcontroller low power modes do you need? How long will your device run? Do you need a rechargeable battery? What is the working life of the device? What is the standby life of the device? Will you also be able to line power the device?

Once you have made your processor choice, the selection of a Linux kernel will likely be limited to the processor selected.

\$\endgroup\$
4
\$\begingroup\$

Linux needs an existing platform as a target to be on support list. For example look at linux distribution builder for Angstrom variety of Linux at http://narcissus.angstrom-distribution.org/ . It has a dropdown list of platforms. Pick one out of like 50-70.

So it is not enough to know the type of processor. To build a distribution one needs to have a platform name known exactly.

Platform typically looks like this enter image description here

\$\endgroup\$
  • \$\begingroup\$ "To build a distribution one needs to have a platform name known exactly." - no. It makes it easier to use a distribution already made for your platform, but there is no reason why you can't make a Linux for your own platform (we use Linux on our own custom boards at work). There are a number of ways to do this, but if all the OP wants is to blink a LED, there are much much easier ways than custom-creating a Linux installation for a new board. \$\endgroup\$ – sonicwave Jun 30 '12 at 8:11
  • \$\begingroup\$ Agree. But I read the question as more basic. What is between Linux and bare metal CPU ? New or existing platform. \$\endgroup\$ – user924 Jun 30 '12 at 11:15
  • \$\begingroup\$ @RocketSurgeon new platform not existing. \$\endgroup\$ – Coder404 Jul 30 '12 at 20:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.