Skip to content

Instantly share code, notes, and snippets.

View sarnold's full-sized avatar

Steve Arnold sarnold

View GitHub Profile
@sarnold
sarnold / bblayers.conf
Last active June 21, 2016 18:28
custom bblayers.conf example for poky build, krogoth branch
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
POKYROOT = "/home/user/beagleboard-bsp/poky"
BBLAYERS ?= " \
${POKYROOT}/meta \
@sarnold
sarnold / local.conf
Last active June 21, 2016 18:29
custom local.conf example for poky build, krogoth branch
DISTRO = "poky"
PACKAGE_CLASSES = "package_ipk"
# for meta-beagleboard kernels add:
## kernel-devicetree-overlays kernel-module-musb-dsps
CORE_IMAGE_EXTRA_INSTALL += "\
kernel-modules \
libcgroup \
nano \
@sarnold
sarnold / udoo-neo-sdcard.rst
Last active July 8, 2020 11:17
Setup Udoo Neo with mainline kernel and u-boot, connect with usb serial/ethernet

Create a mainline SDCard for Udoo Neo boards

Following the general process documented `here`_ (for the Udoo board) we can also create the equivalent card for the basic Neo board variants using mainline u-boot and linux-stable (with one or two minor changes). Note the card has a single partition for the rootfs and no /boot partition.

Since the state of vendor-specific support for various boards in mainline can be highly variable, we'll add the same features for Neo boards that

@sarnold
sarnold / neo-basic-dmesg.txt
Created November 9, 2017 21:11
Neo basic mainline 4.12 debian stretch
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.12.14-armv7-x3 (sarnold@archimedes) (gcc version 5.4.0 (Gentoo Hardened 5.4.0-r4 p1.4, pie-0.6.5) ) #4 SMP Thu Nov 9 12:38:23 PST 2017
[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: UDOO Neo Basic
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 16 MiB at 0x9f000000
[ 0.000000] On node 0 totalpages: 131072
@sarnold
sarnold / gist:1785869a7e1dca87933e8d120b3f008c
Created January 13, 2018 18:38
grub iso usb flash config snippet
menuentry 'Debian 8.5.0 amd64 CD 1 XFCE' {
set isofile='/iso/debian/debian-9.3.0-amd64-xfce-CD-1.iso'
set initrdfile='/iso/debian/initrd.gz'
loopback loop $isofile
linux (loop)/install.amd/vmlinuz iso-scan/ask_second_pass=true
initrd $initrdfile
}
menuentry 'Gentoo live DVD amd64-hardened' {
set isofile='/iso/gentoo/livedvd-amd64-hardened-nomultilib-20170118.iso'
@sarnold
sarnold / Doxyfile
Created February 5, 2018 20:10 — forked from dimitarcl/Doxyfile
Documenting JavaScript with Doxygen
FILTER_PATTERNS =*.js=doxygen.js
@sarnold
sarnold / gist:dc0148c4707ba98a550661b9e601da4e
Created August 3, 2019 17:16
ansible mount fail on 32bit target
Mount task appears to succeed, following synchronize task fails on one of two machines because ROOTA is not mounted.
Escalation succeeded
Escalation succeeded
<NNN.NNN.NN.130> (0, b'\r\n{"changed": true, "name": "/mnt/gentoo", "opts": "defaults", "dump": "0", "passno": "0", "fstab": "/etc/fstab", "src": "LABEL=ROOTA", "fstype": "ext4", "invocation": {"module_args": {"path": "/mnt/gentoo", "src": "LABEL=ROOTA", "fstype": "ext4", "opts": "defaults", "state": "mounted", "boot": true, "backup": false, "dump": null, "fstab": null, "passno": null}}}\r\n', b'Shared connection to NNN.NNN.NN.130 closed.\r\n')
<NNN.NNN.NN.130> ESTABLISH SSH CONNECTION FOR USER: gentoo
<NNN.NNN.NN.130> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/home/user/.ssh/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=gentoo -o ConnectTimeout=10 -o ControlPath=/tmp/ansible-%h
@sarnold
sarnold / exynos_defconfig-signed-fit
Last active September 10, 2019 00:00
chromebook snow 5.3 kernel boot log (display does not initialize)
Sep 9 23:02:18 arm kernel: [ 0.000000] Booting Linux on physical CPU 0x0
Sep 9 23:02:18 arm kernel: [ 0.000000] Linux version 5.3.0-rc6 (sarnold@ptolemy) (gcc version 7.3.0 (Gentoo Hardened 7.3.0-r3 p1.4)) #5 SMP PREEMPT Mon Sep 9 15:33:55 PDT 2019
Sep 9 23:02:18 arm kernel: [ 0.000000] CPU: ARMv7 Processor [410fc0f4] revision 4 (ARMv7), cr=10c5387d
Sep 9 23:02:18 arm kernel: [ 0.000000] CPU: div instructions available: patching division code
Sep 9 23:02:18 arm kernel: [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Sep 9 23:02:18 arm kernel: [ 0.000000] OF: fdt: Machine model: Google Snow
Sep 9 23:02:18 arm kernel: [ 0.000000] Malformed early option 'console'
Sep 9 23:02:18 arm kernel: [ 0.000000] Memory policy: Data cache writealloc
Sep 9 23:02:18 arm kernel: [ 0.000000] cma: Reserved 96 MiB at 0x6a000000
Sep 9 23:02:18 arm kernel: [ 0.000000] Samsung CPU ID: 0x43520010
@sarnold
sarnold / Contributing_Template.rst
Last active February 14, 2020 13:37
Respin of PurpleBooth/README-Template.md and Contributing_Template.md in reStructuredText

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

@sarnold
sarnold / gist:6fadb4b0dc438956c01fb83f6d664c8e
Created June 23, 2020 16:49
simple pygobject gtk3 app indicator
# This code was adapted from an example for a tutorial on Ubuntu Unity/Gnome AppIndicators:
# http://candidtim.github.io/appindicator/2014/09/13/ubuntu-appindicator-step-by-step.html
import gi
import signal
import json
import xmltodict
import urllib.request
gi.require_version('Gtk', '3.0')