This is a brief description of how to prepare these stages and keep them up to date. Since they are built with catalyst using an overlay, you have to add that overlay before you can begin updating packages: 0) Get your chroot ready as you would any other stage3. See the Gentoo Handbook for more information: http://www.gentoo.org/doc/en/handbook/index.xml 1) Add your favorite GENTOO_MIRRORS and sync-uri as per the handbook and sync: emerge --sync 2) Set up your nameserver for DNS resolution: echo nameserver 192.168.3.1 >> /etc/resolv.conf Obviously, change 192.168.3.1 to your value(s). 3) We need to get git in order to add the overlay. Unfortunately, right now we can't build git with gnupg support so do the following: echo "dev-vcs/git -gpg" >> /etc/portage/package.use emerge -q layman dev-vcs/git 4) Let's add the overlay: layman -L layman -a musl echo "source /var/lib/layman/make.conf" >> /etc/portage/make.conf 5) Okay now we can update. If we try to update without the overlay, we get a bunch of downgrades to ebuilds that are slightly broken on musl and will not build. emerge -uvNDq world 6) In the future, update both the portage tree and the overlay before repeating step 5. emerge --sync layman -S emerge -uvNDq world 7) Please help out by producing patches to packages that don't build under musl. I'll add them to the overlay: Submit bugs to: http://bugs.gentoo.org Assign to: musl@gentoo.org CC: embedded@gentoo.org Anthony G. Basile