This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Requires 'media-ctl' to parse the media devices | |
# Requires 'dot' to generate the media-graph png files. | |
# Identify all V4L2 devices | |
for v in /sys/class/video4linux/{v4l,video}*; | |
do | |
vn=`basename $v` | |
name=`cat $v/name` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Set up a Raspberry Pi 4 as a USB-C Ethernet Gadget | |
# Based on: | |
# - https://www.hardill.me.uk/wordpress/2019/11/02/pi4-usb-c-gadget/ | |
# - https://pastebin.com/VtAusEmf | |
if ! $(grep -q dtoverlay=dwc2 /boot/config.txt) ; then | |
echo "Add the line dtoverlay=dwc2 to /boot/config.txt" | |
exit | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Usage sd-card-writer image <target> | |
IMAGE=$1 | |
TARGET=${2:-/dev/mmcblk0} | |
if [ ! -b $TARGET ] ; then | |
echo "$TARGET is not a block device" | |
exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for m in /sys/bus/media/devices/media*; | |
do | |
mn=`basename $m` | |
model=`cat $m/model` | |
echo $mn: $model | |
done | sort -V; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
app=`basename $0` | |
# Todo: Autodetect system | |
system=ubuntu | |
toolchains=(gcc clang) | |
modules=(android cam qcam raspberrypi tracing gstreamer hotplug documentation tracing developer) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[bindings] | |
G = call hooks.getmail(ui) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
function initialiseControls(ids, keys, controls) | |
{ | |
split(ids, keys) | |
for (i in keys) controls[keys[i]] = "--------" | |
} | |
BEGIN { | |
print "Processing " ARGV[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:bullseye | |
ENV DEBIAN_FRONTEND noninteractive | |
ENV LANG='C.UTF-8' LC_ALL='C.UTF-8' | |
# Support multiarch builds to perform cross compilation | |
# https://wiki.debian.org/Multiarch/HOWTO | |
RUN dpkg --add-architecture arm64 | |
# Expected system requirements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
# Support debugging libcamera commands and applications. | |
# We default to enabling the most debug | |
# (that's why we're being used right) | |
FILTER="*" | |
LEVEL="0" |