public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 1/2] qi_lb60: add nand spl support
Date: Sat, 13 Oct 2012 04:59:47 +0200	[thread overview]
Message-ID: <201210130459.47912.marex@denx.de> (raw)
In-Reply-To: <1350007160-16383-2-git-send-email-xiangfu@openmobilefree.net>

Dear xiangfu at openmobilefree.net,

> From: Xiangfu <xiangfu@openmobilefree.net>
> 
>   The JZ4740 CPU can load 8KB from two different addresses:
>    1. the normal area up to 8KB starting from NAND flash address 0x00000000
>    2. the backup area up to 8KB starting from NAND flash address 0x00002000
> 
>   After create u-boot-spl.bin. it needs those 4 commands create final image
> for jz4740 cpu. ~~~~
>     dd if=spl/u-boot-spl.bin of=u-boot-nand.bin conv=sync bs=8192 count=1
>     dd if=spl/u-boot-spl.bin of=u-boot-nand.bin conv=sync,notrunc
> oflag=append bs=8192 count=1 tr '\0' '\377' < /dev/zero | dd
> of=u-boot-nand.bin conv=sync,notrunc oflag=append bs=16384 count=1 cat
> u-boot-nand.bin u-boot.bin > u-boot-nand-final.bin
>   ~~~~

Can you not do this in the linker script? Or implement CPU-specific build target 
that does this?

[...]



Best regards,
Marek Vasut

  parent reply	other threads:[~2012-10-13  2:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-12  1:59 [U-Boot] [PATCH v5 0/2] qi_lb60(Ben NanoNote): add nand spl and usbboot support xiangfu at openmobilefree.net
2012-10-12  1:59 ` [U-Boot] [PATCH v5 1/2] qi_lb60: add nand spl support xiangfu at openmobilefree.net
2012-10-12  1:59   ` [U-Boot] [PATCH v5 2/2] qi_lb60: add software usbboot support xiangfu at openmobilefree.net
2012-10-13  3:01     ` Marek Vasut
2012-10-13 12:20       ` xiangfu liu
2012-10-13 12:23         ` Marek Vasut
2012-10-13 12:46           ` xiangfu liu
2012-10-13 12:52             ` Marek Vasut
2012-10-13 13:11               ` Xiangfu Liu
2012-10-13  2:59   ` Marek Vasut [this message]
2012-10-13 12:24     ` [U-Boot] [PATCH v5 1/2] qi_lb60: add nand spl support Xiangfu Liu
2012-10-13 12:50       ` Marek Vasut
2012-10-13 13:12         ` Xiangfu 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=201210130459.47912.marex@denx.de \
    --to=marex@denx.de \
    --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