Skip to content

Instantly share code, notes, and snippets.

@grant-olson
grant-olson / pinetab-v-enable-audio.patch
Created August 19, 2023 16:05
Enable audio in KDE session
--- 50-alsa-config.lua.orig 2023-08-19 11:56:51.829101133 -0400
+++ 50-alsa-config.lua 2023-08-19 11:56:37.060958474 -0400
@@ -65,7 +65,7 @@
apply_properties = {
-- Use ALSA-Card-Profile devices. They use UCM or the profile
-- configuration to configure the device and mixer settings.
- ["api.alsa.use-acp"] = true,
+ -- ["api.alsa.use-acp"] = true,
-- Use UCM instead of profile when available. Can be
@grant-olson
grant-olson / Just the commands
Created July 29, 2023 15:34
Modifying pinetab-v cmdline and getting a shell on the display
run load_vf2_env
run importbootenv
env set bootargs_ext 'setenv bootargs "earlyprintk console=tty1 debug rootwait earlycon=sbi root=/dev/mmcblk0p4"'
run boot2
@grant-olson
grant-olson / pinetab-v star64 plasma 1.3
Created July 29, 2023 13:31
bootlog/dmesg for pinetab-v
U-Boot SPL 2021.10 (Jul 13 2023 - 14:03:29 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI
OpenSBI v1.2
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
@grant-olson
grant-olson / u-boot-mmc.md
Created February 21, 2023 02:45
u-boot problems with SD Card

I've been having many problems trying to access mmc cards on the openbouffalo u-boot. I've finally found one I can reproduce consistently while testing madushan1000's usb/fastboot work.

I've done this 7 or 8 times in a row with the same results. I would expect to see data after flashing with madushan1000's image. And if I don't see it, I wouldn't expect my ubuntu machine to see things just fine after flashing.

  1. I make a SD card image as madushan suggest in his gist https://gist.github.com/madushan1000/830e6216db12d4ca3ded1208687f917d
truncate -s $((200*1024*1024)) disk.raw
$ mkfs.ext4 disk.raw
$ mkdir mnt
from skyfield.api import load, Topos, EarthSatellite
planets = load('de421.bsp')
earth, mars = planets['earth'], planets['mars']
ts = load.timescale()
t = ts.now()
stations_url = 'http://celestrak.com/NORAD/elements/stations.txt'
satellites = load.tle(stations_url)

Keybase proof

I hereby claim:

  • I am grant-olson on github.
  • I am grantolson (https://keybase.io/grantolson) on keybase.
  • I have a public key whose fingerprint is A530 C31C D762 0D26 E2BA C384 B6F6 FFD0 E3B5 806F

To claim this, I am signing this object:

@grant-olson
grant-olson / gist:8240811
Created January 3, 2014 16:24
Log files
==> chmod.bin.log <==
[2014-01-03 10:59:22] __rvm_set_executable
__rvm_set_executable ()
{
for __file in "$@";
do
[[ -x "${__file}" ]] || chmod +x "${__file}";
done
}
current path: /Users/grant
@grant-olson
grant-olson / gist:8240372
Created January 3, 2014 16:00
Debug log for problematic ruby-2.1.0 install.
Last login: Fri Jan 3 10:31:38 on ttys001
master-blaster:~ grant$ rvm remove 2.1.0
Warning! PATH is not properly set up, '/Users/grant/.rvm/gems/ruby-2.0.0-p0/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-2.0.0-p0'.
ruby-2.1.0 - #removing rubies.
ruby-2.1.0 - #removing gems.
ruby-2.1.0 - #removing wrappers.
ruby-2.1.0 - #removing environments.