Problem implementing embedded linux on MCIMX7SABRE

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

Problem implementing embedded linux on MCIMX7SABRE

1,483 Views
sam_peetermans
Contributor I

At the moment i am really stuck while getting started with the MCIMX7SABRE development board. 

I completed the getting started guide from the following getting started guide - link and everything seems to be working fine. 

When proceeding to the next step "2. Embedded Linux" i cant burn the NXP Linux BSP image to the board.

I tried it on both linux and windows. Both seem to be stuck around the same step. 

I configured the boot switches to the SDP but the board always seems to be booting from the SD card, no matter how the boot switches are configured. 

So to force the device to boot into the SDP mode i leave the SD card out. 

For linux i have a host platform with macOs and i use virtualbox with ubuntu 18. 

Below are the logs from the serial output:

U-Boot 2018.03-imx_v2018.03_4.14.78_1.0.0_ga+g654088c (Nov 29 2018 - 08:10:16 +)

                                                                                

CPU:   Freescale i.MX7D rev1.3 1000 MHz (running at 792 MHz)                    

CPU:   Commercial temperature grade (0C to 95C) at 34C                          

Reset cause: POR                                                                

Model: Freescale i.MX7 SabreSD Board                                            

Board: i.MX7D SABRESD RevA in secure mode                                       

DRAM:  1 GiB                                                                    

PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11                                         

MMC:   FSL_SDHC: 0, FSL_SDHC: 1                                                 

Loading Environment from MMC... MMC: no card present                            

*** Warning - No block device, using default environment                        

                                                                                

Failed (-5)                                                                     

Display: TFT43AB (480x272)                                                      

Video: 480x272x24                                                               

In:    serial                                                                   

Out:   serial                                                                   

Err:   serial                                                                   

MMC: no card present                                                            

Detect USB boot. Will enter fastboot mode!                                      

Net:                                                                            

Warning: ethernet@30be0000 using MAC address from ROM                           

eth0: ethernet@30be0000 [PRIME]                                                 

Warning: ethernet@30bf0000 using MAC address from ROM                           

, eth1: ethernet@30bf0000                                                       

Fastboot: Normal                                                                

Boot from USB for mfgtools                                                      

Use default environment for                              mfgtools               

Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee};

Hit any key to stop autoboot:  0                                                

                                                                                

## Checking Image at 83800000 ...                                               

Unknown image format!                                                           

Run fastboot ...                                                                

I seems to be stuck on that step, and the terminal output is:

sudo ./uuu ../L4.14.78_1.0.0_ga_images_MX7DSABRESD.zip 

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.130-0-g247629e

Success 0    Failure 0                                                       

                                                                              

1:4      1/ 1 [=================100%=================] SDP: boot -f u-boot-imx

The host platform for windows was a regular windows desktop. 

For the windows platform the serial output was:

U-Boot 2018.03-imx_v2018.03_4.14.78_1.0.0_ga+g654088c (Nov 29 2018 - 08:10:16 +0000)

CPU:   Freescale i.MX7D rev1.3 1000 MHz (running at 792 MHz)

CPU:   Commercial temperature grade (0C to 95C) at 29C

Reset cause: POR

Model: Freescale i.MX7 SabreSD Board

Board: i.MX7D SABRESD RevA in secure mode

DRAM:  1 GiB

PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11

MMC:   FSL_SDHC: 0, FSL_SDHC: 1

Loading Environment from MMC... MMC: no card present

*** Warning - No block device, using default environment

Failed (-5)

Display: TFT43AB (480x272)

Video: 480x272x24

In:    serial

Out:   serial

Err:   serial

MMC: no card present

Detect USB boot. Will enter fastboot mode!

Net:

Warning: ethernet@30be0000 using MAC address from ROM

eth0: ethernet@30be0000 [PRIME]

Warning: ethernet@30bf0000 using MAC address from ROM

, eth1: ethernet@30bf0000

Fastboot: Normal

Boot from USB for mfgtools

Use default environment for                              mfgtools

Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else bootz ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;

Hit any key to stop autoboot:  0

## Checking Image at 83800000 ...

Unknown image format!

Run fastboot ...

Detect USB boot. Will enter fastboot mode!

flash target is MMC:0

MMC: no card present

MMC card init failed!

MMC: no card present

** Block device MMC 0 not supported

Detect USB boot. Will enter fastboot mode!

flash target is MMC:1

Card did not respond to voltage select!

MMC card init failed!

Card did not respond to voltage select!

** Block device MMC 1 not supported

Card did not respond to voltage select!

Terminal output for the windows platform:

uuu.exe -V L4.14.78_1.0.0_ga_images_MX7DSABRESD.zip

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.102-0-gb078bd0

Build in config:

        Pctl     Chip            Vid     Pid     BcdVersion

        ==================================================

        SDPS:    MX8QXP          0x1fc9  0x012f  [0x0002..0xffff]

        SDPS:    MX8QM           0x1fc9  0x0129  [0x0002..0xffff]

        SDPS:    MX28            0x15a2  0x004f

        SDPS:    MX815           0x1fc9  0x013e

        SDP:     MX7D            0x15a2  0x0076

        SDP:     MX6Q            0x15a2  0x0054

        SDP:     MX6D            0x15a2  0x0061

        SDP:     MX6SL           0x15a2  0x0063

        SDP:     MX6SX           0x15a2  0x0071

        SDP:     MX6UL           0x15a2  0x007d

        SDP:     MX6ULL          0x15a2  0x0080

        SDP:     MX6SLL          0x1fc9  0x0128

        SDP:     MX7ULP          0x1fc9  0x0126

        SDP:     MXRT106X        0x1fc9  0x0135

        SDP:     MX8MM           0x1fc9  0x0134

        SDP:     MX8MQ           0x1fc9  0x012b

        SDPU:    SPL             0x0525  0xb4a4  [0x0000..0x04ff]

        SDPV:    SPL1            0x0525  0xb4a4  [0x0500..0x9998]

        SDPU:    SPL             0x0525  0xb4a4  [0x9999..0x9999]

        FBK:                     0x066f  0x9afe

        FBK:                     0x066f  0x9bff

        FB:                      0x0525  0xa4a5

        FB:                      0x18d1  0x0d02

Wait for Known USB Device Appear...

Decompress file:uuu.auto

100%Decompress file:u-boot-imx7dsabresd_sd.imx

Decompress file:fsl-image-validation-imx-imx7dsabresd.sdcard

100%New USB Device Attached at 1:2

1:2>Start Cmd:SDP: boot -f u-boot-imx7dsabresd_sd.imx

6400%libusb: error [windows_transfer_callback] detected I/O error 1167: [1167] The device is not connected.

libusb: error [hid_submit_bulk_transfer] HID transfer failed: [1167] The device is not connected.

1:2>Okay (0.49s)

New USB Device Attached at 1:2

1:2>Start Cmd:FB: ucmd setenv fastboot_dev mmc

1:2>Okay (0.002s)

1:2>Start Cmd:FB: ucmd setenv mmcdev ${emmc_dev}

1:2>Okay (0.013s)

1:2>Start Cmd:FB: ucmd mmc dev ${emmc_dev}

1:2>Fail (0.22s)

All resources utilized in the proces where listed in the getting started process from the first link. 

The 3 main questions that i have:

  1. What do i need to do to make the SDP proces proceed? 
  2. Is it normal behavior that the boot switches do not seem to influence the boot behavior of the MCIMX7SABRE platform? 
  3. Is there a way to confirm that all the functionality of the board is ok, and that there are no defects? 

Beste regards, 

Sam Peetermans

Labels (2)
0 Kudos
Reply
2 Replies

1,363 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Sam,

You need to reburn the sdcard with 4.14.98 BSP Demo images, apparently you sd has a problem so just download the BSP and burn it again.

Regards

0 Kudos
Reply

1,363 Views
sam_peetermans
Contributor I

Hello,

 

That was a solution that i tried myself, and succeeded at it.

But this does not fix or explain the problem why the SDP proces/uuu for loading the image is stuck and does not work (as can be seen in the logs).

 

Do you have any explanation for that?

I would really like to be able to utilize the SDP and otg port to load the image as described in the getting started guide.

 

Best regards,

Sam Peetermans

0 Kudos
Reply