Generic x86_64

The official Mender documentation explains how Mender works. This is simply a board-specific complement to the official documentation.

Board description

Generic X86_64 demonstration

Test results

The Buildroot Project releases in the table below have been tested by the Mender community. Please update it if you have tested this integration on other releases.

Buildroot Build Runtime
2019.08.2 :test_works: :test_works:
2019.11 :test_works: :test_works:

1. Build issue due to systemd-network…workaround steps…
2. Board does not boot, freezes after U-Boot prompt with the following message…

Build Means that the Buildroot build using this Mender integration completes without errors and outputs images.
Runtime Means that Mender has been verified to work on the board. For U-Boot-based boards, the integration checklist has been verified.

Getting started

Prerequisites

  • A supported Linux distribution and dependencies installed on your workstation/laptop as described in the Buildroot Manual
    • NOTE. Instructions depend on which Buildroot version you intend to use.

Configuring the build

Setup Buildroot environment

Set the Buildroot tag you are building for:

export BR2_TAG="2019.08.2"

Clone or download buildroot:

git clone git://git.buildroot.net/buildroot -b ${BR2_TAG}

Clone this repository:

git clone https://github.com/aduskett/buildroot-mender-configs.git -b x86_66

Change directory to buildroot:

cd buildroot

copy all files from buildroot-mender-configs:

cp -rf ../buildroot-mender-configs/* ./

Configure build environment

Configure Buildroot:

make mender_x86_64_efi_defconfig

Configure Mender server URL (optional)

This section is not required for a successful build but images that are generated by default are only suitable for usage with the Mender client in Standalone deployments, due to lack of server configuration.

You can edit the board/mender/overlay/etc/mender/mender.conf file to provide your Mender server configuration, ensuring the generated images and Mender Artifacts are connecting to the Mender server that you are using.

Build for Hosted Mender:

ServerURL = "https://hosted.mender.io"
TenantToken = "<copy token here>"

Build for Mender demo server:

ServerURL = "192.168.0.100"

Building the image

You can now proceed with building an image:

make

Using the build output

After a successful build, the images and build artifacts are placed in buildroot/output/images

The disk image sdcard.sdimg is used to provision the device storage for devices without Mender running already. Please proceed to the official documentation on provisioning a new device for steps to do this.

On the other hand, if you already have Mender running on your device and want to deploy a rootfs update using this build, you should use the Mender Artifact files, which have .mender suffix. You can either deploy this Artifact in managed mode with the Mender server as described in Deploy to physical devices or by using the Mender client only in Standalone deployments.

Created a mender artifact

Open board/mender/post-image-efi.sh and uncomment the line
# create_mender_image "update-${BR2_VERSION}.mender"
Then re-run

make

The mender file will automatically be generated after the build is complete, which can be found in output/images/

2 Likes

Not sure why but I don’t have edit access here. It looks like the command to clone the buildroot-mender-configs repo chopped of the last character in the branch name.

Also, the instructions for configuring the Mender server are not correct; they seem to be assuming Yocto.

It was not posted as a wiki, updated. Should be able to edit now

Edit: It was not @aduskett fault, and was a setting missing in this category to make posts “wiki” by default

Thanks for the feedback! I fixed both issues.