public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH][SDK1.2] powerpc/p1010rdb: add readme document for p1010rdb
Date: Mon, 30 Apr 2012 15:25:36 -0500	[thread overview]
Message-ID: <4F9EF540.90302@freescale.com> (raw)
In-Reply-To: <1335605577-13052-1-git-send-email-Shengzhou.Liu@freescale.com>

On 04/28/2012 04:32 AM, Shengzhou Liu wrote:
> +2. Burn u-boot.bin into NOR flash
> +	=> tftp 1000000 u-boot.bin
> +	=> protect off all
> +	=> erase eff80000 efffffff
> +	=> cp.b 1000000 eff80000 80000

=> tftp <filename>
=> protect off all
=> erase eff80000 +$filesize
=> cp.b $loadaddr eff80000 $filesize

> +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 1000000 u-boot-nand.bin
> +	=> nand erase 0 80000
> +	=> nand write 1000000 0 80000

=> tftp <filename>
=> nand erase 0 $filesize
=> nand write $loadaddr 0 $filesize

...etc.

> +Build kernel and dtb for P1010RDB
> +=================================
> +set proper cross-compile for powerpc
> +  cp arch/powerpc/configs/mpc85xx_defconfig .config
> +  make -j 16
> +  make p1010rdb.dtb
> +then uImage and p1010rdb.dtb will be generated under arch/powerpc/boot/

I doubt most people will want to use -j 16.

Why are kernel build instructions in a U-Boot readme?  Shouldn't you be
building the uImage target?

> +Boot Linux from RAM on P1010RDB
> +==================================
> +Place uImage and p1010rdb.dtb in the TFTP disk area.
> +	=> tftp 1000000 uImage
> +	=> tftp 2000000 p1010rdb.dtb
> +	=> tftp 3000000 rootfs.ext2.gz.uboot.p1010rdb
> +	=> bootm 1000000 3000000 2000000

I'd call that "booting from the network using TFTP" rather than "booting
from RAM"...

-Scott

  reply	other threads:[~2012-04-30 20:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-28  9:32 [U-Boot] [PATCH][SDK1.2] powerpc/p1010rdb: add readme document for p1010rdb Shengzhou Liu
2012-04-30 20:25 ` Scott Wood [this message]
2012-04-30 21:08   ` Wolfgang Denk

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=4F9EF540.90302@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox