The Unofficial Gentoo Linux x86 uClibC stage3s’

The uclibc experimental stages on the gentoo mirrors are all outdated(they go back to years), so here are my stage3s’, which have been updated. They’re very similar to, and in fact can be considered to be the same stages that the Gentoo Community provides, only updated.

As of 27th August, they are now built by catalyst.

Now master your ninja martial arts using a sleek gentoo powered, custom and home made gateway!

The stages are built by catalyst now, and I’m looking for the possibility of hosting them on the Gentoo mirrors.

Follow my article here, to get a basic ideology on working with it

Files:
5th August, 2011
stage3-uclibc-x86-02082011.tar.bz2
stage3-uclibc-x86-02082011.tar.bz2.md5sum

7th July, 2011
stage3-uclibc-x86-07072011.tar.bz2
stage3-uclibc-x86-07072011.tar.bz2.md5

1st June, 2011
stage3-uclibc-x86-01062011.tar.bz2
stage3-uclibc-x86-01062011.tar.bz2.MD5

25th April, 2011
stage3-uclibc-x86-25042011.tar.bz2
stage3-uclibc-x86-25042011.tar.bz2.md5sum

For historic releases, post a comment, as to which one you require and why a specific version.
If you want the stage1 or stage2, drop a comment and I shall have them uploaded.

For those of you who would like to build these stages themselves, here are the spec files for catalyst:
stage1.spec
stage2.spec
stage3.spec

This entry was posted on Friday, August 5th, 2011 at 10:00 am and is filed under gentoo | sabayon | fedora, gnu linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

  • Pingback: Tweets that mention gentoo uclibc stage3 2010 | jude pereira's blog -- Topsy.com

  • http://judepereira.com/blog j. pereira

    If anyone would like to have the updated stages, you can comment and I’ll be more than glad to upload the latest one.

    • Tom

      Awesome job!
      Your effort should definitely be integrated with upstream – if not, please keep posting updated stages up here.
      Ever thought about x86_64 stages?

      thanks a lot :)

      • Anonymous

        Yes, I’ve asked upstream for this, and they are yet getting back to me. Till then, I will post updates here.

  • Stefan Hellermann

    Thank you for the stages! I faced many problems with the 2008 uclibc-stages on the gentoo-mirrors, yours is working so far :)

    • http://judepereira.com/blog j. pereira

      Yes, I too had many problems with those stages, they are way too old… Depreciated…

  • http://www.compunauta.com Gustavo Guillermo

    Hello, Thanks a lot for your stages. I’ve tried your stage and I have troubles when reboot or halt, the box refuses to really turn off or reboot, system get stopped but nothing more. I’ve tried to reemerge init, another version of gcc, then init again, but there was no luck.

    Regards.

    • http://judepereira.com/blog j. pereira

      The problem you are facing is not at all connected to gcc, nor init. If the hardware supports it(very old ones like the celeron do not support software turn off), you’ll need to enable it in the kernel, enable the ACPI Subsystem, and there you should find an option that enables the kernel to shutdown the machine.

      • http://www.compunauta.com Gustavo Guillermo

        Of course it supports, :D same kernel from the old superupdated stage3. and if I execute reboof -f or poweroff -f. The box reboot or turn off each case with the new stage. I was looking on inittab but nothing helpful.

        • http://judepereira.com/blog j. pereira

          Very interesting issue indeed, man poweroff, indicates that -f doesn’t call shutdown, “Force halt or reboot, don’t call shutdown(8).”; same is the case for reboot, there must be something wrong with the shutdown binary.

    • http://judepereira.com/blog j. pereira

      Do you have the required libraries for /sbin/shutdown? ldd /sbin/shutdown indicates that you need the following:
      linux-vdso.so.1 => (0x00007fff803ff000)
      libc.so.6 => /lib/libc.so.6 (0x00007f89107d0000)
      /lib64/ld-linux-x86-64.so.2 (0x00007f8910b26000)

      • http://www.compunauta.com Gustavo Guillermo

        Rebuilding init package all required libraries and binary compat are always fixed.
        mbu5 # qfile /sbin/init
        sys-apps/sysvinit (/sbin/init)
        mbu5 # ldd /sbin/shutdown
        libc.so.0 => /lib/libc.so.0 (0xb783a000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb7890000)
        mbu5 #
        By now, I use this two commands inserted in some init script.
        sync;reboot -f
        But I’ll prefer not to hack the init process.

      • http://judepereira.com/blog j. pereira

        I say you should try the gentoo forums, someone out there will surely be able to help you out. I’ve never had a similar problem or anything, so I can’t tell what is happening wrong somewhere.

  • Joel r

    Hey ,

    Check out -> http://free-electrons.com/blog/elc-2010-videos/ , wasnt sure about your email address :\

    • http://judepereira.com/blog j. pereira

      Hey, thanks a lot for that link! seems really interesting, I’ve begun downloading several videos from there.

  • http://leho.kraav.com Leho Kraav

    thanks for the work you’ve put in. how did you get python to cross-compile, i’m having massive problems with it. see last comments of:

    http://bugs.gentoo.org/show_bug.cgi?id=269111

    • http://judepereira.com/blog j. pereira

      To revert back to your old version of python, try eselect python, and also try using a different version of python, I compiled python on that system, and it was successful. My latest stage has dev-lang/python-3.1.2-r4, which compiled happily without errors.

    • http://leho.kraav.com Leho Kraav

      i’m not sure what you mean by “older version of python”. in the fresh ROOT=/usr/i686-gentoo-linux-uclibc there is no python at all to start.

      maybe related to http://bugs.python.org/issue1669349?

      • http://judepereira.com/blog j. pereira

        Now I’m lost! Your saying that there is no python at all in my stage3s’? Wait a minute… Done, I just untared my latest update, and here’s the output of python –version
        Python 3.1.2
        emerge works fine there, which means there is python, a working python. What do you mean by fresh?

      • http://leho.kraav.com Leho Kraav

        no, your i386-g-l-u works perfectly, i’m talking about rolling my own i686 right now. :) basically i’d like to replicate your process. i’ve made some progress getting by the unicodedata failure, but that gave another linking failure and now python segfaults on importing time.so. going to try to emerge gcc into the chroot and then re-compile python inside chroot.

      • http://judepereira.com/blog j. pereira

        The process is slightly different, you need to install the package deps and the package itself in the stage3, if your using the ROOT argument for portage, this will ensure that all headers are found, and will successfully install. Comment out the line INSTALL_MASK in make.conf

      • http://leho.kraav.com Leho Kraav

        jude, the solution was to use the python ebuilds from embedded-cross overlay. max_posedon from #gentoo-openmoko has put some work into it and using them python modules compiled correctly using uclibc and without linking host’s glibc in there. he also has several other ebuilds there for packages that have cross-compilation problems. i had previously applied patches from b.g.o manually, so python was my final step.

      • http://judepereira.com/blog j. pereira

        Thanks a lot Leho, will certainly take a look at the packages in that overlay.

  • Sawn

    Thank you for the stages !
    I’m currently updating my netboot image (ramdisk obtained by PXE) :)

  • PiousMinion

    OMG, thank you thank you thank you.

    I’ve been bashing my head on my desk for the past 3 days fighting with the old stage3s.
    The september one you have should be okay, but I wouldn’t mind an updated stage3 for november. :P

    Also, you’re doing such a great service, maybe someone at gentoo.org will let you put them on the mirrors. :)

    • http://judepereira.com/blog j. pereira

      As soon as I get some time, I will update the stage3 and publish it on-line, the only issue is that I have my exams coming up, so I don’t get enough time for embedded development.

  • http://judepereira.com/blog j. pereira

    An update for this month has been posted, the stage3 being on an external server(all ports except http/https are blocked by my ISP). Verify the integrity of this file by checking its md5 hash, until I can upload it to my blog space.

  • http://judepereira.com/blog j. pereira

    Hello all,
    The stage has been updated and is not using the ~x86 testing/unstable branch anymore.

  • chapuzzo

    Fanatstic job, this saves me looots of time,
    Thanks

  • http://judepereira.com jude pereira

    Update: Stage has been updated for the month of June(on 1st June, 2011)

  • /lib/libc.so.0

    Thank you very much ;) good to see someone else likes uClibc and similar embedded software :)

  • René Rhéaume

    Thank you for the effort. I have two questions however. First, where is catalyst recipe you are using? Unlike stages and packages source source, these files are hard to find on the web. Second, do you plan to build a hardened+uclibc stage?

    • Anonymous

      I’ve just updated this article to include the spec files for catalyst.

      And no, I don’t intend to build hardened + uclibc stages, because not many people use the hardened profile on uclibc, but it there are several other requests, then yes, I will build them and upload them.