Skip to content

Instantly share code, notes, and snippets.

View Sped0n's full-sized avatar

Ryan Sped0n

View GitHub Profile
@Sped0n
Sped0n / esp_image_format.hexpat
Created June 26, 2025 05:08
ImHex pattern for ESP image format
#pragma description "ESP-IDF Second Stage Bootloader Image"
#pragma authors "https://github.com/espressif/esp-idf"
#pragma magic [ E9 ] @ 0x00
// Based on the ESP-IDF documentation for the image format.
// https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/app_image_format.html
enum esp_chip_id_t: u16 {
ESP_CHIP_ID_ESP32 = 0,
ESP_CHIP_ID_ESP32S2 = 2,
@Sped0n
Sped0n / esp.ksy
Last active June 20, 2025 07:49
Katai Struct for Espressif Firmware Image Format
meta:
id: esp
file-extension: bin
endian: le
seq:
- id: header
type: image_header
- id: extended_header
type: image_extended_header
diff --git a/tools/idf_py_actions/create_ext.py b/tools/idf_py_actions/create_ext.py
index 00d9fa2881..ec41d46e24 100644
--- a/tools/idf_py_actions/create_ext.py
+++ b/tools/idf_py_actions/create_ext.py
@@ -2,14 +2,57 @@
# SPDX-License-Identifier: Apache-2.0
import os
import re
+import shutil
import sys
@Sped0n
Sped0n / tenstorrent.md
Created May 15, 2025 08:21
tenstorrent setup

Prerequisite

System Packages

Assume you have completed the driver/firmware setup, and tt-smi can run without error.

sudo apt install \
     git \
     python3-dev \
@Sped0n
Sped0n / flake.nix
Last active July 5, 2025 15:09
ESP-IDF nix shell
{
description = "ESP-IDF";
outputs = {
self,
nixpkgs,
...
}: let
system = "x86_64-linux";