Skip to content

Instantly share code, notes, and snippets.

View orangecms's full-sized avatar
🐢
Hack the planet!

Daniel Maslowski orangecms

🐢
Hack the planet!
View GitHub Profile
@orangecms
orangecms / linux-uboot-arm64-dts-broadcom.diff
Last active May 15, 2025 09:03
diffing device trees between projects
diff '--color=auto' -x Makefile -rush OS/linux/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dts firmware/u-boot/arch/arm/dts/bcm2711-rpi-4-b.dts
--- OS/linux/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dts 2025-05-03 13:33:57.953289410 +0200
+++ firmware/u-boot/arch/arm/dts/bcm2711-rpi-4-b.dts 2023-02-21 20:44:21.319965771 +0100
@@ -1,2 +1,262 @@
// SPDX-License-Identifier: GPL-2.0
-#include "arm/broadcom/bcm2711-rpi-4-b.dts"
+/dts-v1/;
+#include "bcm2711.dtsi"
+#include "bcm2711-rpi.dtsi"
+#include "bcm283x-rpi-usb-peripheral.dtsi"
@orangecms
orangecms / rk3566.sh
Created March 26, 2025 11:23
RK3566 mask ROM
#!/bin/sh
# have rkbin and xrock in the same directory
# https://github.com/rockchip-linux/rkbin
# https://github.com/xboot/xrock
# Run this in the xboot directory.
# Have rkbin in the same parent directory.
_BDIR=../rkbin/bin/rk35
# DRAM init binary
@orangecms
orangecms / soc-vendors.md
Last active March 30, 2025 22:13
SoC vendors
  • Allwinner
  • Amlogic
  • Broadcom
  • Rockchip
  • TI
  • HiSilicon
  • MediaTek
  • Qualcomm
  • Samsung
  • NXP
@orangecms
orangecms / us2td
Created January 3, 2025 01:57
stupid scripts because mpv is broken on RPi4 and cvlc is the way to go >_<
#!/bin/env python3
# convert time in microseconds to a human readable timestamp, e.g. 0:13:37.000123
from datetime import timedelta
import sys
ts=int(sys.argv[1])
td=timedelta(microseconds=ts)
print(str(td))
@orangecms
orangecms / diff.md
Created October 29, 2024 01:22
diff of GX650PY and G733PYV firmware images

see PSPReverse/PSPTool#63

Diffing G733PYV323.rom vs GX650PY319.rom

Second gen (after Picasso/Raven Ridge) vs Second gen (after Picasso/Raven Ridge)
IMC Firmware                                  both empty
Gigabit ethernet firmware                     both empty
XHCI firmware                                 both empty
Fam 17 Model 00-0f BIOS                       both empty
@orangecms
orangecms / t480_mfs.log
Last active September 23, 2024 21:52
Intel ME MFS directory traversal like `ls -aR`
/home:
|
| 0008 . 636d d | 0000 .. 41ed d | 0009 RTFD 63c0 d |
| 0011 bup 63f9 d | 0023 cls 63c0 d | 0025 dal_ivm 63c0 d |
| 0035 dal_sdm 63c0 d | 0040 fpf 63ff d | 0043 fwupdate 63e8 d |
| 0055 gpio 63f8 d | 0060 hotham 63fe d | 0064 icc 63e8 d |
| 0092 ish_srv 63e0 d | 0096 loadmgr 63c0 d | 0099 manuf 63f8 d |
| 0101 mca 63ed d | 0108 mca_temp 63c0 d | 0110 mctp 63e8 d |
| 0117 nfc 63e8 d | 0120 nvinf 63ff d | 0122 pavp 63f8 d |
| 0145 pmt 63e8 d | 0148 policy 63f9 d | 0174 ptt 63c0 d |
@orangecms
orangecms / kexec-6.10-rc6.md
Last active July 7, 2024 20:31
kexec on RISC-V on 6.10-rc6
@orangecms
orangecms / arm_boot_log.txt
Last active February 21, 2025 05:23
Milk-V Duo S (SG2000) firmware
oreboot 🦀 bt0 on Arm
1091555380
boot_log_len: 2359
>>> BEGIN OF BOOT LOG
B. I:V/3360889e/7vcz:g2a3d7b10/0/40000000.
SCS/0/0. I:ep_swinfo.
I:sw_info=0x0
I:EP:0x3050134/0x0.
I:EP:0x305013c/0x0.
@orangecms
orangecms / build.sh
Created January 30, 2024 00:10
build Zephyr for VF2 / JH7110
#!/bin/bash
# get a toolchain; the one in current Ubuntu is not suitable, so use Zephyr's
# TOOLCHAIN_DL_BASE=https://github.com/zephyrproject-rtos/sdk-ng/releases/download
# TOOLCHAIN_VER=v0.16.5-rc1
# TOOLCHAIN_TAR=toolchain_linux-x86_64_riscv64-zephyr-elf.tar.xz
# wget $TOOLCHAIN_DL_BASE/$TOOLCHAIN_VER/$TOOLCHAIN_TAR
# tar -xf $TOOLCHAIN_TAR
TOOLCHAIN_DIR=$(pwd)/riscv64-zephyr-elf