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
| # | |
| # 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: | |
| # |
| 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> | |
| --- |
| # | |
| # 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 |
| # 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 |
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