Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Manual compile scanmem for Lakka

Headless setup lakka on Raspberry pi zero w

The difficult part is rpi zero w don't have lan or usb-a port. It's impossible to setup bluetooth game pad without ssh and vice versa.

  • Flash memory card follow this document
  • ssh setup
mount /dev/sda1 tmp
vim tmp/cmdline.txt
# boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 quiet  vt.global_cursor_default=0 loglevel=2
# ->
# boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 ssh quiet  vt.global_cursor_default=0 loglevel=2
  • Boot Lakka to finish first step setup
  • Wifi setup
mount /dev/sda2 tmp
vim tmp/.cache/connman/mywifi.config
# [service_wifi_mywifi]
# Type = wifi
# Name = mywifi
# Passphrase = passphrase
  • Boot Lakka again
  • Game pad setup


Compile scanmem for Lakka

  • Follow steps on
    • Could terminate the compilation after gcc have been installed.
  • git clone
  • As autoconf check library dependencies and map file under /proc, it's hard to pass the configure, so make config.h manually.
#define PACKAGE_VERSION "0.00"
#define PACKAGE_BUGREPORT "a@a.a"
typedef unsigned int  uint;
  • armv7ve-libreelec-linux-gnueabi-gcc *.c -o scanmem -static

Use scanmem on Lakka

  • Start scanmem using scanmem -p `pgrep retroarch`
  • Type option region_scan_level 3 in scanmem cui. (Because emulator cores work as dynamic library of retroarch, we have to expand the search region)
  • Follow the standard usage of scanmem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.