Skip to content

Instantly share code, notes, and snippets.

View bspguy's full-sized avatar
🧙

Roy Cohen bspguy

🧙
View GitHub Profile
@bspguy
bspguy / clone.bash
Last active August 23, 2023 12:45 — forked from milanboers/clone.bash
Clone all repositories of a Github user
sudo apt install curl
curl -s https://api.github.com/users/bspguy/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone
@bspguy
bspguy / qemu-debian-powerpc32.md
Created September 8, 2022 13:54 — forked from nstarke/qemu-debian-powerpc32.md
Create Debian PowerPC32 VM Under QEMU

Create Debian PowerPC32 VM Under QEMU

I have a collection of QEMU VMs for different CPU Architectures. In an attempt to fill in some gaps on architectures I lacked VMs for, I decided to spin up a PowerPC32 VM under QEMU. I chose Debian-PowerPC as the OS.

Gathering Resources

Install the prerequisite PowerPC packages:

# apt-get install qemu-system-ppc openbios-ppc
@bspguy
bspguy / QEMU PPC Setup for Debian
Created September 5, 2022 14:35 — forked from ross-newman/QEMU PPC Setup for Debian
Building PPC Linux code using QEMU on Ubuntu 18.04 LTS
#!/bin/bash
echo "Building Debina 10 QEMU instance..."
wget https://cdimage.debian.org/cdimage/ports/10.0/powerpc/iso-cd/debian-10.0-powerpc-NETINST-1.iso
sudo apt install qemu
# Create new disk for install
qemu-img create -f qcow2 debian10.qcow2 2000M
# Boot the install image
qemu-system-ppc -L pc-bios -boot d -M mac99 -m 1024 -net nic,model=sungem -net user -hda debian10.qcow2 -cdrom ./debian-10.0-powerpc-NETINST-1.iso -g 1024x768x8
# Run the image
qemu-system-ppc -L pc-bios -boot c -prom-env "boot-device=hd:,\yaboot" -prom-env "boot-args=conf=hd:,\yaboot.conf" \