All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Gonzalez <alex.gonzalez@digi.com>
To: <meta-freescale@yoctoproject.org>
Subject: [3rdparty][PATCH 2/5] u-boot-digi: Add Digi U-Boot for ConnectCore System-On-Modules
Date: Tue, 6 Nov 2018 16:08:39 +0100	[thread overview]
Message-ID: <1541516922-22117-3-git-send-email-alex.gonzalez@digi.com> (raw)
In-Reply-To: <1541516922-22117-1-git-send-email-alex.gonzalez@digi.com>

This vendor U-Boot is based on v2017.03 and currently supports two
ConnectCore 6UL memory variants, 256MB and 1GB.

To program this U-Boot from a running TFTP server
type the following at the U-Boot prompt:

env set ipaddr <target IP address>
env set serverip <TFTP server IP address>
update linux tftp <filename>

Where filename is:

* u-boot.imx-ccimx6ulstarter - for 256MB variants
* u-boot.imx-ccimx6ulstarter1GB - for 1GB variants

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
---
 .../u-boot/u-boot-digi/ccimx6ul/bootscript.txt     |  7 ++++
 recipes-bsp/u-boot/u-boot-digi_2017.03.bb          | 40 ++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 recipes-bsp/u-boot/u-boot-digi/ccimx6ul/bootscript.txt
 create mode 100644 recipes-bsp/u-boot/u-boot-digi_2017.03.bb

diff --git a/recipes-bsp/u-boot/u-boot-digi/ccimx6ul/bootscript.txt b/recipes-bsp/u-boot/u-boot-digi/ccimx6ul/bootscript.txt
new file mode 100644
index 000000000000..06b42bedcf9a
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-digi/ccimx6ul/bootscript.txt
@@ -0,0 +1,7 @@
+#
+# U-Boot bootscript for NAND images created by Yocto.
+#
+
+setenv fdt_file imx6ul-ccimx6ulsbcexpress.dtb
+setenv zimage zImage-ccimx6ulsbcexpress.bin
+dboot linux nand ${mtdbootpart}
diff --git a/recipes-bsp/u-boot/u-boot-digi_2017.03.bb b/recipes-bsp/u-boot/u-boot-digi_2017.03.bb
new file mode 100644
index 000000000000..f73c2e306721
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-digi_2017.03.bb
@@ -0,0 +1,40 @@
+# Copyright (C) 2018 Digi International
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+DESCRIPTION = "Bootloader for Digi platforms"
+SECTION = "bootloaders"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
+
+require recipes-bsp/u-boot/u-boot.inc
+
+DEPENDS = "u-boot-mkimage-native"
+
+PROVIDES += "u-boot"
+
+SRCBRANCH = "v2017.03/maint"
+SRCREV = "${AUTOREV}"
+
+SRC_URI = "\
+    git://github.com/digi-embedded/u-boot.git;protocol=git;branch=${SRCBRANCH} \
+    file://bootscript.txt \
+"
+
+LOCALVERSION ?= "-${SRCBRANCH}"
+
+S = "${WORKDIR}/git"
+
+inherit dtc-145 fsl-u-boot-localversion
+
+UBOOT_ENV = "boot"
+UBOOT_ENV_SUFFIX = "scr"
+
+do_compile_append () {
+    uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
+        -n "boot script" -d ${WORKDIR}/bootscript.txt \
+        ${WORKDIR}/${UBOOT_ENV_BINARY}
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+COMPATIBLE_MACHINE = "(ccimx6ul)"


  parent reply	other threads:[~2018-11-06 15:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-06 15:08 [3rdparty][PATCH 0/5] Add support for ConnectCore 6UL SOM and SBC Express Alex Gonzalez
2018-11-06 15:08 ` [3rdparty][PATCH 1/5] classes/image_types_digi: Image types for Digi ConnectCore modules Alex Gonzalez
2018-11-06 15:08 ` Alex Gonzalez [this message]
2018-11-10  1:16   ` [3rdparty][PATCH 2/5] u-boot-digi: Add Digi U-Boot for ConnectCore System-On-Modules Otavio Salvador
2018-11-12  8:59     ` Gonzalez, Alex
2018-11-06 15:08 ` [3rdparty][PATCH 3/5] linux-fslc: Add support for the ConnectCore 6UL SoM and SBC Express Alex Gonzalez
2018-11-06 15:08 ` [3rdparty][PATCH 4/5] ccimx6ul: Add machine configuration for ConnectCore 6UL SOM Alex Gonzalez
2018-11-10  1:22   ` Otavio Salvador
2018-11-12  8:58     ` Gonzalez, Alex
2018-11-12 11:53       ` Otavio Salvador
2018-11-06 15:08 ` [3rdparty][PATCH 5/5] ccimx6ulsbcexpress: Add initial board configuration Alex Gonzalez

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=1541516922-22117-3-git-send-email-alex.gonzalez@digi.com \
    --to=alex.gonzalez@digi.com \
    --cc=meta-freescale@yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.