Module 14 · Lesson 55 of 92

Device identity and fuses

Identify where a board stores its serial and MAC, predict which values survive a reflash, and explain what a factory can program into SoC fuses.

  • Beginner to advanced
  • 9 min read
  • 13 min lab
What you will need

Ubuntu 24.04 in WSL2 or a VM and a text editor. No board or fuse programming utility is needed.

Your place in the module
By the end you can 4 objectives
  • Distinguish a product serial number from an interface MAC address.
  • Identify the physical storage behind EEPROM, OTP, eMMC, and U-Boot environment records.
  • Predict whether identity survives a reflash from the regions written and the source selected at boot.
  • Describe common SoC fuse fields and explain why fuse programming requires a board-specific procedure.
Video coming soonDevice identity and fuses
The video for this lesson is being recorded. Read the lesson below in the meantime.
Recall first from Factory flashing
  • A golden release contains shared software and can consist of multiple files with different destinations.
  • Fastboot and DFU require a running implementation, while NXP uuu can begin with a supported i.MX ROM download mode.
  • SWUpdate needs a running Linux environment, and fw_setenv needs the storage configuration for the installed U-Boot environment.
01

What the serial and MAC identify

3 min read

A flashed image is identical for every unit, so identity must be added per unit. This lesson answers where serial and MAC are stored, what survives a reflash, and what the irreversible OTP fuses allow.

Linux lets software query an interface's hardware address and, on interfaces that support it, change that address. That raises a practical question when a repaired board comes back with a different MAC. Did the service process erase the factory value, or did the new software start using a different value? Both can produce the same observation on a running system. The answer matters because the first case calls for recovering the factory record, while the second calls for tracing how the interface was configured. netdevice(7)

A ties a physical unit to records such as its assembly history and service history. The manufacturer defines its format and decides which physical assembly it follows. If a technician replaces the main board, a serial stored on the removed board goes with it. If the product serial belongs to the enclosure, the repair process needs a way to make the replacement board report the serial on the enclosure label. A chip may also have its own factory identifier. A product can adopt that identifier as its serial, or keep the two as separate fields when they identify different assemblies.

A has a different job. A unit with two Ethernet interfaces can have one product serial and a separate factory MAC for each interface. The product needs to know which saved address belongs to which port. If a repair restores two valid addresses in reverse order, both ports may work, yet a system that expects a particular address on a particular port can still see a fault. A second failure is possible when two units present the same address on the same Ethernet network. A switch can learn that address on different ports as frames arrive, disrupting delivery to the intended unit.

For either identifier, distinguish the authoritative record from the copies that software presents. The product design determines which record is authoritative. A bootloader can read a factory MAC and insert it into the device tree it passes to Linux. A driver can also obtain a MAC directly from a nonvolatile storage provider on a board configured that way. Linux calls its framework for these providers and their consumers NVMEM. The framework supports fields such as MAC addresses in stores including EEPROM and eFuses. The hardware, firmware, and kernel configuration determine which access path exists on a particular board. Linux NVMEM documentation

From factory record to interfaceFactory MACrecordAuthoritative valueBootloaderreads MACDevice treeLinuxdriverNetworkinterfaceCurrentaddressFactory MACrecordAuthoritative valueBootloaderreads MACDevice treeLinuxdriverNetworkinterfaceCurrentaddress
One possible path from the factory MAC record to the running interface

The address reported by the interface is its current address. Software can override a factory address after it has been read. A serial printed by an application can also come from a copy made at boot or during installation. Seeing a correct value in software confirms what that software is using at the time. To predict whether it survives service, find where the original is stored and how the software obtains it. For a board with multiple ports, trace that path for each port because each address has to be associated with the intended interface.

02

Where identity lives and what survives a reflash

4 min read

Use a precise definition of the operation. Here, a full eMMC user-area reflash means erasing and rewriting the eMMC user area. A root filesystem update writes a smaller set of regions. A factory job may also write eMMC boot partitions or other devices as separate operations. The command or script determines the actual scope. The answer to whether a value survives starts with the physical device and region containing its authoritative record.

Board EEPROM. A separate EEPROM can hold a product serial number, one or more MAC addresses, or both. For example, the BeagleBone Black has a board identification EEPROM containing a board serial number. A reflash confined to its eMMC leaves that EEPROM record intact. EEPROM is writable, so a service tool that also updates the EEPROM can change the record. Board replacement can change it as well because the storage belongs to the board. Always identify the EEPROM by its purpose in the board design. A board can have a device that stores boot firmware and a different device that holds manufacturing data.

SoC OTP or eFuses. A vendor can reserve on-chip storage for identity fields such as an Ethernet MAC. A design can also use a factory-programmed chip identifier as its serial source, or use a customer-programmable OTP field for a serial if the SoC provides one. These bits survive an eMMC reflash because they reside in the SoC. They also survive an eMMC replacement. If the SoC or the board carrying it is replaced, the replacement brings its own OTP contents. What Linux can read depends on the platform and the access the vendor allows to each field.

eMMC. A product can store a serial and MAC in a factory file or in a dedicated manufacturing region. A factory image written across the entire eMMC user area replaces any record inside that area unless the procedure explicitly restores it. Reserving a partition for identity lets a root filesystem update preserve it only when the updater skips that partition. If a factory operation writes a complete user-area image, a partition called factory receives the same treatment as any other region covered by that write. A procedure that first saves and later restores identity can yield the same values after reboot, but those values were recovered from a copy. That distinction matters if a failed reflash prevents the restore step from running.

U-Boot environment. A board can use environment values such as serial# for the serial and ethaddr for the first Ethernet MAC. The saved environment is a logical record with a physical backing store. For example, it can occupy a region of eMMC or live in separate SPI flash, depending on the U-Boot build and board configuration. An environment saved in the eMMC user area is erased by a full user-area erase. One saved in separate SPI flash survives that same operation if the flash is left alone. A value that exists only in U-Boot's live environment lasts until reset. On some boards, board code can populate a variable again at boot from EEPROM or OTP. In that case the variable may reappear even after the saved environment was erased.

Full eMMC user-area eraseStoragelocationRecordsurvives?Board EEPROMSeparate chipYesSoC eFusesInside SoCYesFactorypartitioneMMC userareaNoSaved U-Boot envConfiguredbacking storeIf outsideerase scope
Identity retention depends on the physical location and the write scope

To diagnose a changed value, trace storage and boot separately. First identify the authoritative record for that field. Then compare its location with the regions the service operation erased or wrote. Finally, check whether the new firmware and Linux still select that source. Consider a design that keeps its serial in board EEPROM and its MAC in an environment saved in the eMMC user area. A full user-area erase preserves the serial record and removes the saved MAC. If the design instead fills the environment from OTP on every boot, the same erase removes the saved environment while leaving the MAC available to reconstruct it.

03

What eFuses commit to hardware

4 min read

is a class of storage that includes on-chip eFuse arrays. Programming an eFuse makes a permanent change to the hardware state. Some devices allow further programming of previously untouched bits or fields, subject to their rules and locks. A programmed bit cannot be returned to its original state by a software command, a reset, or a reflash. An incorrect value can therefore stay with the board for its entire service life.

SoC vendors define the field meanings, the programming permissions, and the stage that uses each field. The same vendor can change that layout across SoC families. The reference manual or provisioning documentation for the exact device tells you which fields are factory-programmed, which are available to the product manufacturer, and what locking a field does. Common uses include:

  • Secure-boot trust data. Depending on the SoC, a vendor-defined field can hold a public key hash or a hash of a public-key table. Boot ROM can use that value to check that the verification key presented by an image belongs to the configured trust root, then use the trusted public key to verify a signature. The private signing key stays with the signer. Some SoCs provide a separate fuse setting that enables enforcement. Once enforcement is active, an image signed under the wrong trust root can be rejected before Linux starts.
  • Ethernet MAC. Some SoCs dedicate OTP fields to an Ethernet MAC. The field preserves the factory value through storage replacement, and firmware or a driver can supply it to the interface. The vendor's layout defines how the address bytes are encoded and which controller the field serves. A product with several interfaces needs to account for where each interface gets its own address.
  • Boot configuration. Depending on the SoC, fuses can select a boot device, control whether ROM follows external boot straps, or restrict a boot mode. Boot ROM can act on those decisions immediately after reset. If a setting selects a boot path the board cannot use, it can prevent startup or remove the recovery route the service procedure depends on.

A fuse-burning utility is specific to the hardware and the supported provisioning workflow. For example, NXP's uuu is a host-side manufacturing tool for supported i.MX devices. A workflow can use it to load a compatible target bootloader and send commands to it. In a fuse-programming workflow with a U-Boot image that supports the relevant fuse controller, the target executes the programming operation. Other SoC families can offer a dedicated vendor fuse utility or a provisioning tool supplied with their SDK. The tool name alone tells you little about the field map or the permissions on the target. A command sequence for one chip can be wrong for another chip even if both accept commands from the same host tool.

Programming a fuse fieldConfirmexact SoCConfirmfielddefinitionCheckcurrentstateProgramfuse fieldPermanentchangeVerifycommittedstateConfirmexact SoCConfirmfielddefinitionCheckcurrentstateProgramfuse fieldPermanentchangeVerifycommittedstate
The target executes and verifies a board-specific permanent change
A fuse write is permanent

Confirm the exact SoC, its field definitions, the intended value, and the current state before programming. Follow the vendor's documented verification method for that field. A successful transfer from the host confirms the transfer. Verification must establish that the intended hardware state was committed.

Some fields allow readback, subject to the platform's access controls. For a field used during boot, the vendor procedure may also call for a reset and a boot test so the ROM evaluates the new state. Plan that check before committing a setting that can close a recovery path. For example, the product needs a boot image accepted by the intended trust root and a service procedure compatible with the resulting boot policy. A storage rewrite can repair an image if an allowed recovery route remains available. It cannot change the trust data that was committed to OTP.

In the practice pack, explain one case where the stored identity survives but the reported address changes, and one where a reflash really erases the factory record. The next lesson, MAC addresses and key provisioning, follows these storage decisions with how manufacturing assigns MAC addresses and handles keys.

Key takeaways

  • A product serial identifies a unit, while a MAC address identifies a network interface on its link.
  • Separate EEPROM and on-chip OTP retain their contents when only eMMC is erased and rewritten.
  • An identity record on eMMC survives only if its storage region is preserved. A saved U-Boot environment follows the same rule for its configured storage.
  • SoC OTP fields can hold secure-boot trust data, MAC addresses, or boot settings where the vendor provides those fields. Programmed bits cannot be erased.
Reflect
  1. Explain to a colleague, in two sentences: distinguish a product serial number from an interface MAC address.
  2. Which objective are you least sure about? Re-read that section, then do its exercise in the practice pack.
  3. What surprised you when you ran the commands yourself?
On a real board

Repeat the key commands on your Raspberry Pi or lab board over SSH or the serial console. Note anything that behaves differently from your PC, such as missing tools, a BusyBox shell or a read-only filesystem.

References and further reading

Find your next step

↑ ↓ to move · Enter to open · Esc to close