Raspberry Pi Notes

PiBoy Color
3.2″ SPI TFT Screen
Raspberry Pi Zero
Raspberry Pi GPIO Header
16GB MicroSD Card
Micro-USB to USB Adapter
NES USB Controller

PiBoy Advance
3.5″ SPI TFT Screen HDMI
Raspberry Pi 2/3
32GB MicroSD Card
SNES USB Controller

PiStation Portable
3.5″ SPI IPS Screen
Raspberry Pi 3
32GB MicroSD Card
WiiU Classic Controller
WiiU Classic Controller Adapter

PiStation Portable
Raspberry Pi 3B+
64GB MSata
Element14 Desktop Case
800×480 UPerfect HDMI Screen
Logitech F310 Controller

Test Bench
Raspberry Pi Zero W
32GB Micro-SD
800×480 UPerfect IPS HDMI
8BitDo SnesPro Controller
Micro HDMI Adapter

Android Device
Galaxy S9 Black
DEX Dock
Bluetooth Keyboard
Bluetooth Mouse
Bluetooth Controller (xinput)
15″ 1080p

Top NES and GBC Games

Nintendo

1. Mario 1/3
2. Zelda 1/2
3. Castlevania 1/3
4. Metal Gear
5. Final Fantasy 1/2/3
6. Tetris
7. Megaman
8. TMNT 1/2/3
9. Ninja Gaiden 1/2
10. Metroid

Gameboy Color

1. Link’s Awakening
2. Oracle of Ages / Seasons
3. Pokemon Crystal
4. Shantae
5. Pokemon TGC
6. Megal Gear
7. Stranded Kids
8. R-Type DX
9. Dragon Warrior Monsters 1/2
10. Mario Tennis

Latte Panda Access Point

So the latte-panda has a built in antenna for wifi. Unfortunately I throw it away thinking that I wouldn’t need it. In terms of setting up a wifi access point, I think I can do it just fine with a usb wifi dongle, but it definitely adds more lights to something that seems to keep gaining more and more light sources. Having built in wifi and being able to use the onboard micro-sd card would have gone a long way to making a more sleek network host. I guess I’ll just have to keep going.

So for making an access point, I have two network devices. The ethernet enx00e04c367344, and wifi, wlan0. So I need to install and configure hostapd, install dnsmasq. Set up the wifi interface, and forward the traffic with iptables.

Mounting the Latte Panda

So something that’s kind of bullshit is the Debian installer wasn’t able to partition the onboard sd-card slot and mount /var for me during the installation. I figured that I could just mount the micro-sd card post install, except the micro-sd reader wasn’t seen at all by the operating system. So I ended up having to get a usb adapter for the micro-sd card. Kind of annoyed as if I wanted to use a USB drive for storage, I probably would have bought one. Storage is probably one of the wonky aspects of the first board, and by adding m.2 slots something they address in the latte panda alpha. I don’t have that kind of money which is why I’m using the old cheap one, but it’s still weird that this board doesn’t have a sata or m.2 sata slot, it would make the board a lot more functional.

So now that I have my micro-sd card mounted via usb like a pleb, the next step is to mount it on /var. So I need to copy everything in var to the sd card, add the micro-sd card to fstab, and then reboot and pray everything works.

$ sudo mount /dev/sda1 /mnt
$ sudo /bin/cp -arpx /var/* /mnt
$ sudo touch /mnt/sd.txt

Looks like I need the uuid to mount with fstab. I don’t think there should be too much problem posting the actual values for a local drive.

$ sudo blkid
/dev/mmcblk0: PTUUID="a7e4664a-ce38-4434-9c46-977861c882fa" PTTYPE="gpt"
/dev/mmcblk0p1: UUID="C07C-6F0D" TYPE="vfat" PARTUUID="62b5c747-0bcd-4662-b4e4-a0f673edfb53"
/dev/mmcblk0p2: UUID="5f141daa-1b45-49a0-97b1-629e9b81eaed" TYPE="ext4" PARTUUID="ab33c7b1-e45c-4e7d-a5b7-edc7fe87f9cb"
/dev/mmcblk0p3: UUID="c452f942-30d8-4d91-aa64-9541a0174257" TYPE="swap" PARTUUID="1e044fb1-40dd-4e15-a2ff-60b0118f5375"
/dev/sda1: UUID="526074a8-1ce7-4e30-a3df-2f693383ec78" TYPE="ext4" PARTUUID="17869b7d-01"

So I can probably copy the root mount (since it’s for ext4), and then use the same format, change the uuid and mount on /var.

#                
# / was on /dev/mmcblk0p2 during installation
UUID=5f141daa-1b45-49a0-97b1-629e9b81eaed /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/mmcblk0p1 during installation
UUID=C07C-6F0D  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/mmcblk0p3 during installation
UUID=c452f942-30d8-4d91-aa64-9541a0174257 none            swap    sw              0       0
UUID=526074a8-1ce7-4e30-a3df-2f693383ec78 /var               ext4    errors=remount-ro 0       1

Next step is to reboot and hope the the latte panda can actually reboot. This is a completely different side note, but the latte panda has three buttons. And I always have to mash random combinations of each button several times until it actually boots. So i’m hoping it will cooperate and reboot for me on the network, otherwise I might have to rethink this.

Edit:

It looks like the latte won’t boot without a button being pressed. That is pretty objectively terrible. Though after a successful reboot it looks like thr sd.txt file I made is there, so I’ll just try and avoid rebooting over the network, when possible. And continue to ponder the utility of using a micro-sd as a standard USB drive. In terms of price it’s probably the same thing as smaller drives generally end up being integrated micro-sd adapaters, hard drives make noise when reading from them, and sata-to-usb SSD’s are kind of in their own class of stupid. I’m mostly salty about not being able to use the on-board micro-sd card.

Getting Jiggy with the Latte Panda

Originally I was thinking of using multiple single board computers on a network to perform different tasks. But after buying a 256GB micro-SD card which I had intended to use for a Raspberry Pi, I had a change of heart. The latter panda has 32GB of on board storage which I can use to host the OS, and then with 256GB of extra storage, rather than having a lot of different devices on the network, I can probably install everything to the latter panda.

So what’s the plan? There are a bunch of points I want to hit on this. I guess I should start with the high priority ones and work from there.

1. Access point – I want to be able to host a wifi network and have clients, my laptop and cell phone, connect to this. The advantage of doing this is I can set up a DNS to be able to define name for locations on the network. And not have to remember ip addresses of my network clients, or have to manually define a DNS for each client on the network.

2. KVM – For the most I don’t need to use windows for common tasks. The one thing I find myself using windows for is disk mounting tools like Daemon tools lite. So I want to host a virtual windows machine that I can use to mount a disk image and extract the files from the disk on the network.

3. Samba – This is a pretty simple, samba is a useful utility for hosting files on a network.

4. Nextcloud – I tried hosting this on a Pi and it was slow. So I want to try the latte-panda to see if works better with an intel processor and 2GB of RAM.

Approach:

In terms of approach I want to host the system on the 32 GB of internal storage and then /var on the 256 GB micro-sd card. Next I want to try getting the access point. And from there KVM. For KVM i can probably get away with the NAt interface as I plan on using everything with samba, so I don’t need a bridged network or anything like that. For samba i can host the files on /var/data. And for nextcloud I can store the files on /var/www/apache, or /var/www/nextcloud? I think I want to use apache for nextcloud exclusively and then use nginx as a reverse proxy server.

Hardware Plans

Router Pi – a pi that acts as a router, dns and wifi access point for the rest of the network. To avoid overloading it, not much should be included for the micro-SD card. Nginx can be used for hosting static content for dashgl. (8GB)

Latte Panda – Set this up with CentOS 7, to be used with the FBX SDK, Amazon Kindle SDK, and to host KVM guests on the network. 256GB of micro-SD card should also be included for storing roms and rom files on the network via samba. Nginx can also be used to host static files.

Libreboard – Set this up with Ubuntu or Debian (which ever one works), and set up apache, php and mariadb to host a next cloud server on it, and also host images and media over the network with samba.

PSP – psx and psp. 64GB or 256?

Pi test bench – Raspberry pi 3 with 5″ 800×600 monitor running retro pi for running and testing ports, also Use nes romhacks, classic snes games, gba

Pi screen test 1 – Raspberry pi 3 running 2.4″ 320×240 spi interface

Pi screen test 2 – Raspberry pi 3 running 3.5″ 320×240 hdmi interface

Pi Screen test 3 – Raspberry pi 3 running 3.5″ 800×600 spi interface

Pi Desktop – Raspberry pi 3B+ with i3wm desktop 64GB

——-

Pretty happy with everything except for the redundant devices hosting services on the network. The latte panda is the one device that I definitely need to use because of the KVM host. I wonder if I can install to the 32GB of included eMMC for kvm (hosting windows xp for daemon tools), fbx sdk and kindle. And then I could host the network with a usb wifi adapter (for just my computer and cell phone). And then use a combination of storage for the applications (nextcloud -> micro-sd, samba-> usb), and then use nginx to host multiple domains locally.