No description
Arch Linux runs on s390x. Installing the repository into a rootfs and entering it: bash : 5.3.15(1)-release uname -m : s390x glibc : ldd (GNU libc) 2.44 Two things the test taught that sixty-eight successful builds had not. bash would not start at all: "chroot: No such file or directory" on a binary that was plainly there. That is the dynamic linker being absent -- bash asks for /lib/ld64.so.1, and that path exists only through the usr-merge symlinks the filesystem package installs. Without it an Arch rootfs starts nothing. coreutils then failed on libselinux.so.1. Not a port defect: a genuine dependency that was never built. pacman had in fact listed all of them before I passed --nodeps -- brotli, libxml2, pam, systemd, pacman-mirrorlist, libmakepkg-dropins. The resolver works; the repository was incomplete. They are added to stage 1 by name, with the reason recorded. A build that succeeds proves the compiler accepted the source. Only running the binary proves the package. --- FR --- Arch Linux tourne sur s390x. Le depot installe dans un rootfs, puis on y entre : bash : 5.3.15(1)-release uname -m : s390x glibc : ldd (GNU libc) 2.44 Deux enseignements que soixante-huit compilations reussies n avaient pas donnes. bash ne demarrait pas du tout : « chroot: No such file or directory » sur un binaire pourtant present. C est l interpreteur dynamique qui manque -- bash reclame /lib/ld64.so.1, chemin qui n existe que par les liens usr-merge du paquet filesystem. Sans lui, un rootfs Arch ne lance rien. coreutils echouait ensuite sur libselinux.so.1. Non pas un defaut du portage : une dependance reelle jamais batie. pacman les avait d ailleurs toutes nommees avant que je passe --nodeps -- brotli, libxml2, pam, systemd, pacman-mirrorlist, libmakepkg-dropins. Le resolveur fonctionne ; c est le depot qui etait incomplet. Elles rejoignent l etage 1, avec la raison consignee. Une compilation reussie prouve que le compilateur a accepte la source. Seul le binaire qui s execute prouve le paquet. Assisted-by: Claude Opus 5 |
||
|---|---|---|
| .github/workflows | ||
| arch-kernel | ||
| boot | ||
| patches | ||
| scripts | ||
| .env.example | ||
| .gitignore | ||
| CODEOWNERS | ||
| Containerfile | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| TODO.md | ||
Arch Linux s390x
A port of Arch Linux to IBM s390x mainframe architecture with systemd support.
Boots a full Arch Linux system on IBM mainframes (or QEMU s390x emulation) using a hybrid build: cross-compilation for the kernel, native s390x compilation on z/VM for userspace.
Quick Start
make container # build dev container (first time)
cp .env.example .env # configure z/VM access
make all # build kernel + initramfs + systemd
make test-systemd # boot it
What Works
- Arch Linux kernel 6.18.6-arch1 with Arch patches, cross-compiled
- Initramfs via modified mkinitcpio
- Static busybox built natively on z/VM, 2.3MB
- Root filesystem with ext4, switch_root to real rootfs
- Systemd as PID 1
Pacman, bash, and GNU coreutils are not yet ported.
Build System
The build uses two tiers:
Cross-compilation (x86_64 host): Kernel is built in a Fedora 43 container with s390x-linux-gnu-gcc. Initramfs is generated with a patched mkinitcpio that handles cross-architecture binary injection.
Native compilation (s390x z/VM): Busybox and systemd must be built on real s390x hardware. The z/VM system runs RHEL 9.6 with GCC 11.5.0. Scripts handle SSH deployment and retrieval automatically via .env configuration.