LoginSignup
9
9

More than 5 years have passed since last update.

Android のファームビルド手順

Posted at

set build environment

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java6-installer

$  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

get source

install repo command

$ mkdir ~/bin
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ export PATH=~/bin/:$PATH

add "~/bin" to PATH environment var on ~/.bashrc.

export PATH=~/bin/:$PATH

setting git

$ git config --global user.email "Mail address"
$ git config --global user.name "name"

this source is version 4.3 from AOSP.

$ cd ${ANDROID_ROOT}
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.3_r1
$ repo sync
$ wget https://dl.google.com/dl/android/aosp/imgtec-panda-20130603-539d1ac3.tgz
$ tar zxvf imgtec-panda-20130603-539d1ac3.tgz
$ ./extract-imgtec-panda.sh

get kernel source. kernel on android repository is binary file. so if you change kernel config, you should build kernel from source.

$ git clone https://android.googlesource.com/kernel/omap.git kernel
$ cd kernel
$ git checkout -b android-omap-panda-3.0 origin/android-omap-panda-3.0

build kernel

$ sudo apt-get install libncurses-dev
$ export PATH=${ANDROID_ROOT}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:$PATH
$ export ARCH=arm
$ export SUBARCH=arm
$ export CROSS_COMPILE=arm-eabi-
$ cd ${KERNEL_PATH}
$ make XXXX_defconfig
$ make menuconfig
$ make -j 4
$ cp -a arch/arm/boot/zImage ${ANDROID_ROOT}/device/ti/panda/kernel

Android

$ cd ${ANDROID_ROOT}
$ . build/envsetup.sh
$ lunch full_panda-userdebug
$ make -j4
9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9