# Clone and build
git clone https://github.com/MilkywayRides/Linux.git
cd Linux/BlazeNeuroLinux
sudo ./build.sh all
# Create USB
sudo ./build.sh usb /dev/sdXsudo ./build.sh all # Complete build (2-3 hours)
sudo ./build.sh stage1 # Prepare environment
sudo ./build.sh stage2 # Build toolchain (60-90 min)
sudo ./build.sh stage3 # Build temp system (20-30 min)
sudo ./build.sh stage4 # Build final system (15-20 min)
sudo ./build.sh stage5 # Configure & kernel (30-45 min)
sudo ./build.sh clean # Clean build directories# Local Docker build
docker build -t blazeneuro-builder .
docker create --name blazeneuro blazeneuro-builder
docker cp blazeneuro:/blazeneuro-rootfs.tar.gz .
docker rm blazeneuro
# Test with verbose output
docker build --progress=plain -t blazeneuro-builder . 2>&1 | tee build.log# Verify sources before building
bash scripts/verify-sources.sh
# Check build logs
tail -f logs/build.log
# Test individual stage
sudo ./build.sh stage2
# Clean and retry
sudo ./build.sh clean
sudo ./build.sh all- Push to main/develop branch
- Or: Actions tab → Run workflow
- Go to completed workflow
- Scroll to Artifacts section
- Download
blazeneuro-system
build.yml- Direct build (faster)build-docker.yml- Docker build (more reliable)
build.sh # Main build script
config/blazeneuro.conf # Configuration
scripts/stages/0X-*.sh # Build stages
scripts/verify-sources.sh # Source verification
Dockerfile # Docker build
.github/workflows/build-docker.yml # GitHub Actions
✅ Fixed: Config cache workarounds added
✅ Fixed: Headers patched in glibc stage
✅ Fixed: Auto-fallback to make -j1
bash scripts/verify-sources.sh
# If missing, download from GitHub Actions artifactsREADME.md- Complete guideTROUBLESHOOTING.md- Detailed solutionsGITHUB_ACTIONS_GUIDE.md- Cloud build guideFIXES_APPLIED.md- All fixes documented
- ✅ Use Docker build for CI/CD
- ✅ Verify sources before building
- ✅ Run stages individually when debugging
- ✅ Keep build logs for troubleshooting
- ✅ Test locally before pushing to GitHub
- Disk Space: 20GB+
- RAM: 4GB+
- Time: 2-3 hours
- OS: Linux (Ubuntu 20.04+, Debian 11+)
- Linux: 6.7.4
- GCC: 13.2.0
- Glibc: 2.39
- Binutils: 2.42
# Monitor build in real-time
tail -f logs/build.log
# Check disk space
df -h /mnt/lfs
# Parallel build control
export MAKEFLAGS="-j4" # Use 4 cores
# Skip GUI build
sudo ./build.sh stage5 # Stop before stage6- Check
TROUBLESHOOTING.md - Review
logs/build.log - Test with Docker locally
- Open GitHub issue with logs
Last Updated: 2025-11-14 Status: All critical errors fixed ✅