There are 7 parts to this article:
Part 1 – Gentoo on SPARC – Booting the Install CD
Part 2 – Gentoo on SPARC – Creating the Filesystems
Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles
Part 4 – Gentoo on SPARC – Creating the Kernel
Part 5 – Gentoo on SPARC – Getting Silo Installed
Part 6 – Gentoo on SPARC – Initial Logon
Part 7 – Gentoo on SPARC – Final Configuration
We need to copy the working system from the distribution CD to root. We also need to copy over a snapshot of portal and the distribution source files. We are trying to minimize reliance on a network connection as much as possible. This fits with our intention to see if we can get the system booted and running on our hardware first, before we configure much. First, let’s look at what is mounted:
livecd root # mount /dev/ROOT on / type xfs (rw,noatime) none on /dev type devfs (rw) devfs on /dev type devfs (rw) /newroot/dev/cdroms/cdrom0 on /mnt/cdrom type iso9660 (ro) /dev/loop/0 on /mnt/livecd type ext2 (ro) none on /proc type proc (rw) none on /dev/shm type tmpfs (rw) tmpfs on /usr/lib/hotplug/firmware type tmpfs (rw) none on /proc/bus/usb type usbfs (rw) none on /proc/openprom type openpromfs (rw) livecd root # ls livecd root # cd /mnt/cdrom livecd cdrom # ls boot distfiles docs livecd.loop snapshots stages livecd cdrom # |
The configured system we want is stage3 in stages. Let’s extract it:
livecd cdrom # cd stages livecd stages # ls stage1-sparc64-2004.3.tar.bz2 stage3-sparc64-2004.3.tar.bz2 livecd stages # ls -l total 103953 -r--r--r-- 1 root root 11382420 Oct 29 18:21 stage1-sparc64-2004.3.tar.bz2 -r--r--r-- 1 root root 95065085 Oct 29 18:21 stage3-sparc64-2004.3.tar.bz2 livecd stages # livecd mnt # mount /dev/sda1 /mnt/gentoo livecd mnt # livecd mnt # ls gentoo lost+found livecd mnt # livecd mnt # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/ROOT 256960 2064 254896 1% / /newroot/dev/cdroms/cdrom0 558198 558198 0 100% /mnt/cdrom /dev/loop/0 125379 116204 9175 93% /mnt/livecd none 256960 0 256960 0% /dev/shm tmpfs 256960 0 256960 0% /usr/lib/hotplug/firmwae /dev/sda1 2883992 32828 2704664 2% /mnt/gentoo livecd mnt # livecd stages # cd /mnt/gentoo livecd gentoo # tar -xjpf /mnt/cdrom/stages/stage3-sparc64-2004.3.tar.bz2 livecd gentoo # ls bin boot dev etc home lib mnt opt proc root sbin sys tmp usr var livecd gentoo # |
Now, we want to extract a snapshot of portage. Portage keeps track of all of the packages for Gentoo that you can install, dependencies, configuration, and compile options.
livecd gentoo # ls /mnt/cdrom/snapshots portage-20041022.tar.bz2 livecd gentoo # livecd gentoo # tar -xjf /mnt/cdrom/snapshots/portage-20041022.tar.bz2 -C /mnt/gentoo/usr livecd gentoo # ls usr/portage app-accessibility dev-lang gnustep-base net-www app-admin dev-libs gnustep-libs net-zope app-antivirus dev-lisp header.txt profiles app-arch dev-ml kde-base scripts app-benchmarks dev-perl licenses sec-policy app-cdr dev-php mail-client skel.ChangeLog app-crypt dev-python mail-filter skel.ebuild app-dicts dev-ruby mail-mta skel.metadata.xml app-doc dev-scheme media-fonts sys-apps app-editors dev-tcltk media-gfx sys-boot app-emacs dev-tex media-libs sys-cluster app-emulation dev-util media-plugins sys-devel app-forensics eclass media-radio sys-fs app-gnustep games-action media-sound sys-kernel app-i18n games-arcade media-tv sys-libs app-laptop games-board media-video www-apache app-misc games-emulation metadata www-apps app-office games-engines net-analyzer www-client app-pda games-fps net-dialup www-misc app-portage games-kids net-dns www-proxy app-sci games-misc net-firewall www-servers app-shells games-mud net-fs x11-base app-text games-puzzle net-ftp x11-libs app-vim games-roguelike net-im x11-misc app-xemacs games-rpg net-irc x11-plugins dev-ada games-server net-libs x11-terms dev-cpp games-simulation net-mail x11-themes dev-db games-sports net-misc x11-wm dev-dotnet games-strategy net-nds xfce-base dev-embedded games-util net-news xfce-extra dev-games gnome-base net-p2p dev-haskell gnome-extra net-print dev-java gnustep-apps net-wireless livecd gentoo # |
As you can see, there are many categories of packages available. The distfiles are the sources are used when you run emerge, together with portage. Let’s extract the distribution files:
livecd gentoo # mkdir /mnt/gentoo/usr/portage/distfiles livecd gentoo # cd /mnt/cdrom/distfiles livecd distfiles # livecd distfiles # cp -R * /mnt/gentoo/usr/portage/distfiles |
In the next installment of this article, we will create the kernel.
There are 7 parts to this article:
Part 1 – Gentoo on SPARC – Booting the Install CD
Part 2 – Gentoo on SPARC – Creating the Filesystems
Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles
Part 4 – Gentoo on SPARC – Creating the Kernel
Part 5 – Gentoo on SPARC – Getting Silo Installed
Part 6 – Gentoo on SPARC – Initial Logon
Part 7 – Gentoo on SPARC – Final Configuration