From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiangfu Liu Date: Sat, 13 Oct 2012 20:24:58 +0800 Subject: [U-Boot] [PATCH v5 1/2] qi_lb60: add nand spl support In-Reply-To: <201210130459.47912.marex@denx.de> References: <1350007160-16383-1-git-send-email-xiangfu@openmobilefree.net> <1350007160-16383-2-git-send-email-xiangfu@openmobilefree.net> <201210130459.47912.marex@denx.de> Message-ID: <50795D9A.9010908@openmobilefree.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/13/2012 10:59 AM, Marek Vasut wrote: >> From: Xiangfu >> > >> > 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: