PINE64
Article: (Possibly) Emulate PinePhone with Unicorn Emulator - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+--- Thread: Article: (Possibly) Emulate PinePhone with Unicorn Emulator (/showthread.php?tid=17962)



Article: (Possibly) Emulate PinePhone with Unicorn Emulator - lupyuen - 02-23-2023

Unicorn is a lightweight CPU Emulator Framework based on QEMU.

We’re porting a new operating system Apache NuttX RTOS to Pine64 PinePhone. And I wondered…

To make PinePhone testing easier… Can we emulate Arm64 PinePhone with Unicorn Emulator?

Let’s find out! In this article we’ll call Unicorn Emulator to…

1. Emulate Arm64 Machine Code

2. Attach Hooks to intercept Memory Access and Code Execution

3. Boot Apache NuttX RTOS in the emulator

4. Simulate the UART Controller for PinePhone

5. Track an Exception in Arm64 Memory Management

(Possibly) Emulate PinePhone with Unicorn Emulator