Repository navigation
Hardware Test Menu
demos/tester.lua is a single-file, on-device test menu for every OpenLua
module. It runs from EBOOT.PBP on a real PSP and also in PPSSPP; anything the
environment cannot provide is recorded as INFO or SKIP instead of failing.
The authoritative document is
docs/TESTER.md.
| Model | Common name | Notes |
|---|---|---|
| PSP-1000 | Fat | 32 MB RAM, no ef0:
|
| PSP-2000 / PSP-3000 | Slim | 64 MB RAM, no ef0:
|
| PSP-E1000 | Street | no WLAN, no ef0:
|
| PSP-N1000 | Go | internal storage is ef0:; M2 is ms0:
|
hw.getmodel() can only reliably identify the Go, so SELECT cycles a
declared profile (Fat / Slim / 3000 / Street / Go). The choice is saved to
tester.cfg and written into the report. Set it to match the physical unit
before collecting results.
Build the engine, then stage the menu:
bash docker/build.sh
bash tools/package_tester.shOutput defaults to out/tester-package/:
PSP/GAME/OpenLua/EBOOT.PBP
PSP/GAME/OpenLua/script.lua
PSP/GAME/OpenLua/assets/
PSP/GAME/OpenLuaProbe/EBOOT.PBP (when the probe was built)
README.txt
Copy PSP/ to ms0: (Memory Stick) or ef0: (PSP Go internal storage) and
launch OpenLua. You can also copy the three items by hand.
The menu needs no bundled system font. It tries, in order:
-
flash0:/font/ltn0.pgfthrough the PGF loader (opt-in builds only; the standard EBOOT returnsnilhere), -
assets/font.pngas a fixed-cell font, - a built-in 5x7 bitmap font.
| Input | Action |
|---|---|
| UP / DOWN | Move the selection or scroll a result page. |
| X or O | Open the selected test page. |
| O | Go back. |
| X | Run / re-run the page, or trigger its documented action. |
| SELECT | Cycle the declared model (saved to tester.cfg). |
| START | Run all non-interactive checks and write test_report.txt. |
The key that opens a page is consumed by the menu and does not act on the page in the same frame. On a live-demo page (GRAPHICS, FONTS, GAME, 3D, CAMERA), press X to start the demo, O to leave the demo and return to the page, then O again to return to the menu. On a result page, O returns to the menu directly. START and SELECT do not start a live demo.
Every test call is wrapped in pcall, so a broken module shows FAIL instead
of taking the menu down.
| Page | Covers |
|---|---|
| SYSTEM / OS / HARDWARE / POWER |
os, hw, batt, power
|
| STORAGE / FILES |
files, io, files.cdir, ms0/ef0, app0
|
| SAVEDATA |
data slots, metadata, limits, delete |
| INI / JSON |
ini, json round trips and rejection paths |
| INPUT / TIMERS / MATH |
buttons, timer, math helpers |
| GRAPHICS / DRAW / IMAGE |
image, draw, screen, color
|
| FONTS / SFONT |
font PGF/fixed-cell, sfont
|
| GAME / MAP |
game.info/artwork, map
|
| SOUND / AUDIO |
sound WAV load, volume, loop, play/pause/stop |
| 3D / AMG / CAM3D / MODELS |
amg, cam3d, texture3d, model3d
|
| SPLASH |
splash.show / old / oldschool
|
| ON-SCREEN KEYBOARD | osk.init |
| PMF / PSMF VIDEO |
pmf.run and error paths |
| GO! CAM USB CAMERA |
cam lifecycle, render, snapshot |
| UMD / USB / SERIAL / IR / BT |
umd, usb, sio, ir, bluetooth, adhoc
|
| WLAN / SOCKET / HTTP / FTP |
wlan, socket, http, ftp, adhoc
|
| BATCH REPORT | Last START results and the report path |
Hardware and state-changing actions only run when you press the key shown in the page footer. Nothing starts at boot.
| Page | Key | Action |
|---|---|---|
| SOUND | X / TRIANGLE / SQUARE | Play/stop / cycle volume / toggle loop |
| SPLASH | X / TRIANGLE / SQUARE |
splash.show / splash.old / splash.oldschool
|
| OSK | X | Open the system keyboard |
| PMF | X | Play movie.pmf if present |
| CAMERA | X | Live camera preview (SQUARE takes a snapshot) |
| UMD / USB | X / TRIANGLE / SQUARE / L / R | UMD mount / USB mass storage / stop / USB UMD (SKIP) / USB flash0 (SKIP) |
| NETWORK | X / TRIANGLE / SQUARE / L / R | WLAN connect / disconnect / FTP toggle / adhoc init / adhoc term |
Never called automatically (and listed in every report):
-
os.exit,os.restart -
power.suspend,power.off,power.lock/unlock - flash writes
- the FTP server (only the explicit SQUARE toggle starts it)
USB mass storage exposes the Memory Stick or internal storage until
usb.stop(); press SQUARE on the UMD/USB page to stop it. USB storage and
GO! CAM cannot be active at the same time.
usb.umd() and usb.flash*() are no-ops in the standard build. They need
Sony's optional _usbdevice.prx; importing it statically makes the EBOOT fail
with 8002013C, so the build omits it. L/R on that page record SKIP.
START runs every non-interactive page and writes test_report.txt:
- in the app directory (next to
EBOOT.PBP), - in
writable_base()/test_report.txtwhen that is a real directory, - in
ms0:/PSP/OPENLUA_TEST/andef0:/PSP/OPENLUA_TEST/when available.
The report starts with the version, date, declared model, detected model,
firmware, nickname/CFW and free space. Each section ends with a
pass/fail/info/skip count, and the file ends with totals plus the list of
things intentionally not run.
Status meanings:
| Status | Meaning |
|---|---|
PASS |
The call completed and the expected result was observed. |
FAIL |
The call raised or returned an unexpected value. This is a bug. |
INFO |
A value was read but cannot be judged here, or the hardware/asset is absent. Not a failure. |
SKIP |
Needs a key press or real hardware, or was intentionally not run. Not a failure. |
The menu keeps the latest batch result on the BATCH REPORT page until the app exits.
The
version 1.0line at the top of the report is the report format version, not the OpenLua release version. The release version is the tag, theVERSIONfile in the ZIP and the app header.
Full START batch on PPSSPP v1.20.4 (SDL offscreen + Mesa llvmpipe OpenGL), with the standard PGF-disabled PSP build:
TOTAL 225 checks: 185 pass, 0 fail, 21 info, 19 skip
INFO items are values PPSSPP cannot emulate (for example ef0: absent, UMD
metadata, kernel-only hardware IDs, battery capacity/voltage). SKIP items are
interactive-only tests, the deliberately unrun destructive calls, and
FONT.LOAD PGF (the standard build does not link sceLibFont).
Zero FAIL confirms that every module's non-interactive surface works in the
emulator; it does not prove real-hardware behaviour.
| Date | Model | Firmware / CFW | Result |
|---|---|---|---|
| 2026-11-10 | PSP-1001 (Fat) | 6.61 PRO-C (Infinity) |
v0.1.3 boots and runs. Its live-demo pages trapped Circle/O; fixed in v0.1.4 (PPSSPP-verified, hardware retest pending). Full batch report pending. |
When reporting hardware results, include the model, firmware/CFW, whether
ms0: or ef0: was used, and the full test_report.txt.
Reported on: PSP-1001, 6.61 PRO-C (Infinity), OpenLua v0.1.3.
Symptom: On the live-demo pages (GRAPHICS, FONTS, GAME, 3D, CAMERA), pressing Circle/O to leave the demo appeared to do nothing, so the page never returned to the menu.
Cause: The page handler called the demo action on every frame. The demo's own loop consumed the Circle press, returned, and was immediately restarted by the next frame's action call. The menu-open key could also be dispatched to the page in the same frame that opened it.
Fix: Actions now run only on a real key press, the opening key is not
re-dispatched to the page, and live demos start only on X. The FONTS demo also
loads its SFont once instead of every frame, so repeated visits no longer
exhaust the font slots. See the Unreleased CHANGELOG.md entry.
Verification: A host navigation simulation covers all 17 pages opened with
both X and O, including all five live demos. PPSSPP v1.20.4 was driven with raw
button masks: each demo started, the first O returned to the page, and the
second O returned to the menu. Real-hardware retest with v0.1.4 is pending.
If you are still on v0.1.3, use START from the main menu to run the batch
without entering each page, and leave the app with the PSP HOME button if a
page traps O. Please retest v0.1.4 on the affected unit and send the full
test_report.txt with the list of pages you tested.
-
ef0:internal storage and cross-volume copy/move on the PSP Go. - Real UMD discs (
gameid, title, size). USB flash/UMD modes need a custom build with_usbdevice.prx. - Battery voltage/capacity and temperature on all models.
- The GO! CAM accessory and real camera frames.
- WLAN profiles, access points, adhoc peers and a real connection.
- Infrared and serial hardware (the user-mode build is a stub).
- PGF rendering from the real
flash0:font (opt-in build only). - PMF playback and the OSK cancel/confirm variants.
-
power.lock/unlockon firmware where PPSSPP lacks HLE.