public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/5] sunxi: docs: Unify the formatting style and add some paragraph breaks
Date: Wed, 24 Oct 2018 17:21:31 +0100	[thread overview]
Message-ID: <20181024162131.h7ll4murigwnoyyc@flea> (raw)
In-Reply-To: <39c0dabe232201dd9ad019c3b97657eb4cbbc30a.1540314698.git-series.plaes@plaes.org>

On Tue, Oct 23, 2018 at 08:20:29PM +0300, Priit Laes wrote:
> Signed-off-by: Priit Laes <plaes@plaes.org>
> ---
>  board/sunxi/README.nand    | 18 +++++++++---------
>  board/sunxi/README.sunxi64 | 23 ++++++++++++++++-------
>  2 files changed, 25 insertions(+), 16 deletions(-)
> 
> diff --git a/board/sunxi/README.nand b/board/sunxi/README.nand
> index a5d4ff0..77a8c7d 100644
> --- a/board/sunxi/README.nand
> +++ b/board/sunxi/README.nand
> @@ -29,26 +29,26 @@ board is in FEL mode, you'll need the sunxi-tools that you can find at
>  this repository: https://github.com/linux-sunxi/sunxi-tools
>  
>  Then, you'll need to first load an SPL to initialise the RAM:
> -sunxi-fel spl spl/sunxi-spl.bin
> +$ sunxi-fel spl spl/sunxi-spl.bin
>  
>  Load the binaries we'll flash into RAM:
> -sunxi-fel write 0x4a000000 u-boot-dtb.bin
> -sunxi-fel write 0x43000000 spl/sunxi-spl-with-ecc.bin
> +$ sunxi-fel write 0x4a000000 u-boot-dtb.bin
> +$ sunxi-fel write 0x43000000 spl/sunxi-spl-with-ecc.bin
>  
>  And execute U-Boot
> -sunxi-fel exe 0x4a000000
> +$ sunxi-fel exe 0x4a000000
>  
>  On your board, you'll now have all the needed binaries into RAM, so
>  you only need to erase the NAND...
>  
> -nand erase.chip
> +$ nand erase.chip
>  
>  Then write the SPL and its backup:
>  
> -nand write.raw.noverify 0x43000000 0 40
> -nand write.raw.noverify 0x43000000 0x400000 40
> +$ nand write.raw.noverify 0x43000000 0 40
> +$ nand write.raw.noverify 0x43000000 0x400000 40
>  
>  And finally write the U-Boot binary:
> -nand write 0x4a000000 0x800000 0xc0000
> +$ nand write 0x4a000000 0x800000 0xc0000
>  
> -You can now reboot and enjoy your NAND.
> \ No newline at end of file
> +You can now reboot and enjoy your NAND.
> diff --git a/board/sunxi/README.sunxi64 b/board/sunxi/README.sunxi64
> index bba2e01..63cd8bb 100644
> --- a/board/sunxi/README.sunxi64
> +++ b/board/sunxi/README.sunxi64
> @@ -32,9 +32,10 @@ to build it first.
>  Checkout the "allwinner" branch from the github repository [1] and build it:
>  $ export CROSS_COMPILE=aarch64-linux-gnu-
>  $ make PLAT=sun50iw1p1 DEBUG=1 bl31
> +
>  The resulting binary is build/sun50iw1p1/debug/bl31.bin. Either put the
>  location of this file into the BL31 environment variable or copy this to
> -the root of your U-Boot build directory (or create a symbolic link).
> +the root of your U-Boot build directory (or create a symbolic link):
>  $ export BL31=/src/arm-trusted-firmware/build/sun50iw1p1/debug/bl31.bin
>    (adjust the actual path accordingly)
>  
> @@ -48,7 +49,8 @@ binaries in the firmware repository[3], purely for convenience reasons.
>  ------------
>  Both U-Boot proper and the SPL are using the 64-bit mode. As the boot ROM
>  enters the SPL still in AArch32 secure SVC mode, there is some shim code to
> -enter AArch64 very early. The rest of the SPL runs in AArch64 EL3.
> +enter AArch64 very early. The rest of the SPL runs in AArch64 EL3 mode.
> +
>  U-Boot proper runs in EL2 and can load any AArch64 code (using the "go"
>  command), EFI applications (with "bootefi") or arm64 Linux kernel images
>  (often named "Image"), using the "booti" command.
> @@ -95,15 +97,15 @@ feature is disabled in the configuration at the moment.
>  microSD card
>  ------------
>  Transfer the SPL and the U-Boot FIT image directly to an uSD card:
> -# dd if=spl/sunxi-spl.bin of=/dev/sdx bs=8k seek=1
> -# dd if=u-boot.itb of=/dev/sdx bs=8k seek=5
> -# sync
> +$ dd if=spl/sunxi-spl.bin of=/dev/sdx bs=8k seek=1
> +$ dd if=u-boot.itb of=/dev/sdx bs=8k seek=5
> +$ sync

Usually, these will need to be run as root, hence the #.

Looks good otherwise.

Maxime

-- 
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-10-24 16:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-23 17:20 [U-Boot] [PATCH 0/5] sunxi: doc: Add fastboot example + misc cleanups Priit Laes
2018-10-23 17:20 ` [U-Boot] [PATCH 1/5] sunxi: Fix typos of spelling Allwinner Priit Laes
2018-10-24 16:20   ` Maxime Ripard
2018-10-24 16:33   ` [U-Boot] [linux-sunxi] " Jagan Teki
2018-10-23 17:20 ` [U-Boot] [PATCH 2/5] sunxi: docs: Unify the formatting style and add some paragraph breaks Priit Laes
2018-10-24 16:21   ` Maxime Ripard [this message]
2018-10-23 17:20 ` [U-Boot] [PATCH 3/5] sunxi: docs: Mention CONFIG_NAND requirement Priit Laes
2018-10-24 16:21   ` Maxime Ripard
2018-10-24 16:33   ` [U-Boot] [linux-sunxi] " Jagan Teki
2018-10-23 17:20 ` [U-Boot] [PATCH 4/5] sunxi: display: Mark sunxi_rgb2yuv_coef array as const Priit Laes
2018-10-23 19:00   ` Anatolij Gustschin
2018-10-24 16:22   ` Maxime Ripard
2018-10-24 16:34   ` [U-Boot] [linux-sunxi] " Jagan Teki
2018-10-23 17:20 ` [U-Boot] [PATCH 5/5] sunxi: doc: Add basic fastboot example Priit Laes
2018-10-24  5:54   ` [U-Boot] [linux-sunxi] " Jonathan Liu
2018-10-24 11:54   ` [U-Boot] " Priit Laes
2018-10-24 16:34   ` Maxime Ripard
2018-10-24 17:08     ` [U-Boot] [linux-sunxi] " Priit Laes
2018-10-24 16:36   ` [U-Boot] [linux-sunxi] " Jagan Teki
2018-10-24 18:14     ` Maxime Ripard

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=20181024162131.h7ll4murigwnoyyc@flea \
    --to=maxime.ripard@bootlin.com \
    --cc=u-boot@lists.denx.de \
    /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