android7.1.1替换mfgtool中firmware下uboot无法烧录

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

android7.1.1替换mfgtool中firmware下uboot无法烧录

5,545 Views
zhangdan
Contributor I

各位尊敬的FAE:

      我遇到一个情况。首先使用mfgtool烧录你们的android7.1.1镜像到 官方i.MX 6Quad 开发板,可以使用。但是因为我们最终需要运用到自己的板子上,一定会需要修改mfgtool下uboot和kernel。之前看过如何获得mfgtool下的u-boot-imx6dlsabresd_sd.imx?不需要单独为mfgtool编译uboot。所以尝试将u-boot-imx6q.imx拷贝到firmware下重命名为u-boot-imx6qsabresd_sd.imx,但是在烧录的时候卡住,串口日志如下。mfgtool的log在附件

U-Boot 2015.04 (Feb 17 2017 - 12:07:45)

CPU: Freescale i.MX6Q rev1.2 at 792 MHz
CPU: Temperature 34 C
Reset cause: POR
Board: MX6-SabreSD
I2C: ready
DRAM: 1 GiB
PMIC: PFUZE100 ID=0x10
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
MMC: no card present
MMC init failed
Using default environment

No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In: serial
Out: serial
Err: serial
unsupported boot devices
SATA isn't buildin
MMC: no card present
Block device mmc 0 not supported
rw_block, get_block_size return 0
read_bootctl, rw_block read failed
read command failed
Fastboot: Normal
Net: FEC [PRIME]
MMC: no card present
Block device mmc 0 not supported
rw_block, get_block_size return 0
read_bootctl, rw_block read failed
read command failed
=>

Original Attachment has been moved to: MfgTool.log.zip

Labels (1)
0 Kudos
15 Replies

4,267 Views
BiyongSUN
NXP Employee
NXP Employee

不需要单独编译 firmware的uboot。 就是 firmware 和正常使用的uboot 是共享一个的。

但不是说可以用 参考板的uboot,也是需要根据你的板子修改出来的uboot的。 

记得做你的板子的DDR 校准并且apply 到uboot 的 DCD 里面。

移植先做好。

如果不用PMIC, 就用ldo enable的device tree

这个文档说了 为什么 mfg tool 的uboot 和 平时用的uboot 是一个。

i.MX Development Miscellanea(i.MX 开发杂记)
https://community.nxp.com/docs/DOC-335198

MFGTool_Uboot_share_with_NormalRun_sourceCode.pdf

0 Kudos

4,267 Views
zhangdan
Contributor I

如果不用PMIC, 就用ldo enable的device tree

这是不是指使用out目录下的u-boot-imx6q-ldo.imx去代替firmware中的。

0 Kudos

4,267 Views
BiyongSUN
NXP Employee
NXP Employee

是用带ldo 的device tree。

现在看log, 是你的这个uboot 没有根据硬件改好, 这个是第一步也没有做了。

0 Kudos

4,267 Views
zhangdan
Contributor I

can someone help me?

0 Kudos

4,267 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi,

Have you changed the DDR design in your board design? If no, you can use the mfgtool provide by NXP. You need to porting BSP and build the images for your board.

From you above information, you copy your u-boot file to firmware, the name must be same in ucl2.xml script. You can check it first. The download images to your board process is following the script.
Have a great day,
Rita

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

4,267 Views
zhangdan
Contributor I

我自己的板子是变化了的,但是上面的操作我都是在官方demo板上做的。ucl2.xml我就是依据它,改名替换的firmware的uboot。而且如果替换的不正确,对烧录不会产生影响,我现在烧录不了,应该是替换对了的。

</LIST>
<LIST name="eMMC-Android" desc="Choose eMMC as media">
<CMD state="BootStrap" type="boot" body="BootStrap" file ="firmware/u-boot-imx6q%plus%%board%_sd.imx" ifdev="MX6Q">Loading U-boot</CMD>

0 Kudos

4,267 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

你这里写到你自己设计板子上的images是你自己编译的还是用的Demo images?

0 Kudos

4,267 Views
zhangdan
Contributor I

在我们自己的板子上是用7.1.1源码修改编译的,不过在烧录时失败。所以拿demo尝试修改firmware的方法

0 Kudos

4,267 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

你好,是这样,你用Demo images写到你自己设计的板子上肯定是有问题的。建议你先做BSP移植,用你自己编译的images写到你的板子上。如果你的板子用的DDR和开发板一样的话,mfgtool的firmware你可以先不动,只改你板子的那部分,试一下。看是什么问题

0 Kudos

4,267 Views
zhangdan
Contributor I

因为我们的板子没有PMIC,所以firmware不修改,烧录是会报错卡住的。

而我是将你们的demo images烧录到imx6q的demo板上,发现可以运行,然后将demo uboot替换了firmware下的对应uboot,再使用mfgtool烧录images到demo板,居然也不行。所以我怀疑uboot是否通用

0 Kudos

4,267 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

OK, 那我这边帮你试一下。试好了给你回复。

0 Kudos

4,267 Views
zhangdan
Contributor I

您好,请问有进展了吗?

0 Kudos

4,267 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

我这边在我们的开发板上测试过了,将编译好的u-boot image 拷贝到firmware里,更改名字和原来的一致,是可以烧写成功并且正常启动的。

0 Kudos

4,267 Views
zhangdan
Contributor I

那有些奇怪,我是直接在你们网站上下的镜像,使用的也是官方demo板

0 Kudos

4,267 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

应该是可以的,我这边试过了,没有问题。我是是写到emmc上的。

0 Kudos