Android kernel for bc9 (1/2)
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[Android]]~
[[Android kernel for bc9 (2/2)]]~
#contents
*Setup Android bootable linux kernel and userland for bc9...
**Setting up gumstix build environment [#j866140a]
We use gumstix OpenEmbedded (OE) build system (bitbake).~
Bitbake is originally [[OpenEmbedded:http://wiki.openembe...
Before you proceed, please understand standard setting up...
-[[gumstix developer site - Getting started:http://www.gu...
-[[gumstix developer site - Setting up a build environmen...
-[[gumstix developer site - Replacing the file system ima...
**Check out source [#za32c746]
$ mkdir ~/gumstix
$ cd ~/gumstix
$ svn co https://gumstix.svn.sourceforge.net/svnroot/gum...
**Setting up Environment (shell) [#e6802aa8]
If you prefer setting up Environment via bash profile, do:
$ cat gumstix-oe/extras/profile >> ~/.bashrc
If you prefer setting up Environment temporally, do:
$ . ~/gumstix/gumstix-oe/extras/profile
or
$ source ~/gumstix/gumstix-oe/extras/profile
**Setting up source code caching [#j826ce54]
Gumstix OE downloads source code during build operation. ~
So in order to avoid repeating download of every build op...
At first, add new group for cache management and add oper...
$ sudo groupadd oe
$ sudo usermod -a -G oe {your_username}
Next make source code storing directory and set owner and...
$ sudo mkdir /usr/share/sources
$ sudo chgrp oe /usr/share/sources
$ sudo chmod 0775 /usr/share/sources
$ sudo chmod ug+s /usr/share/sources
**Adjusting build contents [#s9b8e1a2]
Current default kernel version of gumstix verdex pro is 2...
In contrast Android R1 kernel is version 2.6.25 kernel pl...
So we upgrade gumstix's kernel to version 2.6.24, which i...
Then we made patch from diff of 2.6.24 gumstix kernel and...
With following adjustments, this patch is automatically a...
Procedures are as follows:
+~Changing building kernel version~
~/gumstix/gumstix-oe/com.gumstix.collection/conf/machine...
Modify this file as follows:
diff -u gumstix.inc.original gumstix.inc
--- gumstix.inc.original 2009-03-27 21:30:00.000000000 +...
+++ gumstix.inc 2009-03-24 22:48:10.000000000 +0900
@@ -35,7 +35,7 @@
PREFERRED_PROVIDER_bluez-utils-dbus = "bluez-utils"
PREFERRED_PROVIDER_gsmd="libgsmd"
-PREFERRED_VERSION_gumstix-kernel = "2.6.21"
+PREFERRED_VERSION_gumstix-kernel = "2.6.24"
PREFERRED_VERSION_udev = "118"
PREFERRED_VERSION_gnuplot = "4.0.0"
PREFERRED_VERSION_dropbear = "0.47"
+~Adjusting system image contents~
~/gumstix-default-2.6.24/gumstix-oe/com.gumstix.collecti...
Modify this file as follows:
diff -u gumstix-custom-verdex.conf.original gumstix-cust...
--- gumstix-custom-verdex.conf.original 2009-03-30 15:02...
+++ gumstix-custom-verdex.conf 2009-03-25 13:48:26.00000...
@@ -9,8 +9,8 @@
#
# Your flash size = Total flash (in MB) - 1 (for linux ...
-ROOT_FLASH_SIZE = "15"
-#ROOT_FLASH_SIZE = "31"
+#ROOT_FLASH_SIZE = "15"
+ROOT_FLASH_SIZE = "31"
#
# Enable use of virtual terminal for LCD on tty1 if USE...
+~Removing unbuildable module~
When you upgrade gumstix's kernel version to 2.6.24, wifi...
~/gumstix/gumstix-oe/com.gumstix.collection/packages/tas...
So remove this module's build difinition from bitbake set...
--- task-base-gumstix.bb.original 2009-03-26 17:09:52.00...
+++ task-base-gumstix.bb 2009-03-30 17:10:04.000000000 +...
@@ -201,7 +201,6 @@
 
RDEPENDS_task-base-gumstix-wifi = "\
task-base-gumstix-pcmcia \
- wifistix-modules \
wireless-tools \
wpa-supplicant \
+~Adding patch during kernel build in bitbake~
~gumstix/gumstix-oe/com.gumstix.collection/packages/linu...
Modify this bitbake config file as follows:
diff -u gumstix-kernel_2.6.24.bb.original gumstix-kernel...
--- gumstix-kernel_2.6.24.bb.original 2009-03-26 19:23:3...
+++ gumstix-kernel_2.6.24.bb 2009-03-27 22:01:53.0000000...
@@ -46,7 +46,8 @@
file://smc911x-fixup.patch;patch=1 \
file://smc91x-fail-if-no-chip.patch;patch=1 \
file://one-wire.patch;patch=1 \
+ file://diff-kernel-original-android.patch;patch=...
${@base_contains('MACHINE_FEATURES', 'rgb16','fi...
"
Here is patch file added in above procedure.~
&ref(diff-kernel-original-android.patch);~
This file applies following modifications to gumstix's or...
・Adding Android unique drivers required to boot An...
・Fix of some Kconfig and Makefile~
・Modification of Framebuffer driver (add panning f...
Put it in following directory:
~gumstix/gumstix-oe/com.gumstix.collection/packages/linu...
+~Tochscreen driver adjustment~
&ref(tsc2003.c);~
This is modified touchscreen driver (tsc2003.c) for Andro...
Because of execution procedure of gumstix-kernel_2.6.24.b...
Download and replace original tsc2003.c with this file.~
Original tsc2003.c is in following directory:
~gumstix/gumstix-oe/com.gumstix.collection/packages/linu...
+~defconfig adjustment~
When you apply above patch and adjustments, you also requ...
&ref(defconfig);~
Download and recplace original gumstix's defconfig with t...
Original defconfig is in following directory:
~gumstix/gumstix-oe/com.gumstix.collection/packages/linu...
**building source code [#rf33984b]
After finish adjustments, proceed the build as follows:
bitbake gumstix-basic-image
Bitbake downloads all source code and build ARM Cross Too...
When the build is finished, onboard FlashROM installable ...
$ ls -1 ~/gumstix/gumstix-oe/tmp/deploy/glibc/images/gum...
Angstrom-gumstix-basic-image-glibc-ipk-2007.9-test-20090...
gumstix-basic-image-gumstix-custom-verdex.jffs2 (simlink...
modules-2.6.24-r1-gumstix-custom-verdex.tgz
uImage-2.6.24-r1-gumstix-custom-verdex.bin
Additionally do following build:
bitbake gumstix-directfb-image
System image file which include DirectFB library and comm...
Angstrom-gumstix-directfb-image-glibc-ipk-2007.9-test-20...
gumstix-directfb-image-gumstix-custom-verdex.jffs2 (siml...
This system image file is convenient to check functions o...
By using DirectFB test applications such as df_dok or df_...
[[Android kernel for bc9 (2/2)]]
---------------------------------------
RIGHT:by Satoshi OTSUKA
End:
[[Android]]~
[[Android kernel for bc9 (2/2)]]~
#contents
*Setup Android bootable linux kernel and userland for bc9...
**Setting up gumstix build environment [#j866140a]
We use gumstix OpenEmbedded (OE) build system (bitbake).~
Bitbake is originally [[OpenEmbedded:http://wiki.openembe...
Before you proceed, please understand standard setting up...
-[[gumstix developer site - Getting started:http://www.gu...
-[[gumstix developer site - Setting up a build environmen...
-[[gumstix developer site - Replacing the file system ima...
**Check out source [#za32c746]
$ mkdir ~/gumstix
$ cd ~/gumstix
$ svn co https://gumstix.svn.sourceforge.net/svnroot/gum...
**Setting up Environment (shell) [#e6802aa8]
If you prefer setting up Environment via bash profile, do:
$ cat gumstix-oe/extras/profile >> ~/.bashrc
If you prefer setting up Environment temporally, do:
$ . ~/gumstix/gumstix-oe/extras/profile
or
$ source ~/gumstix/gumstix-oe/extras/profile
**Setting up source code caching [#j826ce54]
Gumstix OE downloads source code during build operation. ~
So in order to avoid repeating download of every build op...
At first, add new group for cache management and add oper...
$ sudo groupadd oe
$ sudo usermod -a -G oe {your_username}
Next make source code storing directory and set owner and...
$ sudo mkdir /usr/share/sources
$ sudo chgrp oe /usr/share/sources
$ sudo chmod 0775 /usr/share/sources
$ sudo chmod ug+s /usr/share/sources
**Adjusting build contents [#s9b8e1a2]
Current default kernel version of gumstix verdex pro is 2...
In contrast Android R1 kernel is version 2.6.25 kernel pl...
So we upgrade gumstix's kernel to version 2.6.24, which i...
Then we made patch from diff of 2.6.24 gumstix kernel and...
With following adjustments, this patch is automatically a...
Procedures are as follows:
+~Changing building kernel version~
~/gumstix/gumstix-oe/com.gumstix.collection/conf/machine...
Modify this file as follows:
diff -u gumstix.inc.original gumstix.inc
--- gumstix.inc.original 2009-03-27 21:30:00.000000000 +...
+++ gumstix.inc 2009-03-24 22:48:10.000000000 +0900
@@ -35,7 +35,7 @@
PREFERRED_PROVIDER_bluez-utils-dbus = "bluez-utils"
PREFERRED_PROVIDER_gsmd="libgsmd"
-PREFERRED_VERSION_gumstix-kernel = "2.6.21"
+PREFERRED_VERSION_gumstix-kernel = "2.6.24"
PREFERRED_VERSION_udev = "118"
PREFERRED_VERSION_gnuplot = "4.0.0"
PREFERRED_VERSION_dropbear = "0.47"
+~Adjusting system image contents~
~/gumstix-default-2.6.24/gumstix-oe/com.gumstix.collecti...
Modify this file as follows:
diff -u gumstix-custom-verdex.conf.original gumstix-cust...
--- gumstix-custom-verdex.conf.original 2009-03-30 15:02...
+++ gumstix-custom-verdex.conf 2009-03-25 13:48:26.00000...
@@ -9,8 +9,8 @@
#
# Your flash size = Total flash (in MB) - 1 (for linux ...
-ROOT_FLASH_SIZE = "15"
-#ROOT_FLASH_SIZE = "31"
+#ROOT_FLASH_SIZE = "15"
+ROOT_FLASH_SIZE = "31"
#
# Enable use of virtual terminal for LCD on tty1 if USE...
+~Removing unbuildable module~
When you upgrade gumstix's kernel version to 2.6.24, wifi...
~/gumstix/gumstix-oe/com.gumstix.collection/packages/tas...
So remove this module's build difinition from bitbake set...
--- task-base-gumstix.bb.original 2009-03-26 17:09:52.00...
+++ task-base-gumstix.bb 2009-03-30 17:10:04.000000000 +...
@@ -201,7 +201,6 @@
 
RDEPENDS_task-base-gumstix-wifi = "\
task-base-gumstix-pcmcia \
- wifistix-modules \
wireless-tools \
wpa-supplicant \
+~Adding patch during kernel build in bitbake~
~gumstix/gumstix-oe/com.gumstix.collection/packages/linu...
Modify this bitbake config file as follows:
diff -u gumstix-kernel_2.6.24.bb.original gumstix-kernel...
--- gumstix-kernel_2.6.24.bb.original 2009-03-26 19:23:3...
+++ gumstix-kernel_2.6.24.bb 2009-03-27 22:01:53.0000000...
@@ -46,7 +46,8 @@
file://smc911x-fixup.patch;patch=1 \
file://smc91x-fail-if-no-chip.patch;patch=1 \
file://one-wire.patch;patch=1 \
+ file://diff-kernel-original-android.patch;patch=...
${@base_contains('MACHINE_FEATURES', 'rgb16','fi...
"
Here is patch file added in above procedure.~
&ref(diff-kernel-original-android.patch);~
This file applies following modifications to gumstix's or...
・Adding Android unique drivers required to boot An...
・Fix of some Kconfig and Makefile~
・Modification of Framebuffer driver (add panning f...
Put it in following directory:
~gumstix/gumstix-oe/com.gumstix.collection/packages/linu...
+~Tochscreen driver adjustment~
&ref(tsc2003.c);~
This is modified touchscreen driver (tsc2003.c) for Andro...
Because of execution procedure of gumstix-kernel_2.6.24.b...
Download and replace original tsc2003.c with this file.~
Original tsc2003.c is in following directory:
~gumstix/gumstix-oe/com.gumstix.collection/packages/linu...
+~defconfig adjustment~
When you apply above patch and adjustments, you also requ...
&ref(defconfig);~
Download and recplace original gumstix's defconfig with t...
Original defconfig is in following directory:
~gumstix/gumstix-oe/com.gumstix.collection/packages/linu...
**building source code [#rf33984b]
After finish adjustments, proceed the build as follows:
bitbake gumstix-basic-image
Bitbake downloads all source code and build ARM Cross Too...
When the build is finished, onboard FlashROM installable ...
$ ls -1 ~/gumstix/gumstix-oe/tmp/deploy/glibc/images/gum...
Angstrom-gumstix-basic-image-glibc-ipk-2007.9-test-20090...
gumstix-basic-image-gumstix-custom-verdex.jffs2 (simlink...
modules-2.6.24-r1-gumstix-custom-verdex.tgz
uImage-2.6.24-r1-gumstix-custom-verdex.bin
Additionally do following build:
bitbake gumstix-directfb-image
System image file which include DirectFB library and comm...
Angstrom-gumstix-directfb-image-glibc-ipk-2007.9-test-20...
gumstix-directfb-image-gumstix-custom-verdex.jffs2 (siml...
This system image file is convenient to check functions o...
By using DirectFB test applications such as df_dok or df_...
[[Android kernel for bc9 (2/2)]]
---------------------------------------
RIGHT:by Satoshi OTSUKA
Page: