No description
Find a file
Fábio Coutada 9540b0528c feat(universalisos): PikeOS-style Phase B/C device drivers + Phase D microkernel
Phase B (Core Device Support) — all drivers verified in QEMU:
- Network: virtio-net cleanup, RTL8139, E1000, clause-22 MDIO PHY management,
  CAN bus, industrial protocols (Modbus/Profibus/EtherCAT), controller probe+dispatch
- Block storage: RAM disk backend (write->read->verify PASSED), virtio-blk transport,
  backend dispatch, real MBR+GPT partition parsers, SD/eMMC command framework
- GPIO: PL061 (verified), I2C: DesignWare (verified), SPI: PL022 (verified)

Phase C (Advanced Features):
- PCI: FULL PikeOS ARMv7 replica — transport-agnostic uos_pci_ops, config-address
  encoding, BAR sizing, capability walk, enumeration+bridge recursion, MSI/MSI-X
- USB: PikeOS-style layered stack — usb.h contract, usb_core.cpp (enumeration
  state machine), usb_ehci.cpp (EHCI transport)
- Display: FULL 1:1 PikeOS fbcon replica + copied font_8x16

Build foundation fixes:
- Freestanding aeabi_runtime.cpp (__aeabi_uidiv/__aeabi_uldivmod)
- PikeOS-style flat 4GB MMU section map + proper enable (unblocked device MMIO)
- guest.h MAX_GUEST_IMAGE_SIZE 256MB->16MB (BSS was 259MB)
- C/C++ linkage fixes, duplicate-virtio_net_init, MMIO access-size handling

Phase D (PikeOS ARMv7 Microkernel Port):
- D-1: Per-VM address spaces — cloned pgdirs, ASID-tagged TLB, 4K page walker,
  isolation PASSED (two guests, same VA->different PAs), guest fault recovery
- D-2: IRQ dispatch backbone — 1024-slot dispatch table, real GICv2 hardware
  (GICD_CTLR/GICC_CTLR/GICC_PMR/GICC_IAR/GICC_EOIR), arm_irq_handler wired
- D-3: Time subsystem — CNTVCT ns-since-boot, CNTP periodic ticker via D-2
- D-4: KDEV framework — linker-section driver registration, uos_kdev_init_all,
  name lookup
- D-5: VFP/NEON — lazy enable (undef trap->CPACR+FPEXC.EN), FPEXC=0x40000000
- D-6: SMP — per-CPU state, MPIDR, IPI/SGI framework (reschedule+TLB flush)

All uos_ naming (PikeOS p4_ convention adapted). Compiles -Werror freestanding C++17.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-09 09:10:53 +01:00
.aurelio feat(universalisos): Add comprehensive agent system and context monitoring 2026-07-07 15:44:26 +01:00
.claude feat(phase-a): complete PikeOS 5.0 context switching implementation 2026-07-07 23:44:30 +01:00
docs feat(import): Complete PikeOS 5.0 ecosystem import from devvm-arch 2026-07-06 21:01:41 +01:00
docs-extracted feat(docs): extract RVS PDF manuals and regenerate index 2026-07-06 23:16:33 +01:00
kernel feat(universalisos): PikeOS-style Phase B/C device drivers + Phase D microkernel 2026-07-09 09:10:53 +01:00
src feat(import): Complete PikeOS 5.0 ecosystem import from devvm-arch 2026-07-06 21:01:41 +01:00
tools feat(docs): extend extraction script to support arbitrary base directories 2026-07-06 23:16:27 +01:00
xsd/src feat(import): Complete PikeOS 5.0 ecosystem import from devvm-arch 2026-07-06 21:01:41 +01:00
.gitignore feat(kernel): add Stage 1 bare-metal hypervisor skeleton for QEMU ARM virt 2026-07-06 22:51:56 +01:00
AGENTS.md feat(universalisos): PikeOS-style Phase B/C device drivers + Phase D microkernel 2026-07-09 09:10:53 +01:00
AURELIO_INTEGRATION.md feat(phase-a): complete PikeOS 5.0 context switching implementation 2026-07-07 23:44:30 +01:00
AUTOSAR_CPP.md docs(analysis): Complete PikeOS 5.0 ecosystem analysis and Aurelio integration 2026-07-06 22:12:02 +01:00
BLOCK_DRIVER_IMPLEMENTATION.md feat(universalisos): PikeOS-style Phase B/C device drivers + Phase D microkernel 2026-07-09 09:10:53 +01:00
BUILD_ENVIRONMENT.md feat(repository): Initialize Universalisos repository with core documentation 2026-07-06 17:54:22 +01:00
COMPONENTS.md feat(phase-a): complete PikeOS 5.0 context switching implementation 2026-07-07 23:44:30 +01:00
HYPERVISOR.md feat(phase-a): complete PikeOS 5.0 context switching implementation 2026-07-07 23:44:30 +01:00
IMPORT_GUIDE.md docs(import): Add comprehensive PikeOS import guide 2026-07-06 18:01:34 +01:00
IMPORT_SUMMARY.md feat(import): Complete PikeOS 5.0 ecosystem import from devvm-arch 2026-07-06 21:01:41 +01:00
LICENSE feat(repository): Initialize Universalisos repository with core documentation 2026-07-06 17:54:22 +01:00
README.md feat(phase-a): complete PikeOS 5.0 context switching implementation 2026-07-07 23:44:30 +01:00
UNIVERSALISOS_PIKEOS_ANALYSIS.md analysis: comprehensive UniversalisOS vs PikeOS 5.0 parity assessment 2026-07-08 00:04:05 +01:00
UNIVERSALISOS_VS_PIKEOS_5.0.md feat(phase-a): complete PikeOS 5.0 context switching implementation 2026-07-07 23:44:30 +01:00
XSD_WORKFLOW_ANALYSIS.md feat(phase-a): complete PikeOS 5.0 context switching implementation 2026-07-07 23:44:30 +01:00

Universalisos - Type-1 Hypervisor Foundation

Universalisos is our safety-critical type-1 hypervisor foundation for cyber-physical systems, created from zero based on PikeOS architecture. This project imports the complete PikeOS ecosystem to serve as the reference architecture and codebase for Aurelio cyber-physical brain development.

🎯 CURRENT STATUS: Complete PikeOS 5.0 Parity Strategy

Strategic Objective: 100% PikeOS 5.0 Functional Parity 🎯

Universalisos has completed Stage 1-5 of the type-1 hypervisor implementation, providing:

  • Exception handling and system calls (Stage 2)
  • Priority-based scheduler framework (Stage 2)
  • Memory management with ARMv7 MMU (Stage 3)
  • VM context switching (Stage 3)
  • Device virtualization framework (Stage 4)
  • ARMv7 GIC interrupt controller (Stage 4)
  • Guest OS boot framework (Stage 5)
  • I/O virtualization (Stage 5)

Current Implementation: 15-20% of PikeOS 5.0 (framework foundations) Target: 100% PikeOS 5.0 functional parity within 15 months via Paths A+B+C parallel execution 🚀

📊 CRITICAL REFERENCE DOCUMENTS

🌟 UNIVERSALISOS_VS_PIKEOS_5.0.md - PRIMARY ROADMAP & COMPARISON

  • Comprehensive feature analysis across 11 major categories
  • Detailed implementation percentages and completion estimates
  • 6-36 month roadmap for reaching 40%, 60%, 80%, 90%+ PikeOS compatibility
  • Architecture alignment assessment (85% PikeOS pattern compliance)
  • Strategic recommendations for maximizing ROI
  • Production deployment guidance for cyber-physical systems

This document is ESSENTIAL for:

  • All architectural decisions and implementation priorities
  • Feature completeness assessment and gap analysis
  • Roadmap planning and milestone tracking
  • Integration strategy with PikeOS patterns
  • Development team coordination and progress tracking

Other Key Documentation:


Strategic Objectives

  • Type-1 Hypervisor: Safety-critical embedded systems foundation
  • AUTOSAR C++ Compliance: MISRA C++, MISRA C, DAL-B, DAL-A (avionics), ISO26262
  • Aurelio Integration: PikeOS codegen workflow → Aurelio implementation patterns
  • IP-XACT Architecture: Agent components as IP Cores with standard interfaces
  • Airship Control Foundation: Type-1 hypervisor for cyber-physical simulation control

Repository Structure

universalisos/
├── kernel/                     # Universalisos type-1 hypervisor implementation (C++)
├── src/                        # PikeOS source code import
├── test/                       # PikeOS test framework source code
├── docs/                       # Complete PDF documentation
├── ide/                        # Eclipse-based IDE source code (XSD → C generation)
├── xsd/                        # XSD schema files for C/C++ code generation
├── UNIVERSALISOS_VS_PIKEOS_5.0.md # **PRIMARY ROADMAP DOCUMENT** ⭐
├── AGENTS.md                   # Agent integration and development coordination
└── README.md                   # This file

Project Status

Current Phase: Complete PikeOS 5.0 Parity Strategy — Parallel Paths A+B+C Execution

The PikeOS 5.0 ecosystem import is complete. Universalisos has implemented a comprehensive hypervisor foundation through 5 development stages, establishing framework patterns that follow PikeOS architecture. The project now aims for complete PikeOS 5.0 functional parity through an ambitious parallel development strategy.

Development Strategy: Paths A+B+C in Parallel (15 months)

  • Path A (Complete PikeOS Core): 12-15 months, 100% PikeOS core functionality
  • Path B (Advanced Virtualization): Integrated into Path A for complete parity
  • Path C (Aurelio Integration): 6-9 months, agent acceleration across all components

Implementation Progress: See UNIVERSALISOS_VS_PIKEOS_5.0.md for detailed comparison analysis and roadmap planning.

Development Environment Setup

See BUILD_ENVIRONMENT.md for detailed setup instructions.

Required Toolchains:

  • GCC cross-compilers (ARM, target architectures)
  • CMake and Ninja build systems
  • AUTOSAR build tools and code generation utilities
  • XSD processing tools and validators
  • Eclipse IDE for XSD workflow analysis

Documentation

📋 Core Documentation

Hypervisor Kernel (C++)

The kernel/ directory contains the actual Universalisos type-1 hypervisor implementation, written in C++. The kernel has completed 5 development stages:

cd kernel
make
make run

See kernel/README.md for details.

Source Material

Source Location: Nextcloud cloud.portugalfuturista.org/s/devmm-arch

Contents:

  • PikeOS source code
  • Test frameworks
  • PDF documentation
  • Eclipse IDE source code (XSD → C generation)
  • XSD schema files

Safety-Critical Standards

Universalisos follows strict safety-critical coding standards:

  • AUTOSAR C++: Automotive software architecture compliance
  • MISRA C++: Motor Industry Software Reliability Association guidelines
  • MISRA C: C programming compliance
  • DAL-B: Design Assurance Level B (avionics systems)
  • DAL-A: Design Assurance Level A (critical avionics systems)
  • ISO26262: Functional safety for road vehicles

License

MIT License - See LICENSE file for details

Integration with Ecosystem

Universalisos integrates with:

  • nervura-electrica: Infrastructure platform and hosting
  • replica-omnisciente: Agent orchestration and mega-brain foundation
  • Aurelio: Compiler, gateway, and cyber-physical brain platform

Note: This repository is actively being populated with PikeOS ecosystem content. Documentation and implementation details are being added incrementally during the import process.

Implementation Status: Stage 5 Complete (15-20% of PikeOS 5.0 functionality) Next Phase: Complete PikeOS 5.0 Parity via Parallel Execution (15 months) Strategic Value: Framework foundations provide 85% PikeOS architecture alignment; agent acceleration enables 40-50% faster development for complete parity.

Timeline Summary:

  • Month 1-6: Core foundations + Agent framework + XSD processing pipeline
  • Month 7-12: Complete core functionality + Advanced features + Agent acceleration
  • Month 13-15: Complete API parity + Tooling integration + Certification preparation

Agent Acceleration Impact: 40-50% faster development across all PikeOS component categories through automated testing, validation, and XSD code generation.