Steve's World Home   Geography Info   Image/Photo Archive   IRC Stats   Software   Linux Tips   Steve's World Info 

Gentoo on a VIA C7 Netbook

This chronicles my recent experiences building, installing, and configuring Gentoo on a Sylvania gBook (a VIA C7-based netbook). Essentially, it's the same hardware layout as the 1GB memory version of the Everex Cloudbook.

Latest Tips:

There are some hardware and/or configuration quirks with these machines, so the latest tips are captured here, as well as updated below. I've had this thing run for days on the 2.6.31 ACPI kernel without any lockups or i8042 input issues, but it still locks up after 4 hours or so with the 2.6.32-gentoo kernel.

Hardware:

Installation

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:

Kernel Config

ACPI kernel ebuild

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). Update: the patched 2.6.31 ACPI kernel above (with custom DSDT) seems to see a total of three cooling devices, the processor and two fans, but I haven't yet tried manipulating them. Latest dmesg output.

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 still 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. Update: ekiga seems to detect the camera with no problems, but cheese is not working yet (still sorting this one out).

last update: 02/11/2010 22:33


 Steve's World Home   Geography Info   Image/Photo Archive   IRC Stats   Software   Linux Tips   Steve's World Info 

Powered by Zope