Click here to learn
about this Sponsor:
Home  |  News  |  Articles  |  Polls  |  Forum

Keywords: Match:
Atmel ships $3-$4 SoCs. But will they run Linux?
Oct. 20, 2004

Atmel is officially shipping the first two chips in its very-low-cost line of ARM7-based SoCs. Atmel's 32-bit SAM7S-series SoCs target the 8-bit microcontroller (uC) market, where Atmel says it can offer better real-time performance and "secure operation functions" such as watchdog timers. The question is, though: will they run Linux?

The two shipping SAM7S chips include the AT91SAM7S32 and AT91SAM7S64, with flash densities of 32KB and 64KB, respectively, and just 16KB and 32KB of RAM, respectively. Atmel's product roadmap does include slightly more capacious chips, however:

Part no.Internal RAMInternal Flash
AT91SAM7S328 KB32 KB
AT91SAM7S6416 KB64 KB
AT91SAM7S12832 KB128 KB
AT91SAM7S25664 KB256 KB
AT91SAM7S51264 KB512 KB
AT91SAM7X128
(adds CAN, 10/100)
32 KB128 KB

The two shipping chips are priced at $2.90 and $4.05, respectively, in 10K quantities. However, the chips offer small, fixed amounts of ROM and RAM, and lack interfaces for external memory expansion.

Will it run Linux?

LinuxDevices first reported that Atmel was sampling the first of its SAM7S chips two weeks ago. At that time, we asked our readers whether the chips would be able to run an open source operating system. The response was mixed, with the likes of Alan Cox and Erik Andersen weighing in on the pro side, albeit with reservations about the utility of such a port.

Meanwhile, Rick Stevenson, General Manager of the SG Division of CyberGuard, wrote to suggest we ask Greg Ungerer and David McCullough, the "prime movers behind uClinux and maintenance for several years now," according to Stevenson. Ungerer also did the original uClinux port to the heavily constrained ColdFire chip family from Motorola.

McCullough replied first, as follows:
64K of RAM is never going to be enough to run a linux system, even if you had more than 512MB of flash.

Here are some of the obvious things that you need to fit into your 64K
of RAM:
  • The kernel data segment. If you can get this below 64K you are doing well, and don't even think about using the network stack. I have a fairly basic 2.4 Palm kernel and it's data segment is 150K !

  • The kernel still treats things as pages, which are 4K, not a very efficient way to manage 64K. You could use smaller pages sizes but a lot of kernel code makes assumptions about page size.

  • Each task (or process) takes up a minimum of 4K in the kernel, and on 2.4 and later it is 8K for ARM (you could tune it to be smaller, but at considerable effort).
So enough with the negativity :-) The price is good and other operating systems (such as eCos) are much more suited to these low resourced systems.

Most people choose linux because they want the network stack and access to all the networked applications that go with it. The cost saving is usually in the software development and time to market. To get these though, you have to pay a little more for the HW to get enough RAM and flash to do the job.

Unfortunately none of this chip range appears to support any off chip RAM solutions, which is pretty typical of processors in this space. If it did, you could easily bring it within reach of linux for a very reasonable price. Of course there are other cheap processors that do support linux and external peripherals (like RAM). The H8 and a number of other ARM chips spring to mind.
Ungerer replied a short time later, writing:
I can add a little more...

Take as an example the kernels I build for the GameBoy Advance. I use linux-2.0.39 kernels for one (they are smaller) and even then with the most minimal setup the bss data region (the un-initialized data) of the kernel is 60K in size. So just loading the kernel - not even starting it - we need 60K of RAM. Obviously to get the kernel running it needs more RAM.

Trimming this down to fit and run in 64K of RAM is going to be a tall order. And even if you do you are not going to have much RAM to actually run some applications and do something useful.

On the GameBoy Advance with 256K of RAM it is still a tight fit. That is enough to get me to a shell with a little RAM left over though.
Thus, expert opinion suggests that eCos will likely be the focus for open source users of the new Atmel chips. However, the chips could exert downward pressure on the 32-bit SoC market that will nevertheless take Linux further into the realm of deeply embedded systems.


Talkback!


Do you think uClinux will port successfully to these super-low-cost ARM7 Atmel chips? . . . eCos? Post your thoughts and comments here.



Related Stories:


(Click here for further information)


7 Advantages of D2D Backup
For decades, tape has been the backup medium of choice. But, now, disk-to-disk (D2D) backup is gaining in favor. Learn why you should make the move in this whitepaper.

4 Legal Reasons to Control Internet Access
The Internet is obviously a valuable resource for many organizations. However, many are exposed to legal liability concerns because they fail to control Internet access. Learn if you're safe in this white paper.

Rapidly Resolve J2EE Application Problems
Whether you are in the process of building J2EE applications or have J2EE applications already running in production, you must ensure that they deliver the expected ROI. Learn how in this white paper.

Load Testing 2.0 for Web 2.0
There are many unknowns in stress testing Web 2.0 applications. Find out how to test the performance of Web 2.0 in this white paper.

Build Better Games Online
For the game infrastructure providers, life is complex. Making money from games has become more complicated. Why? Find out in this white paper.

Building a Virtual Infrastructure from Servers to Storage
This white paper discusses the virtual storage solutions that reduce cost, increase storage utilization, and address the challenges of backing up and restoring Server environments.

Gaining Faster Wireless Connections with WiMAX
Welcome to what is quickly becoming the hyperconnected world where anything that would benefit from being connected to the network will be connected. Learn more in this white paper.

Is Your Desktop a Security Threat?
The new wave of sophisticated crimeware not only targets specific companies, but also targets desktops and laptops as backdoor entryways into those business’ operations and resources. Learn how to stay safe in this white paper.

Increasing SAN Reliability by 100 Percent
Storage area networks (SAN) are a strong part of storage plans. Learn how to increase your reliability and uptime by 100 percent in this case study.

 


Got a HOT tip?   please tell us!
Free weekly newsletter
Enter your email...
Click here for a profile of each sponsor:
PLATINUM SPONSORS
GOLD SPONSORS
(Become a sponsor)

ADVERTISEMENT
(Advertise here)

Check out the latest Linux powered...

mobile phones!

other cool
gadgets



BREAKING NEWS

• Linux video camera geo-tags, writes to SATA drives
• Garmin Nav devices run Gnome Linux
• Ten LiMo phones this month?
• It's a Yankee Doodle Linux phone
• Wind River to host "Developer Day"
• Dev boards gain Linux support
• 802.11n zooms ahead
• Low-power mini-ITX board runs Linux
• Pico-ITX board bears twins
• Mass-market WiFi router invites Linux hackers
• LiMo phone specialist buys app stack
• "PDA phone" runs Linux
• ST, NXP spin phone chip JV
• Military-grade USB key supports Linux
• USB Linux systems expand


Most popular stories -- past 30 days:
• World's cheapest Linux-based laptop?
• Ubuntu ported to a PDA
• 64-way chip gains Linux IDE, dev cards, design wins
• Embedded PowerPC dev kits come with Linux
• Rapid time-to-evaluation -- a key goal for silicon providers
• Embedded Linux is doomed. DOOOMED!
• Rugged PDA available with Linux
• Netflix Player runs Linux
• Miniature Linux PC targets military apps
• $7 SoC runs Linux
• Android Developer Challenge announces first-round winners
• Dual-core ARM SoC clocks to 1.2GHz


Linux-Watch headlines:
• Microsoft tactics push India toward Linux
• Bell, SuperMicro sued over GPL
• "Business intelligence" software goes GPL
• Will Atom bomb?
• LF Summit videos posted
• Linux gains "embedded" maintainers
• Virtualization on tap in SLES and RHEL upgrades
• Linux gets security black eye
• Verizon chooses Linux "platform of choice"
• Hats off to Fedora 9


Also visit our sister site:


Sign up for LinuxDevices.com's...

news feed

Home  |  News  |  Articles  |  Polls  |  Forum  |  About  |  Contact
 

Ziff Davis Enterprise Home | Contact Us | Advertise | Link to Us | Reprints | Magazine Subscriptions | Newsletters
Tech RSS Feeds | White Papers | ROI Calculators | Tech Podcasts | Tech Video | VARs | Channel News

Baseline | Careers | Channel Insider | CIO Insight | DesktopLinux | DeviceForge | DevSource | eSeminars |
eWEEK | Enterprise Network Security | LinuxDevices | Linux Watch | Microsoft Watch | Mid-market | Networking | PDF Zone |
Publish | Security IT Hub | Strategic Partner | Web Buyer's Guide | Windows for Devices

Developer Shed | Dev Shed | ASP Free | Dev Articles | Dev Hardware | SEO Chat | Tutorialized | Scripts |
Code Walkers | Web Hosters | Dev Mechanic | Dev Archives | igrep

Use of this site is governed by our Terms of Service and Privacy Policy. Except where otherwise specified, the contents of this site are copyright © 1999-2008 Ziff Davis Enterprise Holdings Inc. All Rights Reserved. Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise is prohibited. Linux is a registered trademark of Linus Torvalds. All other marks are the property of their respective owners.