Skip to content

Instantly share code, notes, and snippets.

View pudjamansyurin's full-sized avatar
:octocat:
Professional Religious

Puja Erawan pudjamansyurin

:octocat:
Professional Religious
View GitHub Profile
@pudjamansyurin
pudjamansyurin / rpi-kvaser-usb.sh
Last active July 29, 2023 16:29 — forked from adrienthebo/rpi-kvaser-usb.sh
Changed for Raspberry Pi 4
#!/bin/sh
set -u
set -e
export RPI_FW_REV=$(zcat /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz | sed -n '/.*firmware as of [0-9a-fA-F]\+/ {s/.*firmware as of \([0-9a-fA-F]\+\)/\1/;p;q}')
echo "Raspberry Pi 4 Firmware revision: $RPI_FW_REV"
export RPI_LINUX_REV=$(wget https://raw.github.com/raspberrypi/firmware/$RPI_FW_REV/extra/git_hash --quiet -O -)
echo "Raspberry Pi 4 Linux kernel revision: $RPI_LINUX_REV"