From: Trevor Woerner <twoerner@gmail.com>
To: drew.moseley@mender.io
Cc: yocto@yoctoproject.org
Subject: Re: [meta-chip][RFC PATCH 3/3] chip: Add chip-u-boot-scr recipe and flash script
Date: Mon, 19 Jun 2017 01:19:00 -0400 [thread overview]
Message-ID: <20170619051900.GA9243@linux-uys3> (raw)
In-Reply-To: <195a92fc1faa49495d1a2b6cda0134f07ce72189.1497646644.git.drew.moseley@mender.io>
On Fri 2017-06-16 @ 05:15:40 PM, drew.moseley@mender.io wrote:
> diff --git a/README b/README
> index cccf59e..cf52e05 100644
> --- a/README
> +++ b/README
> @@ -59,4 +59,28 @@ To build a machine supported by this BSP layer follow the next steps:
Please wrap the additions to the README to 80 columns.
> II. Flashing a C.H.I.P. board
> ========================================
>
> -<TODO>
> +As part of the build including this BSP layer, a U-Boot script and a shell script
> +are created to assist in flashing your images to the CHIP board. Note that this
> +script assumes a maximum size for your UBI image of 0x0A000000 bytes. If your UBI
> +image exceeds that, then you will need to adapt this to your environment.
> +
> +To successfully run this script you will first need to set your board into FEL mode.
> +chip. https://docs.getchip.com/chip.html#flash-chip-with-an-os
> +Insert a wire into the U14 header between pin 7 (FEL) and GND. Then connect the
> +board with a USB cable to your build system.
> +
> +You need to specify the base filename of your UBI image using the UBI_IMAGE shell
> +variable before invoking the generated script as follows:
> +
> +$ UBI_IMAGE=core-image-full-cmdline-chip.ubi ./tmp/deploy/images/chip/flash_CHIP_board.sh
Outside of a udev tweak, this script needs to be run as root. It's traditional
to indicate commands run as root by prefixing them with a PS1 of '#'.
> +
> +This script will take some time to execute. If you have a serial console connected to
> +your board, you will see the progress and a message on the console will indicate when
> +the flashing is completed. Additionally, once the image is properly flashed, the status
> +LED on the CHIP board will flash 30 times per second indicating that it is safe to power
> +down your board and disable FEL mode.
> +
> +WARNING: This will erase the entire contents of your CHIP board.
> +
> +NOTE: This setup is still compatible with the CHIP flashing utility available
> +at http://flash.getchip.com if you choose to reinstall the stock images.
next prev parent reply other threads:[~2017-06-19 5:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-16 21:15 [meta-chip][RFC PATCH 0/3] Initial attempt at flashing instructions drew.moseley
2017-06-16 21:15 ` [meta-chip][RFC PATCH 1/3] u-boot-chip: Deploy the sunxi-spl-with-ecc.bin file drew.moseley
2017-06-16 21:15 ` [meta-chip][RFC PATCH 2/3] chip: Build sunxi-tools-native drew.moseley
2017-06-19 4:30 ` Trevor Woerner
2017-06-16 21:15 ` [meta-chip][RFC PATCH 3/3] chip: Add chip-u-boot-scr recipe and flash script drew.moseley
2017-06-19 5:19 ` Trevor Woerner [this message]
2017-06-19 5:48 ` Trevor Woerner
2017-06-19 7:33 ` Trevor Woerner
2017-06-19 11:22 ` Drew Moseley
2017-06-19 14:40 ` Trevor Woerner
2017-06-22 4:22 ` Petter Mabäcker
2017-06-22 12:16 ` Drew Moseley
2017-06-22 4:16 ` [meta-chip][RFC PATCH 0/3] Initial attempt at flashing instructions Petter Mabäcker
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=20170619051900.GA9243@linux-uys3 \
--to=twoerner@gmail.com \
--cc=drew.moseley@mender.io \
--cc=yocto@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.