Skip to content

Instantly share code, notes, and snippets.

View bspguy's full-sized avatar
🧙

Roy Cohen bspguy

🧙
View GitHub Profile
@bspguy
bspguy / openbmc_cheatsheet.txt
Last active April 1, 2024 08:14
openBMC-cheetsheet
sudo apt install git python3-distutils gcc g++ make file wget \
gawk diffstat bzip2 cpio chrpath zstd lz4 bzip2
git clone https://github.com/openbmc/openbmc
cd openbmc
. setup romulus
bitbake obmc-phosphor-image
@bspguy
bspguy / petalinux-rt-patch.txt
Last active January 8, 2024 08:25
Apply Linux rt-patch to Petalinux
1. Find your kernel version according to the kernel Makefile. Example:
# SPDX-License-Identifier: GPL-2.0
VERSION = 6
PATCHLEVEL = 1
SUBLEVEL = 0
EXTRAVERSION =
NAME = Hurr durr I'ma ninja sloth
2. Clone the correct tag from github into <plnx-proj-root>/components/linux-xlnx-rt/:
git clone https://github.com/Xilinx/linux-xlnx.git
@bspguy
bspguy / vim_diff.txt
Created November 11, 2023 07:54
simple file diff using vim
vim -d <file1> <file2> -c 'set diffopt+=iwhite'
@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
@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 / 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 / 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 / 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 / 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 / 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