Build prplOS for x86_64 and boot it in QEMU (GEN_CONFIG to make)
Grow through practice
No need to finish reading — test nowOne line: official x86_64 is the shortest prplOS build path: one profile, one gen_config, one make. No board needed; QEMU can run it.
Quick answer: build prplOS for x86_64
If you only need the shortest path:
- Use the official
profiles/x86_64.yml.
- Run
gen_config.py x86_64to produce.config.
- Run
makeand look underbin/targets/x86/64/.
- Boot the produced image with
qemu-system-x86_64.
The rest of the post shows the exact profile, config values, image names and where the feeds network usually fails.
What the official x86_64 profile is
profiles/x86_64.yml:
---
profiles:
- generic
target: x86
subtarget: 64
description: Build image for x86/64 generic target
packages:
- hostapd-utils
- iw-full
- kmod-mac80211-hwsim
- wpad-basic
diffconfig: |
CONFIG_GRUB_TIMEOUT="1"
# CONFIG_TARGET_IMAGES_GZIP is not set
CONFIG_TARGET_ROOTFS_PARTSIZE=150
CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA=y
CONFIG_TARGET_ROOTFS_INITRAMFS=y
CONFIG_TESTING_KERNEL=y
It maps to:
target x86
subtarget 64
device generic
i.e. x86/64 generic, OpenWrt's target for 64-bit machines/VMs.
Two ways to generate
1) Pure official x86_64
./scripts/gen_config.py x86_64
Only the packages from the x86_64 profile; good for validating the toolchain and image first.
2) x86_64 + prpl features
./scripts/gen_config.py x86_64 prpl debug
prpl includes:
prpl_core + lcm + mgmt
prpl_core also pulls:
feed_amx
feed_prplmesh
feed_prplos
That is the “run prpl data model/management on x86” combination, but it needs working feeds.
What GEN_CONFIG actually wrote
I verified target selection with empty feeds first; the measured .config:
CONFIG_TARGET_x86=y
CONFIG_TARGET_x86_64=y
CONFIG_TARGET_x86_64_DEVICE_generic=y
CONFIG_TARGET_ROOTFS_INITRAMFS=y
CONFIG_TARGET_ROOTFS_EXT4FS=y
CONFIG_GRUB_IMAGES=y
CONFIG_GRUB_EFI_IMAGES=y
CONFIG_GRUB_CONSOLE=y
CONFIG_GRUB_BAUDRATE=115200
CONFIG_GRUB_TIMEOUT="1"
CONFIG_GRUB_TITLE="OpenWrt"
Those TARGET_x86* lines prove the target was selected.
The first
gen_config.pyrun deletes.config/feedsand pulls OpenWrt feeds fromfeeds.conf.default. Locally it hitfetch-pack: unexpected disconnect, so empty feeds was only used to verify config generation; restore feeds and update online before a full build.
Build
make download -j"$(nproc)" # optional: fetch source tarballs first
make -j"$(nproc)"
On failure:
make -j1 V=sc
Read the first error; do not start with full parallelism.
Output:
bin/targets/x86/64/
Common files:
<prefix>-x86-64-generic-initramfs-kernel.bin
<prefix>-x86-64-generic-rootfs.img.gz
<prefix>-x86-64-generic-ext4-combined.img.gz
<prefix>-x86-64-generic-ext4-combined-efi.img.gz
<prefix> may be openwrt or prplos; trust your build config.
Boot in QEMU
initramfs (fastest)
qemu-system-x86_64 \
-m 1024 -smp 2 -nographic \
-kernel bin/targets/x86/64/*-x86-64-generic-initramfs-kernel.bin
Disk image
qemu-system-x86_64 \
-m 1024 -smp 2 -nographic \
-drive file=bin/targets/x86/64/*-x86-64-generic-ext4-combined.img,format=raw
EFI images need OVMF/EFI firmware; combined.img (BIOS/GRUB) is easier first.
The QEMU commands are organized from the x86 image structure; nothing was booted here. Use the actual
initramfs-kernelfilename from your build.
Difference from armsr
| x86_64 | armsr/armv8 | |
|---|---|---|
| Official profile | yes x86_64 | no; write qemu_armsr |
| QEMU | qemu-system-x86_64 | qemu-system-aarch64 -M virt |
| Images | bzImage / GRUB combined | initramfs-kernel / EFI |
| Good for | PC, fastest validation | ARM SystemReady, closer to ARM boards |
Verification status (site mission)
- ✅ official profile:
profiles/x86_64.yml,x86/64 target.mk,image/Makefilechecked; - ✅ config generation:
gen_config.py x86_64produced.configwithTARGET_x86_64/DEVICE_generic; - ⚠️ full build not completed: feeds network failed; empty feeds only verified config;
- ⚠️ QEMU not booted: no image was built; commands follow the target structure;
- ❓ prpl combination: whether all
x86_64 + prplpackages work on x86 needs an actual build.
One sentence
x86_64 is prplOS's best “first build path”: an official profile, one gen_config, and QEMU boots it. Get this working first, then move to armsr or a real board.
Source: x86_64 profile · x86 image Related: official profiles · GEN_CONFIG armsr · Why another CONFIG layer Series: prplOS Porting & Build.
More: prplOS vs OpenWrt · official profiles · GEN_CONFIG for armsr
Comments 0
No comments yet — be the first!