As previously stated, this blog is a place for me to record some notes on things that i learn on my day to day. One of the things I learned and whished I knew when doing embedded development was how to easily flash certain files in an embedded device’s storage card, without needing to do … Continue reading u-boot exposing mass storage to usb interface
Small tip on re-generating fresh gerrit reviews.
In Linux there are so many permission mechanisms, depending on exactly what you want to do, it dazzles the mind. There is suid, dbus policies, polkit, Linux capabilities, files attributes, PAM modules, SELinux and the list goes on. It does not surprise then, that choosing the correct approach can become paralyzing or give anxiety inducing. … Continue reading sudo in system()
Awk is the swiss knife of data processing. Let’s use it to extract data passed from the bootloader to the kernel command line.
This is a post on a recent problem I faced. As you may know from my previous post on Check suming axios downloaded files in jest I give very high priority to integration tests of backend/frontend communication. The story goes like: I have a test which sets up files tracked by the backend. The test … Continue reading An ASP.net core validator to reject empty IEnumerables
As the title suggests Google NTP servers are compiled by default in systemd. For common user desktops and even some servers this is harmless. For embedded or critical computing networks this is a little known phone home mechanism. I wrote the “pay attention” in the title and decided to write about this topic because in … Continue reading systemd fallbacks to google ntp servers. Pay attention!
I recently needed to do a fast count of the longest path’s string length possible relative to another path. This is useful for example on how to dimension some C buffer. I did not want to spend much time on this and came up with the following one liner (i love bash one liners): You … Continue reading Getting the maximum number of characters in a path with a POSIX shell
I recently had the need to make a test where I confirm the file in a backend server is the same as the one available in the front end client. Due to the fact that frontend frameworks like vue can have a lot logic this test is important for me as it allows me to … Continue reading Checksuming axios downloaded files in jest
For some reason mkimage allows you to sign with public keys that are not paired with the private key leading to fit images that will never be bootable due to signature verification failure like in the title of the post. For example imagine you generate 2 sets of keys by doing : If you follow … Continue reading u-boot signature check: Signature check Bad (error 1)
I am moving my blog from https://cheesesamongus.blogspot.com/ to wordpress because the blogspot platform seems abandoned by google, with many quality of life improvements simply not existing. Given i mostly write about code, not having a simple way to introduce code really bothered me. It also looks like their editor stopped working properly and copying and … Continue reading Migrating my blog out of blogspot
Follow My Blog
Get new content delivered directly to your inbox.