Skip to content

Instantly share code, notes, and snippets.

@s-holst
s-holst / gist:101bf3c266233929272a0664105a9f80
Created March 24, 2026 23:04
diff fml13v03_linux/.config config-6.6.92-eic7x-2025.07
diff fml13v03_linux/.config config-6.6.92-eic7x-2025.07
3c3
< # Linux/riscv 6.6.92-r1 Kernel Configuration
---
> # Linux/riscv 6.6.92 Kernel Configuration
5c5
< CONFIG_CC_VERSION_TEXT="riscv64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0"
---
> CONFIG_CC_VERSION_TEXT="riscv64-unknown-linux-gnu-gcc () 13.2.0"
7c7
@s-holst
s-holst / d2d calibration
Created March 2, 2026 12:03
D2D calibration loop ran and burned parameter table.
gpio init!
usb pweren
pll config ok
die_num:2,die_ordinal:0
Firmware version:1.24;disable ECC
Display version:1.0
boot start temperature:21.036C
DDR type:LPDDR5_D2D_X16;Size:16GB,Data Rate:6400MT/s
Panel: 2, hact=2256 vact=1504
DDR self test OK
@s-holst
s-holst / gist:6c3006181b7d878c28cd8a42994cac98
Created March 2, 2026 03:58
Cold (as in temperature) boot problem FML13v03
gpio init!
usb pweren
pll config ok
die_num:2,die_ordinal:0
Firmware version:1.24;disable ECC
Display version:1.0
boot start temperature:21.539C
DDR type:LPDDR5_D2D_X16;Size:16GB,Data Rate:6400MT/s
Panel: 2, hact=2256 vact=1504
DDR self test OK
@s-holst
s-holst / riscv_decoder.py
Last active April 22, 2024 14:38
Decodes all RISC-V ISA. Can also simulate common RV64 instructions.
#!/usr/bin/env python3
import sys, os, re, csv, struct, array, collections, struct, yaml
try:
opcodes = yaml.safe_load(open('riscv-opcodes/instr_dict.yaml'))
for aname, op in opcodes.items(): op['name'] = aname
mask_match = [(int(op['mask'], 16), int(op['match'], 16), op) for op in opcodes.values()]
def dr(h,l): return list(range(h,l-1,-1))
arg_bits = dict((a, dr(int(h),int(l))) for a, h, l in csv.reader(open('riscv-opcodes/arg_lut.csv'), skipinitialspace=True))