❖
通过以下命令安装JDK
sudo apt-get update
sudo apt-get install openjdk-7-jdk
❖
安装必要的软件和lib库(
Ubuntu 14.04
)
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
从
CodeAurora
下载
Android
代码
December 01, 2016 LA.BR.1.2.6-02910-8x16.0 msm8916_64 LA.BR.1.2.6-02910-8x16.0.xml 06.00.01
$ repo init -u git://codeaurora.org/platform/manifest.git -b [branch] -m [manifest] --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
$ repo sync
$ repo init -u git://codeaurora.org/platform/manifest.git -b release -m [manifest] --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
$ repo sync
repo init -u git://codeaurora.org/platform/manifest -b release -m LA.BR.1.2.4-01810-8x16.0.xml
repo sync -c --no-tags -j4
修改确认
kernel
的
UART
配置
❖
确认kernel/arch/arm64/boot/dts/qcom/msm8916-pinctrl.dtsi里的uartconsole设置
pmx-uartconsole {
qcom,pins = <&gp 4>, <&gp 5>;
qcom,num-grp-pins = <2>;
qcom,pin-func = <2>;
label = "uart-console";
uart_console_sleep: uart-console {
drive-strength = <2>;
bias-pull-down;
❖
确认kernel/drivers/clk/qcom/clock-gcc-8916.c中的blsp1_uart2_apps_clk_src
static struct rcg_clk blsp1_uart2_apps_clk_src = {
.cmd_rcgr_reg = BLSP1_UART2_APPS_CMD_RCGR,
.set_rate = set_rate_mnd,
.freq_tbl = ftbl_gcc_blsp1_uart1_6_apps_clk,
.current_freq = &rcg_dummy_freq,
.base = &virt_bases[GCC_BASE],
.c = {
.dbg_name = "blsp1_uart2_apps_clk_src",
.ops = &clk_ops_rcg_mnd,
VDD_DIG_FMAX_MAP2(LOW, 32000000,
❖
通过以下命令编译Android系统。编译完的image可以通过fastboot命令烧写到DragonBoard 410c上。
source build/envsetup.sh
lunch msm8916_64-userdebug
make -j4
1.烧写bootloader镜像
跟Ubuntu的前三步一样,先启动到fastboot模式,然后执行sudo ./flashall即可。
从这里下载Android bootloader image
sudo adb reboot bootloader
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
fastboot flash persist persist.img
fastboot flash cache cache.img