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)
-- --
相关推荐
m0_37710814几秒前
stm32--I2C
stm32·单片机·嵌入式硬件
车载测试牛马笔记6 分钟前
CAN一致性-物理层--高压通信范围测试
单片机·嵌入式硬件
国产电子元器件14 分钟前
ACS770还能打吗?最近测试了一款国产霍尔电流传感器
嵌入式硬件
www.stcai.com19 分钟前
《单片机原理与应用》,详细介绍。基于 STC, Ai8051U, 8位/32位 双核 全支持 AiCube 图形化配置外设,自动生成程序框架
单片机·嵌入式硬件
LaughingZhu9 小时前
Product Hunt 每日热榜 | 2026-05-21
前端·人工智能·经验分享·chatgpt·html
晓梦林10 小时前
cp520靶场学习笔记
android·笔记·学习
嵌入式老牛10 小时前
HC32F460_ADC驱动(三)
单片机·嵌入式硬件
moshi_611 小时前
“瀑布流“ 滚动网页采集工具
经验分享·网络爬虫·数据采集·网页抓取·瀑布流页面采集
心中有国也有家11 小时前
cann-recipes-infer:昇腾 NPU 推理的“菜谱集合”
经验分享·笔记·学习·算法
秀秀更健康11 小时前
stm32: 系统时钟如何配置为72Mhz
stm32·单片机·嵌入式硬件