Skip to content

Instantly share code, notes, and snippets.

View bspguy's full-sized avatar
🧙

Roy Cohen bspguy

🧙
View GitHub Profile
@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" \
@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 / fix nvidia drivers for old gtx-730.txt
Last active April 3, 2023 06:46
fix nvidia drivers for old gtx-730
#remove new driver and install version 390.
sudo apt-get purge '*nvidia*'
sudo apt install nvidia-driver-390
sudo apt-mark hold nvidia-driver-390
@bspguy
bspguy / vivado_installation_fix_on_pop_os.txt
Last active March 8, 2023 11:34
Vivado 2022.2 installation on Pop!_OS
Vivado 2022.2 gets stuck in final processing i.e generating installed device list when trying to install in Pop!_OS
//fix by installing
sudo apt-get install libtinfo5
sudo apt install libncurses5
@bspguy
bspguy / petalinux_install_fix.txt
Created March 8, 2023 12:52
petalinux_install_fix_in_Pop!_OS
# error libtool missing
#install libtool-bin
sudo apt-get install libtool-bin
@bspguy
bspguy / pulseview_driver_fix.txt
Created March 30, 2023 06:58
Fix for Ubuntu/Pop_OS!: pulseview failed to open device generic/unspecified error
First in pulsview set the log level to 5.
If the error is fx2lafw: unable to get version info: libusb_error_timeout.
Then to fix it install the firmware with:
apt install sigrok-firmware-fx2lafw
@bspguy
bspguy / petalinux2023_packages.txt
Last active July 18, 2023 12:53
PetaLinux 2023.1 Quick Installation step for packages
#install packages
sudo apt-get install iproute2 gawk python3 build-essential gcc git make net-tools libncurses5-dev tftpd ddd zlib1g-dev libssl-dev libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib automake zlib1g:i386 screen gzip cpio xz-utils debianutils iputils-ping python3-jinja2 libtinfo5
#install petalinux
./petalinux-v2023.1-05012318-installer.run --dir /home/<username>/petalinux/2023.1/
@bspguy
bspguy / gist:0405723d8829e12cda7af975dbc6fe76
Created July 18, 2023 14:07
PetaLinux login hangs after entering username root (via minicom)
Possible fixes:
1. Disable minicom hardware flowcontrol.
2. Run fsck on the rootfs partition if booting from SD card.
@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 / fix_vivado_hangs.txt
Created October 19, 2023 09:38
Fix Vivado hangs when opening block design
In tcl console:
set_param gui.addressMap 0