Skip to content

Instantly share code, notes, and snippets.

Computer Information:
Manufacturer: Micro-Star International Co., Ltd.
Model: PRO Z690-A WIFI DDR4(MS-7D25)
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: 12th Gen Intel(R) Core(TM) i7-12700
CPU Family: 0x6
CPU Model: 0x97
Computer Information:
Manufacturer: Micro-Star International Co., Ltd.
Model: PRO Z690-A WIFI DDR4(MS-7D25)
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: 12th Gen Intel(R) Core(TM) i7-12700
CPU Family: 0x6
CPU Model: 0x97
@phodina
phodina / yocto_m4_gcc_patch
Last active December 6, 2022 08:17
Patch for Poky 4.1.1 to fix arguments for GCC
--- a/configure 2022-12-06 07:12:47.477308820 +0100
+++ b/configure 2022-12-06 07:12:55.930754682 +0100
@@ -5726,7 +5726,7 @@
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
-for ac_option in --version -v -V -qversion -version; do
+for ac_option in --version -v -version; do
{ { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
@phodina
phodina / guix-shell.sh
Created January 31, 2022 11:18
Building libfido2 for Aarch64
$ ./pre-inst-env guix describe
Git checkout:
repository: /home/pethod/guix
branch: patch/raspberry
commit: 0c6b1d81dbfc9bf21f257e8e4d17122d123feb1e
$ ./pre-inst-env guix build libfido2
/gnu/store/wv0b3lj7znxmhfp9238x4f1gvgk7c1wf-libfido2-1.9.0
$ ./pre-inst-env guix build --target=aarch64-linux-gnu zlib
/gnu/store/qn7jl4nqykbh6faqwcrf1cxwr7f2g0db-zlib-1.2.11
/gnu/store/5njwd7l1pkgvmp1di2gpp5vq3f2qmf5j-zlib-1.2.11-static
phase `configure' succeeded after 4.1 seconds
starting phase `meson-configure'
error: in phase 'meson-configure': uncaught exception:
wrong-type-arg "string-append" "Wrong type (expecting ~A): ~S" ("string" #f) (#f)
phase `meson-configure' failed after 0.0 seconds
Backtrace:
9 (primitive-load "/gnu/store/1v69dv79g7bckvmjjlsfngp1l6f?")
In guix/build/gnu-build-system.scm:
904:2 8 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #)
In ice-9/boot-9.scm:
@phodina
phodina / Archlinux Thunderbolt package
Created January 5, 2022 14:11
Thunderbolt porting
pacman -Qlq bolt
/usr/
/usr/bin/
/usr/bin/boltctl
/usr/lib/
/usr/lib/boltd
/usr/lib/systemd/
/usr/lib/systemd/system/
/usr/lib/systemd/system/bolt.service
/usr/lib/udev/
From 2e9873190696b8f204a164b312d0b682967d5568 Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Thu, 11 Nov 2021 19:23:59 +0100
Subject: [PATCH 1/9] gnu: linux: Support numbers and strings in options.
* gnu/packages/linux.scm: Match numbers and strings in options.
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 27ec9fa82e..535ff30c05 100644
--- a/gnu/packages/linux.scm
This file has been truncated, but you can view the full file.
execve("/run/current-system/profile/bin/sddm-greeter", ["sddm-greeter", "--test-mode", "--theme", "/gnu/store/mh04r6fh0i57vf0zpsdn4"...], 0x7ffd257c3f68 /* 57 vars */) = 0
brk(NULL) = 0x1152000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
readlink("/proc/self/exe", "/gnu/store/vx6vfbmmazvfi7vp8xyjn"..., 4096) = 71
openat(AT_FDCWD, "/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0444, st_size=3724, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 3724, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe198515000
close(3) = 0
openat(AT_FDCWD, "/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\21\0\0\0\0\0\0"..., 832) = 832