Languages: |
English • العربية • Български • Česky • Dansk • Deutsch • Esperanto • Eesti • Español • فارسی • Suomi • Français • עברית • Magyar • Italiano • 한국어 • Nederlands • Norsk (bokmål) • Polski • Português • Română • Русский • Svenska • Slovenčina • Українська • 中文(中国大陆) • 中文(台灣) • Euskara • Català |
Gentoo armv4tl-softfloat-linux-gnueabi optimalized for Openmoko (-Os -march=armv4t -mtune=arm920t) on 2008.0/arm profile (glibc based, sane bootstrapable toolchain)
(embedded uclibc/arm profile armv4tl-softfloat-linux-uclibcgnueabi in plans)
Screenshot (hosted at ImageShack)
http://www.gentoo.org/doc/en/handbook/handbook-arm.xml (Skip points 2 and 3)
fdisk /dev/mmcblk0
mkfs.ext2 /dev/mmcblk0p1
mount /dev/mmcblk0p1 /media/card
scp stage3-armv4tl-*.tar.bz2 portage-*.tar.bz2 root@openmoko:/media/card
tar -xjpf /media/card/stage3-armv4tl-*.tar.bz2 -C /media/card tar -xjpf /media/card/portage-*.tar.bz2 -C /media/card/usr
rm /media/card/stage3-armv4tl-*.tar.bz2 /media/card/portage-*.tar.bz2
chroot /media/card /bin/bash
source /etc/profile; env-update
cp /usr/share/zoneinfo/YOURZONE /etc/localtime
nano /etc/conf.d/hostname
rc-update del consolefont boot
nano /etc/fstab
nano /etc/inittab
echo "modules=\"g_ether\"" >> /etc/conf.d/modules ln -s /etc/init.d/net.lo /etc/init.d/net.usb0 echo "config_usb0=\"192.168.0.202 netmask 255.255.255.0\"" > /etc/conf.d/net echo "routes_usb0=\"default via 192.168.0.200\"" >> /etc/conf.d/net echo "nameserver 192.168.0.200" > /etc/resolv.conf
rc-update add sshd default
passwd
exit
cp /boot/uImage-2.6.24 /media/card/boot/
cp -rpf /lib/modules /media/card/lib/
echo "PORTAGE_BINHOST=\"http://torindel.sezamkowa.net/openmoko/armv4tl-softfloat-linux-gnueabi/~arm/packages/All\"" >> /etc/make.conf
source /etc/profile; env-update
export INSTALL_MASK="*.h"
EMERGE_DEFAULT_OPTS="-gK"
An alternative to installing a full, writeable, and uncompressed portage tree directly on the microSD card, is to compress portage using SquashFS and then to mount the resuling SquashFS file (usually compressed from about 500 MB to 50 MB) at /usr/portage.
In this case, it is also suggested to set DISTDIR to /tmp/distfiles, because the default DISTDIR (/usr/portage/distfiles) is not writeable. Similarly, PKGDIR can be set to /tmp/binpkgs instead of the default /usr/portage/packages.
See this blog post for further details. If you are lacking in extra space on your flash device, or are concerned about extraneous write-cycles to your flash memory, then you should perform all of the steps on desktop linux machine and then finally copy the resulting squashfs image to the FreeRunner.
Add svn://torindel.sezamkowa.net/openmoko to layman (emerge layman)
As i'll be adding some packages to ftp above you might want to ask for some package here: GentooPackageWishList
Overlay with moko things and more packages coming soon.