Howto build Android kernel

Andy Green andy at openmoko.com
Tue Dec 9 08:51:54 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:
| Hi Rui,
|
| I carry around a small patch that hacks in the menu button until I can
| figure out how to gracefully add the capability into Android. There is
| also some configuration changes that I use to include functionality into
| the kernel. Android can load kernel modules, but I tend to prefer not
| using them at this time.
|
| Attached you'll find the change and config I use for the Android kernel.

Balaji and Sean, is there something we can do to integrate this patch?
For example platform callback to implement the action in mach_gta02.c
and just take on the interrupt mapping and private data?  Would it need
to have the functionality enabled by /sys or somesuch because it muddles
up the normal semantics?

On the config, the diff between this and the gta02 moredrivers one are
these:


Just changes to built-in from module already (fine):

- -CONFIG_CRC_CCITT=m
+CONFIG_CRC_CCITT=y

- -CONFIG_CRYPTO_ARC4=m
+CONFIG_CRYPTO_ARC4=y

- -CONFIG_CRYPTO_ECB=m
+CONFIG_CRYPTO_ECB=y
- -CONFIG_CRYPTO_SHA1=m
+CONFIG_CRYPTO_SHA1=y
- -CONFIG_TUN=m
+CONFIG_TUN=y
- -CONFIG_SLHC=m
+CONFIG_SLHC=y
- -CONFIG_PPP_ASYNC=m
- -CONFIG_PPP_BSDCOMP=m
- -CONFIG_PPP_DEFLATE=m
+CONFIG_PPP_ASYNC=y
+CONFIG_PPP_BSDCOMP=y
+CONFIG_PPP_DEFLATE=y
- -CONFIG_PPP=m
- -CONFIG_PPP_MPPE=m
+CONFIG_PPP_MPPE=y
- -CONFIG_PPP_SYNC_TTY=m
+CONFIG_PPP_SYNC_TTY=y
+CONFIG_PPP=y

NFS support (fine)

+CONFIG_NETWORK_FILESYSTEMS=y
+CONFIG_NFS_COMMON=y
+CONFIG_NFS_FS=y
+CONFIG_SUNRPC=y
+CONFIG_LOCKD=y


Kill Framebuffer console add logo:

- -CONFIG_FONT_6x11=y
- -CONFIG_FONTS=y

- -CONFIG_FRAMEBUFFER_CONSOLE=y

+CONFIG_LOGO_OPENMOKO_CLUT224=y
+CONFIG_LOGO=y


New / changed features (fine):

- -CONFIG_NR_TTY_DEVICES=4
+CONFIG_NR_TTY_DEVICES=6

Prefer existing setting (shouldn't impact)

- -CONFIG_USB_S3C2410_DEBUG=y
- -CONFIG_LOG_BUF_SHIFT=18
+CONFIG_LOG_BUF_SHIFT=17
- -CONFIG_MMC_BLOCK_BOUNCE=y


So I can change to all of these except the last ones which I don't think
matter for Android, and the "kill framebuffer and add logo" stuff...
what happens if we leave the framebuffer console support in for Android,
something bad?

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkk+I5oACgkQOjLpvpq7dMqa8wCaAqqLjb+P1XW3tLDUwRVwVaJt
5I0AniVgXyoPoUG9eBftRL8Xe1F75SkH
=vz6n
-----END PGP SIGNATURE-----



More information about the openmoko-kernel mailing list