glint-nes on ArchLinux
I took some time today to experiment with using ArchLinx as the base OS for this project. ArchLinx boots in about half the time of Raspbian at 15 seconds and the rootfs is about 500+M to start. However, I got stuck trying to compile retroarch, and don't want to spend to much time on this now. I would rather combine efforts with the existing OS being used.
Here are some steps I did from a fresh ArchLinux install:
first update and upgrade any existing packages
pacman -Sy pacman -Syu
setup pacman keyring
pacman-key --init
reboot
pacman -S --noconfirm base-devel
pacman -S --noconfirm git
pacman -S --noconfirm openal
pacman -S --noconfirm mesa
pacman -S --noconfirm libgles
pacman -S --noconfirm sdl boost freeimage freetype
echo -n "/opt/vc/lib/" > /etc/ld.so.conf.d/06rpi.conf ldconfig
retroarch
wget https://aur.archlinux.org/packages/re/retroarch-rbp-git/retroarch-rbp-git.tar.gz tar xvfz retroarch-rbp-git.tar.gz cd retroarch-rbp-git makepkg -s --asroot --noconfirm pacman -U --noconfirm retroarch-rbp-git-20121224-1-armv6h.pkg.tar.xz
libretro
wget https://aur.archlinux.org/packages/li/libretro-fceu-git/libretro-fceu-git.tar.gz tar xvfz libretro-fceu-git.tar.gz cd libretro-fceu-git
update PKGBUILD: arch=('armv6h' 'i686' 'x86_64')
makepkg -s --asroot --noconfirm pacman -U --noconfirm libretro-fceu-git-20121224-1-armv6h.pkg.tar.xz
mkdir -p /root/glint-es curl -L https://raw.github.com/normalocity/glint-nes/master/bin/glint-es > /root/glint-es/glint-es chmod +x /root/glint-es/glint-es
mkdir -p /root/.glint-es mkdir -p /root/roms/ curl -L https://raw.github.com/normalocity/glint-nes/master/config/es_systems.cfg > /root/.glint-es/es_systems.cfg curl -L https://raw.github.com/normalocity/glint-nes/master/config/es_input.cfg > /root/.glint-es/es_input.cfg curl -L https://raw.github.com/normalocity/glint-nes/master/config/es_theme.xml > /root/.glint-es/es_theme.xml
curl -L https://raw.github.com/normalocity/glint-nes/master/media/glint-font.ttf > /usr/share/fonts/truetype/glint-font.ttf curl -L https://raw.github.com/normalocity/glint-nes/master/media/glint-nes-bg.png > /root/.glint-es/glint-nes-bg.png curl -L https://raw.github.com/normalocity/glint-nes/master/media/glint-nes-fsbox-bg.png > /root/.glint-es/glint-nes-fsbox-bg.png
Create config file for running RetroArch
mkdir -p /root/.config/retroarch/ cd /root/.config/retroarch/ curl -L https://raw.github.com/normalocity/glint-nes/master/config/retroarch.cfg > retroarch.cfg
Setup audio module
curl -L https://raw.github.com/normalocity/glint-nes/master/config/modules > /etc/modules
echo "gpu_mem=128" >> /boot/config.txt
autoremove and autoclean
pacman -Qdtq | pacman -Rs - pacman -Scc --noconfirm
Reboot
shutdown -r now
My work on the current Raspbian image + the cleanup script was very nearly successful. Got everything working up until ES, which is having some kind of permissions problem that I don't think should exist. I might have a typo in the install script somewhere that's preventing permissions being set somewhere.
The work on ArchLinux sounds promising. Let me know how it goes.
Going to get some sleep.
-Jeff
On Sun, Dec 23, 2012 at 1:59 AM, Brandt Daniels [email protected]:
I took some time today to experiment with using ArchLinx as the base OS for this project. ArchLinx boots in about half the time of Raspbian at 15 seconds and the rootfs is about 500+M to start. However, I got stuck trying to compile retroarch, and don't want to spend to much time on this now. I would rather combine efforts with the existing OS being used.
Here are some steps I did from a fresh ArchLinux install:
#first update and upgrade any existing packages pacman -Sy pacman -Syu
#setup pacman keyring pacman-key --init
reboot
pacman -S --noconfirm base-devel
pacman -S --noconfirm git
pacman -S openal
pacman -S --noconfirm mesa
wget https://aur.archlinux.org/packages/re/retroarch-rbp-git/retroarch-rbp-git.tar.gz tar xvfz retroarch-rbp-git.tar.gz cd retroarch-rbp-git makepkg -s --asroot --noconfirm
ran into a problem here not being able to compile retroarch
Here are started to re-write the glint-nes install script:
#!/usr/bin/env bash
BASEURL="https://raw.github.com/normalocity/glint-nes/master"
CURL="/usr/bin/curl" PACMAN="/usr/bin/pacman" MV="/bin/mv" MKDIR="/bin/mkdir" Update root user's profile, Raspberry Pi config file, and auto-login inittab
$CURL -sL $BASEURL/config/.profile > $HOME/.profile $CURL -sL $BASEURL/config/raspberry-pi-config.txt > /tmp/config.txt $MV /boot/config.txt /boot/config.txt.orig $MV /tmp/config.txt /boot/config.txt $MKDIR -p /var/log/glint
$CURL -sL $BASEURL/scripts/inittab > /tmp/inittab $MV /etc/inittab /etc/inittab.orig $MV /tmp/inittab /etc/inittab Update the root ca-certificates and the already installed packages
$PACMAN -S --noconfirm ca-certificates libxv
— Reply to this email directly or view it on GitHubhttps://github.com/normalocity/glint-nes/issues/21.
Apparently the compilation issue was fixed by the maintainer:
https://github.com/Themaister/RetroArch/issues/103
Cool.
On Sun, Dec 23, 2012 at 2:24 PM, Brandt Daniels [email protected]:
Apparently the compilation issue was fixed by the maintainer:
Themaister/RetroArch#103https://github.com/Themaister/RetroArch/issues/103
— Reply to this email directly or view it on GitHubhttps://github.com/normalocity/glint-nes/issues/21#issuecomment-11650201.
Having trouble starting es:
[root@alarmpi ~]# glint-es/glint-es glint-es/glint-es: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory
the file needed is in '/opt/vc/lib'
Ah yes. Remove and reinstall libraspberrypi0 via your package manager. The cleaning script purges the /opt folder, which breaks this. On Dec 24, 2012 1:57 AM, "Brandt Daniels" [email protected] wrote:
Having trouble starting es:
[root@alarmpi ~]# glint-es/glint-es glint-es/glint-es: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory
the file needed is in '/opt/vc/lib'
— Reply to this email directly or view it on GitHubhttps://github.com/normalocity/glint-nes/issues/21#issuecomment-11655826.
Depending on how much space it saves, we may just want to remove that line from the cleaning script.
On Mon, Dec 24, 2012 at 8:48 AM, Jeff Lunt [email protected] wrote:
Ah yes. Remove and reinstall libraspberrypi0 via your package manager. The cleaning script purges the /opt folder, which breaks this. On Dec 24, 2012 1:57 AM, "Brandt Daniels" [email protected] wrote:
Having trouble starting es:
[root@alarmpi ~]# glint-es/glint-es glint-es/glint-es: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory
the file needed is in '/opt/vc/lib'
— Reply to this email directly or view it on GitHubhttps://github.com/normalocity/glint-nes/issues/21#issuecomment-11655826.