From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KIcwES85amXx7gAAG6o9tA:P1 (envelope-from ) for ; Fri, 01 Dec 2023 20:51:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KIcwES85amXx7gAAG6o9tA (envelope-from ) for ; Fri, 01 Dec 2023 20:51:11 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E74EF43583 for ; Fri, 1 Dec 2023 20:51:10 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b=DVUyC92i; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701460271; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=19C6cuEKXaIeYyieflxw9JeRogclmCGAS0YIK3SfjQY=; b=GwCDBzG+kWrJSeMxD5Ix3pFsdg+a0pdAILn4YBFO+VFqzV1sI/TW3B6otcPg8BFArlwdaC zcQkND1Afg+K+Rw/Y48ow479etkRaG++uQKtyiWDAqQnNH876oYK8B09kHXLnXmuI7pELu Q71misYMAUGuDWpaXu3CnHlDz8NIAiD0wj+gmCR3iy06J0qUIgcf1Bt5OkPB1/pNUsr+Ce 2U+JlSmUE6NKVNruOojyZmt4LkjDmPBH3qPEHgomsXnHB5nP2S3CuDZSaQ/LBnGcv/uJIT XK+VoiA3t2bQ07ZGvCDzAKQLcNgqxnicU42eeMT53u5L5VvPRRUeOTxHlQkbDA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701460271; a=rsa-sha256; cv=none; b=p7EkP3GHORAmFbMembmzfIjHVvnZXfWGnYNm8oiyDKOVMfcmESkJ6qTas/Jes0xcTiJPG0 gw39gx401czyJcOZ8nPUYEO0Bl3AjI3E1MvfVKY7NbdMvdh2Xa39/Bo5sVsL/rsHkN/iCI TFCiXWYv7S48hfwp2D6U/9H41iUADl96sgkRXweJiV2MxinPoj/0BW/KdBGl3P6PBceKdV sA8LvdCehshKz1KZK51aH6wzx54bHZJgjVLVPp+duuLpWLafhj68Kkn9ql+QT/j45PX1rd czh3WaCGINvrZp2alujLDefUXKMxNFMiXdB1t2eb/WYjke7xYZ3nq2ZZu2vmJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b=DVUyC92i; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r99XL-0007Ml-Ga; Fri, 01 Dec 2023 14:50:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r99XJ-0007MU-DX for guix-patches@gnu.org; Fri, 01 Dec 2023 14:50:53 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r99XJ-0002x0-5g for guix-patches@gnu.org; Fri, 01 Dec 2023 14:50:53 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r99XS-0008De-0H for guix-patches@gnu.org; Fri, 01 Dec 2023 14:51:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67261] [PATCH 2/3] gnu: bootloader: Add orangepi-r1-plus-lts-rk3328 bootloader. Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Dec 2023 19:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67261 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Herman Rimm , 67261@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 67261-submit@debbugs.gnu.org id=B67261.170146024731574 (code B ref 67261); Fri, 01 Dec 2023 19:51:01 +0000 Received: (at 67261) by debbugs.gnu.org; 1 Dec 2023 19:50:47 +0000 Received: from localhost ([127.0.0.1]:56117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r99XD-0008DB-88 for submit@debbugs.gnu.org; Fri, 01 Dec 2023 14:50:47 -0500 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:53034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r99XA-0008Cy-Oq for 67261@debbugs.gnu.org; Fri, 01 Dec 2023 14:50:45 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 527DD1AACC; Fri, 1 Dec 2023 11:50:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1701460227; bh=lUUItdV80nW3WQCNe1xdprHsBYfQJVT13l+r270WS7Q=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=DVUyC92iaf6bhR+0ngkt84AGxbRz29P7btTh8IMtlFm3YhQiBItn/eDTLt/5HRYL9 De1SIhK2IEUF9KKNMJAthbMYTHBhwQfqcd3oNAsT0wgn8EwqkUcanMP4e+uDXeGfsj PoP5f27Qz0FjyV3seHlhZYrep57ln2rrQgnN4MCSFt/u2rI8xicYwJE/K55lKTvebu dv3VxOQNxgdp8+tCMXY3epe1GRG5GB6RfF8Ev5LVdehyDtSsGSvBcTiHjwgbD+mf7G FeixrZCW+BhtwHNni58Bh0Z9YyFKKyRB9Z8l8xjcv+XDyIaiNtqmkmmzCm3T2T244k DpM7obWrrUADA== From: Vagrant Cascadian In-Reply-To: <2e6ef3942e41a389e78e438941e2b52495dc530f.1700321434.git.herman@rimm.ee> References: <2e6ef3942e41a389e78e438941e2b52495dc530f.1700321434.git.herman@rimm.ee> Date: Fri, 01 Dec 2023 11:50:23 -0800 Message-ID: <8734wlln28.fsf@wireframe> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -6.74 X-Spam-Score: -6.74 X-Migadu-Queue-Id: E74EF43583 X-TUID: 9nr78+rjbB9w --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2023-11-18, Herman Rimm wrote: > * gnu/bootloader/u-boot.scm (install-orangepi-r1-plus-lts-rk3328-u-boot, > u-boot-orangepi-r1-plus-lts-rk3328-bootloader): New variables. > * gnu/packages/bootloaders.scm (u-boot-orangepi-r1-plus-lts-rk3328): New > variable. Looks fine to me. Does this target depend on u-boot version 2023.10? live well, vagrant =20=20 > gnu/bootloader/u-boot.scm | 17 +++++++++++++++++ > gnu/packages/bootloaders.scm | 15 +++++++++++++++ > 2 files changed, 32 insertions(+) > > diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm > index 712db15b02..d20aabd538 100644 > --- a/gnu/bootloader/u-boot.scm > +++ b/gnu/bootloader/u-boot.scm > @@ -5,6 +5,7 @@ > ;;; Copyright =C2=A9 2020 Jan (janneke) Nieuwenhuizen > ;;; Copyright =C2=A9 2022 Maxim Cournoyer > ;;; Copyright =C2=A9 2023 Efraim Flashner > +;;; Copyright =C2=A9 2023 Herman Rimm > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -37,6 +38,7 @@ (define-module (gnu bootloader u-boot) > u-boot-mx6cuboxi-bootloader > u-boot-nintendo-nes-classic-edition-bootloader > u-boot-novena-bootloader > + u-boot-orangepi-r1-plus-lts-rk3328-bootloader > u-boot-pine64-plus-bootloader > u-boot-pine64-lts-bootloader > u-boot-pinebook-bootloader > @@ -93,6 +95,15 @@ (define install-imx-u-boot > (write-file-on-device u-boot (stat:size (stat u-boot)) > image (* 69 1024))))) >=20=20 > +(define install-orangepi-r1-plus-lts-rk3328-u-boot > + #~(lambda (bootloader root-index image) > + (let ((idb (string-append bootloader "/libexec/idbloader.img")) > + (u-boot (string-append bootloader "/libexec/u-boot.itb"))) > + (write-file-on-device idb (stat:size (stat idb)) > + image (* 64 512)) > + (write-file-on-device u-boot (stat:size (stat u-boot)) > + image (* 16384 512))))) > + > (define install-puma-rk3399-u-boot > #~(lambda (bootloader root-index image) > (let ((spl (string-append bootloader "/libexec/idbloader.img")) > @@ -233,6 +244,12 @@ (define u-boot-novena-bootloader > (inherit u-boot-imx-bootloader) > (package u-boot-novena))) >=20=20 > +(define u-boot-orangepi-r1-plus-lts-rk3328-bootloader > + (bootloader > + (inherit u-boot-bootloader) > + (package u-boot-orangepi-r1-plus-lts-rk3328) > + (disk-image-installer install-orangepi-r1-plus-lts-rk3328-u-boot))) > + > (define u-boot-pine64-plus-bootloader > (bootloader > (inherit u-boot-allwinner64-bootloader) > diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm > index 5da696388a..e88abe2dec 100644 > --- a/gnu/packages/bootloaders.scm > +++ b/gnu/packages/bootloaders.scm > @@ -1128,6 +1128,21 @@ (define-public u-boot-novena > version, contrary to Novena upstream, does not load u-boot.img from the = first > partition.")) >=20=20 > +(define-public u-boot-orangepi-r1-plus-lts-rk3328 > + (let ((base (make-u-boot-package "orangepi-r1-plus-lts-rk3328" "aarch6= 4-linux-gnu"))) > + (package > + (inherit base) > + (arguments > + (substitute-keyword-arguments (package-arguments base) > + ((#:phases phases) > + #~(modify-phases #$phases > + (add-after 'unpack 'set-environment > + (lambda* (#:key native-inputs inputs #:allow-other-keys) > + (setenv "BL31" (search-input-file inputs "bl31.elf")))= ))))) > + (inputs > + (modify-inputs (package-inputs base) > + (append arm-trusted-firmware-rk3328)))))) > + > (define-public u-boot-cubieboard > (make-u-boot-package "Cubieboard" "arm-linux-gnueabihf")) >=20=20 > --=20 > 2.41.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZWo4/wAKCRDcUY/If5cW qqGfAQDAdbk6DWX8qpFAXVPzTSchFKEwee1ebn4268iRRkRBzwEApSg8UyXMYR/R WW4j3FqpfXWMZAUaelZ3er2r4Dm+LQI= =Jb+R -----END PGP SIGNATURE----- --=-=-=--