iMX6DL uuu not working

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

iMX6DL uuu not working

416 Views
sparnez
Contributor I

Hello,

I'm bringing up a custom board based on iMX6DL, mainly working on u-boot now.

When I'm flashing u-boot into an SD card everything works fine. When I'm trying to flash u-boot to the eMMC with uuu, the boot process gets stuck when jumping from SPL to u-boot. I've managed to modify the uuu script to have the same memory values at the same addresses as SD boot. In both cases I see:

Byte @ 0x17800000: 0xea0000b8
Byte @ 0x17800004: 0xe59ff014
Byte @ 0x17800008: 0xe59ff014
Byte @ 0x1780000c: 0xe59ff014
Byte @ 0x17800010: 0xe59ff014
Byte @ 0x17800014: 0xe59ff014
Byte @ 0x17800018: 0xe59ff014
Byte @ 0x1780001c: 0xe59ff014
Byte @ 0x17800020: 0x17800060
Byte @ 0x17800024: 0x178000c0
Byte @ 0x17800028: 0x17800120
Byte @ 0x1780002c: 0x17800180
Byte @ 0x17800030: 0x178001e0
Byte @ 0x17800034: 0x17800240
Byte @ 0x17800038: 0x178002a0
Byte @ 0x1780003c: 0xdeadbeef
Byte @ 0x17800040: 0x900020

The entry-point of u-boot is set to 0x17800000. What could it be the reason for this?

Additional question: without modifying the uuu script, the result of downloading the same u-boot.imx with uuu or flashing to an SD with dd is different. Why?

Attached you find the binaries in case a hexdump may be helpful.

0 Kudos
Reply
4 Replies

392 Views
sparnez
Contributor I

Hello joanxie,

I flash u-boot onto the SD with:

 dd if=u-boot.imx of=/dev/sdX bs=1K seek=1 status=progress
 
I run uuu with the following script:

uuu_version 1.2.39

# @_flash.bin | bootloader
# @_image [_flash.bin] | image burn to emmc, default is the same as bootloader

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f _flash.bin

# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f _image -addr 0x177FFFC0
SDPV: jump -f
# }

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${sd_dev}
FB: ucmd mmc dev ${sd_dev}
FB: flash bootloader _image
FB: Done

I call it with with:
uuu -b uuu.lst u-boot.imx u-boot.img

where:
- u-boot.imx is the binary with SPL + u-boot

- u-boot.img is the binary with u-boot only.

In the script I added the -addr in order to match the binary placement as I shown in the main question.

0 Kudos
Reply

376 Views
sparnez
Contributor I

I managed to solve this adding the -addr argument to the "jump" command.

Now the SPL starts but it seems like uuu is not actually flashing the full bootloader into the eMMC. I've tried running "mmc write" to copy from the SD to eMMC the bootloader and it boots ok. It seems like the "flash" command is not enough. Should I change something to the uuu script?

0 Kudos
Reply

397 Views
joanxie
NXP TechSupport
NXP TechSupport

When I'm flashing u-boot into an SD card everything works fine.When I'm trying to flash u-boot to the eMMC with uuu

> how do you flash to the sd and emmc? any script or command do you use?

if you use script, pls share it

0 Kudos
Reply