{"id":201,"date":"2015-02-16T06:46:37","date_gmt":"2015-02-16T03:46:37","guid":{"rendered":"http:\/\/handheld.computer\/?page_id=201"},"modified":"2019-05-12T17:16:38","modified_gmt":"2019-05-12T14:16:38","slug":"gentoo_on_zaurus-2","status":"publish","type":"page","link":"https:\/\/handheld.computer\/?page_id=201","title":{"rendered":"Gentoo on a Zaurus PDA"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>This is a Gentoo rootfs archive customized for SL-C1000 models. It may also be useful for owners of the C3x00, but some adjustments will probably be necessary to make it work on these models (like kernel recompilation).<\/p>\n<p>This article and all information and products in it are provided on an &quot;as is&quot; basis, without warranty of any kind, either express or implied. <strong>Your use of this article is at your own risk.<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The distribution is originally based on stage3-armv5tel-20090623.tar.bz2. The following is configured:<\/p>\n<ul>\n<li>Added spitz keyboard layout (calendar key toggles langugage).<\/li>\n<li>All packages are recompiled with <code>-O2<\/code> instead of <code>Os<\/code>.<\/li>\n<li>USB network.<\/li>\n<li>WiFi network.<\/li>\n<li>BlueTooth network (via ppp).<\/li>\n<li>IrDa network (via ppp).<\/li>\n<li>The kernel 2.6.24 is compiled with appropriate patches and config.<\/li>\n<li>The mail led indicates SD card activity.<\/li>\n<li>Locale is set to <code>ru_RU.UTF-8<\/code>.<\/li>\n<li>Timezone is set to GMT +3 (Moscow).<\/li>\n<li>procps is recompiled with the Debian patches, which fix the &#8216;Unknown HZ value&#8217; error.<\/li>\n<\/ul>\n<p>There are two ways to load the kernel: directly (without a bootloader) or via <a href=\"http:\/\/projects.linuxtogo.org\/projects\/zaurus\/\">kexecboot<\/a>. In the first case you need to flash the kernel (see the manual below). Both versions use the first partition of SD card as root.<\/p>\n<p>The following packages are installed:<\/p>\n<pre><code>alsa-utils bluez-utils dhcpcd elinks (with the Debian patches) zgv gentoo-sources gentoolkit mpc mpd mutt pcmciautils pidgin ppp sdcv syslog-ng vim wireless-tools<\/code><\/pre>\n<p><a href=\"http:\/\/vminko.org\/storage\/zaurus\/equery.log\">Here<\/a> is a complete list of packages (<code>equery l<\/code>).<\/p>\n<p>Notes:<\/p>\n<ul>\n<li>There&#8217;s no Xorg, because Zaurus is too slow for running it in my opinion.<\/li>\n<li>The system works quite stable, but optimization for iwmmxt is disabled because of <a href=\"http:\/\/article.gmane.org\/gmane.linux.ports.arm.general\/11795\">the kernel issue<\/a>.<\/li>\n<li><code>\/usr\/portage<\/code> is removed from the tarball in order to reduce its size. You can download it from <a href=\"http:\/\/vminko.org\/storage\/zaurus\/portage-20100720.tar.bz2\">here<\/a>.<\/li>\n<li>The tarball contains the kernel sources with all the patches applied and the config file (in the <code>\/usr\/src\/linux<\/code> directory).<\/li>\n<\/ul>\n<h2>How to install<\/h2>\n<p><strong>Kernel<\/strong> (skip this part if you use the kexec bootloader).<\/p>\n<ol>\n<li>Format a CF or SD card with <code>mkfs.msdos -t vfat -F 16 \/dev\/&lt;your-dev-name&gt;<\/code>.<\/li>\n<li>Put the following files into the root directory of the card:\n<ul>\n<li><a href=\"http:\/\/vminko.org\/storage\/zaurus\/zImage.bin\">zImage.bin<\/a> (1.2 Mb)<\/li>\n<li><a href=\"http:\/\/vminko.org\/storage\/zaurus\/updater.sh\">updater.sh<\/a> (13 Kb)<\/li>\n<\/ul>\n<\/li>\n<li>Turn your Zaurus off using <code>halt<\/code>.<\/li>\n<li>Connect the Zaurus to A\/C power.<\/li>\n<li>Hold the &#8216;OK&#8217; button and press the power on\/off button.<\/li>\n<li>You should see a menu. Select the option #4 and then either 1 or 2 depending on your flash card type. Confirm the kernel installation by selecting Y.<\/li>\n<li>Wait till your Zaurus reboots and displays the error <code>Unable to mount root fs<\/code>.<\/li>\n<\/ol>\n<p><strong>Rootfs<\/strong><\/p>\n<ol>\n<li>Download the rootfs tarball: <a href=\"http:\/\/vminko.org\/storage\/zaurus\/gentoo-rootfs-20100627.tar.bz2\">gentoo-rootfs-20100627.tar.bz2<\/a> (206 Mb).<\/li>\n<li>Format the first partition of your SD card as ext2 or ext3.<\/li>\n<li>Extract the rootfs to this partition (<code>tar xvpf gentoo-rootfs-20100627.tar.bz2 -C \/mnt\/&lt;your-mnt-dir&gt;<\/code>).<\/li>\n<li>Insert the SD card into the Zaurus and reboot the machine.<\/li>\n<\/ol>\n<h2>WPA2<\/h2>\n<p>The rootfs provided above uses the <code>orinoco<\/code> driver for Prism-based WiFi cards. I recently figured out, that the kernel 2.6.24 already contains a better one &#8211; <code>hostap<\/code>. This driver support WPA2 and the Master mode (for making WiFi AP).<\/p>\n<p>So I recommend to disable <code>CONFIG_HERMES<\/code> and enable <code>CONFIG_HOSTAP<\/code> instead. This will be done in any future rootfs release.<\/p>\n<p>Besides the <code>hostap<\/code> driver, WPA2 support also requires relatively new firmware. If your Prism-based WiFi card has too firmware version, you will need to update it. <a href=\"http:\/\/vminko.org\/storage\/zaurus\/mirrors\/webpages\/Jun%20Sun&#039;s%20mini-HOWTO%20on%20flashing%20Intersil%20Prism%20chipsets.htm\">Here<\/a> is a very detailed manual describing how to reflash Prism chipset. The utilities and the new firmware (version 1.8.2) can be downloaded from <a href=\"http:\/\/vminko.org\/storage\/zaurus\/hostap\/\">here<\/a>.<br \/>\n<strong>WARNING<\/strong>: I haven&#8217;t tested flashing by myself. I use Zonet ZCF1100 with the firmware 1.8.0, and WPA2 works fine. Please read the manual very carefully and think twice before flashing.<\/p>\n<h2>Mirrors<\/h2>\n<p>Zaurus-dedicated websites are slowly dying. Therefore I decided to make a local mirror of some information I considered useful:<\/p>\n<ul>\n<li><a href=\"http:\/\/vminko.org\/storage\/zaurus\/mirrors\/cacko\/\">Cacko<\/a> (firmwares files, feed, sources, etc)<\/li>\n<li><a href=\"http:\/\/vminko.org\/storage\/zaurus\/mirrors\/pdaxrom\/\">pdaXrom<\/a> (firmware files, fee, sources, etc)<\/li>\n<li><a href=\"http:\/\/vminko.org\/storage\/zaurus\/mirrors\/datasheets\/\">Datasheets<\/a> for Zaurus&#8217; hardware<\/li>\n<li>Yonggun&#8217;s <a href=\"http:\/\/vminko.org\/storage\/zaurus\/mirrors\/kernel-yonggun\/\">kernel<\/a> (zImages, modules, sources, config)<\/li>\n<li><a href=\"http:\/\/vminko.org\/storage\/zaurus\/mirrors\/kexecboot-2.6.2x\/\">Kexecboot<\/a> bootloaders (installkits)<\/li>\n<li><a href=\"http:\/\/vminko.org\/storage\/zaurus\/mirrors\/mplayer\/\">Mplayer<\/a> (sources, patches, ipk-packages)<\/li>\n<li><a href=\"http:\/\/vminko.org\/storage\/zaurus\/mirrors\/nand-backups\/\">NAND backups<\/a><\/li>\n<li><a href=\"http:\/\/vminko.org\/storage\/zaurus\/mirrors\/openzaurus-patches\/\">OpenZaurus patches<\/a> for linux-2.6<\/li>\n<li><a href=\"http:\/\/vminko.org\/storage\/zaurus\/mirrors\/openbsd\/\">OpenBSD port<\/a> (manuals, kernel, packages, etc)<\/li>\n<li><a href=\"http:\/\/vminko.org\/storage\/zaurus\/mirrors\/netbsd\/\">NetBSD port<\/a> (manuals, kernel, packages, etc)<\/li>\n<\/ul>\n<h2>Isses\/ToDo<\/h2>\n<ul>\n<li><strong>Cpufreq<\/strong> &#8211; apply the <code>cpufreq<\/code> patch for pxa27x to enable frequency scaling.<\/li>\n<li><strong>QVGA<\/strong> &#8211; pdafb supports QVGA mode, try to configure it (may be useful for games).<\/li>\n<li><strong>Touchscreen jittering<\/strong> &#8211; the problem seems to be caused by invalid hsync length received by the touchscreen driver from <code>pxafb<\/code>. Need to investigate it.<\/li>\n<li><strong>Netsurf<\/strong> seems to be the most powerful web browser for framebuffer. Try it.<\/li>\n<\/ul>\n<h2>Changelog<\/h2>\n<ul>\n<li><em>16 Feb 2015<\/em><br \/>\nAdded local mirrors.<br \/>\nAdded note about WPA2.<br \/>\nAdded ToDo\/Issue list.  <\/li>\n<li><em>27 Jun 2010<\/em><br \/>\nPackages are updated to the current date.<br \/>\nReturned from moc back to mpd, switched from ALSA to OSS to avoid freezing of the daemon.<br \/>\nfim is removed, because zgv is much faster.<\/li>\n<li><em>10 Jan 2010<\/em><br \/>\nInstalled a simple drawing tool called zketcher.<br \/>\nInstalled another image viewer called fim.<br \/>\nThe kernel is slightly modified in order to block handling of the power key when lid is closed and make touch screen work a bit cleaner.<\/li>\n<li><em>04 Oct 2009<\/em><br \/>\nPackages are updated to the current date (including glibc).<br \/>\nGPM is installed, works through tslib, useful in elinks.<br \/>\nSDL is patched with the screen rotation support (via <code>SDL_VIDEO_FBCON_ROTATION<\/code>).<br \/>\nfbi is replaced with zgv, which is faster, can zoom, etc.<\/li>\n<li><em>24 Jul 2009<\/em><br \/>\nFirst public release.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This is a Gentoo rootfs archive customized for SL-C1000 models. It may also be useful for owners of the C3x00, but some adjustments will probably be necessary to make it work on these models (like kernel recompilation). This article and all information and products in it are provided on an &quot;as is&quot; basis, without &hellip; <a href=\"https:\/\/handheld.computer\/?page_id=201\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Gentoo on a Zaurus PDA&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":210,"parent":221,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[14,15,17,16],"class_list":["post-201","page","type-page","status-publish","has-post-thumbnail","hentry","tag-gentoo","tag-linux","tag-sl-c1000","tag-zaurus"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/handheld.computer\/index.php?rest_route=\/wp\/v2\/pages\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/handheld.computer\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/handheld.computer\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/handheld.computer\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/handheld.computer\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=201"}],"version-history":[{"count":4,"href":"https:\/\/handheld.computer\/index.php?rest_route=\/wp\/v2\/pages\/201\/revisions"}],"predecessor-version":[{"id":207,"href":"https:\/\/handheld.computer\/index.php?rest_route=\/wp\/v2\/pages\/201\/revisions\/207"}],"up":[{"embeddable":true,"href":"https:\/\/handheld.computer\/index.php?rest_route=\/wp\/v2\/pages\/221"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/handheld.computer\/index.php?rest_route=\/wp\/v2\/media\/210"}],"wp:attachment":[{"href":"https:\/\/handheld.computer\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=201"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/handheld.computer\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}