Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
From 079ed8aa57ba6629b992c3d0d01904d3e5170d3b Mon Sep 17 00:00:00 2001
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
Date: Wed, 5 Jun 2024 13:06:16 +0200
Subject: [PATCH] build.sh: do not apply patches
In Buildroot, we handle applying the patches in a generic way, with
appropriate tools (e.g. with a proper tar).
Upstream: not applicable
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
build.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/build.sh b/build.sh
index d1fedff..26efc53 100755
--- a/build.sh
+++ b/build.sh
@@ -10,6 +10,8 @@ BUILD_OPTS="USING_UMP=0
USING_DEVFREQ=1"
apply_patches() {
+ return 0 # Patching handled by Buildroot
+
pushd $2
quilt push -a
@@ -22,6 +24,8 @@ apply_patches() {
}
unapply_patches() {
+ return 0 # Patching handled by Buildroot
+
pushd $2
quilt pop -a
--
2.45.1

View File

@@ -0,0 +1,39 @@
comment "sunxi-mali-utgard-driver needs a Linux kernel to be built"
depends on BR2_PACKAGE_SUNXI_MALI_UTGARD
depends on !BR2_LINUX_KERNEL
config BR2_PACKAGE_SUNXI_MALI_UTGARD_DRIVER
bool "sunxi-mali-utgard-driver"
default y
depends on BR2_PACKAGE_SUNXI_MALI_UTGARD # runtime
depends on BR2_LINUX_KERNEL
select BR2_LINUX_NEEDS_MODULES # not using kernel-module infra
help
This package builds and installs the Linux kernel driver for
the Mali Utgard GPU on Allwinner platforms, compatible with
recent Linux kernels (>= 4.4). Note that it should be
installed together with the corresponding userspace OpenGL
libraries, which are provided as binaries only at:
https://github.com/bootlin/mali-blobs
sunxi-mali-utgard-driver requires a Linux kernel >= 4.4
with the following options enabled:
- CONFIG_CMA
- CONFIG_DMA_CMA
starting from Linux Kernel >= 4.20 following options must be
enabled:
- CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM
The following kernel command line options must be passed:
- drm_kms_helper.drm_leak_fbdev_smem = 1
since drm_kms_helper.drm_leak_fbdev_smem is set to 0 by
default
- drm_kms_helper.drm_fbdev_overalloc >= 200
since the driver requires at least double buffering and
fails to work with the default value(100).
https://github.com/benetti-engineering/sunxi-mali/blob/master/README.md

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 b0cf26625db13989be54844d3625e6918bee6d4ae6d054da161a2bf9e3665532 sunxi-mali-utgard-driver-b47f74c92fbcbdf175a16052d1b0ce8345efc6b2.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE

View File

@@ -0,0 +1,40 @@
################################################################################
#
# sunxi-mali-utgard-driver
#
################################################################################
SUNXI_MALI_UTGARD_DRIVER_VERSION = b47f74c92fbcbdf175a16052d1b0ce8345efc6b2
SUNXI_MALI_UTGARD_DRIVER_SITE = $(call github,benetti-engineering,sunxi-mali,$(SUNXI_MALI_UTGARD_DRIVER_VERSION))
SUNXI_MALI_UTGARD_DRIVER_DEPENDENCIES = linux
SUNXI_MALI_UTGARD_DRIVER_LICENSE = GPL-2.0
SUNXI_MALI_UTGARD_DRIVER_LICENSE_FILES = LICENSE
SUNXI_MALI_UTGARD_DRIVER_MAKE_OPTS = \
$(LINUX_MAKE_FLAGS) \
KDIR=$(LINUX_DIR)
define SUNXI_MALI_UTGARD_DRIVER_USE_APPLY_PATCHES
ln -sf $(SUNXI_MALI_UTGARD_REV)/series $(@D)/patches
$(APPLY_PATCHES) $(@D)/$(SUNXI_MALI_UTGARD_REV) $(@D)/patches
endef
SUNXI_MALI_UTGARD_DRIVER_POST_PATCH_HOOKS += SUNXI_MALI_UTGARD_DRIVER_USE_APPLY_PATCHES
define SUNXI_MALI_UTGARD_DRIVER_BUILD_CMDS
cd $(@D) && $(SUNXI_MALI_UTGARD_DRIVER_MAKE_OPTS) \
$(SHELL) ./build.sh -r $(SUNXI_MALI_UTGARD_REV) -j $(PARALLEL_JOBS) -b
endef
define SUNXI_MALI_UTGARD_DRIVER_INSTALL_TARGET_CMDS
cd $(@D) && $(SUNXI_MALI_UTGARD_DRIVER_MAKE_OPTS) \
$(SHELL) ./build.sh -r $(SUNXI_MALI_UTGARD_REV) -j $(PARALLEL_JOBS) -i
endef
define SUNXI_MALI_UTGARD_DRIVER_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_CMA)
$(call KCONFIG_ENABLE_OPT,CONFIG_DMA_CMA)
$(call KCONFIG_ENABLE_OPT,CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM)
endef
$(eval $(generic-package))