How to build Android for Samsung Galaxy Note
Posted
by
Tr?n Ð?i
on Stack Overflow
See other posts from Stack Overflow
or by Tr?n Ð?i
Published on 2013-11-01T15:33:05Z
Indexed on
2013/11/01
15:54 UTC
Read the original article
Hit count: 363
I'd like to modify and build my own Android for my Samsung Galaxy Note I've downloaded Android 4.1.2 from http://source.android.com and Samsung open source for my Samsung Galaxy Note.
After extract Samsung open source, I get 2 folders: Kernel and Platform, and 2 README text file
README_Kernel.txt
1. How to Build
- get Toolchain
From android git server , codesourcery and etc ..
- arm-eabi-4.6
- edit build_kernel.sh
edit "CROSS_COMPILE" to right toolchain path(You downloaded).
EX) CROSS_COMPILE= $(android platform directory you download)/android/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
Ex) CROSS_COMPILE=/usr/local/toolchain/arm-eabi-4.6/bin/arm-eabi- // check the location of toolchain
- execute Kernel script
$ ./build_kernel.sh
2. Output files
- Kernel : arch/arm/boot/zImage
- module : drivers/*/*.ko
3. How to Clean
$ make clean
README_Platform.txt
[Step to build]
1. Get android open source.
: version info - Android 4.1
( Download site : http://source.android.com )
2. Copy module that you want to build - to original android open source
If same module exist in android open source, you should replace it. (no overwrite)
# It is possible to build all modules at once.
3. You should add module name to 'PRODUCT_PACKAGES' in 'build\target\product\core.mk' as following case.
case 1) bluetooth : should add 'audio.a2dp.default' to PRODUCT_PACKAGES
case 2) e2fsprog : should add 'e2fsck' to PRODUCT_PACKAGES
case 3) libexifa : should add 'libexifa' to PRODUCT_PACKAGES
case 4) libjpega : should add 'libjpega' to PRODUCT_PACKAGES
case 5) KeyUtils : should add 'libkeyutils' to PRODUCT_PACKAGES
case 6) bluetoothtest\bcm_dut : should add 'bcm_dut' to PRODUCT_PACKAGES
ex.) [build\target\product\core.mk] - add all module name for case 1 ~ 6 at once
PRODUCT_PACKAGES += \
e2fsck \
libexifa \
libjpega \
libkeyutils \
bcm_dut \
audio.a2dp.default
4. In case of 'bluetooth', you should add following text in 'build\target\board\generic\BoardConfig.mk'
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
5. excute build command
./build.sh user
What I need to do after followed 2 above files
© Stack Overflow or respective owner