This project focuses on porting OAI-5GC (OpenAirInterface 5G Core) to Raspberry Pi devices.
It enables lightweight and portable 5G core testing environments on ARM-based hardware, particularly Raspberry Pi 4 and Raspberry Pi 5.
- Overview
- Features
- Requirements
- Installation
- Deployment and Running
- Docker Images
- Testing and Verification
- Contributing
- License
- Acknowledgements
- Contact
The main goal of this project is to adapt Open5GS and OAI 5G Core for Raspberry Pi, providing:
- Containerized 5G Core images for ARM architecture
- Deployment and execution on Raspberry Pi 4 / 5
- Basic 5G core functionality for experimentation and learning
Currently, the project has successfully:
- Built and tested Open5GS container images for ARM
- Verified containerized Open5GS running on Raspberry Pi 4 and Raspberry Pi 5
- ✅ ARM-compatible Open5GS and OAI-5GC container images
- ✅ Supports Raspberry Pi 4 / 5
- ✅ Deployable via Docker and Docker Compose
- ✅ Lightweight 5G core environment for testing and education
- ✅ Includes example configurations and startup scripts
- Raspberry Pi 4 (4GB or 8GB recommended) or Raspberry Pi 5
- Docker ≥ 20.x
- Docker Compose ≥ 1.29.x
- Linux-based OS (Raspberry Pi OS, Ubuntu Server, etc.)
- Network connectivity for 5G core containers
- Clone the repository
git clone https://gitlab.com/limx59/oai-5gc-pi.git
cd oai-5gc-pi- Install Docker and Docker Compose
# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Install Docker Compose
sudo apt install -y docker-compose- (Optional) Add your user to the Docker group
sudo usermod -aG docker $USER
newgrp docker- Build or pull container images
docker-compose build # Build locally
docker-compose pull # Pull pre-built images- Start the containers
docker-compose up -d- Check running containers
docker ps- Stop the containers
docker-compose downPre-built Open5GS ARM Docker images are available on Docker Hub:
👉 https://hub.docker.com/u/limx59
These images have been tested and verified to run properly on Raspberry Pi 5.
You can directly pull and use them without manual build steps:
docker pull limx59/open5gs-amf:latest
docker pull limx59/open5gs-smf:latest
docker pull limx59/open5gs-upf:latest
docker pull limx59/open5gs-hss:latest
docker pull limx59/open5gs-pcrf:latest
docker pull limx59/open5gs-webui:latestA tested mirror of the official ReDroid Android 12 ARM64 image is available on Docker Hub:
sudo docker pull --platform linux/arm64 limx59/redroid:12.0.0-arm64ReDroid provides the Android UI; UERANSIM performs simulated 5G registration. Android browser traffic can use the UE PDU session through Tinyproxy.
The published image is an upstream mirror. The source build procedure has not yet been validated by a complete build.
To start all services using Docker Compose:
docker-compose -f docker-compose.open5gs.yaml up -d- Check logs of key Open5GS components:
docker logs open5gs-amf
docker logs open5gs-smf
docker logs open5gs-upf- Test with UE simulators or test devices.
- Confirm Open5GS attach/detach and session creation procedures.
- Validate web interface (WebUI) is accessible for subscriber management.
Contributions are welcome! You can contribute by:
# Fork the repository
git checkout -b feature/my-feature
# Commit changes
git commit -m "Add new feature"
# Push and open Merge Request
git push origin feature/my-feature- Improve setup instructions or add Raspberry Pi optimization tips.
- Test container deployment on different Raspberry Pi models and report feedback.
Specify your license here (e.g., MIT License)
This project references:
For questions or support, contact:
📧 limx59@163.com