Skip to content

Instantly share code, notes, and snippets.

View apritzel's full-sized avatar

Andre Przywara apritzel

View GitHub Profile
@apritzel
apritzel / u-boot_h616_high_boot.patch
Created May 2, 2024 10:17
U-Boot H616 SPL at 256KB MMC offset booting support
commit 5e9a281c9f9b50f22fdba619ca3a0f8788224ef3
Author: Andre Przywara <andre.przywara@arm.com>
Date: Thu Mar 28 16:18:12 2024 +0000
UNTESTED! H616 high location boot support
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c
index 0140b07d32a..046e9fbfc67 100644
@apritzel
apritzel / find_dtbs.c
Created May 30, 2024 23:58
find_dtbs: scan a binary file for devicetree binary magic bytes, and allow extracting the DTBs
// SPDX-License-Identifier: GPL-2.0-only
// Copyright (C) 2018-2024 Andre Przywara <osp@apritzel.eu>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <getopt.h>
#include <arpa/inet.h> // for htonl