[IMX8DXL_OrangeBox] Unable to boot image from SD/MMC1

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

[IMX8DXL_OrangeBox] Unable to boot image from SD/MMC1

Jump to solution
282 Views
imx8dxl-OB
Contributor III

Hi!

I'm using below to flash sdcard.img image to SD/MMC1 with following command:

#dd if=/*/sdcard.img of=/dev/mmcblk1

root@imx8dxl-orangebox:/*# dd if=/*/sdcard.img of=/dev/mmcblk1
1196032+0 records in
1196032+0 records out
612368384 bytes (612 MB, 584 MiB) copied, 189.767 s, 3.2 MB/s

mmcblk1-mmcblk1p1 content after flashing image:

root@imx8dxl-orangebox:/run/media# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
*
mmcblk1 179:96 0 14.8G 0 disk
|-mmcblk1p1 179:97 0 64M 0 part /run/media/boot-mmcblk1p1
`-mmcblk1p2 179:98 0 512M 0 part

...
root@imx8dxl-orangebox:/run/media/boot-mmcblk1p1# ls -l
total 31622
-rwxrwx--- 1 root disk 32317952 Nov 6 2023 Image
-rwxrwx--- 1 root disk 61394 Nov 6 2023 imx8dxl-evk.dtb

However, imx8dxl-orangebox failed to boot from SD/MMC1:

imx8dxl-orangebox login:
U-Boot SPL 2022.04-lf_v2022.04_imx8dxl_orangebox+g598f0baef7 (Oct 19 2022 - 16:31:17 +0000)
Normal Boot
Trying to boot from MMC1
Primary set selected
Load image from MMC/SD 0x6d800

...

[ 3.153691] mmcblk1: mmc1:aaaa SC16G 14.8 GiB
[ 3.164664] mmcblk1: p1 p2

...

[ 2.894616] mmc1: SDHCI controller on 5b020000.mmc [5b020000.mmc] using ADMA
...
[ 3.102681] mmc1: host does not support reading read-only switch, assuming write-enable
[ 3.145579] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
[ 3.153691] mmcblk1: mmc1:aaaa SC16G 14.8 GiB
[ 3.164664] mmcblk1: p1 p2

This same image - sdcard.img was able to boot/run in the EVK board I'm working (IMX8DXL-WEVK | Linux imx8dxlevk 6.1.1+g29549c7073bf #1 SMP PREEMPT * aarch64 GNU/Linux) with previously. The only difference is that from this EVK board (no casing) I'm able to set the boot mode selection via DIP switch using - (011: USDHC1: SD card) to boot from SD https://www.nxp.com/webapp/Download?colCode=MCIMX8DXL-WEVKUM

For this IMX8DXL_OrangeBox (Linux imx8dxl-orangebox 6.1.1+g9f5c84085cb4 #1 SMP PREEMPT * aarch64 GNU/Linux), board is with casing and mounted modules/interface.

 

Thank you in advance for kind help.

0 Kudos
1 Solution
48 Views
imx8dxl-OB
Contributor III

For kind reference, we're able to create and booth image using this repository - https://github.com/nxp-imx/meta-imx-orangebox

Shared by NXP team.

Thank you

View solution in original post

0 Kudos
5 Replies
47 Views
imx8dxl-OB
Contributor III

For kind reference, we're able to create and boot image using this repository - https://github.com/nxp-imx/meta-imx-orangebox

Shared by NXP team.

Thank you

0 Kudos
49 Views
imx8dxl-OB
Contributor III

For kind reference, we're able to create and booth image using this repository - https://github.com/nxp-imx/meta-imx-orangebox

Shared by NXP team.

Thank you

0 Kudos
243 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Which version BSP are you using? Are you using the NXP board or the board you design yourself?

0 Kudos
241 Views
imx8dxl-OB
Contributor III

Hi @Rita_Wang,

I used this BSP/repository - https://github.com/buildroot/buildroot/tree/master/board/freescale/imx8dxlevk

and both are NXP board.

 

Many thanks!

 

 

0 Kudos
177 Views
imx8dxl-OB
Contributor III

Hi @Rita_Wang,

If it helps also the board revision is SCH-55140 REV B.

Having said this, can we still follow the DIP switch settings [1.10 DIP switch | • 011: USDHC1: SD card] from https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true to boot from SD?

Using this switch results to this boot behavior:

 ###U-Boot 2023.04 (Oct 27 2023 - 18:19:24 +0800)

CPU:   NXP i.MX8DXL RevB A35 at 1200 MHz at 27C

Model: NXP i.MX8DXL EVK Board
Board: iMX8DXL EVK
Boot:  SD1
DRAM:  1019.8 MiB
Core:  185 devices, 27 uclasses, devicetree: separate
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... MMC: no card present
*** Warning - No block device, using default environment

In:    serial
Out:   serial
Err:   serial
sc_seco_v2x_build_info: res:3

BuildInfo:
  - SCFW 6638c032, SECO-FW 80649c52, IMX-MKIMAGE deadbeef, ATF d4fc46f
  - U-Boot 2023.04

MMC: no card present
flash target is MMC:1
MMC: no card present
MMC card init failed!
MMC: no card present
** Block device MMC 1 not supported
Net:   pca953x gpio@20: Error reading output register
pca953x gpio@20: Error reading output register

Warning: ethernet@5b050000 (eth1) using random MAC address - ba:17:59:53:f9:20
eth1: ethernet@5b050000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0
MMC: no card present
MMC: no card present
** Bad device specification mmc 1 **
Couldn't find partition mmc 1:1
Can't set block device
MMC: no card present
** Bad device specification mmc 1 **
Couldn't find partition mmc 1:1
Can't set block device
Booting from net ...
ethernet@5b050000 Waiting for PHY auto negotiation to complete......................................... TIMEOUT !
phy_startup() failed: -110FAILED: -110ethernet@5b050000 Waiting for PHY auto negotiation to complete......................................... TIMEOUT !
phy_startup() failed: -110FAILED: -110WARN: Cannot load the DT
=>
####

Many thanks!

 

0 Kudos