From c3e17c407a39ee4d576540c86b4b3b0549e81136 Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Tue, 7 May 2024 07:15:48 +0300 Subject: [PATCH] configs/qemu_sparc_ss10: re-introduce defconfig - With uClibc-ng-1.0.48 we can restore this defconfig because uClibc-ng now provides the fix for SPARC. - The instructions in board/qemu/sparc-ss10/readme.txt are still valid without any corrections. The system boots properly ang the login prompt appears. Signed-off-by: Dmitry Chestnykh Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 4 +++ .../qemu/sparc-ss10/patches/linux/linux.hash | 2 ++ configs/qemu_sparc_ss10_defconfig | 32 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 board/qemu/sparc-ss10/patches/linux/linux.hash create mode 100644 configs/qemu_sparc_ss10_defconfig diff --git a/DEVELOPERS b/DEVELOPERS index 1c5ad1e42a..77971e03db 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -846,6 +846,10 @@ F: package/wolftpm/ N: Dimitrios Siganos F: package/wireless-regdb/ +N: Dmitry Chestnykh +F: board/qemu/sparc-ss10/ +F: configs/qemu_sparc_ss10_defconfig + N: Dominik Faessler F: package/logsurfer/ diff --git a/board/qemu/sparc-ss10/patches/linux/linux.hash b/board/qemu/sparc-ss10/patches/linux/linux.hash new file mode 100644 index 0000000000..762f8575e7 --- /dev/null +++ b/board/qemu/sparc-ss10/patches/linux/linux.hash @@ -0,0 +1,2 @@ +# From https://cdn.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc +sha256 1973e6fc3e8617fc8b0e24b33180449f1a39fa6a607f8dba61cf91b4c5bba466 linux-6.8.6.tar.gz diff --git a/configs/qemu_sparc_ss10_defconfig b/configs/qemu_sparc_ss10_defconfig new file mode 100644 index 0000000000..67d6cf67f6 --- /dev/null +++ b/configs/qemu_sparc_ss10_defconfig @@ -0,0 +1,32 @@ +# Architecture +BR2_sparc=y +BR2_sparc_v8=y + +# Hashes +BR2_GLOBAL_PATCH_DIR="board/qemu/sparc-ss10/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y + +# System +BR2_SYSTEM_DHCP="eth0" + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +# BR2_TARGET_ROOTFS_TAR is not set + +# Image +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/qemu/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_DEFCONFIG)" + +# Linux headers same as kernel +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_8=y + +# Linux kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.8.6" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/sparc-ss10/linux.config" + +# host-qemu for gitlab testing +BR2_PACKAGE_HOST_QEMU=y +BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE=y