Skip to content

Instantly share code, notes, and snippets.

@Josua-SR
Josua-SR / armada-388-emmc-uboot-upgrade.md
Created August 29, 2024 10:52
How to upgrade preinstalled 2013.01 U-Boot on Armada 388 SoM with eMMC

How to upgrade preinstalled 2013.01 U-Boot on Armada 388 SoM with eMMC

Armada 388 SoMs from older stock still ship with a very old version of u-boot which can not load from USB. Upgrade to v2018.01 or v2024.04 is recommended for general usability.

This document outlines how to upgrade the u-boot that is installed on eMMC.

Prebuilt binaries are available here, pick the file suffixed -emmc-boot0, either:

  • u-boot-clearfog-base-emmc-boot0.kwb
@Josua-SR
Josua-SR / debian-kmod-howto.md
Created June 17, 2020 12:24
How to build out of tree Kernel Module on Debian

How to build out of tree Kernel Module on Debian

Install Kernel Development files

First get the general build tools for compiling kernel modules: sudo apt install build-essential

Also install the kernel development headers for the currently running kernel:

debian@sr-imx8:~$ uname -a

# Debian 11
FROM debian:bullseye
RUN apt-get update && apt-get install -y curl && apt-get clean
# apt
COPY sources.list /etc/apt/sources.list
COPY sources.bsp-imx8 /etc/apt/sources.list.d/bsp-imx8.list
RUN curl -o keyring.deb https://repo.solid-build.xyz/debian/bullseye/bsp-any/all/solidrun-keyring_2020.01.09_all.deb && dpkg -i keyring.deb
# updates
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.19.35 Kernel Configuration
#
#
# Compiler: aarch64-linux-gnu-gcc (Debian 8.3.0-2) 8.3.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=80300
@Josua-SR
Josua-SR / 0001-dfu-set-default-buffer-size-to-1MB.patch
Last active August 10, 2018 18:37
reduce default buffer size for DFU
From cf8d6bb88aba508b8236a8b2549bff30d7184f49 Mon Sep 17 00:00:00 2001
From: Josua Mayer <josua@solid-run.com>
Date: Fri, 10 Aug 2018 20:36:39 +0200
Subject: [PATCH] dfu: set default buffer size to 1MB
This is a workaround for the memory allocation error that occurs with the
default size of 8MB.
Signed-off-by: Josua Mayer <josua@solid-run.com>
---
@Josua-SR
Josua-SR / imx6boot.txt
Created August 9, 2018 16:08
i.MX6 Legacy Boot-Script
#
# Copyright <2017-2018> Josua Mayer <josua@solid-run.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#