使用imx8qxp官方代码:
编译完成后uboot的log显示

0
In boota get fastboot lock status error. Set lock status
Magic is incorrect.
Error validating A/B metadata from disk. Resetting and writing new A/B metadata to disk.
Writing A/B metadata to disk.verify OK, boot 'boot_a'
Kernel load addr 0x80280000 size 38875 KiB
kernel   @ 80280000 (40828928)
ramdisk  @ 86400000 (8505831)
fdt      @ 82af0400 (92113)
Moving Image from 0x80280000 to 0x80400000, end=82af0000
## Flattened Device Tree blob at 82af0400Booting using the fdt blob at 0x82af0400Using Device Tree in place at 0000000082af0400, end 0000000082b09bd0
Disable mu@31580000 rsrc 505 not owned
Disable i2c@37230000 rsrc 288 not owned
Disable clock-controller@37630000 rsrc 288 not owned
Disable intmux@37400000 rsrc 289 not owned
Disable clock-controller@37620000 rsrc 287 not owned
Disable clock-controller@5a4d0000 rsrc 62 not owned
Disable i2c@5a810000 rsrc 97 not owned
Disable clock-controller@5ac90000 rsrc 102 not owned
Disable clock-controller@5ac10000 rsrc 97 not owned
Disable clock-controller@5acd0000 rsrc 105 not owned
Disable clock-controller@585a0000 rsrc 411 not owned
Disable imx8x_cm4@0 rsrc 278 not owned
Disable imx8x_cm4@0 rsrc 297 not owned

下面一大堆Disabled的相关的东西。
后面调试后发现,我与这些对应的Disabled的东西,比如 i2c@37230000和imx8x_cm4@0相关的东西,在kernel设备树里面进行配置后无法枚举,也不会去加载驱动。对应的外设也不能沟调试。
后面自己去查看了一下,nxp上对应的问题是android11里面有M4对应的处理器,如果编译了M4对应的一些资源就会被M4占有,我将无法控制。
以前每玩过IMX8QXP也没遇到这种,后面一咬牙一跺脚,直接去修改了他的脚本。

# :/MX8QXP/device/nxp$ git diff imx8q/mek_8q/AndroidUboot.mk
diff --git a/imx8q/mek_8q/AndroidUboot.mk b/imx8q/mek_8q/AndroidUboot.mk
index b60d3e0e..cff846cc 100644
--- a/imx8q/mek_8q/AndroidUboot.mk
+++ b/imx8q/mek_8q/AndroidUboot.mk
@@ -106,7 +106,7 @@ define build_imx_ubootelse \REV=`echo B0`;  \fi; \
-               if [ `echo $(2) | rev | cut -d '-' -f1` = "uuu" ]; then \
+               if [ `echo $(2) | rev | cut -d '-' -f1` != "uuu" ]; then \FLASH_TARGET=`echo flash`;  \else \FLASH_TARGET=`echo flash_linux_m4`;  \
# :/MX8QXP/device/nxp$ git diff common/build/uboot.mk
diff --git a/common/build/uboot.mk b/common/build/uboot.mk
index 5b7a3f8c..163c1341 100644
--- a/common/build/uboot.mk
+++ b/common/build/uboot.mk
@@ -123,7 +123,7 @@ $(UBOOTENVSH): | $(UBOOT_OUT)$(UBOOT_BIN): $(UBOOTENVSH) | $(UBOOT_COLLECTION) $(UBOOT_OUT)$(hide) echo "Building $(UBOOT_ARCH) $(UBOOT_VERSION) U-Boot ..."
-       $(hide) $(call build_m4_image)
+       $(hide) $(call build_flash)$(hide) for ubootplat in $(TARGET_BOOTLOADER_CONFIG); do \UBOOT_PLATFORM=`echo $$ubootplat | cut -d':' -f1`; \UBOOT_CONFIG=`echo $$ubootplat | cut -d':' -f2`; \

修改后uboot的 log显示:

flash target is MMC:0
Net:   Could not get PHY for FEC0: addr 0
Could not get PHY for FEC0: addr 0
Could not get PHY for FEC1: addr 0
Could not get PHY for FEC1: addr 0
No ethernet found.Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0
In boota get fastboot lock status error. Set lock status
Magic is incorrect.
Error validating A/B metadata from disk. Resetting and writing new A/B metadata to disk.
Writing A/B metadata to disk.verify OK, boot 'boot_a'
Kernel load addr 0x80280000 size 38875 KiB
kernel   @ 80280000 (40828928)
ramdisk  @ 86400000 (8505831)
fdt      @ 82af0400 (92113)
Moving Image from 0x80280000 to 0x80400000, end=82af0000
## Flattened Device Tree blob at 82af0400Booting using the fdt blob at 0x82af0400
ERROR: reserving fdt memory region failed (addr=90400000 size=100000)Using Device Tree in place at 0000000082af0400, end 0000000082b09bd0
Disable clock-controller@5a4d0000 rsrc 62 not owned
Disable clock-controller@5ac90000 rsrc 102 not owned
Disable clock-controller@585a0000 rsrc 411 not owned

成功了。

修改后的问题,使用sudo ./uuu_imx_android_flash.sh -f imx8qxp -e -u c0命令无法一次烧录成功。
需要先执行命令:

sudo uuu -b emmc flash.bin

这个会显示失败!(flash.bin在vendor/nxp-opensource/imx-mkimage/iMX8QX目录下生成)自己拷贝过来。

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.139-0-g1a8f760Success 0    Failure 1                                                                                                                        3:33     4/ 7 [partition does not exist              ] FB: flash bootloader flash.bin

问题不大,不用理他,再次执行命令

sudo ./uuu_imx_android_flash.sh -f imx8qxp -e -u c0
This script is validated with uuu 1.4.139 version, it is recommended to align with this version.
dtbo is supported
dual slot is supported
dynamic parttition is supported
vendor_boot parttition is supported
generate lines to flash u-boot-imx8qxp-c0.imx to the partition of bootloader0
generate lines to flash partition-table.img to the partition of gpt
generate lines to flash dtbo-imx8qxp.img to the partition of dtbo_a
generate lines to flash boot.img to the partition of boot_a
generate lines to flash vendor_boot.img to the partition of vendor_boot_a
generate lines to flash vbmeta-imx8qxp.img to the partition of vbmeta_a
generate lines to flash dtbo-imx8qxp.img to the partition of dtbo_b
generate lines to flash boot.img to the partition of boot_b
generate lines to flash vendor_boot.img to the partition of vendor_boot_b
generate lines to flash vbmeta-imx8qxp.img to the partition of vbmeta_b
generate lines to flash super.img to the partition of super
uuu script generated, start to invoke uuu with the generated uuu script
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.139-0-g1a8f760Success 1    Failure 0                                                                                                                        3:33    23/23 [Done                                  ] FB: done

哒哒!先这样自己调外设吧。后面在去解决这个M4的问题。

imx8qxp_android11去除M4相关的编译相关推荐

  1. 与单点金刚石车去除量相关的一个程序

    %% 与单点金刚石车去除量相关的一个程序 [X, Y] = meshgrid(1:12, 1:12) Z=rand(12,12) % 表示单点车之前切削面各点的矢高 subplot(1,2,1) su ...

  2. idea去除无用的包_IDEA一键完成格式化、去除无用引用、编译的操作

    从Eclipse迁移到使用Idea完成开发工作,但是最近加入Jrebel热启动工具来辅助开发,但是每次都 需要自己对代码进行格式化,去除无用的引入包,最后进行代码编译等一系列操作感觉很麻烦,感觉没 有 ...

  3. 加入编译GMS包,增加或去除谷歌相关GMS应用,移除GMS包,取消刷机后的认证弹窗通知,锁fingerprint。

    S版本编译后生成的apk在out_sys/目录 在配置文件加宏ProjectConfig.mk #GMSBUILD_GMS = yesBUILD_AGO_GMS = noGAPPS_PACKAGE_S ...

  4. C++二维码相关库编译

    一.瞎想 坐在地铁上闲来无聊,突然想到了二维码,顺手就百度了下相关的资料,目前C++二维码相关的库不多,也就zbar(开源中国上下了半天也没下载下来).zxing,不过这两个库据说都是解析二维码的,不 ...

  5. 关于ProjectConfig.mk文件相关配置编译名字长度规定

    谷歌本身对Android内部相关镜像文件头有字节的规定限制. 近期发现在项目文件rlk_projects\cxlite_z3713_a1_zmvf#####\ProjectConfig.mk中: CU ...

  6. caffe 以及caffe2 安装时portobuf库相关的编译问题

    安装caffe出现protobuf版本问题,是由于anaconda安装了不同的protobuf版本 pip show protoc protoc –version sudo apt-get insta ...

  7. andriod的apk文件相关的编译反编译工具

    1.smali-1.2.6.jar 用途:.smali文件 转成 classes.dex文件 说明:.smali文件,类似于.class文件,可以用普通文本编辑器查看和修改. 用法举例:命令行:jav ...

  8. Qt相关一个编译错误:'staticMetaObject' is not a member of ‘XXXClass’

    这个错误是怎么引起的呢?就是如果一个类不是从QObject及其相关子类派生的,但是误用了Q_OBJECT宏,就会报如题所示的错误.

  9. 展讯camera去除尺寸相关缓存

    amera应用的缓存在/data/data/com.android.camera2/shared_prefs目录下 转载于:https://www.cnblogs.com/reality-soul/p ...

最新文章

  1. 学 Python 必看书单汇总
  2. ES6--函数的扩展
  3. 【数据竞赛】席卷Kaggle的调参神器,NN和树模型通吃!
  4. 第45讲:哪都能存,Item Pipeline 的用法
  5. see rebel case 无法越狱_周星驰为什么不拍喜剧,王晶:年纪大了,无法面对自己...
  6. 1592E - Скучающий Бакри
  7. 将Java EE Monolith雕刻成微服务
  8. Git之集中式vs分布式
  9. 【MyBatis框架】Mybatis开发dao方法第二部分
  10. 电商美工中秋节电商淘宝页面设计模板素材,临摹参考框架
  11. 2019 互联网月饼大赏!阿里开动物园,腾讯秀表情包,网易游戏最会玩!
  12. 做微信营销你知道男女用微信的习惯吗?
  13. Flutter实战之Dio入门使用
  14. 【路径规划】基于matlab任意架次植保无人机作业路径规划【含Matlab源码 322期】
  15. 数据结构-哈夫曼编码例题
  16. 【ISO9126】软件质量模型的介绍(软件质量管理的六大特征和二十七个子特征)
  17. 《谷物大脑》书中的精髓:如何通过四星期行动计划打造健康身体?
  18. (转)常用PC服务器LSI阵列卡配置
  19. python:pygame小游戏(三)—— 打字游戏
  20. pythorch 基本学习

热门文章

  1. Android头像上传实战模拟
  2. java中判断是不是数字
  3. Linux Bird
  4. Matlab去模糊/图像复原(DOING)
  5. 【联机对战】微信小程序联机游戏开发流程详解
  6. 使用计算机时什么是死机,电脑死机的时候, 电脑在干什么?
  7. mysql查询工资最高三人6_MySQL T6 数据库操作——查询(三)高级查询
  8. 基于php+mysql购物商城 校园二手商品 图书鲜花商城 毕业设计(8)商品简介和详情
  9. USB充电式暖手宝芯片-DLTAP602SC-杰力科创
  10. 计算机四级考试从零开始,从零开始考公务员,这些步骤要学会!