From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] powerpc/p1010rdb: add readme document for p1010rdb
Date: Wed, 2 May 2012 13:42:12 -0500 [thread overview]
Message-ID: <4FA18004.9090705@freescale.com> (raw)
In-Reply-To: <1335950258-21166-1-git-send-email-Shengzhou.Liu@freescale.com>
On 05/02/2012 04:17 AM, Shengzhou Liu wrote:
> +Settings of DIP-switch
> +======================
> + SW4[1:4]= 1111 and SW6[4]=0 for boot from 16bit NOR flash
> + SW4[1:4]= 1000 and SW6[4]=1 for boot from 8bit NAND flash
> + SW4[1:4]= 0110 and SW6[4]=0 for boot from SPI flash
> +Note: 1 stands for 'on', 0 stands for 'off'
> +
> +Please refer to P1010-RDB User Guide for details.
Where might one find this user guide?
> +Setting of hwconfig
> +===================
> +If FlexCAN or TDM is needed, please set "fsl_p1010mux:tdm_can=can" or
> +"fsl_p1010mux:tdm_can=tdm" explicitly in u-booot prompt as below for example:
> +setenv hwconfig "fsl_p1010mux:tdm_can=tdm;usb1:dr_mode=host,phy_type=utmi"
> +By default, don't set fsl_p1010mux:tdm_can, in this case, spi chip selection
> +is set to spi-flash instead of to SLIC/TDM/DAC and tdm_can_sel is set to TDM
> +instead of to CAN/UART1.
> +
> +
> +Build and burn u-boot to NOR flash
> +=======================================
> +1. Build u-boot.bin image
> + export ARCH=powerpc
> + export CROSS_COMPILE=/your_path/powerpc-linux-gnu-
> + make P1010RDB_NOR
> +
> +2. Burn u-boot.bin into NOR flash
> + => tftp $loadaddr $uboot
> + => protect off eff80000 +$filesize
> + => erase eff80000 +$filesize
> + => cp.b $loadaddr eff80000 $filesize
> +
> +3. Check SW4[1:4]= 1111 and SW6[4]=0, then power on.
> +
> +
> +
> +Build and burn u-boot to NAND flash
> +========================================
> +1. Build u-boot.bin image
> + export ARCH=powerpc
> + export CROSS_COMPILE=/your_path/powerpc-linux-gnu-
> + make P1010RDB_NAND
> +
> +2. Burn u-boot-nand.bin into NAND flash
> + => tftp $loadaddr $uboot-nand
> + => nand erase 0 $filesize
> + => nand write $loadaddr 0 $filesize
> +
> +3. Check SW4[1:4]= 1000 and SW6[4]=1, then power on.
> +
> +
> +
> +Build and burn u-boot to SPI flash
> +=======================================
> +1. Build u-boot-spi.bin image
> + make P1010RDB_SPIFLASH_config; make
> + Boot up kernel with rootfs.ext2.gz.uboot.p1010rdb
> + Download u-boot.bin to linux and you can find some config files
> + under /usr/share such as config_xx.dat. Do below command:
> + boot_format config_ddr3_1gb_p1010rdb_800M.dat u-boot.bin -spi \
> + u-boot-spi.bin
> + to generate u-boot-spi.bin.
> +
> +2. Burn u-boot-spi.bin into SPI flash
> + => tftp $loadaddr $uboot-spi
> + => sf erase 0 100000
> + => sf write $loadaddr 0 $filesize
> +
> +3. Check SW4[1:4]= 0110 and SW6[4]=0, then power on.
Also describe how do select boot mode via software rather than switches,
and describe alternate NOR bank.
-Scott
next prev parent reply other threads:[~2012-05-02 18:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-02 9:17 [U-Boot] [PATCH] powerpc/p1010rdb: add readme document for p1010rdb Shengzhou Liu
2012-05-02 18:42 ` Scott Wood [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-05-04 2:51 Shengzhou Liu
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=4FA18004.9090705@freescale.com \
--to=scottwood@freescale.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.