Behöver du hjälp? Chatta med oss WhatsApp

Please, enable Compare.

Build and Install Debian 12 Bookworm


OVERVIEW OF DEBIAN LINUX SDK

Distro Variant

• Debian Base (basic packages)

• Debian Server (more packages without GUI Desktop)

• Debian Desktop (with GNOME GUI Desktop besides the packages of Debian server)

Deployment of the prebuilt Debian

distro images

NXP provides a script tool flex-installer to automatically download and install the prebuilt BSP image and Debian RootFS image with customizable partitions of the target storage device. The entire disk space of the SD/eMMC card or USB/SATA disk is accessible with the formatted EXT4 partition. flex-installer can also convert the tarball images to a single .wic image. Optionally, you can use the balena Etcher tool to flash the BSP composite firmware into the SD card on the Windows host machine if the Linux host is not available.

Supported boards

• SMARC-iMX93

• SMARC-iMX8QM

• SMARC-iMX8MP

• SMARC-iMX8MQ

• SMARC-iMX8MM

• pITX-MX8M-PLUS

• OSM-iMX93-SF

• pITX-OSM-iMX93

Host Requirement to build Debian Linux  SDK with Flexbuild

• Debian 12.

• Build in Docker hosted on Ubuntu 22.04 LTS or Ubuntu 24.04 LTS.

Duration of build

30 minutes – 3 hours.

Consumed disk space

30 GB – 50 GB.

Installing a new package

Installing a package is as simple as running apt install <package> since there is a deb package manager for Debian.

Patching source of component

It is easy to patch board-specific components in Flexbuild, but inconvenient to patch the upstream Debian package because they are installed as deb packages.

What is new in this release

Supported board features



Build Environment





Getting Flexbuild








Notes




Notes




Notes


Description

Command option

Supported value

Carries out some operational commands.

-i <instruction>

auto: Automatically downloads and installs distro images to the storage device.

pf: Partitions and formats storage device.

download: Only downloads distro images without installation.

mkwic: Creates all-in-one sdcard.

wic image including composite BSP firmware, boot image, and rootfs.

Refers to the board name.

-m <machine>

imx8qm-smarc-8g

imx8qm-smarc-4g

Refers to the firmware image.

-f <firmware>

firmware_<machine>_<boottype>.img

Default device tree to be used.

-t <device tree>

N/A: no display output.

smarc-hdmi: HDMI display output

smarc-lvds: LVDS display output • smarc-dp: DP display output • smarc-edp: eDP display output • smarc-rpmsg: Cortex-M4 co-processor

Refers to the bootpartition image. There is a set of  bootpartition images for each of the Linux kernel versions and platform (64-bit) supported by Debian.

-b <boot_partition>

boot_IMX_arm64_lts_ 6.6.52 (as a directory).

boot_IMX_arm64_<lts_version>.tar.zst for i.MX platforms.

Refers to the NXP Debian RootFS image.

-r <rootfs>

rootfs_lsdk2506_debian_server_arm64.tar.zst (compressed tarball).

rootfs_lsdk2506_debian_server_arm64 (as a directory).

The SD storage drive in the Linux PC is detected as /dev/sdX. Where, X is a letter, such as a, b, c. Ensure to choose the correct device name, because the data on this device will be replaced.

-d <device>

/dev/<device_name>.

Specifies the URL of the distro web server to override the default one for automatically downloading distro.

-u <url>

URL of the distro web server.


Backup image to SD card







Notes




Where is the source code stored?


How to modify and recompile the source code?


How to modify code using patches


How to add a new custom component in Flexbuild


Was this article helpful?