We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:xu3_building_android_old [2015/02/03 13:44]
charles.park created
en:xu3_building_android_old [2015/02/03 13:45] (current)
charles.park
Line 1: Line 1:
 +
 +
 +====== old version Android ======
 +----
 +===== Initializing a Build Environment =====
 +<​WRAP ​ round tip 70%>
 +  * Visit this link to install the repo.
 +[[http://​source.android.com/​source/​downloading.html]]
 +</​WRAP>​
 +
 +
 +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.
 +<​code>​
 +$ 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
 +</​code>​
 +<​code>​
 +$ sudo ln -s /​usr/​lib/​i386-linux-gnu/​mesa/​libGL.so.1 /​usr/​lib/​i386-linux-gnu/​libGL.so
 +</​code>​
 +
 +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.
 +<​code>​
 +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
 +</​code>​
 +
 +<​code>​
 +$ 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)
 +</​code>​
 +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. <​username>​ must be replaced by the actual username of the user who is authorized to access the phones over USB.
 +<​code>​
 +SUBSYSTEM=="​usb",​ ATTRS{idVendor}=="​18d1",​ MODE="​0666"​
 +</​code>​
 +
 +===== Source code download =====
 +
 +=== android-4.4.4 ===
 +<​code>​
 +$ 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
 +</​code>​
 +
 +* To get the same version source of this Alpha v1.x in the future, try below command of tag.
 +<​code>​
 +$ 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
 +</​code>​
 +
 +===== Build android =====
 +<​code>​
 +./build.sh odroidxu3
 +</​code>​
 +
 +<​code>​
 +ok success !!!
 +</​code>​
 +Write system.img
 +
 +In the host PC.
 +<​code>​
 +$ fastboot flash system out/​target/​product/​odroidxu3/​system.img
 +</​code>​
 +
 +Write userdata.img
 +
 +In the host PC.
 +<​code>​
 +$ fastboot flash userdata out/​target/​product/​odroidxu3/​userdata.img
 +</​code>​
 +Write cache.img
 +
 +In the host PC.
 +<​code>​
 +$ fastboot flash userdata out/​target/​product/​odroidxu3/​cache.img
 +</​code>​
 +
 +Reboot system
 +
 +In the host PC.
 +<​code>​
 +$ fastboot reboot
 +</​code>​
 +
 +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 ​
 +<​code>​
 +$ cd kernel/​samsung/​exynos5422
 +$ make odroidxu3_defconfig
 +$ make -j8
 +</​code>​
 +
 +Write Kernel
 +
 +In the host PC.
 +
 +<​code>​
 +$ fastboot flash kernel arch/​arm/​boot/​zImage-dtb
 +</​code>​
  
en/xu3_building_android_old.txt ยท Last modified: 2015/02/03 13:45 by charles.park
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0