Openmoko on HTC-Dream
From Openmoko
Line 8: | Line 8: | ||
== Setup the rootfs == | == Setup the rootfs == | ||
− | In this exemple setup I used a SD-Card as root. | + | * In this exemple setup I used a SD-Card as root. |
− | In order to follow this guide format a SD-Card (just like installing it on NeoFreerunner). | + | * In order to follow this guide format a SD-Card (just like installing it on NeoFreerunner). |
− | First partition: vfat | + | ** First partition: vfat |
− | Second partition: ext2 (root) | + | ** Second partition: ext2 (root) |
− | mount it and extract http://downloads.openmoko.org/distro/releases/Om2008.12/Om2008.12-om-gta02.rootfs.tar.gz to it | + | * mount it and extract http://downloads.openmoko.org/distro/releases/Om2008.12/Om2008.12-om-gta02.rootfs.tar.gz to it |
− | + | ||
== Bootloader == | == Bootloader == | ||
Line 28: | Line 27: | ||
cd msm | cd msm | ||
make CROSS_COMPILE=/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/bin/ ARCH=arm | make CROSS_COMPILE=/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/bin/ ARCH=arm | ||
+ | sudo make CROSS_COMPILE=/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/bin/ ARCH=arm modules_install | ||
+ | sudo mv /lib/modules/2.6-29-openmoko-htc-dream /mnt/foo/lib/modules/ | ||
+ | sync | ||
+ | umount /mnt/foo | ||
== Building boot.img == | == Building boot.img == |
Revision as of 16:06, 19 July 2009
Contents |
Introduction
HTC-Dream is a android based handy. Android is running on top of a linux kernel. So we have basically no work to to then using this kernel to boot an OpenMoko userspace. This work is done. I bootet an OpenMoko userspace. The way to do it your own is described next.
Setup the rootfs
- In this exemple setup I used a SD-Card as root.
- In order to follow this guide format a SD-Card (just like installing it on NeoFreerunner).
- First partition: vfat
- Second partition: ext2 (root)
- mount it and extract http://downloads.openmoko.org/distro/releases/Om2008.12/Om2008.12-om-gta02.rootfs.tar.gz to it
Bootloader
You need to install fastboot. In order to do this, you will have need to root the existing android or have already a developer version installed.
Building new kernel
Use 2.6.29 from android.git.kernel.org 2.6.27 rebootet after some minutes without reason.
export HACK_DIR=`pwd` git clone git://android.git.kernel.org/kernel/msm.git wget http://wiki.openmoko.org/images/3/3b/Openmoko-htc-dream-kernel-config.txt cp Openmoko-htc-dream-kernel-config.txt msm/.config cd msm make CROSS_COMPILE=/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/bin/ ARCH=arm sudo make CROSS_COMPILE=/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/bin/ ARCH=arm modules_install sudo mv /lib/modules/2.6-29-openmoko-htc-dream /mnt/foo/lib/modules/ sync umount /mnt/foo
Building boot.img
mkdir $HACK_DIR/mk_boot_img cd $HACK_DIR/mk_boot_img wget http://wiki.openmoko.org/images/9/92/Mkbootimg.bin wget http://wiki.openmoko.org/images/f/f6/Newramdisk.cpio.gz mv Newramdisk.cpio.gz newramdisk.cpio.gz sudo cp Mkbootimg.bin /usr/bin/mkbootimg mkbootimg --cmdline "console=tty0 no_console_suspend=1 root=/dev/mmcblk0p2 rootdelay=2 fbcon=rotate:1" \ --kernel $HACK_DIR/msm/arch/arm/boot/zImage \ --ramdisk ./newramdisk.cpio.gz -o openmoko-boot.img
Flashing boot.img
- Start into fastboot
- execute
fastboot flash boot openmoko-boot.img
- restart then handy
fastboot reboot