Posts

Showing posts from 2020

Splitting .gitconfig based on project

Image
I keep my personal projects separate from my work-related projects in git. This requires remembering what I'm currently working on and applying that profile  to the commits, git_template, etc. I recently learned about a new git configuration feature called conditional includes . It allows one to split out project/folder/branch-specific git configuration into its own .gitconfig fragment. This allowed me to get rid of bash functions that setup my git configuration (e.g. GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL) depending on what I was working on. So I ended up with the following ~/.gitconfig : [user]         name = Amit Kucheria [includeIf "gitdir:~/work/sources/"]         path = ~/.gitconfig-linaro [includeIf "gitdir:~/work/sources/personal/"]         path = ~/.gitconfig-personal My ~/.gitconfig-linaro looks like this: [user]         email = "amit.kucheria@work.com" My ~/.gitconfig-personal looks like this: [user]         email = "amit.kucheria@personal.c

Rabbit holes in HW Lab automation

Image
This post is a reminder about rabbit holes one goes down when working on technical problems. Some time ago, I received an Inforce IFC6410 to add to my testing while I modernize the thermal sensor driver found on many Qualcomm platforms. This is a fairly old Snapdragon 600 SoC and isn't being tested in any of the kernelci.org labs leading to a patch recently getting merged that broke the thermal sensor on the board. I figured I'd wire it up to my board automation setup - a glorified mess of an ATX PSU, a switchable USB hub and an 8-port relay - that automates the toggling of power and vbus to a board to allow for automated kernel flashing and testing. HW Lab automation - work in progress So I wired up the IFC6410, connected a USB-serial cable for console and added the requisite port numbers to my scripts to toggle power to the board when I built a kernel to test on that target. Except that the board didn't enter fastboot mode to flash a new kernel. The messa