使用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. 探索“老药新用”最短路径:亚马逊AI Lab开源大规模药物重定位知识图谱DRKG
  2. VS 打包升成可自动升级的安装包
  3. mysql 工具_MySQL压力测试工具,值得收藏
  4. [Issue Fixed]-fatal: unable to access xxx: server certificate verification
  5. python读取 application_python PyQt5.QtWidgets.QApplication类(sys.argv)(app应用对象类)...
  6. leetcode 7 Reverse Integer
  7. [leetcode]111.二叉树的最小深度
  8. 以ThreadStart方式实现多线程
  9. 【数据结构与算法】【算法思想】位图
  10. PAT乙类之1011 A+B 和 C
  11. matlab简单程序实例视频,matlab编程实例100例.docx
  12. 用好这7个VS Code插件,前端编程效率蹭蹭涨
  13. 【kibana】状态异常 Status: Red Unable to connect to Elasticsearch at http://127.0.0.1:9200.
  14. shell sed 替代1
  15. 腾讯优图CVPR中标论文:不靠硬件靠算法,暗光拍照也清晰
  16. 诺基亚e7刷linux,当之无愧的机皇 诺基亚E7-00十大细节解析
  17. IGH_Master主站配置驱动伺服电机和变频器总结
  18. 更改计算机bios密码怎么办,计算机BIOS通用密码的修改
  19. c++11 之emplace_back 与 push_back的区别
  20. opta球员大数据预测胜负_数据分析视角下的世界杯冠军预测

热门文章

  1. UVALive 7147- World Cup
  2. fmc接口定义_Xilinx开发板FMC接口-Samtec连接器LPC HPC
  3. linux 自学视频资料 第一讲:了解linux
  4. 公司不是我的家,那我为什么还要加班?兼说如何在公司高效提升自己的方法
  5. Go报错Finished running tool: 路径,current directory outside main module .... dependencies 的解决方法
  6. fydeos的linux文件夹打不开,FydeOS与其它操作系统多启动配置指南
  7. 职中计算机基础应用期中试题,职中计算机应用基础期中考试试题及答案
  8. sql server中字符集和排序规则到底什么关系
  9. 跳妹儿学编程之ScratchJr(六):第一个ScratchJr程序HelloWorld以及ScratchJr程序如何执行
  10. SCI论文回复审稿人意见