Refactor: add [[Category:Software and Tools
]] |
Add a lead sentence |
||
| (未顯示同一使用者於中間所作的 1次修訂) | |||
| 第1行: | 第1行: | ||
Building '''Android''' for the Raspberry Pi - fetching the source with repo, preparing the toolchain, and the build invocation. | |||
== source == | == source == | ||
* <nowiki>git clone https://github.com/gonzoua/u-boot-pi.git</nowiki> | * <nowiki>git clone https://github.com/gonzoua/u-boot-pi.git</nowiki> | ||
* <nowiki>svn co file:///var/svn/raspberrypi/u-boot-pi</nowiki> | * <nowiki>svn co file:///var/svn/raspberrypi/u-boot-pi</nowiki> | ||
== | == Prepare == | ||
* repo - a tool that makes it easier to work with Git in the context of Android. | * repo - a tool that makes it easier to work with Git in the context of Android. | ||
** $ mkdir ~/bin | ** $ mkdir ~/bin | ||
| 第19行: | 第21行: | ||
** specify the root= in bootargs (modify the cmdline.txt in /boot paratition) | ** specify the root= in bootargs (modify the cmdline.txt in /boot paratition) | ||
== | == Build == | ||
* switch to your working directory | * switch to your working directory | ||
* export TARGET_PREBUILT_KERNEL=$your_kernel_path/arch/arm/boot/zImage | * export TARGET_PREBUILT_KERNEL=$your_kernel_path/arch/arm/boot/zImage | ||
* make bootimage | * make bootimage | ||
== | == Reference == | ||
* [http://s.android.com/source/downloading.html Android - Downloading the Source] | * [http://s.android.com/source/downloading.html Android - Downloading the Source] | ||
* [http://en.wikipedia.org/wiki/Icedtea wiki - IcedTea project] | * [http://en.wikipedia.org/wiki/Icedtea wiki - IcedTea project] | ||
[[Category:Software and Tools]] | [[Category:Software and Tools]] | ||
2026年8月23日 (日) 17:56的最新修訂
Building Android for the Raspberry Pi - fetching the source with repo, preparing the toolchain, and the build invocation.
source
- git clone https://github.com/gonzoua/u-boot-pi.git
- svn co file:///var/svn/raspberrypi/u-boot-pi
Prepare
- repo - a tool that makes it easier to work with Git in the context of Android.
- $ mkdir ~/bin
- $ PATH=~/bin:$PATH
- $ curl http://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
- $ chmod a+x ~/bin/repo
- init repo client
- $ mkdir WORKING_DIRECTORY
- $ cd WORKING_DIRECTORY
- $ repo init -u https://android.googlesource.com/platform/manifest
- IcedTea for OpenJDK 6
- http://blog.fuseyism.com/index.php/2014/04/15/security-icedtea-1-13-3-for-openjdk-6-released/
- SD card
- cp system root/* data under out/target/product/generic/ into /root partition in SD
- specify the root= in bootargs (modify the cmdline.txt in /boot paratition)
Build
- switch to your working directory
- export TARGET_PREBUILT_KERNEL=$your_kernel_path/arch/arm/boot/zImage
- make bootimage