imx8

19 posts tagged imx8, newest first.

Tagged imx8

19 posts
24 Aug 2026
6 min

Provisioning the next board

The repeatable runbook, and the reason flashing a pre-made image left me with a 512 MB data partition instead of 28 gigabytes.

embeddedfwupimx8linuxnerves
17 Aug 2026
5 min

Ran out all six config attempts

The board flashed perfectly and never reached Linux. A Kconfig choice split upstream had silently retargeted my bootloader at the wrong DRAM.

embeddedimx8linuxnervesu-boot
10 Aug 2026
6 min

Flashing without the vendor's flashing tool

NXP's uuu dies at 8% on an Apple Silicon Mac. The board's own U-Boot has ums and fastboot, and those use bulk USB, which works fine.

embeddedimx8linuxnervesu-boot
27 Jul 2026
6 min

Authoring a Nerves system by hand

Why I wrote a custom Nerves base image file by file for a CompuLab IOT-DIN-IMX8PLUS instead of forking a sibling board's system.

buildrootelixirembeddedimx8nerves
15 Jun 2026
4 min

It boots signed — and the HAB gate in booti I did not know I had

The signed Nerves firmware boots. And a finding that deleted an open task: enabling CONFIG_IMX_HAB wires an automatic fail-closed authentication gate into booti itself, for every kernel boot, with no bootcmd changes at all. Plus a fleet gotcha about who can SSH in.

elixirembeddedhabimx8nervessecure-bootu-boot
08 Jun 2026
3 min

Making the Nerves build sign imx-boot and the kernel automatically

Wiring signing into the build, and a correction worth more than the wiring: I planned to point fwup.conf at signed artifacts, and that was the wrong layer entirely — the signed bootloader is not in the .fw file at all.

buildrootelixirembeddedfwupimx8nervessecure-boot
01 Jun 2026
3 min

Signing the Nerves kernel on i.MX8M Plus, clean on the first try

The same kernel-signing procedure as track A, on a different build — and it passed first time, because the two things that went wrong last time were checked rather than assumed. A 691,712-byte padding gap, and a signed range that goes through the IVT.

cstembeddedhabimx8nervessecure-boot
25 May 2026
4 min

Forking the Nerves system, and enabling HAB inside a Buildroot build

Three real bugs blocked the first three attempts: a nerves package version whose error message points nowhere near the cause, a missing .tool-versions, and the same SPL SRAM overflow track A hit. Plus the arm64 header field that is at offset 0x10, not 0x4.

buildrootelixirembeddedimx8nervessecure-boot
18 May 2026
3 min

From a lab unit to a production Nerves system on the IOT-DIN-IMX8PLUS

The first series proved HAB secure boot on a disposable lab unit running stock Linux. This one carries it into a real Nerves system — in a fork, so the build that runs in the field is never at risk. Same board, different starting point, and several things that do not transfer.

elixirembeddedimx8nervessecure-boot
04 May 2026
5 min

The SRK fuse and closing the device: what is left, and why I stopped

Two fuse writes stand between a signed board and a locked one: the SRK hash, and the bit that makes the chip refuse unsigned code. Both are permanent. Here is exactly what they are, how to read their current state, and why I have not burned either.

embeddedhabimx8secure-bootu-boot
27 Apr 2026
6 min

Signing the kernel, and a HAB failure the chip caught

Extending the chain from the bootloader to the kernel. The first signed Image failed with HAB_INV_ASSERTION — because I read NXP's own diagram literally and stopped the signed range one IVT short. How I decoded the event by hand and found the off-by-32-bytes.

cstembeddedhabimx8kernellinuxsecure-boot
20 Apr 2026
7 min

Signing imx-boot and turning on HAB on the i.MX8M Plus

Enabling CONFIG_IMX_HAB overflowed the SPL's SRAM budget by 10,440 bytes. Fixing that, computing the real CSF insertion offsets from the build's own binman node rather than NXP's generic one, signing with cst, and getting 'No HAB Events Found!' on hardware.

cstembeddedhabimx8secure-bootu-boot
13 Apr 2026
14 min

The board stopped booting: LPDDR4 training, and recovering an IOT-DIN-IMX8PLUS over USB

My imx-boot build failed LPDDR4 training and the gateway stopped booting before U-Boot. The cause was one Kconfig symbol. Recovering it took days, because uuu's SDP mode does not work on Apple Silicon and the board has two identical-looking micro-USB ports.

embeddedfastbootimx8linuxsecure-bootu-bootuuu
06 Apr 2026
4 min

Building an unsigned imx-boot for the IOT-DIN-IMX8PLUS

The first real build: a completely unsigned bootloader, on purpose, so that any problem is a build problem and not a signing problem. Two errors on the way, one of which is caused by a modern setuptools removing pkg_resources.

buildcompulabembeddedimx8secure-bootu-boot
30 Mar 2026
6 min

Pinning the U-Boot build environment for the IOT-DIN-IMX8PLUS

imx-boot is not one repository — it is U-Boot, ARM Trusted Firmware, NXP's imx-mkimage and the LPDDR4 training blobs, assembled together. Get one of them at the wrong version and it builds cleanly and fails to train memory. How I pinned all four using the board's own boot log.

atfbuildembeddedimx8secure-bootu-boot
23 Mar 2026
7 min

Backing up the eMMC: boot partitions, rootfs, and the force_ro trap

Before touching a bootloader, take a backup you can actually restore from. On an i.MX8M Plus that means four separate things, two of which a dd of the main device silently misses — and one that is not block data at all.

backupddembeddedemmcimx8linuxsecure-boot
16 Mar 2026
5 min

Generating HAB keys with NXP's Code Signing Tool (CST 4.0.1)

Getting CST, generating the thirteen-key HAB PKI tree with hab4_pki_tree.sh, and building the SRK table and its fuse hash with srktool. Including the thing that script does silently if you do not read it first: it invents a passphrase for you, and the passphrase is 'test'.

cryptographycstembeddedhabimx8secure-boot
09 Mar 2026
5 min

The HABv4 key hierarchy: SRK, CSF, IMG and the fuses

Why i.MX8M secure boot needs thirteen key pairs rather than one, what 'open' and 'closed' actually mean, and which single 256-bit value ends up permanently burned into the chip. The concepts, before any tool touches anything.

cryptographyembeddedhabimx8secure-boot
02 Mar 2026
7 min

The hardware: a CompuLab IOT-DIN-IMX8PLUS, and how to confirm what you actually have

What you need to follow this series: a CompuLab IOT-DIN-IMX8PLUS industrial gateway on an NXP i.MX8M Plus, a serial cable, and a spare unit you are willing to break. Plus the commands to confirm which variant you have, because it decides what you build.

compulabembeddedhardwareimx8linuxsecure-boot