Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Linux Software Hardware

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 discussion has been archived. No new comments can be posted.

Embedded Gentoo?

Comments Filter:
  • by eln ( 21727 ) on Friday December 03, 2004 @04:10PM (#10990577)
    What makes Gentoo any better than any of the other distros at doing this? What unique advantage does it offer to this application? The one big difference with Gentoo, the whole thing about compiling everything from scratch, seems like it would be a pretty serious liability for this purpose. So, why Gentoo?
  • I wouldn't say it's more suited, but people fail to realize that gentoo *can* use precompiled packages as well.

    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.
  • Complete control (Score:3, Interesting)

    by grahamsz ( 150076 ) on Friday December 03, 2004 @04:26PM (#10990789) Homepage Journal
    You can control all the compiler flags, so you can build binaries that are optimized for size and memory footprint - rather then the desktop world where things are usually speed optimized (funroll-loops please :)

    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.
  • by Halthar ( 669785 ) on Friday December 03, 2004 @04:27PM (#10990803)
    Depending on how they set up the cross compile environment this could be a very very good thing.

    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 .mk files and ensuring that I have all the right patches for each package, or even worse porting the packages myself. This is all assuming they set the portage system up so that emerge can be used to send packages to the cross compiler and merged into the root filesystem being created.

  • by kiatoa ( 66945 ) on Friday December 03, 2004 @04:37PM (#10990891) Homepage
    Well, someone has probably already pointed this out but the openembedded.org build system is kinda similar to gentoo in a way. Personally I'd like to see a rubyx or gentoo marriage with openembedded so that developing for embedded devices (a cheap old ipaq H3650 in my case) and keeping the software up to date is made easier. Note that although it is technically feasible to compile on the ipaq cross compiling is orders of magnetude faster and thus worth the setup pain IMHO.

    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.

  • by Anonymous Coward on Friday December 03, 2004 @04:43PM (#10990959)
    I am an embedded software engineer, so hopefully I know what I am talking about. I work with ARM chips, and every linux system that I have built has been compiled from scratch. Not because I want to, or because I am some kind of speed freak - but because in general there are not any up to date binary packages for ARM available. Or if there are you often find that they are not compiled quite right for your particular needs.
    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"
  • by 3Suns ( 250606 ) on Friday December 03, 2004 @04:49PM (#10991046) Homepage
    There's nothing about Gentoo that says you have to compile stuff from scratch. And with embedded devices, it's all going to come pre-loaded anyway. Apparently, Gentoo is very good for building specific, shrunken-down distributions, like the recently-released FlashLinux project. Gentoo lets them optimize the packages very easily, to shring down binaries, etc. This is a pretty big concern with embedded devices.

    I don't think anyone would really suggest compiling anything big on your PDA.
  • by ocularDeathRay ( 760450 ) on Friday December 03, 2004 @04:50PM (#10991057) Journal
    I made the mistake of reading through the comments on this story. So far I have read the same compiling jokes as always... har har. Then I read the usual gentoo bashing comments... *rolls eyes* then I read I disturbing number of people defending gentoo with arguments that make no sense. I love gentoo. please please please to all you other gentooers dont make us look so dumb.

    First I see the usual comments about how it makes no sense to use gentoo for embedded stuff because you don't need package management. Then I see the people defending gentoo for the blah blah features that make no difference for embedded devices.

    Some developers will find this usefull others, will not. Some hobby geeks will compile x on an ipaq for fun, but normal people will cross compile on another machine.

    The REAL advantage here is that somebody who is really good with portage will be able to dev complete systems for the embedded device very quickly and easily. The advantage here is completely different than the advantages gentoo on the desktop gives. The developer will (eventually) be able to wip up systems with a few commands rather than carefully assembling the parts, sounds like a good thing right? thought so.
  • by kardar ( 636122 ) on Friday December 03, 2004 @07:18PM (#10992665)
    Well, I just recently tried to install Gentoo, but I couldn't even get out of the starting gate. The "bootstrap" process, while taking a while, might be acceptable - if it didn't fail here and there from time to time and require you to go in and change code, apply patches, or take wild guesses at why it's not working, etc... In my case, it appeared that "bootstrap" was, at least, upon first inspection, broken.

    So I installed Debian, but I wasn't happy with not having had a choice of filesystems, so I went back and guess what I used - the Gentoo install CD - to boot up, manually mount, and move around my partitions from one to the other and make filesystems that I wanted to try out (JFS). Worked just fine. Used the Gentoo handbook to help me (re)-install GRUB, using the Gentoo install CD, on my brand-new Debian JFS Linux machine.

    The Gentoo install process, the install CD, the forums, the handbooks, and much much else is really wonderful and puts a new spin on manipulating and customizing your system (in my case it was Debian).

    So I think this is quite possibly a really good idea, because it's exactly the flexibility (I don't mean make.conf or USE flags) of the way things are set up that would allow you to sort of get your hands or brains around other things (in my case a Debian install) using the Gentoo philosophy and processes.

    Even though Gentoo is though of as a distribution, I think that's it's really turning into something more than just a distribution - I don't particularly care to run Gentoo Linux on my machine, but I will continue to love the install disk if I need to mess around with my system, and the forums and handbooks, if I need questions answered that can make a lot of difference.

    I wish them all good luck, and thank them for their hard work.
  • by Maljin Jolt ( 746064 ) on Friday December 03, 2004 @08:47PM (#10993421) Journal
    Native compiling, eh... considering it's Gentoo, how long would X take to compile on an iPAQ? :-)"

    Although I am using Familiar Linux on iPAQ (for years ;-) not Gentoo, native compiling is a great curiosity but simply works for many GNU projects. Great to make impressions on WinCE users, whose usability of the PDA is rather limited in sortiment of apps in comparision with full abilities of linux on the same hardware. I have already converted several coders from windows to linux just by demonstration of my iPAQ running at the same time a web server, python curses app in terminal, Quake1 in dynamic desktop icon and C compilation on background.

    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)

    by ztwilight ( 549428 ) <(moc.oohay) (ta) (0211nibsys)> on Saturday December 04, 2004 @03:36AM (#10995138) Homepage Journal
    That they CAN compile on it... I've installed many "desktop" or "personal" distros which don't even come with GCC. Truly sad...

An authority is a person who can tell you more about something than you really care to know.

Working...