imx6qp 烧写镜像停在starting kernel……

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

imx6qp 烧写镜像停在starting kernel……

4,423 Views
Harris
Contributor III

大家好:

      我们根据imx6qp sabresd sdb 做的板子,android 6.0系统,但是ddr 换成了4GB,emmc换成了64GB,设置是从sd卡启动还是emmc启动的那些gpio都没有接……

      现在的问题是用mfgtool烧写镜像,停在starting kernel就不动了,偶尔有一两次起来也会报错;

      用自己编译的uboot替换mfgtool中的uboot,将ucl2.xml文件jump os之后的操作都删除,只运行uboot,uboot可以运行(用400MHz去配置ddr,ddr校准、压力测试都可以通过,但是只能配置成2GB,配置成4GB的话uboot有可能无法启动……),也可以对内存读写,通过fastboot也提示烧写镜像到emmc成功了,但是使用mmc dev 2-->boota mmc2启动kernel也依然是开头说的现象……;

      之前在网上搜索,看到可能是bypass的原因,但是uboot中强制不进行bypass也没有作用,按网上说的在dts文件中配置了用fastboot烧进去也一样起不来。请问有没有思路是什么原因造成的呢?是软件配置问题还是需要排查硬件,硬件问题该从哪方面去排查呢?

谢谢!

Labels (2)
0 Kudos
11 Replies

3,660 Views
jimmychan
NXP TechSupport
NXP TechSupport

which BSP are you using?

is the debug uart still using uart1?  or changed?

0 Kudos

3,660 Views
Harris
Contributor III

uboot 2015……是用的uart1,uboot的串口输出没问题,现在是用mfgtool烧程序都会停在starting kernel。

0 Kudos

3,660 Views
jimmychan
NXP TechSupport
NXP TechSupport

There are two sets of images in the mfgtool. One is firmware, and one is the images that program to your board. Do you put the images to the correct folder in mfgtool?

could you show me your bootargs setting?

0 Kudos

3,660 Views
Harris
Contributor III

是的,放到正确的文件夹下了,mfgtool应该是从官网上下载的,firmware没有自己编译,用得自带的,但是我们的板子是在开发板基础上改的,应该自带的firmware也可以用,即使有问题,烧写的时候kernel也应该运行起来,之后再报错吧?

BoardConfig.mk文件中的BOARD_KERNEL_CMDLINE := console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:dev=ldb,bpp=32 video=mxcfb2:off video=mxcfb3:off vmalloc=320M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled

0 Kudos

3,660 Views
jimmychan
NXP TechSupport
NXP TechSupport

which version of mfgtool are you using?

in the mfgtool, which .vbs file you run? what is setting in the cfg.ini?

0 Kudos

3,660 Views
Harris
Contributor III

mfgtool2,library 2.6.2?记不清了,使用mfgtool2-android-mx6qp-sabresd-emmc.vbs,cfg.ini配置:

[profiles]
chip = Linux

[platform]
board = SabreSD

[LIST]
name = SDCard

[variable]
board = sabresd
mmc = 0
sxuboot=17x17arm2
sxdtb=17x17-arm2
7duboot=sabresd
7ddtb=sdb
6uluboot=14x14ddr3arm2
6uldtb=14x14-ddr3-arm2
slldtb=evk
slluboot=evk
ldo=
plus=
initramfs=fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.gz.u-boot
seek = 1
sxnor=qspi2
7dnor=qspi1
6ulnor=qspi1
nor_part=0

0 Kudos

3,660 Views
jimmychan
NXP TechSupport
NXP TechSupport

what is the different between sabresd and your board?

0 Kudos

3,660 Views
Harris
Contributor III

我们用了4GB ddr,64GB emmc 5,音频、耳机什么的都没接,电源部分我们硬件设计员说是一样的。

0 Kudos

3,660 Views
jimmychan
NXP TechSupport
NXP TechSupport

I think you better to adjust the setting of your DDR because your DDR is not exactly the same as the sabresd board.

1. First, the android 6.0 is old. The kernel is L.3.14. I would suggest you to use android 7 or 8.

2. You can install the Yocto Linux BSP to build the firmware of mfgtool. You can download the BSP and document from here. for example, for android 7, the kernel is L4.1.15. You can download the L4.1.15.

3. Read the i.MX_BSP_Porting_Guide.pdf Chapter 3 -- Porting U-boot.

4. Read this for DDR Stress Test i.MX6/7 DDR Stress Test Tool V3.00 

5. Read the i.MX_Yocto_Project_User's_Guide.pdf Chapter 6.2 for building the mfgtool's firmware.

6. You can also try to build the minimal image (core-image-minimal) to see the small linux system can run on your board.

0 Kudos

3,660 Views
Harris
Contributor III

现在内核用的就是4.1.15,mfgtool 里firmware倒是3.14的。还有第6点,怎么编译并运行core-image-minimal?是否有资料?

0 Kudos

3,660 Views
jimmychan
NXP TechSupport
NXP TechSupport

For the point 6, you can follow the steps in i.MX_Yocto_Project_User's_Guide.pdf  to build the images.

0 Kudos