mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-16 22:40:27 +01:00
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> |
||
|---|---|---|
| .. | ||
| base-files/etc | ||
| be | ||
| be64 | ||
| image | ||
| le | ||
| le64 | ||
| config-6.12 | ||
| Makefile | ||
| README | ||
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.