openwrt/target/linux/malta
Paul Spooren 8dfa38b82c malta: convert to Device macro image building
Convert the malta target from the legacy Image/BuildKernel and
Image/Build pattern to the modern Device macro system. This is the
last target still using the legacy pattern.

The Device macro system automatically generates per-image JSON
metadata files which get aggregated into profiles.json, enabling
firmware selector and other tooling support for all malta subtargets
(be, le, be64, le64).

The kernel ELF is produced via KERNEL_NAME := vmlinux.elf (matching
octeon), uImage artifacts are built using the standard Build/lzma,
Build/gzip and Build/uImage commands with the existing load address
0x80100000, and rootfs images use append-rootfs with optional gzip
compression.

The device is named 'generic' following the convention used by other
virtual/emulated targets (x86, armsr, octeon).

Signed-off-by: Paul Spooren <mail@aparcar.org>
2026-02-11 00:08:34 +01:00
..
base-files/etc malta: use default OpenWrt network configuration 2022-05-28 17:35:34 +02:00
be kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config 2022-10-21 13:47:01 +02:00
be64 malta: enable VM targets again 2024-06-30 22:00:03 +02:00
image malta: convert to Device macro image building 2026-02-11 00:08:34 +01:00
le malta: enable VM targets again 2024-06-30 22:00:03 +02:00
le64 malta: enable VM targets again 2024-06-30 22:00:03 +02:00
config-6.12 kernel: cleanup CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU 2026-01-11 12:52:54 +01:00
Makefile malta: use kernel 6.12 by default 2025-07-20 23:37:37 +02:00
README malta: update MIPS64 ISA to R2 2020-10-11 16:16:24 +02:00

This Malta target is intended to be used with the Qemu emulator. It can be used
to prototype an OpenWrt firmware for MIPS processors. One could also use it to
troubleshoot MIPS applications without access to real hardware.

To use the images built by OpenWrt with qemu, use the following commands:

For the 32 bit little-endian image:
qemu-system-mipsel -kernel bin/targets/malta/le/openwrt-malta-le-vmlinux-initramfs.elf -nographic -m 256

For the 32 bit big-endian image:
qemu-system-mips -kernel bin/targets/malta/be/openwrt-malta-be-vmlinux-initramfs.elf -nographic -m 256

For the 64 bit little-endian image:
qemu-system-mips64el -kernel bin/targets/malta/le64/openwrt-malta-le64-vmlinux-initramfs.elf -cpu MIPS64R2-generic -nographic -m 256

For the 64 bit big-endian image:
qemu-system-mips64 -kernel bin/targets/malta/be64/openwrt-malta-be64-vmlinux-initramfs.elf -cpu MIPS64R2-generic -nographic -m 256

and enjoy the system bootin.