From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uHPyNmWrkGOATAAAbAwnHQ (envelope-from ) for ; Wed, 07 Dec 2022 16:04:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CHs7N2WrkGM0EQAA9RJhRA (envelope-from ) for ; Wed, 07 Dec 2022 16:04:05 +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 AB8FEC272 for ; Wed, 7 Dec 2022 16:03:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2vwx-0005Uv-Nn; Wed, 07 Dec 2022 10:03:07 -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 1p2vwt-0005TR-De for guix-patches@gnu.org; Wed, 07 Dec 2022 10:03:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2vwt-0001Bh-4Z for guix-patches@gnu.org; Wed, 07 Dec 2022 10:03:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2vws-0001mF-Uk for guix-patches@gnu.org; Wed, 07 Dec 2022 10:03:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59761] [PATCH v2 3/3] gnu: Add u-boot-ts7970-q-2g-1000mhz-c. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 07 Dec 2022 15:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59761 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59761@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 59761-submit@debbugs.gnu.org id=B59761.16704253466799 (code B ref 59761); Wed, 07 Dec 2022 15:03:02 +0000 Received: (at 59761) by debbugs.gnu.org; 7 Dec 2022 15:02:26 +0000 Received: from localhost ([127.0.0.1]:50594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2vwI-0001lb-91 for submit@debbugs.gnu.org; Wed, 07 Dec 2022 10:02:26 -0500 Received: from mail-qt1-f169.google.com ([209.85.160.169]:36614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2vwF-0001lO-Vo for 59761@debbugs.gnu.org; Wed, 07 Dec 2022 10:02:24 -0500 Received: by mail-qt1-f169.google.com with SMTP id fz10so16347748qtb.3 for <59761@debbugs.gnu.org>; Wed, 07 Dec 2022 07:02:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=p5wI9ih4sGG7tmAaT8DEMAQkQJd9051SfheVeAZ+kbA=; b=KR5rV1Rm+SRN1AlbYJTivvsP4MoCx32vv21+Qc7G1ZJZRQQsRy1Kf8xyT0OW86/Dej jfIDyKN6GrDSnQXCTtaCiPznqf0ABYDxLTQO0bv+f7/o5SrsH75Tfsg+cI0RF5+KgG7d qnF3V0uct+8jfnGxlNg7V9lsR6ej63fMipam+kYBAZ9aqzzYOuFDQBU12JgHBPJm71Me hLyJS6HX14H3l3zzVR9YOnWCWkGtSlo4rb6I37pP3PEuGtUiBgCbmYQxskdWBeC94yvi 92V7VAQpR6vC8lskNSOVR1QPxkK0QMiBkF6PTbzco5Flwy8KkDJj0LhHGsy8QGC28PVO vOHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p5wI9ih4sGG7tmAaT8DEMAQkQJd9051SfheVeAZ+kbA=; b=wFifYj3Kv0M3FNSr/66h6Nw3kdf/WzE/nVGxurzhm+KnzPYzz1UqcnJuFzGU1BGkjF qDS46kJyRQJIAgaKlJzmaYxGlY6T55QhXjyay0Tb5NAkq80xUyAH/JCh2pP5q3FZIiKJ wP54cBWkAh2/LUtJGo5RyYPzLC6jVlgsAZjQHcQq8DeoQP1oGG/+CSdhYhvpogTPdDV8 ELpKYRBv8kBzRJtfPq6jti1MMUS1rBe0tLh/TM5CwLXLLB/6shJ1KVM3VmetM+Ca5m72 rfdIwzwnEGbkZ/1/il1H+j91COsDFbXYS3sMVLk96q70ANpwcIAs0bNlZSRFDh77GS4V jDXw== X-Gm-Message-State: ANoB5pm+nZaLPrPdvxEIeGIjH359RXYB/NU0A9ucH7LitmVucwD96yiz BVihM+kIj//VFxAWC0zrQvPQ7V1nG7U= X-Google-Smtp-Source: AA0mqf5whxXFDPwJ55G6k1ILLGbnPWYUKtE4A4lvDTRhHRofGXZxJWMFSHbQhN3AOSrlBrDNiRQizA== X-Received: by 2002:a05:622a:5c9b:b0:3a6:77f5:10da with SMTP id ge27-20020a05622a5c9b00b003a677f510damr1366577qtb.42.1670425337872; Wed, 07 Dec 2022 07:02:17 -0800 (PST) Received: from localhost.localdomain (dsl-205-233-124-140.b2b2c.ca. [205.233.124.140]) by smtp.gmail.com with ESMTPSA id a7-20020ac84d87000000b003a6a19ee4f0sm9372462qtw.33.2022.12.07.07.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 07:02:17 -0800 (PST) From: Maxim Cournoyer Date: Wed, 7 Dec 2022 10:02:01 -0500 Message-Id: <20221207150201.9383-3-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221207150201.9383-1-maxim.cournoyer@gmail.com> References: <20221207150201.9383-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670425424; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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=p5wI9ih4sGG7tmAaT8DEMAQkQJd9051SfheVeAZ+kbA=; b=QjjkJmISKEXreFLPc1GN9tc8V6WbPKaY2JLmW64H8GO28ROY9UXOONhfLfEtZHyE4QiXm1 flaUeHqVgFjDO/IYC/kcXwTBt01Vy98R2DzeUV51L4lArjWb6/6ESLyOHjULbsZPLIqFpF EYPP2pIm3Lt1qeUOo5HEbdLk6qm7jt747krl0r/zdvxZRQNi7/cjDVHjwAhh6fu/IITpRV gGxid35O1x6ZZsZl76QC9rWum5wqfUk9Oisxwr6klGavgZwExk45IxMktYhhXLnYONrEzU M27F3RWh631VP614DitgNfxlqz0wn1889Q97jppNMRCYjUYpCtxdRp87D7ljMg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670425424; a=rsa-sha256; cv=none; b=JdEKipB9VQ9GiJQh4rOyaxCMc6VdOdxPZgJFl2jTn2vASBKdtlUdZQnO9lHTiZh/klkgvY 9y1YNK3uP6F5F6+MjLnV1FtgiH82SGZEHBeGRdPdCq8m8qErGdAWSxH8AVaoDZAgy8HRyb SoUrz47vSRni/r8psZzCNK7CD+YoRBdWq1kpqbR4s3o3asW7aT4SMuEwNeuq+W9ywCWm1A p1cJZCloRPfBUArV4qXMLTHO8ax2BxLuE13HwOS/QMe/PHBvF4gA7ow+0wiB88P4Mbr/w6 KmLnWeE8V6urU/bOVTHIqR2JMD6GQPoTLDQYzKM6XuT9wF360mzBkEhtfop/hw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KR5rV1Rm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" X-Migadu-Spam-Score: 8.04 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KR5rV1Rm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" X-Migadu-Queue-Id: AB8FEC272 X-Spam-Score: 8.04 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: eRDXYpjYRWy8 * gnu/packages/bootloaders.scm (u-boot-ts-mx6): New variable. (u-boot-ts7970-q-2g-1000mhz-c): Likewise. --- gnu/packages/bootloaders.scm | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index ab2cf06fd5..28a85eeca5 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -1271,6 +1271,65 @@ (define-public u-boot-rpi-4-32b-efi-bin (define-public u-boot-rpi-arm64-efi-bin (make-u-boot-bin-package u-boot-rpi-arm64-efi)) +(define u-boot-ts-mx6 + ;; There is no release; use the latest commit of the + ;; 'imx_v2015.04_3.14.52_1.1.0_ga' branch. + (let ((revision "0") + (commit "344403c64d93813fce8c6d94ed4c3ffb1fe2a181")) + (package + (inherit u-boot) + (name "u-boot-ts-mx6") + (version (git-version "2015.04_3" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/embeddedTS/u-boot-imx") + (commit commit))) + (file-name (git-file-name "u-boot-imx-ts" version)) + (sha256 + (base32 + "081swfz204dsy0nss4r55b8453w766yp2wgrh5y10l3gjc0fkrs1")))) + (arguments + (substitute-keyword-arguments (package-arguments u-boot) + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (add-after 'unpack 'patch-for-reproducibility + (lambda _ + ;; Substitute dynamically computed timestamps with static + ;; ones. + (substitute* "Makefile" + (("U_BOOT_DATE \"%b %d %C%y\"") + "U_BOOT_DATE \"Jan 01 1969\"") + (("U_BOOT_TIME \"%T\"") + "U_BOOT_TIME \"00:00:00\"")))) + (add-before 'build 'adjust-for-gcc10 + (lambda _ + (invoke "gcc" "--version") + (copy-file "include/linux/compiler-gcc6.h" + "include/linux/compiler-gcc10.h") + (substitute* "arch/arm/Makefile" + (("march=armv5") + "march=armv5te")))) + (add-after 'install 'build+install-tools + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" "tools-all" make-flags) + (install-file "tools/env/fw_printenv" + (string-append #$output "/bin")) + (symlink (string-append #$output "/bin/fw_printenv") + (string-append #$output "/bin/fw_setenv")))))))) + (native-inputs + (modify-inputs (package-native-inputs u-boot) + (delete "dtc")))))) ;otherwise the build fails + +(define-public u-boot-ts7970-q-2g-1000mhz-c + (make-u-boot-package "ts7970-q-2g-1000mhz-c" "arm-linux-gnueabihf" + #:u-boot u-boot-ts-mx6 + #:append-description + "This U-Boot variant is for the Technologic Systems +TS-7970 revision C board, which includes a quad core Freescale i.MX6 CPU and 2 +GiB of RAM clocked at 1000MHz. The binary U-Boot image to flash is the +@file{libexec/u-boot.imx} file.")) + (define-public vboot-utils (package (name "vboot-utils") -- 2.38.1