# Orange Pi 5 Ultra — Kernel (Prebuilt)

Prebuilt mainline Linux kernel and boot files for the Orange Pi 5 Ultra (RK3588).

## Contents

| File | Description |
|------|-------------|
| `Image` | ARM64 Linux kernel (mainline 6.15.0-rc7 + Rockchip DRM patches) |
| `rk3588-orangepi-5-ultra.dtb` | Device tree blob for Orange Pi 5 Ultra |
| `u-boot-rockchip.bin` | U-Boot bootloader (Rockchip TPL/SPL + U-Boot) |
| `boot.cmd` | U-Boot boot script source |
| `boot.scr` | U-Boot boot script (compiled from boot.cmd) |
| `config.txt` | Boot configuration (DTB selection, boot device, recovery toggle) |
| `android-sdcard.dtbo` | Device tree overlay for SD card |
| `uRamdisk` | Android boot ramdisk (U-Boot format) |
| `uRecovery` | Android recovery ramdisk (U-Boot format) |

## Boot Configuration

### Boot Device (config.txt)

| Device | `boot_device` | `boot_devnum` |
|--------|---------------|---------------|
| SD card | `mmc` | `0` |
| eMMC | `mmc` | `1` |
| NVMe | `nvme` | `0` |
| USB | `usb` | `0` |

### Recovery

Set `recovery=true` in `config.txt` to boot into recovery mode.

### Recompiling boot.scr

If you modify `boot.cmd`, recompile with:

```bash
mkimage -A arm64 -O linux -T script -C none -n "Orange Pi 5 Ultra Boot" -d boot.cmd boot.scr
```

## Kernel Configuration

Key enabled options:
- `CONFIG_DRM_PANFROST` — Mali-G610 GPU (Panfrost)
- `CONFIG_DRM_DW_HDMI` — HDMI output
- `CONFIG_SND_SOC_ES8388` — ES8388 audio codec
- `CONFIG_R8169` — RTL8125BG 2.5GbE Ethernet
- `CONFIG_BRCMFMAC` — WiFi (Ampak AP6611S)
- `CONFIG_BT_HCIUART_BCM` — Bluetooth 5.3
- `CONFIG_USB_DWC3` — USB 3.0
- `CONFIG_NVME_CORE` — NVMe storage

## Source

Based on mainline Linux 6.15-rc7 with Rockchip DRM patches from the dvab-sarma AOSP project.

## Branch

`lineage-23.2` — for use with LineageOS 23.2 (Android 16).
