From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 17 Apr 2023 15:12:02 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1poOeH-006KPv-2z for lore@lore.pengutronix.de; Mon, 17 Apr 2023 15:12:01 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1poOeG-0003v6-Lp; Mon, 17 Apr 2023 15:12:00 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1poOe0-0003qo-Et; Mon, 17 Apr 2023 15:11:44 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1poOdz-00BtB7-QP; Mon, 17 Apr 2023 15:11:43 +0200 Received: from afa by dude05.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1poOdy-003oPp-JO; Mon, 17 Apr 2023 15:11:42 +0200 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Mon, 17 Apr 2023 15:11:41 +0200 Message-Id: <20230417131141.908678-6-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230417131141.908678-1-a.fatoum@pengutronix.de> References: <20230417131141.908678-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 5/5] v7a: add Wifx L1 SD-Card image X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ahmad Fatoum Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false The Wifx L1 is a SAMA5D4-based LoRaWAN gateway. This commit adds first support for booting DistroKit on it from SD-Card. Default boot medium is NAND, but a bootable SD-Card always has precedence over NAND. Signed-off-by: Ahmad Fatoum --- configs/platform-v7a/platformconfig | 1 + .../platforms/image-wifx-l1-sd.in | 12 +++++++ .../platform-v7a/rules/image-wifx-l1-sd.make | 36 +++++++++++++++++++ doc/hardware.rst | 1 + doc/hardware_v7a_sama5d4.rst | 16 +++++++++ 5 files changed, 66 insertions(+) create mode 100644 configs/platform-v7a/platforms/image-wifx-l1-sd.in create mode 100644 configs/platform-v7a/rules/image-wifx-l1-sd.make create mode 100644 doc/hardware_v7a_sama5d4.rst diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig index 9e6ea531f45e..b09c3c77a03e 100644 --- a/configs/platform-v7a/platformconfig +++ b/configs/platform-v7a/platformconfig @@ -281,6 +281,7 @@ PTXCONF_IMAGE_STM32MP157C_EV1=y PTXCONF_IMAGE_UDOO_NEO=y PTXCONF_IMAGE_VEXPRESS_NOR=y PTXCONF_IMAGE_VEXPRESS=y +PTXCONF_IMAGE_WIFX_L1_SD=y # # ipkg options diff --git a/configs/platform-v7a/platforms/image-wifx-l1-sd.in b/configs/platform-v7a/platforms/image-wifx-l1-sd.in new file mode 100644 index 000000000000..7d5938bd44ac --- /dev/null +++ b/configs/platform-v7a/platforms/image-wifx-l1-sd.in @@ -0,0 +1,12 @@ +## SECTION=image + +config IMAGE_WIFX_L1_SD + tristate + select HOST_GENIMAGE + select IMAGE_ROOT_EXT + select HOST_DOSFSTOOLS + select BAREBOX_AT91 + select AT91BOOTSTRAP2 + prompt "Generate images/wifx-l1.hdimg (SD-Card)" + help + Includes DistroKit support for the Wifx L1 LoRaWAN Gateway. diff --git a/configs/platform-v7a/rules/image-wifx-l1-sd.make b/configs/platform-v7a/rules/image-wifx-l1-sd.make new file mode 100644 index 000000000000..3b92a6ed9b3e --- /dev/null +++ b/configs/platform-v7a/rules/image-wifx-l1-sd.make @@ -0,0 +1,36 @@ +# -*-makefile-*- +# +# Copyright (C) 2020 by Ahmad Fatoum +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +IMAGE_PACKAGES-$(PTXCONF_IMAGE_WIFX_L1_SD) += image-wifx-l1-sd + +# +# Paths and names +# +IMAGE_WIFX_L1_SD := image-wifx-l1-sd +IMAGE_WIFX_L1_SD_DIR := $(BUILDDIR)/$(IMAGE_WIFX_L1_SD) +IMAGE_WIFX_L1_SD_IMAGE := $(IMAGEDIR)/wifx-l1.hdimg +IMAGE_WIFX_L1_SD_FILES := $(IMAGEDIR)/root.tgz +IMAGE_WIFX_L1_SD_CONFIG := at91-sd.config + +# ---------------------------------------------------------------------------- +# Image +# ---------------------------------------------------------------------------- + +IMAGE_WIFX_L1_SD_ENV := \ + FSBL=at91bootstrap.bin \ + SSBL=barebox-wifx-l1.img + +$(IMAGE_WIFX_L1_SD_IMAGE): + @$(call targetinfo) + @$(call image/genimage, IMAGE_WIFX_L1_SD) + @$(call finish) + +# vim: syntax=make diff --git a/doc/hardware.rst b/doc/hardware.rst index 0e885db35e18..5c9a0df94634 100644 --- a/doc/hardware.rst +++ b/doc/hardware.rst @@ -49,6 +49,7 @@ It supports the following hardware: hardware_v7a_raspi23 hardware_v7a_udoo_neo hardware_v7a_sama5d2 + hardware_v7a_sama5d4 If you want to get DistroKit running on your ARMv7-A board which is not listed above, here is a short overview of the generic way: diff --git a/doc/hardware_v7a_sama5d4.rst b/doc/hardware_v7a_sama5d4.rst new file mode 100644 index 000000000000..6d371b003f56 --- /dev/null +++ b/doc/hardware_v7a_sama5d4.rst @@ -0,0 +1,16 @@ +SAMA5D4 boards +============== + +DistroKit currently supports one SAMA5D4 board: + + * Wifx L1 LoRaWAN Gateway + + +Boot Media +---------- + +The L1 will boot from a bootable SD-Card if one is inserted and otherwise +fall back to booting from NAND flash. DistroKit generates only a SD-Card +image for now: + + * ``platform-v7a/images/wifx-l1-sd.hdimg``. -- 2.39.2