public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Cedric Hombourger <Cedric_Hombourger@mentor.com>
To: <isar-users@googlegroups.com>
Cc: Cedric Hombourger <cedric_hombourger@mentor.com>
Subject: [PATCH] meta-isar: add support for the nanopi-neo board
Date: Mon, 6 Jan 2020 09:33:41 +0100	[thread overview]
Message-ID: <1578299621-168-1-git-send-email-Cedric_Hombourger@mentor.com> (raw)

From: Cedric Hombourger <cedric_hombourger@mentor.com>

The Debian sunxi kernel supports the nanopi-neo out of the box. Add
machine .conf and wks files to provide users a cheap option to try
out Isar.

Signed-off-by: Cedric Hombourger <cedric_hombourger@mentor.com>
---
 meta-isar/conf/local.conf.sample                   |  1 +
 meta-isar/conf/machine/nanopi-neo.conf             | 14 ++++++++++++++
 meta-isar/conf/multiconfig/nanopi-neo-buster.conf  |  7 +++++++
 .../scripts/lib/wic/canned-wks/nanopi-neo.wks.in   | 10 ++++++++++
 4 files changed, 32 insertions(+)
 create mode 100644 meta-isar/conf/machine/nanopi-neo.conf
 create mode 100644 meta-isar/conf/multiconfig/nanopi-neo-buster.conf
 create mode 100644 meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in

diff --git a/meta-isar/conf/local.conf.sample b/meta-isar/conf/local.conf.sample
index 280e007..2a55df4 100644
--- a/meta-isar/conf/local.conf.sample
+++ b/meta-isar/conf/local.conf.sample
@@ -58,6 +58,7 @@ BBMULTICONFIG = " \
     de0-nano-soc-stretch \
     hikey-stretch \
     nand-ubi-demo-buster \
+    nanopi-neo-buster \
     rpi-stretch \
 "
 
diff --git a/meta-isar/conf/machine/nanopi-neo.conf b/meta-isar/conf/machine/nanopi-neo.conf
new file mode 100644
index 0000000..c031b6c
--- /dev/null
+++ b/meta-isar/conf/machine/nanopi-neo.conf
@@ -0,0 +1,14 @@
+# This software is a part of ISAR.
+# Copyright (c) Mentor, a Siemens business, 2020
+#
+# SPDX-License-Identifier: MIT
+
+DISTRO_ARCH ?= "armhf"
+
+KERNEL_NAME ?= "armmp"
+
+IMAGE_TYPE ?= "wic-img"
+WKS_FILE ?= "nanopi-neo.wks.in"
+
+IMAGE_INSTALL += "u-boot-script"
+IMAGER_INSTALL += "u-boot-sunxi"
diff --git a/meta-isar/conf/multiconfig/nanopi-neo-buster.conf b/meta-isar/conf/multiconfig/nanopi-neo-buster.conf
new file mode 100644
index 0000000..e676767
--- /dev/null
+++ b/meta-isar/conf/multiconfig/nanopi-neo-buster.conf
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (c) Mentor, a Siemens business, 2020
+#
+# SPDX-License-Identifier: MIT
+
+MACHINE = "nanopi-neo"
+DISTRO = "debian-buster"
diff --git a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
new file mode 100644
index 0000000..2e98390
--- /dev/null
+++ b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
@@ -0,0 +1,10 @@
+#
+# Copyright (c) Siemens AG, 2018
+#
+# SPDX-License-Identifier: MIT
+
+part u-boot --source rawcopy --sourceparams "file=/usr/lib/u-boot/nanopi_neo/u-boot-sunxi-with-spl.bin" --no-table --align 8
+
+part / --source rootfs-u-boot --ondisk mmcblk0 --fstype ext4 --label platform --align 1024 --active
+
+bootloader --append "rw rootwait"
-- 
2.17.1


             reply	other threads:[~2020-01-06  8:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-06  8:33 Cedric Hombourger [this message]
2020-01-06  9:43 ` Baurzhan Ismagulov
2020-01-06 16:34   ` cedric_hombourger
2020-01-07 12:08     ` Baurzhan Ismagulov
2020-01-09 16:59 ` Baurzhan Ismagulov
2020-03-05 10:25 ` Baurzhan Ismagulov

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=1578299621-168-1-git-send-email-Cedric_Hombourger@mentor.com \
    --to=cedric_hombourger@mentor.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