This chronicles my recent experience building, installing, and configuring Gentoo on a Sylvania gBook (a VIA C7-based netbook).
/dev/hdc (old IDE drivers) or /dev/sda (VIA PATA
driver).snd-hda-intel driver (with specific options).This machine boots readily from an external (USB) CD/DVD drive, so you can pretty much follow the normal Gentoo x86 install guide. I chose to setup an x86 chroot on a fast machine (a dual-core amd64 box) and build the majority of the packages that way; as long as the build host supports the same CFLAGS as the target host, this should be perfectly safe (and has worked fine so far).
Essentially, I have an external USB hard drive with an LVM volume, where I created a 30 MB logical volume (to mimic the 30 GB drive in the netbook) and "installed" the latest Gentoo i686 stage3. Now I can build binary packages on a fast machine with fast RAID disks, and then emerge them later on the netbook. Whether you use LVM or an internal drive for this purpose, you can either scp/rsync the resulting packages to the netbook drive (or just plug the external drive in) or you can use NFS to export some (or all) of your portage tree on your local network (make sure you have "buildpkg" set in your FEATURES)..
Following a few other resources I found on the IntarWeb, I used this for my CFLAGS on the C7:
CFLAGS="-march=i686 -mmmx -msse -msse2 -msse3 -Os -pipe -fomit-frame-pointer"
See the full make.conf file here. There seem to be some odd hardware issues with this machine; see the kernel section for more details.
A few netbook-specific installation tips:
# fdisk -l /dev/sda
Disk /dev/sda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdd6cdd6c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3488 28017328+ 83 Linux
/dev/sda2 3489 3644 1253070 82 Linux swap / Solaris
/dev/sda3 3645 3648 32130 83 Linux
title=Gentoo 2.6.29-acpi test (uvesafb, no splash)
root (hd0,2)
kernel /boot/vmlinuz-2.6.29-acpi root=/dev/sda1 screen=800x480 video=uvesafb:800x480-16@60
Remember the root line above points to sda3 (i.e., my /boot partition). Modify
it to match your setup.
If for some reason you need a binary package for this machine, you can get them here. They may be useful if you have a C7 netbook with only a flash drive whether you run Gentoo or not, since the Gentoo binary package is just a .tbz2 file you can untar directly to "/".
Since a working ACPI configuration (including BIOS settings) is pretty much required for most hardware to function properly these days, I made a patched vanilla sources ebuild a while back (mostly because the latest acpi patch release will only apply to the vanilla kernel source, and even then with some effort). The C7 netbook hardware appears to be the most stable on the patched acpi-sources, at least compared to the straight vanilla-sources or gentoo-sources.
Although the lm_sensors script will detect the C7 sensor interface, the module is not part of any mainstream kernel source. Use the above patch to add a sensor for temperature and core voltage (sorry, that's all the driver currently implements, and I have no idea if there's a fan interface, since the lm_sensors fancontrol widget reports nothing recognized).
You can also use the above kernel config with gentoo-sources, and follow the normal fbsplash instructions. I had to make my own splash config for the 800x480 resolution, but it works as long as your images are the correct size, etc. I modified the images provided with the emergence theme to the proper sizes and it looks very nice. I'll update this page if the gentoo-sources kernel appears to be stable with the latest config. The acpi-sources kernel is the current winner for stability...
Overall, the optimized binaries run pretty fast; lxde is snappy, and even a base Gnome install isn't bad... I haven't tried OpenOffice yet, but I wasn't planning on doing any real work on this machine, mostly web browsing, photos, and GPS. I'll see how well ekiga works with the onboard camera once I get a few other things sorted out.
last update: 10/25/2009 12:16