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 14:50:29 +0200	[thread overview]
Message-ID: <201210131450.30122.marex@denx.de> (raw)
In-Reply-To: <50795D9A.9010908@openmobilefree.net>

Dear Xiangfu Liu,

> On 10/13/2012 10:59 AM, Marek Vasut wrote:
> >> 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?
> 
> Hi Marex
> 
> Thanks for reply, I don't know how to do this in linker script. but I have
> plan to send out a patch on Makefile.
> 
> Attachment is the patch. do you think it is ok for upstream? if it's ok. I
> will send out this patch in another email.

This is CPU-specific , right? So it should be some kind of CPU-specific override 
in CPU-specific directory, not polute the main Makefile.

Best regards,
Marek Vasut

  reply	other threads:[~2012-10-13 12:50 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   ` [U-Boot] [PATCH v5 1/2] qi_lb60: add nand spl support Marek Vasut
2012-10-13 12:24     ` Xiangfu Liu
2012-10-13 12:50       ` Marek Vasut [this message]
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=201210131450.30122.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