Pages: [1] 2   Go Down
Author Topic: Embedded Linux on Arduino DUE  (Read 6637 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello Arduino Community,

I have worked on arduino UNo board and now i'm migrating onto Arduino DUE   .Is there a way where we can run an embedded linux such  on an ARDUINO DUE BOARD ? .



If yes please let me know the steps for the same .

Thanks and Regards,
Santhosh
Logged

Ottawa,Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 82
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


not going to happen

from the kernal FAQ page :

Q: What Hardware Is Supported?
A: A minimal Linux installation requires a machine for which a port exists, at least 2Mb of RAM. {snip}

http://www.tldp.org/FAQ/Linux-FAQ/kernel.html
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 596
Posts: 33288
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Why on earth do you want to cripple the Due by running Linux.
It's non real time OS is just rubbish for the sort of things you can do with a Due.
 
If you want a cheap crippled Linux machine there is always the raspberry Pi.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@Grumpy_Mike: +1

@sanpai: if you really need some high level OS-like functionality, why not thinking about using an RTOS?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello Mr Mike and Nathaniel,

Thanks for your suggestion , RTOS might be an good idea . Will start searching them out .

And again thanks for your suggestion.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Actually these guys are quite wrong, you can run Linux on an AVR.

It would be a pretty serious undertaking and the results might not be that pretty/responsive.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 285
Posts: 25641
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Actually, they are quite correct.
The AVR "running" Linux is actually an ARM processor running under emulation on the AVR.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 596
Posts: 33288
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I read a web page where someone ran Linux on an arduino and SD card. It took 5 hours to get to the password prompt so for all Intents and purposes you can't.
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8471
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It took 5 hours to get to the password prompt
Your point? Just gives me time to remember my password smiley

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

USA, East Coast
Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How much slower is the Due compared to a 50-60 MHz PowerPC 750 based board?  I have seen Embedded Linux running on such boards before (remember U-boot, Denx Linux, etc.?).  This not desktop Linux running 2.26 (?) kernel.  You pick and choose the individual software components to build the kernel.
Logged

USA, East Coast
Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I remember the memory sizes for the boards where I saw embedded Linux and they typically had 8MB onwards of flash for program storage and in excess of 8 MB in SDRAM for data.  Not that those boards were much faster or slower but it is the memory of Due that will present problem for embedded Linux.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Actually, they are quite correct.
The AVR "running" Linux is actually an ARM processor running under emulation on the AVR.

Regardless whether it's running an emulator or not, it's still running Linux on it's own h/w.

An emulator is only a translator of sorts after all.

Besides, the question was about the DUE, which has an ARMv7 core. Linux has and does run on the Cortex-M3.

The real issue is the lack of RAM, but the DUE can support external RAM no problem.

Like I said initially, it can be done, but it's probably not worth it.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

We can customize the Linux  to run on Due.
But what we want to achieve with this?
Any value added that we are getting with this?
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8471
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Any value added that we are getting with this?
None that I can see.

You'll just wind up with the worse of both worlds, not the best.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

USA, East Coast
Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I believe Graynomad is right.  It would take way too much effort to do it.  Here is why :-

1.  Need to do something about the 8U cpu controlling the PC interface (Programming Port).  The 8U has a boot code already programmed in factory.  Would it be possible to do it by ourselves? (Then someone could try improving the upload speed!)

2. Need to attach SDRAM or NAND Flash to the I/O pins of Due.  The quality of routing will be inferior to a board designed with the SDRAM/NAND sitting extremely close to the Sam3xA8E part.  So, ext memory would suffer from speed issues.

3. Mem interface requires a good number of pins.  Are these pins available in Due pin mapping?

4. What about power budgeting for the ext memory?  (Total 130mA counting all I/O pins)

Did the hardware designers of Due ever envisioned having ext memory for this type of usage?

The principal advantage to a board vendor using embedded Linux is the complete freedom from royalty.  That comes at the cost of having extra memory.  Memory is generally cheaper than royalty.  So, if someone is designing a new board with Sam3xa8e part, it would be a viable solution.  With Due, as it is, I doubt it.
Logged

Pages: [1] 2   Go Up
Jump to: