This gist assumes you have an odroid n-2, micro sd card, usb keyboard/mouse, power cable, wired internet, HDMI cable, computer monitor, and a Windows computer (with some way to connect the micro sd card).
(See https://ameridroid.com/blogs/ameriblogs/flashing-emmc-or-microsd-card for instructions)
- Download and install balenaEtcher - https://www.balena.io/etcher/
- Download Ubuntu operating system image for odroid. The MATE desktop lets you use a mouse. The file you download should have a
.img.xz
extension. https://wiki.odroid.com/odroid-n2/os_images/os_images - Insert SD card. Use balenaEtcher to flash the drive with the ubuntu image.
- Verify the odroid can boot up ubuntu. To do this, insert the microSD card and then the power cable. The LED lights on the odroid will be red/blue when it works.
- Connect keyboard/mouse via usb. Connect ethernet cord.
- The default username and password for this Ubuntu image is
odroid
/odroid
. - Open
MATE Terminal
by clicking on top left menu and searching for it. - Update all dependencies.
sudo apt update && sudo apt upgrade
- Create a directory where you will compile things. I call it
code
mkdir ~/code
cd ~/code
- Install dependencies required by GLide64. https://github.com/gonetz/GLideN64/wiki/Build-From-Source-(Linux)
# Note that GLide wiki encourages libpng16-dev but that one is deprecated and replaced by libpng-dev
sudo apt install git gcc g++ cmake build-essential libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libfreetype6-dev zlib1g-dev libpng-dev
- Clone the libretro repo:
git clone https://github.com/smash64-dev/mupen64plus-libretro-nx.git
cd mupen64plus-libretro-nx
- Change to the
raphnetraw
branch
git checkout raphnetraw
- Modify
Makefile
so thatHAVE_RAPHNET_INPUT ?= 1
. I do this withvi Makefile
but if you don't know vim maybe try a different text editor. Also, changeGL_LIB
to-lGLESv2
rather than-lGLESv3
within the ODROID section. FOr me rn this is line 249 of the Makefile - Build mupen64plus-libretro-nx. Note that this can take 10+ mins. Do
make clean
after changing any build configuration (makes it a slower build, but more likely to work).
make clean
make BOARD=N2 platform=odroid64
- Install retroarch
sudo add-apt-repository ppa:libretro/stable && sudo apt-get update && sudo apt-get install retroarch
- Download the
.info
file that helps RetroArch know about Mupen as a "core"
wget -O mupen64plus_next_libretro.info https://raw.githubusercontent.com/smash64-dev/SmashELEC/smashelec/packages/smashelec/mupen64plus-nx-se/config/mupen64plus_next_smash_libretro.info
- Download the ROM(s) you want to play. I like putting them in google drive and then typing in the link manually in odroid firefox to do this. They can be stored anywhere.
- Plug in raphnet adapter.
- See if the game loads and controller functions
retroarch -L mupen64plus_next_libretro.so ~/Downloads/ROMNAME.z64