mfgtool下载的时候can't find PMIC求教

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mfgtool下载的时候can't find PMIC求教

2,491 Views
0609ccj
Contributor I

大家好!

编译IMX6Q时,在使用mfgtool下载固件的时候遇到can't find PMIC,通过网上查找资料需要屏蔽PMIC模块代码(https://blog.csdn.net/haly321/article/details/70244527)。新的问题出现了,我修改好代码后独立编译make u-boot.imx,这个编译的u-boot.imx不能作为mfgtool的firmware目录下替代,继续排查,网上说需要bitbake fsl-image-mfgtool-initramfs命令编译,提示以下错误:

ccj@debian:~/Project/software/v2x/Proj_2019.03.12_V2X_MCU/fsl-release-bsp/build-x11$ bitbake fsl-image-mfgtool-initramfs

Loading cache: 100% |############################################| Time: 0:00:00

Loaded 2279 entries from dependency cache.

NOTE: Resolving any missing task queue dependencies

ERROR: Nothing PROVIDES 'u-boot-mfgtool' (but /home/ccj/Project/software/v2x/Proj_2019.03.12_V2X_MCU/fsl-release-bsp/sources/meta-freescale/recipes-fsl/images/fsl-image-mfgtool-initramfs.bb DEPENDS on or otherwise requires it)

u-boot-imx-mfgtool PROVIDES u-boot-mfgtool but was skipped: You cannot use UBOOT_MACHINE and UBOOT_CONFIG at the same time.

ERROR: Required build target 'fsl-image-mfgtool-initramfs' has no buildable providers.

Missing or unbuildable dependency chain was: ['fsl-image-mfgtool-initramfs', 'u-boot-mfgtool']

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

我现在用的yocto代码是:

repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b rocko --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable

repo sync -c --no-tags -j8

官方提供的文档资料完全对不上这个最新的分支项目

0 Kudos
6 Replies

2,202 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Or you can try to use the same uboot as the uboot you already build for your board.

0 Kudos

2,202 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi changjing,

You can refer to this thread on how to build the mfgtool firmware uboot.

https://community.nxp.com/thread/351165 

Have a nice day

Rita

0 Kudos

2,202 Views
0609ccj
Contributor I

你好!

这个回答完美的避开了我的问题。

请问一下NXP有官方的技术支持可以电话沟通么?我需要官方有懂开发的提供一下帮助

谢谢

0 Kudos

2,202 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi,

So sorry I have misunderstand your question.  You error build is caused by the source code. From your information that your source code is not download from our website. Here recommend you to download the source code from our link first, and then build the source code follow our documents i.MX_Yocto_Project_User's_Guide.

The source code link is: https://source.codeaurora.org/external/imx/linux-imx/

You download the source code and then build first. If any question you can contact us.

Have a nice day

Rita

0 Kudos

2,202 Views
0609ccj
Contributor I

hi

现在使用mfgtool下载估计,自己设计的开发版没有电源管理模块,下载启动启动直接提示can't find PMIC错误

我需要重新编译L4.1.15-1.0.0_ga-mfg-tools/mfgtools-with-rootfs/mfgtools/Profiles/Linux/OS Firmware/firmware这个目录下的u-boot.imx. 根据Manufacturing Tool V2 Linux or Android Firmware Development Guide V2.docx文档提示需要修改源代码,

文档里面提示如下:

U-Boot:

  1. Add Mfgtool configuration header file in : ${u_boot_root}\include\configs

The file name should align with existing configuration file name.  Ex. mx6q_sabresd.h is used to generate normal U-Boot and mx6q_sabresd_mfg.h is used to generate the U-Boot for MFGTool firmware.

Generally, you can create it from the existing configuration file.

The following MACROS must be defined:

    • #define CONFIG_MFG

    • #define CONFIG_CMDLINE_TAG

    • #define CONFIG_REVISION_TAG

    • #define CONFIG_SETUP_MEMORY_TAGS

    • #define CONFIG_INITRD_TAG

    • #define CONFIG_BOOTDELAY 0

    • #define CONFIG_BOOTARGS "console=ttymxc0,115200 "\
                                                        "rdinit=/linuxrc"

    • #define CONFIG_BOOTCOMMAND      "bootm 0x10800000 0x10c00000"

    • ; 0x10800000 is the load address of the kernel image. It neesd to be changed according to your specific platform memory configuration.

    • ; 0x10c00000 is the initrd address. It needs to be changed according to your specific platform memory configuration.

    • #define CONFIG_ENV_IS_NOWHERE 1;avoid reading U-Boot command from storage.

If a new bsp arg needs to be added, one can add it by following the contents in CONFIG_BOOTARGS, for instance:

    • #define CONFIG_BOOTARGS "console=ttymxc0,115200 "\
                                                        "rdinit=/linuxrc arm_freq=800"

  1. Build the uboot bin for MFGTool V2.

  2. Copy the uboot bin to the “Profiles\${TARGET_PROFILE_NAME}\OS Firmware”, such as: “Profiles\MX6Q Linux Update\OS Firmware”. This uboot bin file must be located in this directory.

  3. Rename the uboot bin to what you want. Please note that it should align with the file name assigned in the ucl2.xml operation list.

For example, in your operation list, there should be a <CMD/> as below:

<CMD state="BootStrap" type="boot" body="BootStrap" file ="u-boot-mx6q-arm2.bin" >Loading U-boot</CMD>

The name of your uboot bin should be “u-boot-mx6q-arm2.bin”

我找到${u_boot_root}\include\configs目录下的文件:

ccj@debian:~/Project/software/v2x/Proj_2019.03.12_V2X_MCU/fsl-release-bsp/build-x11/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/include/configs$ ls mx6*
mx6_common.h  mx6sabreauto.h     mx6slevk.h        mx6sxsabresd.h
mx6cuboxi.h   mx6sabre_common.h  mx6sllevk.h       mx6ul_14x14_evk.h
mx6qarm2.h    mx6sabresd.h       mx6sxsabreauto.h  mx6ullevk.h

查看该目录下的文件没有找到 mx6q_sabresd.h跟没有mx6q_sabresd_mfg.h文件

已经迷茫了,官方提高的文档为什么都没有对应实际的源代码,我是下载的yocto版本不对么?

急求解决

0 Kudos

2,202 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

mx6q_sabresd.h is the old BSP structure. The newest documents and BSP link my colleague has sent to you in other thread. If you have questions you can continue contact us.

0 Kudos