# PsionLX — netBook Pro Linux reconstruction Rebuilding **Psion LX**, the unreleased Linux OS for the Psion Teklogix netBook Pro, as a bootable CF card. The original binary release (`soho-image-netbook-pro-20050104074212.rootfs.tar.bz2`) has not been found publicly. It circulated on HPC:Factor from November 2007 and at least one person still held a copy in 2019; see `PROVENANCE.txt`. What we have instead is **Psion's own OpenEmbedded build tree**, recovered from the Internet Archive, plus a community GPE rootfs built for this machine in March 2005 (not something Psion shipped). The image is assembled by grafting Psion's configuration, theme and assets onto that GPE rootfs, and by cross-compiling the few GUI binaries that were missing. Hardware: Intel XScale PXA255 at 400 MHz, ARMv5TE, 800×600 touchscreen, 128 MB RAM, 32 MB NAND. Userspace is **ARM OABI**. (Corrected 2026-09-29: earlier notes said PXA263. Psion's own kernel config selects `CONFIG_PXA25x`, and The Register, Psion Teklogix's user manual and ARM machine ID 503 all say PXA255.) --- ## The one rule **`auditeon/oe-netbook/` is authoritative.** It is Psion's real build tree. Before writing *any* config file, theme, icon, script or path for this project, look there first: ```sh find ~/Downloads/PsionLinux-netBookPro/auditeon/oe-netbook -path '**' ! -path '*/CVS/*' ``` Read the recipe's `do_install()` to get the exact destination path and mode, then install Psion's file **byte-for-byte**. Do not hand-roll a substitute that "looks right". Every previously-invented config in this project turned out to be wrong in a way that was then hard to distinguish from a genuine bug. If a file provably did not survive, reconstruct it from Psion's own surviving artwork, and say so in a comment inside the file itself. Measure against `PsionLX-UI-photos/gpe-gallery-netbook.png` — a true 800×600 screenshot, pixel exact. The other reference images are camera photos with colour cast; use them for layout only. --- ## Layout | Path | What it is | |---|---| | `auditeon/oe-netbook/` | **Psion's OE tree.** 147 package dirs, 263 recipes. The source of truth. | | `workspace/card/root/` | The root filesystem tree being built. Edit here. | | `workspace/card/` | Image assembly: `mknods.debugfs`, `chown.debugfs`, `boot.fat`, `rootfs.ext2` | | `workspace/card-archival/` | The **archival** tree, frozen on 28 Sep 2026 21:40: the photographed 21-application menu (17 entries moved to `removed-menu-entries/`, a PDF Viewer override). Built with `PSION_CARD_DIR=card-archival PSION_IMAGE_NAME=psionlx-cf-1gb-asphotographed.img scripts/mkimage.sh`. Later work (Gnumeric 1.3.93 and whatever follows) goes into `workspace/card/` only, so the two images now differ in more than the menu | | `workspace/build/buildroot/` | ARM OABI chroot (Debian etch) used as the cross-compiler | | `workspace/build/gpe-src/` | GPE upstream source mirror (git) | | `workspace/qemu/` | Kernel, initramfs and disks for the QEMU build harness | | `workspace/built/` | Binaries compiled here: `gpe-appmgr`, `gpe-buttonbox`, `gpe-bootsplash` | | `workspace/built/psion-apps/` | The Psion-patched applications, stripped and verified | | `workspace/build/.wayback/` | Cached Internet Archive index of the GPE source tree | | `workspace/jffs2x/` | A **community** GPE JFFS2 rootfs, extracted: `anonymous-linuxtogo/gpe-image.jffs2`, `/etc/version` 200511041215. Not Psion's, so it cannot answer "what did Psion ship?". AbiWord 2.4 and Gaim on the card were copied from it | | `PsionLX-CF-kit/` | Shippable output: `psionlx-cf-1gb.img` (the working image) and `psionlx-cf-1gb-asphotographed.img` (the archival one), checksums, instructions | | `PsionLX-UI-photos/` | Reference images. `SOURCE.txt` explains each. | | `PROVENANCE.txt` | What was recovered, from where, with hashes. Includes what is still missing. | | `auditeon/FINDING.txt` | How the OE tree was found, and the app→package mapping | Docs in [`docs/`](docs/): - [01 — What PsionLX is](docs/01-WHAT-THIS-IS.md) — history, what survived, what is lost - [02 — Desktop internals](docs/02-DESKTOP-INTERNALS.md) — boot→session→panel→launcher, and every failure mode found - [03 — Building the image](docs/03-BUILDING-THE-IMAGE.md) — exact rebuild procedure - [04 — Cross-compiling](docs/04-CROSS-COMPILING.md) — the QEMU OABI harness - [05 — Work log](docs/05-WORK-LOG.md) — what was done, what failed, what was corrected - [06 — Rebuilding Psion's applications](docs/06-REBUILDING-PSIONS-APPS.md) — how every app was put back the way Psion built it --- ## The scripts | Script | What it does | |---|---| | `psionise.py ` | Reconstitute a package: read Psion's recipe, fetch the pinned tarball, apply their patches at the declared `-p` | | `qbuild.sh ` | Run a build job in the ARM OABI chroot under QEMU; recovers `/build/out` afterwards | | `install-built.py =` | Verify a built binary against the image (OABI, libraries, symbols) and install it, keeping the old one as `.gpe-orig` | | `guitest.sh [secs]` | Boot the built image and photograph the desktop over QMP | | `mkimage.sh` | Assemble the 1 GB card image and ship it to `PsionLX-CF-kit/` | | `mkbg.py`, `mkicons.py` | Rebuild the desktop background and the Desk glyph / gold buttons | | `elfdeps.py`, `elfsyms.py` | Read an ARM ELF's needed libraries and its dynamic symbols | --- ## Rebuild the image Full procedure and verification steps in [docs/03](docs/03-BUILDING-THE-IMAGE.md). Short form, after editing `workspace/card/root/`: ```sh cd ~/Downloads/PsionLinux-netBookPro/workspace/card MKE=/opt/homebrew/opt/e2fsprogs/sbin/mke2fs DBG=/opt/homebrew/opt/e2fsprogs/sbin/debugfs rm -f rootfs.ext2 $MKE -q -t ext2 -b 1024 -d root -F -L PSIONLX -O ^resize_inode,^dir_index rootfs.ext2 928240 $DBG -w -f mknods.debugfs rootfs.ext2 # device nodes $DBG -w -f chown.debugfs rootfs.ext2 # ownership <- see the trap below # then assemble MBR + boot.fat + rootfs.ext2 (script in docs/03) ``` Result must be exactly **1,024,966,656 bytes**. --- ## Verifying in the emulator ```sh scripts/guitest.sh 95 # -> workspace/qemu/psionlx.png, psion-ps.txt, psion-xerr.txt ``` `qemu-system-arm -M versatilepb` boots the built rootfs with a framebuffer, so the desktop can actually be looked at. The script copies `card/rootfs.ext2`, writes a `/guitest.sh` into it with `debugfs` (the initramfs runs that in preference to `/build.sh`), boots with `-qmp unix:/tmp/qmp.sock`, and takes a `screendump`. This has found every desktop bug that static checks could not. Three caveats. `debugfs`'s `write` **silently fails if the file already exists** — `rm` it first, or you will run a stale script and draw wrong conclusions from it. The test script must `export DISPLAY=:0` before `99psion-session`, or every client dies with "failed to open display" and the screen stays black, which looks exactly like a desktop crash. And libmb applets render red and blue swapped under QEMU's CLCD while GTK renders correctly, so the card ejector looks blue in the emulator and pink on real hardware; do not "fix" that. QEMU has no sound device, so `minimix` fails with "Could not open /dev/sound/mixer: No such device or address" and puts an error dialog on the desktop. The node exists and is correct; `ENXIO` means no hardware behind it. On the machine it works. ## Traps that have already cost time **`/home/lx` must be uid/gid 1000.** The whole desktop runs as user `lx` (`99psion-session` does `su lx`). `chown.debugfs` is generated by walking the macOS host tree, which carries no target uids, so it will happily set `/home/lx` to root — and then `lx` cannot create `~/.matchbox` (the dock) or `~/.gpe` (the settings database holding theme and background). One wrong uid presents as three unrelated-looking symptoms. Always verify in the **built image**: ```sh debugfs -R 'stat /home/lx' rootfs.ext2 # must print User: 1000 Group: 1000 ``` **A boot script that "does nothing" is usually failing a guard clause.** `/etc/modules` was absent for the whole project, so `rcS.d/S20modutils.sh` exited on its third line (`[ -f /etc/modules ] || exit 0`) every boot and not one kernel module was ever loaded. Everything else was present — `depmod.26`, `modprobe`, the lot. Read the guards before suspecting the script. Psion's list is at `base-files/base-files/netbook-pro/modules` and is now installed. **`recovered/netbook-pro-kernel/defconfig` is NOT Psion's.** It says `# Linux kernel version: 2.6.17`, dated 26 July 2006 — OpenEmbedded's netBook Pro config, not the 2.6.9 these images boot. Reading `=m` out of it led to a wrong claim that dial-up and Bluetooth were dead; in fact **every driver on Psion's `/etc/modules` list is built into the booted kernel**, confirmed by the banner strings in the inflated `nBkProOs.img_cf` (`PPP generic driver version 2.4.2`, `Bluetooth: Core ver %s`, `RFCOMM ver %s`, `pxamci`, …). To ask what the running kernel contains, inflate it and look — do not infer it from a defconfig, and check your search pattern finds something it should before trusting a miss. **A build exiting 0 proves nothing here.** Grep the configure log for the feature you asked for, `readelf -d` the result and assert the library you expect is in `DT_NEEDED`, check `e_flags` is `0x2`, and exercise it behaviourally where you can. Psion's own flags are authoritative for *intent*, not proof the version accepts them — `abiword_2.0.11.oe` passes `--with-aspell`, which 2.0.11's configure does not have, and autoconf ignores it in silence. See [docs/06](docs/06-REBUILDING-PSIONS-APPS.md). **No Debian postinst has ever run on this image.** The card is assembled by copying files, so anything a Debian package sets up in its maintainer scripts has simply not happened — symlinks, generated config, users, alternatives. That is why `/usr/lib/cups/backend/` was empty for the whole project: Debian ships the backends in `backend-available/` and the postinst symlinks the selected ones in. When a package looks installed but does nothing, read its `postinst` before anything else. **Verify against code, not against file existence.** Several components hard-code their own search paths and `exit(1)` if a lookup fails. `gpe_find_icon()` searches `/usr/share/gpe/pixmaps/default`, but `gpe-buttonbox`'s *preset* icons resolve only from `/usr/share/gpe/overrides/` then `/usr/share/pixmaps/`. Checking that a file exists somewhere proves nothing — grep the source for the literal path. **Stale per-user state silently wins over `/etc`.** `gpe-confd` loads `/etc/gpe/xsettings.default` and `xsettings-default.d/` *only* when the user's sqlite db has no rows. `95psion-apps` copies the dock only when `~/.matchbox/mbdock.session` does not already exist. A leftover home directory will mask every change you make in `/etc`. **Don't tap the card-eject applet.** Psion's `eject.sh` ends with `/etc/pcmcia/ide stop hda`. On their NAND-booted machine `hda` was the CF slot; on this CF-booted image `hda` *is* the root disk. Installed verbatim because it is Psion's file, but it will unmount root. **Device nodes are not optional.** `mknods.debugfs` originally created no `/dev/random` or `/dev/urandom`, so libgcrypt aborted with "Fatal: no entropy gathering module detected" and took `gpe-buttonbox` and `gpe-appmgr` down with it — no dock, no desktop, from two missing nodes. `minimix` also wants the devfs-style `/dev/sound/mixer`, not `/dev/mixer`. **Two copies of the buttonbox icons exist.** `gpe-buttonbox` loads its own through `gpe_find_icon()` with `MY_PIXMAPS_DIR = "gpe-buttonbox/"`, which resolves under `/usr/share/gpe/pixmaps/default/gpe-buttonbox/`. The copies in `/usr/share/pixmaps/` are never read. Editing the wrong set changes nothing. **Wayback `url=*/name*` is not a valid match type.** It returns empty for files that *are* archived. A negative result from that query form means nothing — this produced a false "never archived anywhere" conclusion once already. The archive also rate-limits hard: a burst of per-file CDX queries starts returning an HTML "Temporarily Offline" page instead of JSON, which looks exactly like "not archived". `workspace/build/.wayback/index.json` holds one bulk listing of the whole GPE source directory so lookups are local. **`qbuild.sh` recreates `build.ext2` from scratch every run.** Anything left only inside the image is destroyed by the next job. The harness dumps `/build/out` back to the host and copies binaries into `workspace/built/psion-apps/` for exactly this reason — a set of fourteen binaries was lost once by starting the next build before extracting them. **Weak undefined symbols are not missing symbols.** Every gcc-built binary carries `_Jv_RegisterClasses` and `__gmon_start__` as weak undefined references that are meant to stay unresolved. `elfsyms.py` skips them; counting them flags every binary as broken. **`gpe-conf` must stay setuid root.** Its network, time and user applets re-exec through the suid path. `install-built.py` carries the stock file's mode across for this reason. --- ## Current state Working, verified in the emulator: boots from CF, Psion splash (byte-identical to Psion's), Psion GTK + matchbox theme (all 21 files byte-identical), the Today screen as the startup view, `gpe-appmgr` row view with rotated OFFICE/INTERNET/PIM/OTHER category labels, the TODAY/PROGRAMS/TASKS strip with the red power button, `gpe-buttonbox` dock (Desk, Docs, Email, Web, Word, Sheet, Calendar, Contacts), panel with card-ejector, battery and analogue clock. **Packaged for public release**, 30 Sep 2026: `PsionLX/`, 4.4 GB, for the RetroTechCollection archive. Six numbered folders and eight `.txt` documents — no `.md`, by request. Built by `workspace/scripts/mkdist.sh`. See [docs/03](docs/03-BUILDING-THE-IMAGE.md#packaging-for-release), **including the two NAND-erasing artefacts that must never be included**. **Audited 30 Sep 2026** against everything held locally — [docs/08](docs/08-INVENTORY-AUDIT.md). Three functional defects found and fixed: `/etc/modules` was absent so no kernel module ever loaded (dial-up and the whole Bluetooth stack were dead); Word had no spellchecker because the build disabled both backends; and `firefox-url` plus the gnome-vfs url-handlers were missing, so clicking a link did nothing. Also: Gaby and Printers had no `.desktop` and were invisible, `fc-cache` was on no card tree, and 14 MB of orphaned binaries were parked. A second, runtime pass then found that **printing could never have worked** — no CUPS backends, no `lp`, `cupsys` in no runlevel, no spool directory on the tmpfs `/var` — all now fixed from the same sarge package the card's `cupsd` came from. A full `DT_NEEDED` audit of all 1,150 ELF objects found two unresolved libraries, both resolved by adding the missing library rather than parking what wanted it. **Every `DT_NEEDED` on the card now resolves.** ### Psion's own applications **29 binaries are now Psion's builds**, not the stock GPE ones: their pinned version plus their patches, from the genuine release tarballs. 82 Psion patches across 23 packages. See [docs/06](docs/06-REBUILDING-PSIONS-APPS.md) for how, and for what could not be recovered: the `gkdial` 1.8.1 tarball (1.8.0 is built instead, with all three of Psion's patches; `workspace/build/job13.sh`) and an `xtscal` patched for the netBook's NVRAM. (Count as of 29 Sep 2026: `workspace/built/psion-apps/` holds 43 files. 42 are installed under their own names; Psion's matchbox-panel 0.8.1 sits beside the active panel. Gnumeric is now Psion's 1.3.93 with their nine patches, installed 28 Sep 22:56. AbiWord is still AbiWord 2.4 from the community GPE image; Psion's 2.0.11 build, `job-abiword.sh`, has not yet produced a binary.) Build with `scripts/psionise.py ` (reconstitute), `scripts/qbuild.sh ` (compile in the ARM chroot under QEMU), `scripts/install-built.py =` (verify against the image, then install). `scripts/guitest.sh` boots the result and photographs the desktop. `install-built.py` is meant to keep the file it replaces as `.gpe-orig`, **but most rebuilt files have no usable backup** (checked 29 Sep 2026 against the 42 installed files): - 5 have a `.gpe-orig` that really is the earlier file: gpe-appmgr, libeventdb.so.0, libgtkstylus.so.0.0.0, sol, totem. - 7 have a `.gpe-orig` **identical to the installed binary**, because the installer was run twice and the second run backed up the new build: LinNeighborhood, gkdial, gnumeric, gpdf, grdesktop, infoprint, scap. - 23 replaced a stock file and kept no backup at all: detect-stylus, gpe-beam, gpe-bluetooth, gpe-calendar, gpe-conf, gpe-contacts, gpe-dm, gpe-edit, gpe-gallery, gpe-info, gpe-login, gpe-shield, gpe-sketchbook, gpe-soundserver, gpe-todo, ipaq-sleep, the six mb-applets (battery, clock, launcher, menu-launcher, system-monitor, wireless) and wrapesd. - 7 had no stock file to replace: balsa, galculator, gpe-filemanager, gpe-wlancfg, mb-applet-volume, rdesktop, sync_serv. The stock originals can still be recovered from `gpe-fs-cf.tar.bz2`. One deliberate exception: `/usr/bin/matchbox-panel` is **not** Psion's 0.8.1 — it segfaults when a docked applet fails to start, which takes the whole bar down. Psion's build is kept beside it as `matchbox-panel.psion-0.8.1`. See [docs/02](docs/02-DESKTOP-INTERNALS.md). Reconstructed, because Psion's originals are CVS-only and did not survive: - **TODAY / PROGRAMS / TASKS strip.** Psion's `gpe-appmgr` tag 56 drew these and rendered the pages as HTML through `gpe-helpviewer`. The strip is rebuilt in `row_view.c` (`make_tabstrip`), with TODAY and PROGRAMS as two views of the same window and TASKS running Psion's own task scripts through `psion-tasks.sh`. - **`desktop-background.png`**, built by `scripts/mkbg.py` from Psion's own splash glyphs. - **Category groups.** `main.c` is patched from GPE's PIM/Internet/Games/Settings/Actions/Other to Psion's Office/Internet/PIM/Other, and 14 `.desktop` files re-categorised and given Psion's short labels (Email, Web, Word, Sheet, Calendar, Contacts...). **Gnumeric** ("Sheet"): superseded on 28 Sep 22:56 by Psion's own 1.3.93 with their nine patches (`workspace/build/job-gnumeric.sh`; the binary reports `Gnumeric 1.3.93` and only the 1.3.93 data and plugin directories remain). The history: it was first installed from Debian sarge `_arm.deb` packages — sarge's `arm` is OABI, so they run as-is. The package list came from Psion's own wiki page `software:psion:psionlx_applications`. 701 files added; 14 libraries the device already ships (libgcrypt, libgnutls, libgnomeprint, libart...) are **kept**, after verifying with `scripts/elfsyms.py` that the device's copies define every symbol the incoming binaries reference. Never blind-overwrite those — other installed programs link against them. **pppd** and **chat** come from sarge too, with libpam and libpcap: the rootfs carried none of ppp at all, although Psion ship a full `/etc/ppp` with GPRS peers and chatscripts. The 263 recipes (in 144 directories) break down as follows (corrected 29 Sep 2026; the earlier figures of 23 PDCVS and 149 `file://`-only were wrong): - **5** fetch from Psion's own CVS, `${PDCVS}` = `cvs.psiondev.com` (dead): gpe-appmgr-psion, gpe-buttonbox-psion, gpe-helpviewer, infoprint, psion-kernel. - **22** fetch from other CVS servers (handhelds.org, freedesktop.org, infradead.org, cairographics.org, gnome.org, sources.redhat.com, arm.linux.org.uk), counting the `-native` recipes that include a CVS recipe. - **25** are `file://`-only and need no network: the psion-* packages, agfa-fonts, backup, iconnect, mydocs, sync-serv, plptools, base-files, initscripts and a few others. - **202** fetch a released tarball, directly or through the `gpe` or `gnome` class. - **9** fetch nothing (the meta/task packages, evolution-helper and two binutils recipes). ### Kernel The card boots `nBkProOs.img_cf`: `Linux version 2.6.9-rc1-bk18-nb1 (fuchs@gibson) (gcc-Version 3.3.4) #1 Fri Mar 25 18:13:14 CET 2005`, a community rebuild from linuxtogo.org. **Psion's own image of the same kernel** is `nBkProOs.img` inside `auditeon/netbook-linux-sources.tgz` (3,613,045 B, sha256 `88dcfa0a...4b890`): `(autobuild@nexus) (gcc version 3.4.0) #1 Tue Jan 4 02:27:32 GMT 2005`, CF flags `0x10003`, built the same night as the soho-image. It is not used. Its initrd ("Netbook LX initial ramdisk boot script") handles 2.4 and 2.6 kernels, runs `NBLXLoad.sh` from `/dev/hda1` if present, then tries the NAND as JFFS2 **before** `/dev/hda2`. On a standard machine the NAND holds Windows CE, so that mount fails and it falls back to the card.