My CM4 doesn't have wifi, so I tried with a couple devices:
Both support monitor-mode and injection. I'm not sure, but I think kali's extended kernel has support for them buit in, but it also doesn't have Gpi2 LCD support.
| .PHONY: help clean | |
| help: ## Show this help | |
| @python tools/help.py "$(MAKEFILE_LIST)" | |
| clean: ## Remove all built files | |
| @rm -f FILES |
My CM4 doesn't have wifi, so I tried with a couple devices:
Both support monitor-mode and injection. I'm not sure, but I think kali's extended kernel has support for them buit in, but it also doesn't have Gpi2 LCD support.
| #!/bin/bash -e | |
| apt install -y build-essential debootstrap unzip git | |
| # create image | |
| qemu-img create -f qcow2 -o preallocation=metadata rknullos.qcow2 2G | |
| modprobe nbd max_part=8 | |
| qemu-nbd --connect=/dev/nbd0 rknullos.qcow2 | |
| # paritition |
I am using a mac M1 (arm64), so I didn't need binfmt-support/qemu-user-static installed.
docker run --platform="linux/arm64/v8" -it --rm -v $(pwd):/workdir -w /workdir ubuntu:eoan bash
cat << EOF > /etc/apt/sources.list
deb http://old-releases.ubuntu.com/ubuntu eoan main universe
deb http://old-releases.ubuntu.com/ubuntu eoan-updates main universe
| if (typeof atob === 'undefined') { | |
| var atob = a => new Buffer(a).toString('base64') | |
| } | |
| if (typeof btoa === 'undefined') { | |
| var btoa = a => Buffer.from(a, 'base64').toString('utf8') | |
| } |
| import serial | |
| port = serial.Serial('/dev/ttyTHS1', baudrate=115200, timeout=1) | |
| # Turn on the GPS | |
| port.write(b'AT+CGNSPWR=1') | |
| # Ask for the navigation info parsed from NMEA sentences | |
| port.write(b'AT+CGNSINF') |
| import { loadFile } from 'std' | |
| const regexes = { | |
| func: /^RLAPI ([\*A-Za-z0-9 ]+) ([\*A-Za-z0-9]+)\((.+)\);\W+(.+)/gm | |
| } | |
| // TODO: I need a lot more in/out types | |
| // map of input-type to function that the function-body to convert it | |
| const inputTypes = { |
| // I use this to generate a stub from MDN docs about canvas | |
| // run with deno run --allow-net tools/getdocs.js | |
| /* global fetch */ | |
| import { DOMParser } from 'https://deno.land/x/deno_dom/deno-dom-wasm.ts' | |
| function getDocs (doc, parent) { | |
| const info = {} | |
| if (doc?.querySelectorAll) { |
| #!/bin/bash | |
| if (! whiptail --title "Proton GE Setup" --yesno "This tool assumes you are running ubuntu/pop/etc 20.10. Are you?" 8 78); then | |
| echo "Run it again, when you get a cool OS. 😂" | |
| exit 1 | |
| fi | |
| if (whiptail --title "Proton GE Setup" --yesno "What kind of video card do you have, gamer?" 8 78 --no-button "AMD" --yes-button "NVidia"); then | |
| CARD=NVIDIA | |
| else |
| #!/bin/bash | |
| # Install Apple fonts on Linux | |
| # requires p7zip-full installed | |
| getFont() { | |
| NAME=$1 | |
| APPLENAME=$2 | |
| DIR=$3 | |
| DIR=${DIR:="/tmp"} |