public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] meta-isar: add support for the nanopi-neo board
@ 2020-01-06  8:33 Cedric Hombourger
  2020-01-06  9:43 ` Baurzhan Ismagulov
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Cedric Hombourger @ 2020-01-06  8:33 UTC (permalink / raw)
  To: isar-users; +Cc: Cedric Hombourger

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-05 10:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06  8:33 [PATCH] meta-isar: add support for the nanopi-neo board Cedric Hombourger
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox