All of lore.kernel.org
 help / color / mirror / Atom feed
From: york sun <york.sun@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] board/ls2080qds: add the procedure to deply QSPI image.
Date: Tue, 11 Oct 2016 15:21:12 +0000	[thread overview]
Message-ID: <AM4PR0401MB173236BD57140A1A2B11440A9ADA0@AM4PR0401MB1732.eurprd04.prod.outlook.com> (raw)
In-Reply-To: 1476165141-10564-1-git-send-email-yao.yuan@freescale.com

On 10/10/2016 11:04 PM, Yuan Yao wrote:
> From: Yuan Yao <yao.yuan@nxp.com>
>
> Signed-off-by: Yuan Yao <yao.yuan@nxp.com>
> ---
>  board/freescale/ls2080aqds/README | 35 +++++++++++++++++++++++++++++++++++
>  1 file changed, 35 insertions(+)
>
> diff --git a/board/freescale/ls2080aqds/README b/board/freescale/ls2080aqds/README
> index f288750..0f7446a 100644
> --- a/board/freescale/ls2080aqds/README
> +++ b/board/freescale/ls2080aqds/README
> @@ -188,3 +188,38 @@ DPMAC14 -> PHY4-P1
>  DPMAC15 -> PHY4-P2
>  DPMAC16 -> PHY4-P3
>
> +
> +Booting from QSPI
> +-------------------
> +Booting from QSPI requires two images, RCW and u-boot-dtb.bin.
> +The difference between QSPI boot RCW image and NOR boot image is the PBI
> +command sequence. Below is the setting for PBI commands for QDS which boot
> +on QSPI flash device.
> +
> +1) CCSR 4-byte write to 0x00e00404, data=0x00000000
> +2) CCSR 4-byte write to 0x00e00400, data=0x20010000
> +The above two commands set bootloc register to 0x00000000_20010000 where
> +the u-boot code will be running in QSPI flash.
> +
> +RCW image should be written to the beginning of QSPI flash device.
> +Example of using u-boot command
> +
> +=> sf probe 0:0
> +SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
> +=> sf erase 0 +<size of rcw image>
> +SF: 65536 bytes @ 0x0 Erased: OK
> +=> sf write <rcw image in memory> 0 <size of rcw image>
> +SF: 164 bytes @ 0x0 Written: OK
> +
> +To get the QSPI image, build u-boot with QSPI config, for example,
> +ls2080aqds_qspi_defconfig. The image needed is u-boot-dtb.bin.
> +The u-boot image should be written to 0x10000.
> +
> +=> sf probe 0:0
> +SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
> +=> sf erase 10000 +<size of u-boot image>
> +SF: 589824 bytes @ 0x10000 Erased: OK
> +=> sf write <u-boot image in memory> 10000 <size of u-boot image>
> +SF: 580966 bytes @ 0x10000 Written: OK
> +
> +With these two images in QSPI flash device, the board can boot from QSPI.
>

Yuan Yao,

I think the procedure can be applied to many of our boards with QSPI, 
right? It may be better to move this information out of ls2080aqds.

York

  reply	other threads:[~2016-10-11 15:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-11  5:52 [U-Boot] [PATCH] board/ls2080qds: add the procedure to deply QSPI image Yuan Yao
2016-10-11 15:21 ` york sun [this message]
2016-10-12  3:00   ` Yao Yuan
2016-10-12  3:36     ` york sun
2016-10-14  6:45       ` Yao Yuan
2016-10-14 15:35         ` york sun
2016-10-17  3:58           ` Yao Yuan
2016-11-07 18:17             ` york sun
2016-11-08  3:54               ` Yao Yuan

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=AM4PR0401MB173236BD57140A1A2B11440A9ADA0@AM4PR0401MB1732.eurprd04.prod.outlook.com \
    --to=york.sun@nxp.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 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.