Embedded Gentoo? 197
An anonymous reader writes "Gentoo Linux may soon begin showing up in consumer gadgets, thanks to a new project creating an embedded version of Gentoo Linux. The year-old project has achieved preliminary releases on x86, MIPS, PPC, and ARM. The releases include native core system binaries, along with toolchains for native or cross-platform compiling. Native compiling, eh... considering it's Gentoo, how long would X take to compile on an iPAQ? :-)"
This post (Score:2, Funny)
With Gentoo
It Took
A While
To Write
Re:This post (Score:2, Informative)
Re:This post (Score:2)
The purpose of installing Gentoo is to install Gentoo, how exactly does installing Gentoo (using this method) defeat the purpose of installing Gentoo?
Re:This post (Score:2)
Yea, if you're a beginner.
But, I think he's talking about installing Gentoo over an existing Linux install. Many machines with existing Linux installations are operated by people who already know how to use Linux.
For that matter, many brand new Linux machines are operated by people who already know how to use Linux.
"It's like dropping you in a car going 50 mph, if you had learned how to drive the car earlier, you could save yourself a whole lot of trouble."
Bu
Re:This post (Score:1)
Re:This post (Score:3, Insightful)
Re:This post (Score:5, Informative)
> advantages of running the most super optimized kernel possible.
Bleh, for the upteenth time:
1) Completing stage3 (whether by unpacking a stage3 tarball or bootstraping plus "emerge system" from previous stages) will net you the base system which is, well, basically complete with all the required system packages FOR WHICH THERE IS NOT CHOICE. Gentoo, is all about choice, so there's still a few things you need to add: your choce of a system logger, cron daemon, and your own customized kernel. There is a utility called "genkernel" which will set you up with a generic kernel, but in most cases this is Considered Harmful. So most users who start from stage3 should still end up with a fairly "super optimized kernel"
and in response to some of the grandparent posters:
2) Installing from a stage earlier than stage3 is ONLY advisable if:
a) No reasonably optimized stage3 tarball is available for your particular subarchitecture (unlikely)
--OR--
b) The default CFLAGS="-O2" optimization is insufficient for your taste.
3) Realize that even if the stage3 tarballs aren't exactly what you're looking for, they are most likely still close enough that it makes sense to use them to avoid a lengthy install. Bootstraps can fail pretty easily -- even "emerge system" has it's quirks. And in the long run, once your system is up and running, future "emerge -uD world" updates will gradually replace those horribly unoptimized pre-built stage3 packages you've had to endure... (ha!)
Re:This post (Score:2)
*I made that up.
Re:This post (Score:2)
I made my system from a stage1, mainly just because it was kind of interesting. I compiled it from inside Debian and when it was done I could boot to Gentoo. It took me about 2 days for the full Gentoo xorg-x11 gnome-desktop with 90% of my favorite apps. I was satisfied enough that I wiped Debian and have been using Gentoo for about 3 months now. Additionally, I have been using the IBM JFS file system and am quite satisfied with its performance and stability.
I built everthing against kernel-2.6 headers, u
Coral link (Score:3, Informative)
Hooray! (Score:2, Funny)
That is, once it's done compiling...
Re:Hooray! (Score:4, Funny)
So why is Gentoo the right choice for this? (Score:2, Interesting)
Re:So why is Gentoo the right choice for this? (Score:2)
Re:So why is Gentoo the right choice for this? (Score:4, Interesting)
Oh, and to qualify my comment: I'm a wannabe developer, I still haven't gotten an oe build for my iPAQ that I'm happy with.
Re:So why is Gentoo the right choice for this? (Score:2, Interesting)
The reason I use Gentoo is not just because it compiles for my system, but because I like how it lays things out and its ease and flexibility of configuration.
It should be fairly simple to set up a "host" system with a cross-compiler to make binary packages for the embedded devices to download.
Re:So why is Gentoo the right choice for this? (Score:2, Insightful)
Re:So why is Gentoo the right choice for this? (Score:2)
No doubt, I liked how Debian was laid out, but some tasks were just horrendous. Anytime you wanted to tweak something it was like a wild goose chase.
Gentoo is pretty minimal and I definately like it better than Debian. It still has the big iron feel though, unlike a lot of other Linux distros which seem more like toy OS's.
Making a cross-compiler setup is pretty easy with the GNU tools, you just pass options to ./configure like --target=arm-linux-pc. Its kind of fun actually and definately one of the neate
Re:So why is Gentoo the right choice for this? (Score:3, Informative)
Re:So why is Gentoo the right choice for this? (Score:2, Informative)
Let's see, Debian - Ports [debian.org]
Yes, I think that will do for now.
Re:So why is Gentoo the right choice for this? (Score:2)
Re:So why is Gentoo the right choice for this? (Score:2)
Troll!!
No just kidding, but seriously who in the hell uses an amd64 in an embedded device. I'm guarantee you that's not a very common configuration, if one used at all.
Re:So why is Gentoo the right choice for this? (Score:5, Insightful)
Well, Debian for one. In fact, Debian supports [debian.org] x86, Motorola 68k, SPARC, Alpha, PowerPC, ARM, MIPS, PA-RISC, IA-64, and S/390 architectures. Porting to the AMD64 and Hitachi SuperH is also underway. Note that the 68k, PowerPC, ARM, and SuperH are all popular for embedded applications.
Re:So why is Gentoo the right choice for this? (Score:2)
Re:So why is Gentoo the right choice for this? (Score:2)
Re:So why is Gentoo the right choice for this? (Score:2)
Re:So why is Gentoo the right choice for this? (Score:2)
Re:So why is Gentoo the right choice for this? (Score:2, Informative)
Debian claims to be the Universal Operating System. No wonder it supports so many platforms. And it has existed long before Gentoo came into being. Debian also has maturer community and larger user base. Some debian-based distros like Knoppix and Ubuntu are at least as successful as Gentoo. It is kinda like comparing the programming skill of a veteran programmer to a new kid that only pro
Re:So why is Gentoo the right choice for this? (Score:3, Insightful)
I mean really you are most likey to cross compile everything for your appliaction.
Re:So why is Gentoo the right choice for this? (Score:3, Informative)
Debian provides more platforms than Gentoo.
NetBSD runs on many, many more platforms than any Linux does.
Re:So why is Gentoo the right choice for this? (Score:2)
Gentoo provides alpha-linux, amd64-linux, arm-linux, hppa-linux, ia64-linux, m68k-linux, mips-linux, mips64-linux, mipsel-linux, mips-n32-linux, ppc-linux, ppc64-linux, ppc-macos, ppc-opendarwin, s390-linux, sh-linux, sparc-linux, sparc64-linux, x86-linux, x86-openbsd, x86-freebsd and x86-opendarwin.
Re:So why is Gentoo the right choice for this? (Score:2)
Re:So why is Gentoo the right choice for this? (Score:1)
I could be completely wrong here but those are my thoughts.
Re:So why is Gentoo the right choice for this? (Score:2)
Actually I've read a lot of comments that (in theory) compiling everything yourself was neither faster nor more efficient. gcc would just make a few optimizations but the speed would remain almost the same than precompiled packages.
Of course Gentoo provides more services than the DIY thing. And that's what may be interesting in embedded architectures because they could have used LFS [linuxfromscratch.org] a long time ago...
Re:So why is Gentoo the right choice for this? (Score:3, Informative)
Complete control (Score:3, Interesting)
You can also just built the parts of the application that are relevant to your product.
Using any source that's not your own (whether you compile it or not) is a liability - fortunately law makes sure that corporations dont really have to worry about that.
Re:So why is Gentoo the right choice for this? (Score:5, Informative)
Why Gentoo?
Well, that is pretty easy. For one, we're not charging people for it, which puts us ahead of a ton of the competition right out of the gate. The second is that using portage to build your system, you are capable of building in exactly what you want.
If you're not familiar with the embedded arena, then you should probably know that pretty much every embedded project is done from source. There simply is not enough overlap between individual projects to allow for a "precompiled" solution to really be effective.
I really am not the best person to comment here, as the guys working on the embedded project are definitely the experts, but these are the few things that I have picked up just from reading around.
Re:So why is Gentoo the right choice for this? (Score:3, Informative)
Flexibility (for the vendor) (Score:3, Informative)
Re:So why is Gentoo the right choice for this? (Score:2, Insightful)
As of right now, Gentoo is the right choice because _they already did it._
Location:Real Estate::Available:Technology
Re:So why is Gentoo the right choice for this? (Score:5, Interesting)
I don't think anyone would really suggest compiling anything big on your PDA.
Re:So why is Gentoo the right choice for this? (Score:2)
So yeah, you can use Gentoo to build pretty slender distros.
Re:So why is Gentoo the right choice for this? (Score:2)
Maybe on the device itself, but the other thing you need to think about is cross-compiling, which is another embedded area in which Gentoo is a big winner. Gentoo has fairly sophisticated method of cross-compilation development which is much, much easier to set up and use than anything else I've tried.
Keep in mind that this pretty much has to be done from source, and that each compile chain will have components from possibly different places. To do this, you need
Re:So why is Gentoo the right choice for this? (Score:2)
Re:So why is Gentoo the right choice for this? (Score:5, Informative)
BUT... if you hack up some device and install linux on it, it has huge advantages. you don't have to use some guy's Linux-4-XYZdevice distribution, which might be a mess, never maintained, and poorly supported. you don't have to go hunting for applications that will run on your arch, mess with build scripts to make it build right, and get the patches that will make things run on this processor and with your devices. if you installed linux on your device from 2 years ago that everyone forgot about, you can still have up to date software for it right now. and finally, you have a working ifrastructure of bug reporting and fixing, and a good way to communicate with people doing similar things as you (even if the devices they use are different).
Re:So why is Gentoo the right choice for this? (Score:2)
I've worked with machines that use busybox (Axis network cameras, mostly) and
it is always a completely horrible experience. Is there some reason that
device makers like busybox besides the fact that it doesn't take much space?
Re:So why is Gentoo the right choice for this? (Score:3, Informative)
busybox is a terrible user experience, i agree. but it is generally not there to be used by the user. it's mostly to run scripts, do shell executes, and because unix programs are not happy if there is no
Re:So why is Gentoo the right choice for this? (Score:5, Informative)
I have a 9cm by 11cm board that uses a cirrus logic ep9301 processor at 200mhz and draws 9 watts with usb, ethernet, 2 serial 1 rs485, parallel and a CF slot I have 16 meg of flash on board with 64 meg of ram. this thing is a powerhouse in the embedded world and linux is a perfect fit for it. I am designing a home automation system around the device so python or perl will make programming it after the fact much easier.
I can not wait to dig into embedded gentoo.. espically cince it is based on uclibc... a mistake that all other embedded distros make is NOT basing on uclibc.
Re:So why is Gentoo the right choice for this? (Score:2)
(Yes, I certainly hope this will at least work with cross-compiling...)
Re:So why is Gentoo the right choice for this? (Score:2, Informative)
Many people make jokes about gentoo and the whole compiling issue. But I myself have used gentoo on servers and there is a significant amount of performance to be gained.
One thing to consider, gentoo does have the capaibility to install from binary packages. I think this system here would simply compile once, and distribute the binary packages so others don't have to compile
Gentoo also only installs what you want (typically anyways), and on an embedded device with limited resources, that is important. I c
Re:So why is Gentoo the right choice for this? (Score:2)
I don't compile anything on the wrap.1c board, that would be insane (week long bootstrap would drive me nuts...I've done it before on another embedded system and will never do it again). While
disspelling gentoo myths (Score:4, Informative)
as for the compiling joke, it's pretty old, and partially untrue if you use binaries during emerge (much like FreeBSD's pkg_add). Nonetheless, please read Dispelling the myths of Gentoo Linux, an honest review [lxer.com], and learn before you flame. After that, go on using whatever Linux distro you prefer.
CB
Re:disspelling gentoo myths (Score:2)
I think the parent poster forgot about the simple fact that most of Gentoo's detractors know nothing of it other than something that they read or some rumor that they heard and are now taking it as truth.
Yes, it takes a while to compile stuff. I notice that nobody ever makes any claims about how it took them forever to install Linux from Scratch, or make jokes about how it is still compiling. What about Slackware? If the package didn't come with Slackware, then you're compiling there, too.
The truth of
Re:disspelling gentoo myths (Score:2)
CB
Re:disspelling gentoo myths (Score:2)
Uhhh... Nothing new there. That's pretty much how most detractors work. Except when it comes to neo-conservatives, everything negative about them is true.
Re:disspelling gentoo myths (Score:2)
The author just says that you don't need to compile because you can start from a stage 3 which comes with everything as binaries. Yet he emerges vim and ftp and forgets to say that those are indeed compiled.
He should have explained how to emerge binary packages and review how old are they and such
Re:disspelling gentoo myths (Score:2)
Re:disspelling gentoo myths (Score:2)
I don't think the issue is that Gentoo is against providing binaries out of some bias against them. The problem is simply a matter of resources. I've been reading the Gentoo mailing lists for several years now, and this has been brought up many times. The thing is, maintaining binaries that are compatible with each other and fully QA-tested is a lot of work (look at how long it takes Debian, even with a very large organization). Gentoo just doesn't have the amount of people necessary to develop and maintain
You wouldn't compile from scratch. (Score:5, Insightful)
$0.02
PS:
Cross compiling tools are part of this project.
Re:You wouldn't compile from scratch. (Score:2)
Re:You wouldn't compile from scratch. (Score:3, Funny)
Alright (Score:3, Insightful)
Oh, and anyone who things that a source based distribution would be bad for embedded, the opposite is true. Since its embedded you probably wouldn't be managing packages on it, like if it was say, a portable DVD player. Gentoo is really technically a meta-distro. It would just make it easier to create linux systems for different devices without having to do full on LFS. The compiling would be done once by the developer, then imaged into the devices. But the build would be device specific, meaning it would be as good as it can be.
ricer PDA's (Score:2, Funny)
Great, but... (Score:1)
Re:Great, but... (Score:2)
kinda:
http://freshmeat.net/projects/gentooinstaler/ [freshmeat.net]
too bad (Score:1)
I've just got one requirement for embedded gentoo (Score:5, Funny)
X on IPAQ? (Score:1)
I would answer that, but its still compiling. Ask me in a month or so.
This could be really nice! (Score:3, Interesting)
Recently I have been doing lots of devel. work to be used on Gumstix [gumstix.org]. At present I already need to compile the full root filesystem and flash that to the Gumstix, so there isn't much change there, but provided that the emerge and USE system work well without adding bloat like the emerge system itself or Python to the system image, this would make an excellent tool as it would remove the headache of creating
Gentoo can save your life (Score:2, Funny)
Compiling X (Score:2)
I really hope they start using precompiled headers once gcc 3.4.x is standard
Gentoo's good, but still... (Score:2)
I suppose that the reasoning here is that Gentoo's unique features will help in putting together a system and cross-compiling for the embedded device. If you like working with Gentoo, and you are building a Linux-based embedded device, this is probably very good news indeed.
I wonder if there is anyone out there who fits that description and isn't already working on the project?
Re:Gentoo's good, but still... (Score:2)
Imagine, if you will, the ability to upgrade your embedded os with a press of a button (which, of course, is just a front end for "emerge -vuD world").
Then imagine that a company comes out with a piece of software... you want to download it... and you can. It will download and get and install dependencies. Package management is very useful, and could be even with embedded.
Re:Gentoo's good, but still... (Score:2)
www.openwrt.org [openwrt.org] for the Linlsys router/WIFI unit makes a big thing out of being little but allowing you to install one of several dozen packages to customise the unit the way you want. All on a 200MHz MIPS CPU :->
compiling (Score:5, Insightful)
Helloooooo distccd.
I have a P2/300 Mobile, a Celeron 450, and a P3/600. Compiling stuff with distcc set up is a breeze and I fail to see the complaints about gentoo compile time...of course, they're all bare-bones console-only systems (firewall, mail/web, and fileserver), but you get the idea. Two of them only have 128MB of ram...
Re:compiling (Score:2)
Re:compiling (Score:2)
Fine for you, but do you REALLY think your case matters at all for normal users?
Re:compiling (Score:2)
Considering collectively they're about as powerful as the mouse used by most of today's systems, yeah.
My point was that a few low-class machines will run gentoo just fine...and imagine how fast one current (none of my machines are newer than 2-3 years) linux box would be assisting the iPAQ. It's not 1:1 with distcc, but it's a nice speedup.
This is actually a great idea (Score:5, Interesting)
Using a Gentoo like system to cross-compile apps with the options, etc that you need is an excellent idea. Some features that I would like to see in this project
o Keep the code for a package unpacked, so that I can make code changes to that package, recompile it & the package management system will build my changes into the binary. Updating the package version could auto merge my changes.
o Auto generation of root directories, in the file format you want (ie, nfs, cramfs, initrd, etc)
o Able to maintain several different configurations at once, ie one Gentoo maintained set of packages for my iPaq, and one set of packages maintained for my custom device. And to completely rebuild them I could go "emerge -set-board iPaq; emerge -u world"
Re:This is actually a great idea (Score:2)
Using a Gentoo like system to cross-compile apps with the options, etc that you need
Re:This is actually a great idea (Score:3, Interesting)
So I installed Debian, but I wasn't happy with not having had a choice of filesystems, so I went
Compiling X on an iPaq (Score:4, Informative)
When I first started using Linux back in early '93, compiling was about all you could do. (Pre-slackware, Yggdrisil or something was the only distro, I think).
I remember compiling X on my computer, a 486/66DX2 with eight meg of RAM. It took a few days to build. Considering my busted down four year old iPaq is like 166mhz, and has 64 meg of RAM, it'd certainly be doable, probably take a day or so, maybe less.
Re:Compiling X on an iPaq (Score:2)
There have been big changes since those days, though. GCC/G++ is MUCH slower now, eating up much more CPU and RAM for the same jobs. X11 is much, much bigger now, as well.
In addition, that 166MHz processor isn't the equivalent of a 166Mhz x86 processor. No FPU at all, for one...
Re:Compiling X on an iPaq (Score:2)
But yeah, I know what you mean... I'd bet you could compile X on one without any major trouble. X with all the options is pretty big, the base applications and a single server isn't that much bigger.
Already using it (Score:2)
I've also been working on a C3 web kiosk based on Gentoo which a full X and Firefox setup from a 32MB flash drive. Because of all the performance gains from building from source, it flies.
So the footprint would be? Developed on? (Score:2)
I know all the mention about compiling are mostly jokes... but to be serious, I would expect compiling to be done on a much more powerful but binary-compatable development machine and then have the binaries stripped of debugging symbols before they are transfered over to the target device. I don't do any kind of embedded development so maybe someone can tell me what a development setup for a
Re:So the footprint would be? Developed on? (Score:2)
The original Gentoo Embedded became Zynot. (Score:2, Informative)
familair +opie (Score:2)
Did any one read this (Score:3, Insightful)
Here is their project goal. From what i read, build in ur PC & move it to embeded device, gentoo style.
2. Project Goals
The intention of the project is to make Gentoo viable for embedded systems. This includes creating a system for cross compiling and building the image for an embedded system on a Gentoo workstation. The base install image should be minimal, with different libc options. Building on this base, the system can be customized for the particular system.
How long to compile Gentoo on a Compaq? Easy... (Score:2, Funny)
RTFA. They said they've been working on it for a year... Next, they compile KDE.
Ob. disclaimer: this post typed on a Gentoo machine.
Hey, who's the dick with the mod points? (Score:2)
You need to get a sense of humor, dumbass.
Embedded upgrades (Score:2)
A big problem we have now is with embedded BSD and Linuxes. Many of the distributions are abandoned and/or no longer supported, thus upgrades (especially security upgrades) are difficult.
To be fair, the manufacturers of the devices weren't even thinking that there could ever be a security problem with a Linux-based system, but sur
penguin on iPAQ is a daily bread for me (Score:4, Interesting)
Although I am using Familiar Linux on iPAQ (for years
Of course, for serious development or building whole system from the bottom I would rather suggest crosscompilation. iPAQ memory is too small to use templates in C++. And, by the time the build of X11 will be finished, certainly X22 will be the standard....
Just be glad... (Score:2, Interesting)
Re:My intelligent toaster... (Score:2)
Or, you could just put NetBSD on the toaster, and compile all the ports natively, and use the heat from that to brown the bread.
Re:Numbercruncher (Score:2)
Re:Numbercruncher (Score:2)
An embedded version would be better as a complete rewrite, without anything that wasn't absolutely necessary.
Re:Gentoo zealouts out in full force today (Score:2, Insightful)
Heh, I'm sorry, but most people seem to have common sense, something you lack....
Re:why are they using Linux anyway? (Score:2, Informative)