Skip to content

Instantly share code, notes, and snippets.

View bradfa's full-sized avatar
⚔️

Andrew Bradford bradfa

⚔️
View GitHub Profile
@bradfa
bradfa / android-studio setup.md
Last active November 10, 2017 18:21
Android Studio in a chroot Setup

Android Studio in a chroot Setup on Debian

Install schroot, debootstrap, and the ubuntu-archive-keyring (needed for debootstrap to validate downloaded Ubuntu files):

sudo apt install schroot debootstrap ubuntu-archive-keyring

Create a clean Ubuntu 14.04 amd64 chroot using debootstrap:

@bradfa
bradfa / mythtv-todo.md
Last active September 2, 2017 18:39
MythTV To Do List
  • Make github repo for scripts and push it
  • Make transcode to h264 single threaded or better yet allow command line param to set threads used
  • Transcode script to be able to output different (SD) resolution as needed
  • Transcode script to be able to retranscode something which it already ran on, ie same infile and outfile names.
  • Enable 2 jobs simultaneous on backend
  • Clean up channel list
  • Connect mythweb with frontend
  • Setup samba share readonly
  • Create another userjob to transcode and downsize to SD quality (for kids shows, and if we can get same infile/outfile working, can retranscode a bunch)
  • Make sure DVD playback works smoothly and with all types of DVDs (saw choppy-ness on Frozen and Baby Signing Time wouldn't play)
@bradfa
bradfa / rza1-notes.md
Last active October 20, 2017 18:38
Renesas RZ/A1 Notes

I have an Avnet/Architech Hachiko board without SDRAM. It uses RZ/A1H R7S72100 with 10 MB SRAM SoC in QFP package. I want to run mainline U-Boot and Linux on it.

Vendor documentation on the board: http://architechboards-hachiko-tiny.readthedocs.io/en/latest/ and http://downloads.architechboards.com/doc/Hachiko/download.html

BSP that came with it from the vendor used patches to U-Boot and Linux provided in: https://github.com/bradfa/meta-hachiko

It seems there's some amount of support in mainline Linux for RZ/A1 but I'm not sure how much. It's unclear to me how much support there is in mainline U-Boot. Either way, I want to run mainline on this board as I want to learn and if needed, contribute code upstream.

@bradfa
bradfa / debian container machine notes.md
Last active July 17, 2017 13:49
Debian LXC Machine Notes and Actions

Setting up a Debian machine to be a container host for LXC.

TODO:

  • Get quieter heatsink fan setup (duct? other fan?)
  • Install Debian Stretch amd64
  • Get LXC installed
  • Setup Ethernet bridge for containers to be on local LAN (not NAT'ed)
  • Setup syslog server on host to receive syslog data from all containers
  • Setup LAN's DHCP server to hand out fixed IPs based on hostname in DHCP request for containers that need it (ie: mirror)
  • Setup mirror container, transfer over existing mirror data from lati
@bradfa
bradfa / msp430-notes.md
Created June 8, 2017 18:41
MSP430 Notes

GCC, GDB, and binutils have mainline support for msp430-elf target.

There's, afaict, a "GDB server" kind of tool which works with many debuggers: http://dlbeer.co.nz/mspdebug/

TI has some info on their packaging of the toolchain and related software which is very confusing in terms of version numbers: http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/latest/index_FDS.html

Debian seems to only have quite old gcc-msp430 and binutils-msp430 and msp430mcu (linker scripts, headers, etc) packages from 2011 and 2012. Would be nice to get updates to these with mainline code.

@bradfa
bradfa / useful-deb-pkgs.md
Last active May 20, 2019 13:49
Useful Debian Packages for Desktop/Laptop
  • apt-listchanges
  • apt-listbugs
  • build-essential
  • how-can-i-help
  • irssi-scripts (then symlink from ~/.irssi/scripts/autorun/ dir anything we want to use in /usr/share/irssi/scripts/)
  • packaging-tutorial
  • rng-tools5
  • thinkfan (if fans are annoying)
  • tpl (power saving tools)
@bradfa
bradfa / debian-mirror-notes.md
Last active March 27, 2017 17:13
Debian Mirror Notes

To use debmirror to update using rsync which will create a local mirror for the following:

  • arch: amd64 and all
  • dists: jessie, jessie-updates, stretch, stretch-updates, and sid
  • sections: main and main/debian-installer
  • check signatures using the debian-archive-keyring gpg keyring
  • include sources
  • store mirror in /var/www/html/debian/ directory
  • use lighttpd to export a /debian/ directory holding the contents
  • use /etc/debmirror.conf to define options
@bradfa
bradfa / PCB Idea List.md
Last active December 7, 2020 22:44
PCB Idea List

These are all ideas for making open source circuit boards and/or products:

  • Use AAA batteries instead of coin cells for chibitronics kits.
  • IR receiver to USB adapter which looks like keyboard to PC and works with universal remotes. Main target first is to use my Panasonic TV remote in the Cable Box mode to control MythTV.
  • Logic analyzer which is similar to the DreamSource Lab DSLogic Pro but which is actually open source and documented and able to be purchased.
  • SPI flash programmer using USB high speed, as read and verify steps would be much faster, leading to faster cycle time.
  • USB to serial adapter which supports 5, 3.3, and 1.8 V logic levels and the normal FTDI 6 pin interface as found on BBB.
  • GigE Ethernet switch
  • Power over Ethernet addon for above switch
  • Tuxedoboard

Check a library for compliance to the KLC:

../kicad-library-utils/schlib/checklib.py library/silabs.lib

Check with extra reporting which gives a human readable description of the issues:

../kicad-library-utils/schlib/checklib.py --enable-extra -v library/silabs.lib