Staying Out of The Box: Compile Qualcomm MSM8909

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Stay

Technical blogs in pure Chinese, the content is mostly good text reposts seen on the Internet~ plus some personal
notes~

WEDNESDAY, FEBRUARY 4, 2015 SEARCH THIS BLOG


search
Compile Qualcomm MSM8909

OS: Ubuntu 12.04 Desktop 64bit LABEL


installation compile environment: Android (5)
ARM (3)
chrome (1)
1. sudo apt-get install git gnupg flex bison gperf build-essential zip
dbx (1)
curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-
Display (1)
dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa -
dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils firmware (7)
xsltproc zlib1g-de:i386 Google Drive (1)
2. sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386- kernel (6)
linux-gnu/libGL.so Linux (8)
3. curl https://storage.googleapis.com/git-repo-downloads/repo > oe (1)
~/bin/repo
outlook express (1)
4. chmod a+x ~/bin/repo
parameter (1)
Qualcomm 8909 (3)

HLOS part (Android+Linux) Qualcomm 8974 (8)


Setting (4)
HLOS Use / Description winxp (1)
BuildType
user limited access; suited for production BLOG ARCHIVE
userdebug like “user” but with root access and debuggability; preferred
▼ 2015 (12)
for debugging
► May (1)
eng development configuration with additional debugging tools
► April (3)

Go to https://www.codeaurora.org/xwiki/bin/QAEP/release to find a ▼ February (4)


Qualcomm 8x09 code download, the MSM8909 2pin-
instruction is (assuming you want to download LA.BR.1.2.3-02010): UART has no
LOG output
repo init -u git: //codeaurora.org/platform/manifest.git -b release -m
LA.BR.1.2.3-02010-8x09.0.xml --repo- Compile
Qualcomm
url=git://codeaurora.org/tools/repo.git MSM8909
For details, please refer to:
My cloud drive
https://www.codeaurora.org/xwiki/bin/QAEP/WebHome
MSM8909 device
tree
compile:
cd the directory ► January (4)
source build/envsetup.sh
► 2014 (12)
lunch msm8909-userdebug
make -j8 (Assuming that the PC has an 8-core CPU, cat (proc/cpuinfo gets
the number of cores)
Non-HLOS (chipcode)
Assume that both ARM_Compiler and HEXAGON_TOOLS are installed in
the HOME directory, that is:
$(HOME)/ARM_Compiler_5
$(HOME)/Qualcomm/HEXAGON_Tools/5.0.x
Note: ARM Compile requires another license server (this assumes that it is
installed on the host: 192.168 .0.1)

the setup.sh profile 1 (modem only) content:


Export the HOME COMPILE_TOOLS_ROOT = $
Export HEXAGON_ROOT $ COMPILE_TOOLS_ROOT / the Qualcomm /
HEXAGON_Tools =
Export HEXAGON_RTOS_RELEASE = 6.4.04
Export HEXAGON_Q6VERSION = V5
Export HEXAGON_IMAGE_ENTRY = 0x08000000
Export ARMTOOLS = ARMCT5.01
Export ARMROOT=$COMPILE_TOOLS_ROOT/ARM_Compiler_5
export ARM_COMPILER_PATH=$ARMROOT/bin64
export ARMHOME=$ARMROOT
export ARMLIB=$ARMROOT/lib
export ARMINCLUDE=$ARMROOT/include
export ARMBIN=$ARMROOT/bin64
export ARMINC=$ARMINCLUDE
export ARMLMD_LICENSE_FILE=8224@192.168.0.1
export SCONS_MAX_NUM_JOBS=1
export PYTHON_PATH=/usr/bin/python
export PYTHONPATH=/usr/bin/python
export MAKE_PATH=/usr/bin/make
export PATH=$MAKE_PATH:
$ARM_COMPILER_PATH:$HEXAGON_ROOT/$HEXAGON_RTOS_REL
EASE/qc/bin:$HEXAGON_ROOT/$HEXAGON_RTOS_RELEASE/gnu/bin:
$PATH:PYTHONPATH

setup.sh configuration file 2 content:


export COMPILE_TOOLS_ROOT=$HOME
=
export ARMCT$ 5.0 ARMTOOL
COMPILE_TOOLS_ROOT/ARM_Compiler_5
export ARM_COMPILER_PATH=$ARMROOT/bin64
export ARMHOME=$ARMROOT
export ARMLIB=$ARMROOT/lib
export ARMINCLUDE=$ARMROOT/include
export ARMBIN=$ARMROOT/bin64
export ARMINC=$ARMINCLUDE
export ARMLMD_LICENSE_FILE=8224@192.168.0.1
export SCONS_MAX_NUM_JOBS=1
export MAKE_PATH=/usr/bin/make
export PATH=$MAKE_PATH:$ARM_COMPILER_PATH

APSS HLOS ubuntu 12.04+ souce build/envsetup.sh


(boot.img, cace.img, OpenJDK7 lunch msm8909-userdebug
dt.img, persist.img, Compile:
ramdisk.img, make -j8
recovery.img, system.img,
userdata.img, Clean:
emmc_appsboot.mbn) make clobber

result:
out/target/product/msm89
09/
MPSS Hexagon tool set 6.4.05 [NON-HLOS]/modem_proc/build/ms/
Python 2.7.6+ Compile:
result: Perl 5.14.2 ./build.sh 8909.gen.prod -k
modem_proc/build/ms/bin ./build.sh 8909.gps.prod -k
/ Clean:
Profile 1 for SCons v2.0.0+ ./build.sh 8909.gen.prod -c
./build.sh 8909.gps.prod -c
BOOT loaders ARM compiler tools [NON-HLOS]/boot_images/build/ms
5.01 update 3(build 94) Compile:
result: Python 2.6.6+ ./build.sh TARGET_FAMILY=8909 --
boot_images/build/ms/bin/ Perl 5.8.x+ prod
8909/emmc/ SCons v2.0.0+ Clean:
./build.sh -c TARGET_FAMILY=8909
2 --prod
RPM ARM compiler tools [NON-HLOS]/rpm_proc/build/
5.01 update 3(build 94) Compile:
result: Python 2.6.6+ ./build_8909.sh
rpm_proc/build/ms/bin/89 Perl 5.6.1+ Clean:
09/ SCons v2.0.0+ ./build_8909.sh -c
CNSS binary only

result:
wcnss_proc/build/ms/bin/
SCAQMAZ/

TZ ARM compiler tools [NON-


5.01 update 3(build 94) HLOS]/trustzone_images/build/ms/
result: Python 2.6.6+ Compile:
trustzone_images/build/m Perl 5.10.1+ ./build.sh CHIPSET=msm8909 tz
s/bin/MAZAANAA SCons v2.0.0+ sampleapp tzbsp_no_xpu playready
widevine securitytest keymaster
2 commonlib
Clean:
./build.sh CHIPSET=msm8909 tz
sampleapp tzbsp_no_xpu playready
widwvine securitytest keymaster
commonlib -c

Tags: firmware , Qualcomm 8909

No message:

Post a message
...

Google

Newer article Home page Older article

Subscribe: Post a message (Atom)

Picture window theme. Technology provided by: Blogger .

You might also like