generating a uclibc based gentoo

  1. use '/usr/portage/profiles/uclibc/x86/2005.1' as profile
  2. 'make.conf' should look like
    CFLAGS="-march=pentium-mmx -Os -pipe -fomit-frame-pointer"
    CHOST="i586-pc-linux-uclibc"
    CXXFLAGS="${CFLAGS}"
    
    ACCEPT_KEYWORDS="~x86"
    
    USE="uclibc -uclibc-compat minimal -pam -nls"
    
    PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/erazor-zone.de"
    
  3. now build your gentoo root and follow the Quick Install Guide ;-)

step by step guide

$> cd /mnt/ &&  mkdir uclibc && cd uclibc/
$> wget 'ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo/experimental/x86/embedded/stages/stage1-x86-uclibc-2005.0.tar.bz2'
$> tar -jxvf stage1-x86-uclibc-2005.0.tar.bz2  -C ./
$> rm stage1-x86-uclibc-2005.0.tar.bz2
$> mount -t proc proc proc
$> cp /etc/resolv.conf ./etc/
$> chroot ./
$> cat > /etc/make.conf
CFLAGS="-march=pentium-mmx -Os -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-uclibc"
CXXFLAGS="${CFLAGS}"
 
ACCEPT_KEYWORDS="~x86"
 
USE="uclibc -uclibc-compat minimal -pam -nls"
 
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/erazor-zone.de"
$> mkdir -p /usr/local/portage /usr/local/overlays/erazor-zone.de
$> cat > /etc/make.conf
$> ln -fs /usr/portage/profiles/uclibc/x86/2005.1 /etc/make.profile
$> env-update
$> source /etc/profile
$> cd /usr/portage/ && ./scripts/bootstrap.sh

possible broken stuff

gcc

$> cat > /etc/portage/package.mask
>=sys-devel/gcc-4.0.0
$> CC=/usr/i386-gentoo-linux-uclibc/gcc-bin/3.3.5-20050130/gcc /usr/portage/scripts/bootstrap.sh

missing iconv support

$> cat > /etc/portage/package.keywords
dev-libs/libiconv ~x86-fbsd
$> cat > /etc/portage/package.unmask
dev-libs/libiconv
$> emerge dev-libs/libiconv
 
wiki/projects/linux/uclibc.txt · Last modified: 2006/07/27 17:12 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki