Andrea Palmatè ha published new details on the adaptation of the kernel of AmigaOS 4 to architecture ARMv7 from the Raspberry Pi 2. The work focuses on porting the system kernel without altering the operation of the version PowerPC, used in equipment such as AmigaOne X5000, Sam460 and A1222.
The kernel manages memory, interrupts, the timer, and task scheduling, as well as loading the initial Kickstart modules and transferring control to exec. To maintain compatibility with PowerPC , the developer ensures that objects compiled for that architecture remain identical after introducing the ARM -specific changes.
The adaptation required implementing exception vectors, the MMU , the interrupt controller, and the ARM timer . Testing also revealed differences between the QEMU emulator and the actual hardware, as well as errors related to shared data structures.
Another challenge has been the module loader, which extracts ELF objects stored in a ZIP file called initrd. During development, it was discovered that the space used by this file could be overwritten by the kernel heap . The solution involves reserving its memory and reorganizing the heap to avoid conflicts, although this can result in losing up to 32 MB of usable RAM.
Reschedule(), the exec function that allows the processor to be handed over to another prepared task of the same priority, has also been implemented. Testing detected a bug that caused unnecessary handovers, which has now been fixed. In parallel, work has been underway on the PowerPC version to incorporate cross-core scheduling mechanisms.
In terms of graphics, the kernel requests a framebuffer from the VideoCore GPU via the mailbox interface. The resolution has been increased from 640 × 480 to 1280 × 720, with space reserved for three displays. Furthermore, the limit of supported modules has been raised from 32 to 160, matching that of the PowerPC version.
The results are significant: the kernel boots successfully on both QEMU and a real Raspberry Pi 2, and the Workbench display reaches a resolution of 1280 × 720. However, some work remains to be done. Multi-core support is not implemented in ARM, there is no USB host controller for using a keyboard and mouse, and the system size is still limited to a 4 MB image loaded into RAM. Supporting larger images will require improvements to the module loader.
The developer highlights the importance of automating cross-architecture checks, utilizing emulator traces, and adding diagnostics from the early stages of startup. His article allows for close monitoring of the progress and technical obstacles of this adaptation of AmigaOS 4 to ARM.

Fantastic news! This is the right path, in my opinion. Let's hope it comes to fruition and becomes official.
Do they mean a Pi Zero 2 – since a Pi 2 is ancient.