[imx8qxp] Boot from SD fail.

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

[imx8qxp] Boot from SD fail.

Jump to solution
1,986 Views
WolsYang
Contributor IV
Hi NXP,
 
We build our custom imx8qxp bord according to  imx8qxpc0mek, but fail to boot from SD card, also the serial download to SD is fail too.
 
We use  MT53B768M32D4DT-062 AIT:B for DDR4, but I think it is not a problem.
 
The SD card circuit is as imx8qxpc0mek, see the file.

Here is the step that we do:
  1. we try uuu -b sd_all the image below on our board
    imx-image-multimedia-imx8qxpc0mek.wic 
    imx-boot-imx8qxpc0mek-sd.bin-flash_linux_m4
    imx-image-full-imx8qxpc0mek.wic

    which downloads from 
    https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-8quadxplus...
    (Full log please see ubootLog file)
 ## Checking Image at 83100000 ...
Unknown image format!
Run fastboot ...
auto usb 0
Detect USB boot. Will enter fastboot mode!
flash target is MMC:1
MMC: no card present
MMC card init failed!
MMC: no card present
   
     2. uuu -b sd_all make a bootable SD card on imx8qxpc0mek.
         And test it on imx8qxpc0mek is OK.
         Move this SD card to our board, and the error is shown below.
Normal Boot
Trying to boot from MMC2_2
MMC: no card present
spl: mmc init failed with error: -123
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
 
Is there any way I can fix it?
 
0 Kudos
1 Solution
1,965 Views
WolsYang
Contributor IV

In my case  change u-boot dts,

from

cd-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; 

to

cd-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>

I have no idea but there should have some different circuits between my and NXP's, and not show on SD page.

View solution in original post

0 Kudos
2 Replies
1,966 Views
WolsYang
Contributor IV

In my case  change u-boot dts,

from

cd-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; 

to

cd-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>

I have no idea but there should have some different circuits between my and NXP's, and not show on SD page.

0 Kudos
1,981 Views
decastro_25
Contributor II

Hi WolsYang,

 

I'm working a custom board with an iMX8MN proccesor similar to yours, at least in the family and I've felt the same errors that you in the past.

The first thing to do is validated your DDR with the DDR Stress tool from NXP and generated the timming files for Uboot, without them it doens't work, at least that you're using exactly the same DDR4 than the evalution board, and layout and stack-up must be the same. So I supposed you're in the opposite state and then you've to calibrate your RAM.

After calibrate it, you've to edit some uboot parameters such DDR Size in the imx8qxpc0mek-evk.h and also in the DTS and DTSI to UBOOT and Kernel. 

Then the if you've done it, the uboot will boot and the kernel will load and hopefully your system will run.

 

I hope it helps you.

 

Best regards,

 

Jorge.