Android车机DIY开发之软件篇(九) NXP AutomotiveOS编译

Android车机DIY开发之软件篇(十一) NXP AutomotiveOS编译

复制代码
Google 在汽车上也提供了用于汽车的 Google 汽车服务(GAS,Google Automotive Service),包含有 Google 地图、应用市场、Google 汽车助理等等。Google 汽车服务同样没有开源,而是以软件包的形式提供给制造商。 目前国内汽车搭载的 Android 系统都是在标准的 Android Automotive OS 基础上对架构重新进行了定制及应用的本地化适配。

SystemUI 位置 /frameworks/base/packages/SystemUI

CarSystemUI 位置 packages/apps/Car/SystemUI

CarLuncher 位置packages/apps/Car/Launcher

CarServices 位置packages/services/Car/service

CarAPI 位置packages/Car/car-lib car-support-lib

编译镜像文件位置 device/generic/car/XXX.mk

Android Studio for Platform

1. 下载地址

nxp下载地址

解压automotive-14.0.0_2.1.0.tar.gz 到 ~/.

2.在HOME执行

sudo rm -rf /usr/bin/python

sudo ln -s /usr/bin/python2 /usr/bin/python

git config --global user.name "zc9527"

git config --global user.email"1508890767@qq.com"

git config --global http.proxy http://127.0.0.1:2081

复制代码
  谷歌镜像
  mkdir ~/bin
  curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
  chmod a+x ~/bin/repo
  export PATH=${PATH}:~/bin
  source ~/imx-automotive-14.0.0_2.1.0/imx_android_setup.sh

使用清华镜像提高下载速度

mkdir ~/bin

curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo > ~/bin/repo

chmod a+x ~/bin/repo

export PATH=${PATH}:~/bin

export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'

source ~/imx-automotive-12.0.0_1.1/imx_android_setup.sh

基于清华大学镜像服务器,修改 android_build/.repo/manifests/ 目录下 .xml 文件,如下所示:

fetch="https://aosp.tuna.tsinghua.edu.cn"

review="https://android-review.googlesource.com/"/>

<defaultrevision="refs/tags/android-14.0.0.2.1.0"

上面这条命令会执行很长时间

3.编译

编译选项

mek_8q_car-trunk_staginguserdebug i.MX 8QuadXPlus/8QuadMax MEK Board with the EVSfunction enabled on the Arm Cortex-M4 CPU core
mek_8q_car2-trunk_staginguserdebug i.MX 8QuadMax/8QuadXPlus MEK Board with the EVS function enabled on the Arm Cortex-A CPU cores (Power mode switch demo is running on the Cortex-M4 core in thisconfiguration)
-- --
相关推荐
六件套是我5 小时前
redission实现延时队列
android·java·servlet
Jie_jiejiayou6 小时前
定时器详解以及呼吸灯实现 — STM32(HAL库)
stm32·单片机·嵌入式硬件·定时器
逆小舟6 小时前
【STM32】定时器、PWM
stm32·单片机·嵌入式硬件
申克Lab6 小时前
STM32 串口概念 UART协议
stm32·单片机·嵌入式硬件
小莞尔6 小时前
【51单片机】【protues仿真】基于51单片机自动浇花系统
单片机·嵌入式硬件
沐欣工作室_lvyiyi7 小时前
基于51单片机的宠物喂食器的设计与实现(论文+源码)
单片机·嵌入式硬件·毕业设计·51单片机·宠物
计算机小手9 小时前
使用 llama.cpp 在本地高效运行大语言模型,支持 Docker 一键启动,兼容CPU与GPU
人工智能·经验分享·docker·语言模型·开源软件
asdzx679 小时前
使用 Spire.XLS for Python 将 Excel 转换为 PDF
经验分享
秦明月1310 小时前
EPLAN电气设计:快捷键版本差异解析
经验分享·学习·学习方法·设计规范
00后程序员张10 小时前
iOS 上架费用全解析 开发者账号、App 审核、工具使用与开心上架(Appuploader)免 Mac 成本优化指南
android·macos·ios·小程序·uni-app·cocoa·iphone