imx6 android5.1 编译

news/2024/7/16 4:58:35 标签: 移动开发, 嵌入式

imx6 android5.1 编译

记录一下编译imx6dl android的命令。

Android build

cd ~/myandroid
source build/envsetup.sh
lunch sabresd_6dq-user
make 2>&1 | tee build-log.txt

Building U-Boot images

cd ~/myandroid/bootable/bootloader/uboot-imx
export ARCH=arm
export CROSS_COMPILE=~/myandroid/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
make distclean
#For i.MX 6Quad SABRE-SD:
make mx6qsabresdandroid_config
make

Building a kernel image

Kernel image is automatically built when building the Android root file system.

The following are the default Android build commands to build the kernel image:

export PATH=~/myandroid/bootable/bootloader/uboot-imx/tools:$PATH
cd ~/myandroid/kernel_imx
echo $ARCH && echo $CROSS_COMPILE
# Make sure that you have those two environment variables set. If the two variables are not set, set them as follows:
export ARCH=arm
export CROSS_COMPILE=~/myandroid/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
# Generate ".config" according to default config file under arch/arm/configs.
# To build the kernel image for i.MX 6Dual/Quad, 6QuadPlus, 6DualLite, 6Solo, 6SoloLite, 6SoloX, and 7Dual
make imx_v7_android_defconfig
# To build the kernel image for i.MX 6Dual/Quad, 6QuadPlus, 6DualLite, and 6Solo
make uImage LOADADDR=0x10008000
# To build the kernel image for i.MX 6SoloLite
make uImage LOADADDR=0x80008000
# To build the kernel image for i.MX 6SoloX
make uImage LOADADDR=0x80008000
# To build the kernel uImage for i.MX 7Dual
make uImage LOADADDR=0x80008000

The kernel images are found in the folders: ~/myandroid/kernel_imx/arch/arm/boot/zImage and ~/myandroid/kernel_imx/arch/arm/boot/uImage.

Building boot.img

# Boot image for the i.MX 6Dual/6Quad SABRE-SD board
cd ~/myandroid
source build/envsetup.sh
lunch sabresd_6dq-user      # imx6dl
make bootimage
# Boot image for the i.MX 6Dual/6Quad/6QuadPlus SABRE-AI board
source build/envsetup.sh
lunch sabreauto_6q-user
make bootimage
# Boot image for the i.MX 6SoloLite EVK board
source build/envsetup.sh
lunch evk_6sl-user
make bootimage
# Boot image for the i.MX 6SoloX SABRE-SD board
source build/envsetup.sh
lunch sabresd_6sx-user
make bootimage
# Boot image for the i.MX 6SoloX SABRE-AI board
source build/envsetup.sh
lunch sabreauto_6sx-user
make bootimage
# Boot image for i.MX 7Dual SABRE-SD board
source build/envsetup.sh
lunch sabresd_7d-user
make bootimage

Building system.img

cd ~/myandroid
source build/envsetup.sh
lunch sabresd_6dq-user
make systemimage

Tony Liu

2017-2-21, Shenzhen


http://www.niftyadmin.cn/n/1748431.html

相关文章

PostgreSQL GIN 单列聚集索引 应用

标签 PostgreSQL , gin , 聚集索引 , 单列 背景 聚集存储比较好理解,数据按照聚集KEY存储在一个或相邻的数据块中,对聚集KEY的轨迹、行为数据检索可以大幅减少IO。 那么聚集索引呢?我们知道通常BTREE索引中存储的是KEY以及对应数据的堆表行号…

JSON 中JsonConfig的使用(转)

我们通常对一个Json串和Java对象进行互转时,经常会有选择性的过滤掉一些属性值,而json-lib包中的JsonConfig为我们提供了这种 功能,具体实现方法有以下几种。(1)建立JsonConfig实例,并配置属性排除列表,(2)用属性过滤器,(3)写一个…

cookie控制登陆时间

使用cookie实现永久登陆 1,在cookie里面保存账号密码然后和数据库核对(由于我没有使用数据库,就不用了 2,在cookie里面保存时间戳和账号使用加密解密(我也没有使用时间戳 思路,request.getParameter("…

arm linux 从入口到start_kernel 代码分析——head.S分析——6

arm linux 从入口到start_kernel 代码分析 - 6 (2008-07-30 16:07:15) 转载标签: it 分类:kernel 5. 开启mmu 开启mmu是又函数 __enable_mmu 实现的. 在进入 __enable_mmu 的时候, r0中已经存放了控制寄存器c1的一些配置(在上一步中…

BZOJ 2683: 简单题 [CDQ分治]

同上题 那你为什么又发一个&#xff1f; 因为我用另一种写法又写了一遍... 不用排序&#xff0c;$CDQ$分治的时候归并排序 快了1000ms... #include <iostream> #include <cstdio> #include <algorithm> #include <cstring> using namespace std; typed…

CMFCShellList和自定义ShellList结合使用,达到“直接浏览缩略图,双击打开图片”...

在GOPaint的设计研究过程中&#xff0c;我一直希望能够实现这样的结果&#xff08;A B C 3个步骤)在我之前的博客里面&#xff0c;曾经有过缩略图显示的现就(http://www.cnblogs.com/jsxyhelu/p/5493329.html ),也应用到了实际的项目中。但是现在过了一段时间后回头再看&…

利用mybatis-generator自动生成代码

2019独角兽企业重金招聘Python工程师标准>>> 1、准备生成代码需要的文件和jar包&#xff08;下载地址&#xff09; 2、配置generatorConfig.xml文件 <?xml version"1.0" encoding"UTF-8"?> <!DOCTYPE generatorConfigurationPUBLIC …

arm linux 从入口到start_kernel 代码分析——head.S分析——7end

arm linux 从入口到start_kernel 代码分析 - 7(end) (2008-07-30 16:08:30) 转载标签&#xff1a; it 分类&#xff1a;kernel 6. 切换数据 在 arch/arm/kernel/head-common.S 中: 00014: .type __switch_data, %object00015: __switch_data:00016: .long __mmap_switched000…