An unlikely PowerPC desktop
Posted: 2024-12-20
A while ago, someone offered me 40 WiFi access points and a few switches, that were previously installed in a student dormitory. I like free hardware, so I accepted.
Note: This post is split up because I misunderstood how phpBB works. I hope it's still readable.
Quick facts:
But I'm curios, so I wanted to run my own code on it.
We (a few friends at CCCAC, and I) tool a look at the official update files that can be downloaded from the LANCOM website but didn't fully understand the format. They contain PowerPC code and some compressed data, but there were gaps in the LZMA stream. Turns out, this "UPX" (not to be confused with the other UPX) is a LANCOM-specific format, so I wrote some tools to parse/generate it.
One thing to know about LANCOM is that they've avoided using the usual open source stack of U-Boot + Linux + OpenWRT for as long as possible. This device runs proprietary first- and second stage bootloaders, and a proprietary operating system called LCOS.
Hands on
After buying the right kind of serial port adapter cable (12€ on eBay), I watched it boot. This unit had inexplicably erased its firmware, so it offered "Xmodem Upload":
Without seeing the bootloader's code, I wasn't sure what kind of file it expected; but the bootloader was in flash. We (a few friends at CCCAC, and I) desoldered the flash and tried to read it with the Glasgow Interface Explorer, which supports parallel NAND flash (following the "ONFI" standard), but it didn't work reliably.
Note: This post is split up because I misunderstood how phpBB works. I hope it's still readable.
Quick facts:
- Product: LANCOM L-321agn Wireless (R2)
- SoC: Freescale/NXP MPC8314E (32-bit PowerPC e300)
- RAM: 128 MiB
- Flash: 256 MiB parallel NAND flash
- Ethernet: 1 Gbit/s
- WLAN: Atheros AR8035-A (ath9k) mini-PCIe card
- a second unpopulated mini-PCIe slot
- Power supply: 12V barrel jack
- Serial port: LANCOM 8-pin DIN connector
But I'm curios, so I wanted to run my own code on it.
We (a few friends at CCCAC, and I) tool a look at the official update files that can be downloaded from the LANCOM website but didn't fully understand the format. They contain PowerPC code and some compressed data, but there were gaps in the LZMA stream. Turns out, this "UPX" (not to be confused with the other UPX) is a LANCOM-specific format, so I wrote some tools to parse/generate it.
One thing to know about LANCOM is that they've avoided using the usual open source stack of U-Boot + Linux + OpenWRT for as long as possible. This device runs proprietary first- and second stage bootloaders, and a proprietary operating system called LCOS.
Hands on
After buying the right kind of serial port adapter cable (12€ on eBay), I watched it boot. This unit had inexplicably erased its firmware, so it offered "Xmodem Upload":
Code: Select all
WDG:
@C@
memory test: 1 2 3 4 5 OK
Found primary and mirror bbt
NO VALID FIRMWARE!
# FLASHROM-Upload
| LANCOM L-321agn Wireless (R2)
| Copyright (C) LANCOM Systems
| Ver. 4.00.0001 / 12052014 / 132211
Start Xmodem Upload
...
Receive Error
Upload aborted