Skip to content

Instantly share code, notes, and snippets.

{.warning[UnusedImport]: off.}
{.hint[XDeclaredButNotUsed]: off.}
from macros import hint, warning, newLit, getSize
from os import parentDir
when not declared(ownSizeOf):
macro ownSizeof(x: typed): untyped =
newLit(x.getSize)
{.warning[UnusedImport]: off.}
{.hint[XDeclaredButNotUsed]: off.}
from macros import hint, warning, newLit, getSize
from os import parentDir
when not declared(ownSizeOf):
macro ownSizeof(x: typed): untyped =
newLit(x.getSize)
{.warning[UnusedImport]: off.}
{.hint[XDeclaredButNotUsed]: off.}
from macros import hint, warning, newLit, getSize
from os import parentDir
when not declared(ownSizeOf):
macro ownSizeof(x: typed): untyped =
newLit(x.getSize)
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 6.10.0-rc4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="aarch64-linux-gnu-gcc (GCC) 14.1.1 20240507 (Red Hat Cross 14.1.1-1)"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=140101
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24100
00:00:00.000 [INFO] [sway/main.c:295] Sway version 1.10-dev-cc342107 (Jun 24 2024, branch 'master')
00:00:00.000 [INFO] [sway/main.c:296] wlroots version 0.18.0-dev
00:00:00.002 [INFO] [sway/main.c:81] Linux firebert 6.10.0-0.rc4.20240621git50736169ecc8.42.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jun 21 14:39:39 UTC 2024 x86_64 GNU/Linux
00:00:00.002 [INFO] [sway/main.c:97] Contents of /etc/os-release:
00:00:00.002 [INFO] [sway/main.c:81] NAME="Fedora Linux"
00:00:00.002 [INFO] [sway/main.c:81] VERSION="41 (Rawhide Prerelease)"
00:00:00.002 [INFO] [sway/main.c:81] ID=fedora
00:00:00.002 [INFO] [sway/main.c:81] VERSION_ID=41
00:00:00.002 [INFO] [sway/main.c:81] VERSION_CODENAME=""
00:00:00.002 [INFO] [sway/main.c:81] PLATFORM_ID="platform:f41"
@tokyovigilante
tokyovigilante / defconfig
Last active May 21, 2024 11:35
Anbernic RG35XX+ WIP defconfig
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
CONFIG_AUDIT=y
CONFIG_NO_HZ_IDLE=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_BPF_SYSCALL=y
CONFIG_BPF_JIT=y
CONFIG_PREEMPT=y
CONFIG_IRQ_TIME_ACCOUNTING=y
CONFIG_BSD_PROCESS_ACCT=y
setenv bootargs console=tty0 console=ttyS0,115200 root=/dev/mmcblk0p3
load mmc 0:2 $kernel_addr_r Image
booti $kernel_addr_r - $fdtcontroladdr
chipid 33806c00 6c004808 0106c504 508d1d92
unknown 00000000 bb311118 bb323b38 196db6db 6c696b6c 00216b6b 21f1305d 02c60000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000
@tokyovigilante
tokyovigilante / gist:d05e07767a2f62922a8d24b41c33b414
Created March 15, 2024 07:44
Kernel config diff with working wifi for RG35XX+
-ARCH_BCM2835 y
-ARCH_BCMBCA y
-ARCH_BCM_IPROC y
-ARCH_BRCMSTB y
-ARCH_LAYERSCAPE y
-ARCH_MXC y
-ARCH_S32 y
-ARCH_TESLA_FSD y
-BROKEN_GAS_INST y
-GENERIC_IRQ_IPI_MUX y
@tokyovigilante
tokyovigilante / gist:57ab963756a3c936d08a58186f062318
Created March 12, 2024 21:41
RTL8821 panic on power state change
[ 830.797592] ------------[ cut here ]------------
[ 830.802268] firmware failed to ack driver for entering Deep Power mode
[ 830.808931] WARNING: CPU: 1 PID: 67 at drivers/net/wireless/realtek/rtw88/ps.c:105 rtw_power_mode_change+0x130/0x180 [rtw88_core]
[ 830.820663] Modules linked in: btrfs blake2b_generic libcrc32c xor xor_neon raid6_pq zstd_compress af_alg rtw88_8821cs rtw88_8821c 6
[ 830.846661] CPU: 1 PID: 67 Comm: kworker/u16:4 Not tainted 6.8.0-rc7-next-20240308-00004-gee0f4864bb48 #8
[ 830.856231] Hardware name: Anbernic RG35XX Plus (DT)
[ 830.861198] Workqueue: phy0 rtw_watch_dog_work [rtw88_core]
[ 830.866831] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 830.873796] pc : rtw_power_mode_change+0x130/0x180 [rtw88_core]
[ 830.879763] lr : rtw_power_mode_change+0x130/0x180 [rtw88_core]