====== old version Android ======
----
===== Initializing a Build Environment =====
* Visit this link to install the repo.
[[http://source.android.com/source/downloading.html]]
Installing required packages (Ubuntu 12.04)
Building on Ubuntu 12.04 is currently only experimentally supported and is not guaranteed to work on branches other than master.
$ sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Installing the JDK
The Oracle/Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository and indicate to the system which JDK should be used.
If the JDK version is higher than 1.6.0_39, you may meet some compilation errors.
sudo add-apt-repository "deb http://ftp.debian.org/debian squeeze main contrib non-free"
sudo apt-get update
sudo apt-get install sun-java6-jdk
$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Configuring USB Access
Under GNU/linux systems (and specifically under Ubuntu systems), regular users can't directly access USB devices by default. The system needs to be configured to allow such access.
The recommended approach is to create a file /etc/udev/rules.d/51-android.rules (as the root user) and to copy the following lines in it. must be replaced by the actual username of the user who is authorized to access the phones over USB.
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"
===== Source code download =====
=== android-4.4.4 ===
$ repo init -u https://github.com/hardkernel/android.git -b 5422_4.4.4_master
$ repo sync
$ repo start 5422_4.4.4_master --all
$ ./build.sh odroidxu3
* To get the same version source of this Alpha v1.x in the future, try below command of tag.
$ repo init -u https://github.com/hardkernel/android.git -b 5422_4.4.4_master -m manifeset-5422_4.4.4_v1.x
$ repo sync
$ repo start 5422_4.4.4_master --all
===== Build android =====
./build.sh odroidxu3
ok success !!!
Write system.img
In the host PC.
$ fastboot flash system out/target/product/odroidxu3/system.img
Write userdata.img
In the host PC.
$ fastboot flash userdata out/target/product/odroidxu3/userdata.img
Write cache.img
In the host PC.
$ fastboot flash userdata out/target/product/odroidxu3/cache.img
Reboot system
In the host PC.
$ fastboot reboot
Note : Ramdisk contents are merged into system.img to minimize the build steps. You can also easily modify the system configuration for example init.*.rd file.
So there is no Ramdisk parition in the storage media.
We've merged the Kernel source into the Android reop.
Android build-script also includes the Kernel compile.
Kernel configuration file : odroidxu3_defconfig
$ cd kernel/samsung/exynos5422
$ make odroidxu3_defconfig
$ make -j8
Write Kernel
In the host PC.
$ fastboot flash kernel arch/arm/boot/zImage-dtb