Openmoko on HTC-Dream
From Openmoko
(Sensible formatting) |
|||
Line 10: | Line 10: | ||
* USB-Ethernet | * USB-Ethernet | ||
* Framebuffer console | * Framebuffer console | ||
+ | * Xfbdev | ||
== Setup the rootfs == | == Setup the rootfs == | ||
Line 17: | Line 18: | ||
** 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 | ||
+ | Or: | ||
+ | * download http://downloads.openmoko.org/distro/testing/daily/om-gta02/20090616/openmoko-fso-console-image-glibc-ipk--20090616-om-gta02.rootfs.jffs2 | ||
+ | * fastboot flash system openmoko-fso-console-image-glibc-ipk--20090616-om-gta02.rootfs.jffs2 | ||
== Bootloader == | == Bootloader == | ||
Line 24: | Line 28: | ||
== Kernel == | == Kernel == | ||
=== Building new kernel === | === Building new kernel === | ||
− | + | I forked the android kernel and I'm adding new features daily | |
+ | Fetch the kernel sourcecode from http://gitorious.org/openmoko-msm-2-6-29 | ||
+ | And configure it as you whish. | ||
export HACK_DIR=`pwd` | export HACK_DIR=`pwd` | ||
− | git clone git:// | + | git clone git://gitorious.org/openmoko-msm-2-6-29/openmoko-msm-2-6-29.git |
− | + | wget http://wiki.openmoko.org/images/3/3b/Openmoko-htc-dream-kernel-config.txt | |
cp Openmoko-htc-dream-kernel-config.txt msm/.config | cp Openmoko-htc-dream-kernel-config.txt msm/.config | ||
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 make CROSS_COMPILE=/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/bin/ ARCH=arm modules_install | ||
− | sudo mv /lib/modules/2.6-29-openmoko- | + | sudo mv /lib/modules/2.6-29-openmoko-msm /mnt/foo/lib/modules/ |
sync | sync | ||
umount /mnt/foo | umount /mnt/foo | ||
Line 58: | Line 64: | ||
== WLAN == | == WLAN == | ||
* http://bobcopeland.com/android_wifi.html | * http://bobcopeland.com/android_wifi.html | ||
+ | * Look onto this section with the calibration files | ||
[[Category:Distributions]] | [[Category:Distributions]] |
Revision as of 20:01, 3 August 2009
Contents |
Introduction
HTC-Dream is a android based phone. Android is running on top of a Linux kernel. So we have basically no work to do using this kernel to boot an Openmoko user space. This work is done. I booted an Openmoko user space. The way to do it on your own is described below.
Working
- USB-Ethernet
- Framebuffer console
- Xfbdev
Setup the rootfs
- In this example setup I used a SD-Card as root partition.
- In order to follow this guide format a SD-Card (just like installing Openmoko on Neo Freerunner).
- 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
Or:
- download http://downloads.openmoko.org/distro/testing/daily/om-gta02/20090616/openmoko-fso-console-image-glibc-ipk--20090616-om-gta02.rootfs.jffs2
- fastboot flash system openmoko-fso-console-image-glibc-ipk--20090616-om-gta02.rootfs.jffs2
Bootloader
You need to install fastboot. In order to do this, you will have need to have "root" on the existing Android device or already have a developer version of the bootloader installed.
Kernel
Building new kernel
I forked the android kernel and I'm adding new features daily Fetch the kernel sourcecode from http://gitorious.org/openmoko-msm-2-6-29 And configure it as you whish.
export HACK_DIR=`pwd` git clone git://gitorious.org/openmoko-msm-2-6-29/openmoko-msm-2-6-29.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-msm /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
WLAN
- http://bobcopeland.com/android_wifi.html
- Look onto this section with the calibration files