uuu with google coral dev board

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

uuu with google coral dev board

1,009 Views
synaption
Contributor I

I am trying to get UUU working with the google coral devboard that is based on the imx8mq.  I can get fastboot to work, but this would be a pain for bulk flashing.  I am using buildroot which generates imx8-boot-sd.bin as the uboot binary, verified working in emmc with fastboot.  the error I get with uuu is:

U-Boot SPL 2022.04 (Aug 29 2022 - 13:29:54 -0500)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3200MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
SPL: Unsupported Boot Device 12
SPL: failed to boot from all boot devices (err=-6)
### ERROR ### Please RESET the board ###

The output on the host device is as follows:

$ sudo uuu -v -b emmc imx8-boot-sd.bin
uuu (Universal Update Utility) for nxp imx chips -- lib1.4.77

Build in config:
Pctl Chip Vid Pid BcdVersion
==================================================
SDPS: MX8QXP 0x1fc9 0x012f [0x0002..0xffff]
SDPS: MX8QM 0x1fc9 0x0129 [0x0002..0xffff]
SDPS: MX8DXL 0x1fc9 0x0147
SDPS: MX28 0x15a2 0x004f
SDPS: MX815 0x1fc9 0x013e
SDPS: MX865 0x1fc9 0x0146
SDPS: MX8ULP 0x1fc9 0x014a
SDPS: MX8ULP 0x1fc9 0x014b
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]
SDPU: SPL 0x3016 0x1001 [0x0000..0x04ff]
SDPV: SPL1 0x3016 0x1001 [0x0500..0x9998]
FBK: 0x066f 0x9afe
FBK: 0x066f 0x9bff
FB: 0x0525 0xa4a5
FB: 0x18d1 0x0d02
FB: 0x3016 0x0001

Run built-in script:

uuu_version 1.2.39

# @imx8-boot-sd.bin | bootloader
# @imx8-boot-sd.bin [imx8-boot-sd.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 imx8-boot-sd.bin

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -f imx8-boot-sd.bin

# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f imx8-boot-sd.bin -offset 0x57c00
SDPU: jump
# }

# 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 imx8-boot-sd.bin -skipspl
SDPV: jump
# }

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash bootloader imx8-boot-sd.bin
FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: Done


Wait for Known USB Device Appear...
New USB Device Attached at 1:141
1:141>Start Cmd:SDP: boot -f imx8-boot-sd.bin
6400%1:141>Okay (3.066s)

These are the lines I have added currently to my uboot config

CONFIG_CMD_FASTBOOT=y
CONFIG_USB_FUNCTION_FASTBOOT=y
CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_GADGET_MANUFACTURER="FSL"
CONFIG_USB_GADGET_VENDOR_NUM=0x0525
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
CONFIG_USB_DWC3=y #I have tried CONFIG_USB_CDNS3 and CONFIG_CI_UDC
CONFIG_FSL_FASTBOOT=y
CONFIG_FASTBOOT=y
CONFIG_FASTBOOT_BUF_ADDR=0x40480000
CONFIG_FASTBOOT_BUF_SIZE=0x40000000
CONFIG_FASTBOOT_FLASH=y
CONFIG_FASTBOOT_FLASH_MMC_DEV=1
CONFIG_EFI_PARTITION=y
##CONFIG_ANDROID_BOOT_IMAGE=y#it wont compile with this line included.  
# SPL enalbe
CONFIG_SPL_USB_HOST_SUPPORT=y
CONFIG_SPL_USB_GADGET_SUPPORT=y
CONFIG_SPL_USB_SDP_SUPPORT=y
CONFIG_SDP_LOADADDR=0x40400000
CONFIG_USB_TCPC=n #I have tried with and without TCPC
CONFIG_SPL_SHOW_ERRORS=y

 

CONFIG_ANDROID_BOOT_IMAGE=y causes a compile error.  I'm not sure if that matters.  

0 Kudos
Reply
3 Replies

977 Views
synaption
Contributor I

I have made some progress. I added a lot of include/config/imx8mq_evk.h to include/config/imx8mq_phanbell.h, as well as adding a lot from board/freescale/imx8mq_phanbell/imx8mq_evk.c to board/google/imx8mq_phanbell/imx8mq_phanbell.c. It seems like everything that should compile does. Now the process hangs at the following:

U-Boot SPL 2022.04 (Sep 03 2022 - 02:34:18 -0500)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3200MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...
0 Kudos
Reply

995 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Synaption,

 

UUU is based on NXP evaluation board, the coral board is not from NXP so you have to add it.

 

Regards

0 Kudos
Reply

987 Views
synaption
Contributor I

I am trying to add it.  I found that I needed to add spl_board_boot_device() to spl.c and #include <asm/mach-imx/boot_mode.h> .  I even tried to force spl_board_boot_device() to return BOOT_DEVICE_BOARD; This caused the output of spl_loader_name() to change, so I can tell spl_board_boot_device() is being called, but spl_ll_find_loader() still returns 0 so my error persists.  That is still not working.  It's more of a uboot error than a uuu error at this point.  

0 Kudos
Reply