[U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

Fabio Estevam festevam at gmail.com
Tue Jun 4 21:56:46 UTC 2019


On Tue, Jun 4, 2019 at 5:41 PM Sjoerd Simons
<sjoerd.simons at collabora.co.uk> wrote:

> Small steps right; Ooi what imx_usb_loader configuration/commands are
> you using to test this? (I find its config rather tricky to grasp).

I simply run:

sudo ./imx_usb SPL

and then

sudo ./imx_usb u-boot-dtb.img

I suggest you to try U-Boot 2019.01 on a mx6sabreauto first.

U-Boot 2019.01 is prior to the DM / fit conversion and loading SPL +
u-boot.img with the method above works fine.

> One of the next things I will need to look at is actually secure boot..
> That said why does imx_usb_loader if the board isn't locked?

Not sure what you mean by locked.

We have been using imx_usb_loader for a long time. After DM / fit
comvesion the IVT piece is not added into the final .img.

>From the main Makefile:

ifdef CONFIG_SPL_LOAD_FIT
MKIMAGEFLAGS_u-boot.img = -f auto -A $(ARCH) -T firmware -C none -O u-boot \
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" -E \
$(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST)))
else
MKIMAGEFLAGS_u-boot.img = -A $(ARCH) -T firmware -C none -O u-boot \
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board"
MKIMAGEFLAGS_u-boot-ivt.img = -A $(ARCH) -T firmware_ivt -C none -O u-boot \
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board"
u-boot-ivt.img: MKIMAGEOUTPUT = u-boot-ivt.img.log
CLEAN_FILES += u-boot-ivt.img.log u-boot-dtb.imx.log SPL.log u-boot.imx.log
endif

we  can see that the ivt is not added for the CONFIG_SPL_LOAD_FIT case.

I tried to change this logic, but so far was not able to make it work.


More information about the U-Boot mailing list