Skip to content

Instantly share code, notes, and snippets.

@danmack
danmack / nix-alpine.org
Last active June 26, 2024 11:19
install NIX package manager on Alpine Linux

NIX Package Manager Install on Alpine Linux

System Information

  • alpine 3.17.1, 3.18, 3.19 and edge x86-64
  • multiple linux kernels worked 6.1.8-lts w/zfs and 6.6.8-lts
  • edge, testing apk repos enabled

Preparation

@trabucayre
trabucayre / gen_pm_cfg.tcl
Created January 22, 2022 06:35
Zynq Ultrascale+ MPSoC: pm_cfg_obj.c generation script
# xsct -nodisp -sdx gen_pm_cfg.tcl project.xsa
# open the hardware design and produces:
# - bsp files
# - fsbl structure
#
# According to
# https://lucaceresoli.net/zynqmp-uboot-spl-pmufw-cfg-load/
# pm_cfg_obj.c is required by pmufw (Platform Management Unit) at boot time
# used with https://github.com/lucaceresoli/zynqmp-pmufw-builder
# in uboot context allows to build a fully functional uboot ready
@TCWORLD
TCWORLD / USBBlasterFirmware.hex
Last active April 30, 2024 18:04
PIC18F14K50 Cheap Altera JTAG USB Blaster Firmware (Schematic in Comments)
:020000040000FA
:0600000014EF18F01200DD
:0600080004EF08F01200F5
:060018000CEF08F01200DD
:0608000014EF18F01200D5
:060808000FEF08F01200E2
:0608180012EF08F01200CF
:0610000014EF18F01200CD
:021006000000E8
:061008000FEF08F01200DA
@geerlingguy
geerlingguy / increase-pci-bar-space.sh
Last active May 7, 2024 15:31
Increase the BAR memory address space for PCIe devices on the Raspberry Pi Compute Module 4
#!/bin/bash
# The default BAR address space available on the CM4 may be too small to allow
# some devices to initialize correctly. To avoid 'failed to assign memory'
# errors on boot, you can increase the range of the PCIe bus in the Raspberry
# Pi's Device Tree (a .dtb file specific to each Pi model).
#
# You should probably read up on Device Trees if you don't know what they are:
# https://www.raspberrypi.org/documentation/configuration/device-tree.md
#