
Recall first from Update, security and whiteboard questions
- An A/B update writes the inactive slot and commits the new slot only after a successful trial.
- Secure boot verifies boot components against a trust anchor, and dm-verity checks filesystem blocks against a trusted root hash.
- A STAR answer explains the situation, your task, your actions and the observed result.
What the assessment asks you to deliver
2 min readThe interview prep measured your speaking; the assessment measures your building. This lesson answers the practical plus written structure, building a working image for a given target, and demonstrating the boot chain, device tree change, package and update or security feature.
Linux uses the device tree it receives at boot to learn about the target hardware. A device tree patch can compile successfully while the board still boots with a different DTB. That is a real integration problem the assessment can expose. The patch shows your intended change, and the running board shows whether the change reached Linux. Linux and the Devicetree
The practical task is to build a working custom image using Buildroot or Yocto for the target named in the brief. The target definition includes the board and the boot method. Use the provided baseline for that combination. Record the board model, build system, baseline revision, and expected output artifact before you edit anything. If the brief specifies a complete SD card image, that image is the output you deploy and demonstrate. The kernel, DTB, root filesystem, and any boot files required by the selected layout must agree with one another.
The written questions assess your reasoning about the system you built and the concepts behind it. Your practical deliverable is the bootable artifact, the source inputs that produced it, and the observed results on the target. Keep a short record of why you chose each change and which observation supports it. You can use the same record to explain your decisions in writing.
Read the practical requirements as four claims you will need to support. The board boots through its configured stages into user space. Linux received the changed device tree. A custom package or recipe installed a program that runs on the target. The selected update or security feature behaves as intended. Decide what evidence will support each claim before starting the build. That decision tells you what to save during the first boot and helps you identify which changes belong in the image.
Build the image from saved inputs
2 min readStart with the exact machine configuration and build instructions supplied with the brief. Identify the baseline image, the deployment artifact, and the target console. If a deployable baseline is available, boot it on the assigned board and save the log. That gives you a known boot path and a baseline for the device tree change. Include the baseline check in your timing plan according to the rules of the assessment.
Save the build configuration. For Buildroot, keep the target defconfig and project files in the supplied external tree. For Yocto, keep the machine selection, layer revisions, and image configuration needed to reproduce the build. Store your recipe and kernel changes in the project layer.
Make one observable device tree change. For example, if the brief allows an identification change, append an assessment suffix to the existing root
modelstring and preserve the board identity incompatible. Carry the change as a kernel source patch using the baseline's patch mechanism. Confirm which DTB the boot configuration selects. If the brief specifies a peripheral change, use that change and plan to show the resulting device behavior.Add a custom program through the build system. A small board-status program that prints its version is enough for practice. In Buildroot, define the package, install the executable into the target filesystem, and enable the package in the saved configuration. In Yocto, add a recipe that installs the executable into
${D}${bindir}and include its runtime package in the image recipe or package group.Integrate the chosen feature. Use the updater or security mechanism supported by the baseline. For example, build a signed update carrying a distinct program version for a supplied A/B setup, or configure the assessment service with
NoNewPrivileges=yesif the image uses systemd and the brief accepts that control.Build and deploy the final artifact. Run the baseline's documented image build. Record which artifact was produced and write that artifact to the assigned boot media using the target's deployment procedure. Preserve a copy alongside your saved build inputs.
Keep the filenames and versions clear enough to distinguish the baseline image, the image you boot first, and any update bundle you apply. Give the custom program an observable version so you can tie what runs on the board to the build you just deployed. If you need another build, change the saved inputs and regenerate the artifact. This keeps the source changes, image, and demonstration in agreement.
Demonstrate the running image within the time limit
3 min readStart the serial capture before powering on the board. Let it boot from the assessment media. In the log, identify the earliest visible firmware or bootloader stage, the Linux startup messages, and the transition to user space. Some stages may emit no messages on your console. Name those stages based on the board's boot configuration and identify which transitions you observed. For example, on a BeagleBone Black configured to use U-Boot, point to the U-Boot banner if it appears, then the kernel messages and the login prompt or application readiness message. Explain which stage selected the kernel and DTB.
Once you reach the target shell, run a short set of commands. This example assumes the root model change and a custom program installed at /usr/bin/board-status. The device tree command uses the sysfs export on a target that exposes it. Use your own program path and demonstrate the specified node if the brief names a peripheral.
cat /proc/cmdline
cat /proc/1/comm
tr -d '\000' < /sys/firmware/devicetree/base/model
printf '\n'
/usr/bin/board-status --version
The command line shows the arguments Linux received, and /proc/1/comm gives the name of the running PID 1 process. The model command removes the string's terminating NUL so the value is readable. Show the baseline value and the changed value you actually observed. For a peripheral change, show the selected live property and a useful operation through the bound driver, such as reading the sensor through its IIO interface. Finish by showing the package or recipe source that installed the executable you just ran. proc(5): the process information filesystem
For an A/B update demonstration, record the current slot and program version. Install the signed bundle using the supplied update workflow, reboot, and show the newly active slot and the changed version. Confirm that the health check succeeds and the slot is marked good if the workflow requires it. If you claim signature enforcement, test a bundle signed by a key outside the target's trust store and record the rejection. For the systemd security example, show NoNewPrivileges=yes in the shipped unit and inspect the NoNewPrivs field in /proc/PID/status, substituting the PID of the running service for PID. A value of 1 confirms that the process has the flag set. It limits privilege gains across execve, including gains from set-user-ID executables and file capabilities. No New Privileges Flag
Going deeperExplore the mechanism
Meet the time, image-size, and boot-time limits together. Treat these as three separate measurements. For build and demonstration time, state when the assessment clock starts and stops and whether cached inputs are allowed. For size, measure the exact artifact named in the brief. A compressed download and its written disk image have different sizes. For boot time, use the specified start event and stop at a repeatable readiness event, such as the first successful application check. Use the same target and boot media across runs.
Measure the baseline first. Then choose a change that addresses the limit you are closest to missing. Removing a development tool from the image can reduce size. Disabling an optional service that delays application readiness can reduce boot time. A compression change can shift time between reading and decompression, so remeasure size and boot time together. Reserve time for a final build, deployment, cold boot, and feature test. A candidate meets the brief when one deployed image passes all three limits and still runs the required demonstrations.
Demonstrate a complete, secure, updatable product image. On a baseline that supports verified boot and signed A/B updates, start from the provisioned target and identify where verification begins, which artifacts it covers, and which keys the device trusts. Boot the image and show that the application reaches readiness. Apply a valid signed update, observe the new slot and version, and confirm the health check. Use the supplied test setup to show rejection of an untrusted update and recovery when a test image fails the boot or health policy. If the brief requires persistent product data, check that it survives the update and recovery. Report verification coverage up to the boundary you actually tested. For example, a verified kernel and DTB establish coverage of those artifacts, and a root filesystem integrity claim needs its own configured verification and evidence.
The next lesson, The knowledge check, troubleshooting and the rubric, explains how to approach the written questions and use the assessment criteria to review the evidence from your build.
Key takeaways
- The assessment combines a practical build with written knowledge questions.
- The deployed image must boot on the assigned target and contain the requested changes.
- A live device tree property confirms what Linux received at boot.
- A feature demonstration records the test input, expected result, and observed result.
Reflect
- Explain to a colleague, in two sentences: identify the deliverables for the practical build and written questions.
- Which objective are you least sure about? Re-read that section, then do its exercise in the practice pack.
- 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
- Kernel documentationLinux and the Devicetree: how Linux uses the device tree
- Man pageproc(5): the process information filesystem
- Kernel documentationNo New Privileges Flag: restricting privilege gains across execve
Official documentation first. Links checked when the lesson was published.