Skip to content

Instantly share code, notes, and snippets.

@strangemk2
Last active August 27, 2019 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strangemk2/0b85438e7e7b93327107736c28580e9e to your computer and use it in GitHub Desktop.
Save strangemk2/0b85438e7e7b93327107736c28580e9e to your computer and use it in GitHub Desktop.
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

Reference

Compile scanmem for Lakka

  • Follow steps on http://www.lakka.tv/doc/Compiling-Lakka/
    • Could terminate the compilation after gcc have been installed.
  • git clone https://github.com/scanmem/scanmem.git
  • 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