Skip to content

walidamriou/embedded-linux-buildroot

Repository files navigation

embedded-linux-buildroot

Environment for building Embedded Linux systems using Buildroot.

HOWTO Test the Generated OS / OUTPUT

After building the image and booting it in QEMU (if you build for x86 you can test via ./output/x86/start-qemu.sh), log in as root and verify that the custom packages, overlay files, init scripts, and packages.

1. Verify System Boot

You should see Buildroot boot successfully and reach the login prompt:

Welcome to Buildroot
buildroot login: root

Expected login banner:

=========================================
 Welcome to embedded linux via Buildroot
=========================================

2. Verify Root Filesystem Overlay

Check that files from the root filesystem overlay were copied into the target image.

cat /etc/motd

Expected output:

=========================================
 Welcome to embedded linux via Buildroot
=========================================

Buildroot test image

Verify custom test file:

cat /root/test.txt

Expected output:

If you can read this,
the overlay works.

3. Verify Custom Application

Run the custom application installed by the Buildroot package:

mytest

Expected output:

Hello from Embedded Linux via Buildroot!
Kernel: 6.12.47
Hostname: buildroot

The kernel version may differ depending on the Buildroot configuration.


4. Verify Custom Package

There are two packages in this build, hello and bonjour, to test it Run:

hello

Expected output:

Hello from embeddedlinux package!

Run:

bonjour

Expected output:

Bonjour from embeddedlinux package!

5. Verify Init Script Execution

The init script files/etc/init.d/S99hello should execute automatically during system startup.

Check the generated log file from this init:

cat /tmp/os.log

Expected output:

Hello from embedded linux init script
Sun Jun  7 21:45:04 UTC 2026

The timestamp will reflect the current boot time.


About

Environment for building Embedded Linux systems using Buildroot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors