Skip to content

Instantly share code, notes, and snippets.

@dev-zzo
Last active March 13, 2024 05:19
Show Gist options
  • Save dev-zzo/ee9675ed5fb84c9769fec34cfdd41f3d to your computer and use it in GitHub Desktop.
Save dev-zzo/ee9675ed5fb84c9769fec34cfdd41f3d to your computer and use it in GitHub Desktop.
Building SDP U-Boot for Technexion boards

Clone required things

$ git clone https://github.com/TechNexion/u-boot-edm
$ git clone https://github.com/boundarydevices/imx_usb_loader

Build u-boot

setup your toolchain here e.g. set PATH to where your toolchain is and e.g. CROSS_COMPILE=arm-linux-gnueabihf-

$ cd u-boot-edm
$ export ARCH=arm
$ make pico-imx6_spl_defconfig
$ make menuconfig
  • select ARM architecture - Support i.MX HAB features
  • select Boot images - Extra Options
  • paste: IMX_CONFIG=board/technexion/pico-imx6/pico-imx6dl.cfg,MX6DL
  • save and exit
$ make u-boot.imx V=1

Optinally take note of HAB Blocks (and DCD Blocks?) if you plan to sign the image

Build loader

$ cd imx_usb_loader
$ make

Load image

$ sudo ../imx_usb_loader/imx_usb -v ./u-boot.imx

the serial console will come alive after a few seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment