From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Subject: [PATCH 05/10] meta-isar: Add Terasic DE0-Nano-SoC as demonstration board
Date: Mon, 5 Nov 2018 07:52:05 +0100 [thread overview]
Message-ID: <80ea2325794f3365e91cb4dc96fad20a09960ced.1541400730.git.jan.kiszka@siemens.com> (raw)
In-Reply-To: <cover.1541400730.git.jan.kiszka@siemens.com>
In-Reply-To: <cover.1541400730.git.jan.kiszka@siemens.com>
From: Jan Kiszka <jan.kiszka@siemens.com>
This requires to build a recent U-Boot release as well as a kernel with
a DTB renaming patch so that U-Boot will find the corresponding device
tree.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
meta-isar/conf/local.conf.sample | 1 +
meta-isar/conf/machine/de0-nano-soc.conf | 18 ++++++++++
.../conf/multiconfig/de0-nano-soc-stretch.conf | 7 ++++
meta-isar/recipes-bsp/u-boot/u-boot_2018.09.bb | 11 ++++++
...fpga-Rename-socfpga_cyclone5_de0_-sockit-.patch | 41 ++++++++++++++++++++++
.../recipes-kernel/linux/linux-mainline_4.19.0.bb | 3 ++
.../scripts/lib/wic/canned-wks/de0-nano-soc.wks | 10 ++++++
7 files changed, 91 insertions(+)
create mode 100644 meta-isar/conf/machine/de0-nano-soc.conf
create mode 100644 meta-isar/conf/multiconfig/de0-nano-soc-stretch.conf
create mode 100644 meta-isar/recipes-bsp/u-boot/u-boot_2018.09.bb
create mode 100644 meta-isar/recipes-kernel/linux/files/0001-ARM-dts-socfpga-Rename-socfpga_cyclone5_de0_-sockit-.patch
create mode 100644 meta-isar/scripts/lib/wic/canned-wks/de0-nano-soc.wks
diff --git a/meta-isar/conf/local.conf.sample b/meta-isar/conf/local.conf.sample
index 6a70d34..45de252 100644
--- a/meta-isar/conf/local.conf.sample
+++ b/meta-isar/conf/local.conf.sample
@@ -49,6 +49,7 @@ BBMULTICONFIG = " \
qemuamd64-jessie \
qemuamd64-stretch \
bananapi-stretch \
+ de0-nano-soc-stretch \
qemuamd64-buster \
rpi-jessie \
"
diff --git a/meta-isar/conf/machine/de0-nano-soc.conf b/meta-isar/conf/machine/de0-nano-soc.conf
new file mode 100644
index 0000000..63b2cfb
--- /dev/null
+++ b/meta-isar/conf/machine/de0-nano-soc.conf
@@ -0,0 +1,18 @@
+#
+# Copyright (c) Siemens AG, 2018
+#
+# SPDX-License-Identifier: MIT
+
+DISTRO_ARCH ?= "armhf"
+
+KERNEL_NAME ?= "mainline"
+
+U_BOOT_CONFIG_de0-nano-soc = "socfpga_de0_nano_soc_defconfig"
+U_BOOT_BIN_de0-nano-soc = "u-boot-with-spl.sfp"
+
+IMAGE_TYPE ?= "wic-img"
+WKS_FILE ?= "de0-nano-soc"
+IMAGER_INSTALL += "u-boot-de0-nano-soc"
+IMAGER_BUILD_DEPS += "u-boot-de0-nano-soc"
+
+IMAGE_INSTALL += "u-boot-tools u-boot-script"
diff --git a/meta-isar/conf/multiconfig/de0-nano-soc-stretch.conf b/meta-isar/conf/multiconfig/de0-nano-soc-stretch.conf
new file mode 100644
index 0000000..6882493
--- /dev/null
+++ b/meta-isar/conf/multiconfig/de0-nano-soc-stretch.conf
@@ -0,0 +1,7 @@
+#
+# Copyright (c) Siemens AG, 2018
+#
+# SPDX-License-Identifier: MIT
+
+MACHINE = "de0-nano-soc"
+DISTRO = "debian-stretch"
diff --git a/meta-isar/recipes-bsp/u-boot/u-boot_2018.09.bb b/meta-isar/recipes-bsp/u-boot/u-boot_2018.09.bb
new file mode 100644
index 0000000..e0f756c
--- /dev/null
+++ b/meta-isar/recipes-bsp/u-boot/u-boot_2018.09.bb
@@ -0,0 +1,11 @@
+#
+# Copyright (c) Siemens AG, 2018
+#
+# SPDX-License-Identifier: MIT
+
+require recipes-bsp/u-boot/u-boot-custom.inc
+
+SRC_URI += " \
+ ftp://ftp.denx.de/pub/u-boot/u-boot-2018.09.tar.bz2 \
+ "
+SRC_URI[sha256sum] = "839bf23cfe8ce613a77e583a60375179d0ad324e92c82fbdd07bebf0fd142268"
diff --git a/meta-isar/recipes-kernel/linux/files/0001-ARM-dts-socfpga-Rename-socfpga_cyclone5_de0_-sockit-.patch b/meta-isar/recipes-kernel/linux/files/0001-ARM-dts-socfpga-Rename-socfpga_cyclone5_de0_-sockit-.patch
new file mode 100644
index 0000000..8eb602d
--- /dev/null
+++ b/meta-isar/recipes-kernel/linux/files/0001-ARM-dts-socfpga-Rename-socfpga_cyclone5_de0_-sockit-.patch
@@ -0,0 +1,41 @@
+From 202eb5481421040e115526b75317b5ca72584806 Mon Sep 17 00:00:00 2001
+From: Marek Vasut <marex@denx.de>
+Date: Wed, 29 Aug 2018 17:15:04 +0200
+Subject: [PATCH] ARM: dts: socfpga: Rename
+ socfpga_cyclone5_de0_{sockit,nano_soc}
+
+Rename DT source for DE0 Nano SoC . The board name is really DE0-Nano-SoC
+or Atlas SoC, and it is not to be confused with SoCkit board, which is a
+different one. Rename the DT source file to match the board name and to
+avoid this possible mixup with another different board.
+
+Signed-off-by: Marek Vasut <marex@denx.de>
+Cc: Dinh Nguyen <dinguyen@kernel.org>
+Cc: Jan Kiszka <jan.kiszka@siemens.com>
+Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
+---
+ arch/arm/boot/dts/Makefile | 2 +-
+ ...ocfpga_cyclone5_de0_sockit.dts => socfpga_cyclone5_de0_nano_soc.dts} | 0
+ 2 files changed, 1 insertion(+), 1 deletion(-)
+ rename arch/arm/boot/dts/{socfpga_cyclone5_de0_sockit.dts => socfpga_cyclone5_de0_nano_soc.dts} (100%)
+
+diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
+index b5bd3de87c33..1036d396da83 100644
+--- a/arch/arm/boot/dts/Makefile
++++ b/arch/arm/boot/dts/Makefile
+@@ -892,7 +892,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) += \
+ socfpga_arria10_socdk_sdmmc.dtb \
+ socfpga_cyclone5_mcvevk.dtb \
+ socfpga_cyclone5_socdk.dtb \
+- socfpga_cyclone5_de0_sockit.dtb \
++ socfpga_cyclone5_de0_nano_soc.dtb \
+ socfpga_cyclone5_sockit.dtb \
+ socfpga_cyclone5_socrates.dtb \
+ socfpga_cyclone5_sodia.dtb \
+diff --git a/arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_de0_nano_soc.dts
+similarity index 100%
+rename from arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts
+rename to arch/arm/boot/dts/socfpga_cyclone5_de0_nano_soc.dts
+--
+2.16.4
+
diff --git a/meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb b/meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb
index b109f3c..e50e149 100644
--- a/meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb
+++ b/meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb
@@ -14,6 +14,9 @@ SRC_URI += " \
file://x86_64_defconfig"
SRC_URI[sha256sum] = "0c68f5655528aed4f99dae71a5b259edc93239fa899e2df79c055275c21749a1"
+SRC_URI_append_de0-nano-soc = " \
+ file://0001-ARM-dts-socfpga-Rename-socfpga_cyclone5_de0_-sockit-.patch"
+
S = "${WORKDIR}/linux-${ARCHIVE_VERSION}"
KERNEL_DEFCONFIG_qemuamd64 = "x86_64_defconfig"
diff --git a/meta-isar/scripts/lib/wic/canned-wks/de0-nano-soc.wks b/meta-isar/scripts/lib/wic/canned-wks/de0-nano-soc.wks
new file mode 100644
index 0000000..993a4ca
--- /dev/null
+++ b/meta-isar/scripts/lib/wic/canned-wks/de0-nano-soc.wks
@@ -0,0 +1,10 @@
+#
+# Copyright (c) Siemens AG, 2018
+#
+# SPDX-License-Identifier: MIT
+
+part --source rawcopy --sourceparams "file=/usr/lib/u-boot/de0-nano-soc/u-boot-with-spl.sfp" --system-id 0xa2 --align 1
+
+part / --source rootfs --ondisk mmcblk0 --fstype ext4 --label platform --align 1024 --active
+
+bootloader --append "rw rootwait"
--
2.16.4
next prev parent reply other threads:[~2018-11-05 6:52 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-05 6:52 [PATCH 00/10] HiKey and DE0 Nano SoC boards, further improvements and cleanups Jan Kiszka
2018-11-05 6:52 ` [PATCH 01/10] meta: builchroot: Preserve environment when calling dpkg-buildpackage Jan Kiszka
2018-11-05 9:41 ` Henning Schild
2018-11-05 9:46 ` Jan Kiszka
2018-11-05 10:05 ` Henning Schild
2018-11-05 10:16 ` [PATCH v2 " Jan Kiszka
2018-11-05 14:15 ` [PATCH " Baurzhan Ismagulov
2018-11-05 14:25 ` Jan Kiszka
2018-11-05 15:36 ` Henning Schild
2018-11-06 10:53 ` Baurzhan Ismagulov
2018-11-05 6:52 ` [PATCH 02/10] meta-isar: Remove remaining wheezy traces Jan Kiszka
2018-11-09 14:22 ` Baurzhan Ismagulov
2018-11-05 6:52 ` [PATCH 03/10] meta-isar: linux: Update mainline recipe to 4.19 Jan Kiszka
2018-11-05 6:52 ` [PATCH 04/10] meta-isar: example-module: Only disable cross-compilation for Debian kernels Jan Kiszka
2018-11-05 6:52 ` Jan Kiszka [this message]
2018-11-05 6:52 ` [PATCH 06/10] meta-isar: Add LeMaker HiKey board Jan Kiszka
2018-11-05 6:52 ` [PATCH 07/10] meta: linux-module: Fix arm64 cross-build Jan Kiszka
2018-11-05 6:52 ` [PATCH 08/10] wic: bootimg-efi-isar: Avoid append "None" to kernel command line Jan Kiszka
2018-11-05 6:52 ` [PATCH 09/10] wic: bootimg-efi-isar: Make agnostic to partition order Jan Kiszka
2018-11-05 6:52 ` [PATCH 10/10] image: Add install_image_deps to cache_base_repo dependencies Jan Kiszka
2018-11-06 9:59 ` [PATCH 00/10] HiKey and DE0 Nano SoC boards, further improvements and cleanups Maxim Yu. Osipov
2018-11-06 10:49 ` Baurzhan Ismagulov
2018-11-06 10:51 ` Jan Kiszka
2018-11-07 13:11 ` Maxim Yu. Osipov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=80ea2325794f3365e91cb4dc96fad20a09960ced.1541400730.git.jan.kiszka@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox