Skip to content

Instantly share code, notes, and snippets.

I'm using LTE Cat.1 6 Click with a SIMCom SIM7600SA module on it. ModemManager is giving me some grief with it on BalenaOS 6.5.2.

root@89dd143:/sys/devices/platform/bus@f0000/2850000.serial/driver# udevadm info /dev/ttyS0
P: /devices/platform/bus@f0000/2850000.serial/tty/ttyS0
N: ttyS0
L: 0
E: DEVPATH=/devices/platform/bus@f0000/2850000.serial/tty/ttyS0
E: DEVNAME=/dev/ttyS0
E: MAJOR=4
@jadonk
jadonk / gist:aefb15f313c417bbaeb03ad2803c0f03
Created September 22, 2025 23:16
Hack around cc1352-flasher getting bad file type
cat <EOF >~/.magic
216 belong 0x7bb972b9 application/octet-stream
EOF
export MAGIC="$HOME/.magic"
west flash -d build/bcf/ot_coap_server
git clone https://github.com/zephyrproject-rtos/zephyr
cd zephyr
python -m venv zephyr-env
source zephyr-env/bin/activate
pip install -r scripts/requirements.txt
pip install cc1352-flasher
west init -l .
west build -b beagleconnect_freedom -d build/bcf/echo_server samples/net/sockets/echo_server -- -DOVERLAY_CONFIG=overlay-802154-subg.conf
west build -b beagleconnect_freedom -d build/bcf/ot_shell samples/net/openthread/shell
west build -b beagleconnect_freedom -d build/bcf/ot_coap_client samples/net/openthread/coap -T sample.net.openthread.ftd.coap.client
what board should I use?
Answer
To determine which board to use, let's consider the options provided in the documentation.
You can check out the different boards at: index.rst.
This document lists various boards, including BeaglePlay, BeagleBone, PocketBeagle, and BeagleBoard, each with its unique features and purposes.
@jadonk
jadonk / Makefile
Last active April 10, 2025 00:50
Broken AM62x PRU code with dmesg log
# This Makefile tries to provide some defaults for building single-file programs on Beagle
# platforms in part by adding an additional suffix ahead of the source file extension. The
# original purpose was to provide ability to run these programs in the Cloud9 IDE environment.
#
# Optional definitions
#
# TARGET - executable to create (currently supports single .c, .cpp or .asm source)
# should have .<proc>(<n>) extension (lower case, check below for valid options)
# without TARGET, as of now, we don't have any build targets
# TODO: work with a list of targets, rather than a single file
import time
import datetime
import gpiod
gpio2 = gpiod.find_line('GPIO2')
gpio2.request(consumer='five_min_toggle', type=gpiod.LINE_REQ_DIR_OUT, default_val=0)
prev_rem = -1
while True:
now = datetime.datetime.now()
Running with gitlab-runner 17.0.0 (44feccdf)
 on debian-docker-docker -8zNEeXF4, system ID: s_c027f9ed499e
section_start:1718207134:prepare_executor
Preparing the "shell" executor
Using Shell (bash) executor...
section_end:1718207134:prepare_executor
section_start:1718207134:prepare_script
Preparing environment
Running on debian-docker-docker...
section_end:1718207134:prepare_script
#!/usr/bin/perl
#############################################################################
# PixelOverlay-Countdown.pl - Scroll a Christmas Countdown across a matrix
#############################################################################
# Set our library path to find the FPP Perl modules use lib "/opt/fpp/lib/perl/";
use lib "/opt/fpp/lib/perl/";
print "#1\n";
# Use the FPP Memory Map module to talk to the daemon
@jadonk
jadonk / rapid-clone.sh
Created August 26, 2022 01:34 — forked from StaticRocket/rapid-clone.sh
Quickly backup and deploy bootable SD cards with variable size ext4 root partitions
#!/bin/sh
set -e
[ -z "$PART_PREFIX" ] && PART_PREFIX=''
DD_ARGS='bs=4K status=progress conv=fsync'
backup() {
src="$1"
dst="$2"
# /etc/systemd/system/barrier.service
[Unit]
Description=Barrier Client daemon
After=display-manager.service network.target
[Service]
Environment="XAUTHORITY=/home/debian/.Xauthority"
User=debian
Group=debian
ExecStart=barrierc --name AI64 --disable-crypto --debug INFO -f 192.168.0.22