From: Xiangfu Liu <xiangfu@openmobilefree.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 1/2] qi_lb60: add nand spl support
Date: Sat, 13 Oct 2012 20:24:58 +0800 [thread overview]
Message-ID: <50795D9A.9010908@openmobilefree.net> (raw)
In-Reply-To: <201210130459.47912.marex@denx.de>
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.
Xiangfu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-jz4740-target-rules.patch
Type: text/x-diff
Size: 934 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121013/0312b5cd/attachment.patch>
next prev parent reply other threads:[~2012-10-13 12:24 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 [this message]
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=50795D9A.9010908@openmobilefree.net \
--to=xiangfu@openmobilefree.net \
--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.