[meta-xilinx] u-boot SPL from QSPI flash

Alan DuBoff aland at softorchestra.com
Tue Feb 25 00:02:21 PST 2014


On Mon, February 24, 2014 11:10 pm, Mike Looijmans wrote:
> Got it working, was probably a fault on my side, though I'm not particularly
> sure what it was.
>
> It now also works for zed.

Is that microZed ? I'm getting a microZed in a couple days. I think we're
getting 2, one has a 7010 and the other has a 7020. I didn't look it up, but I
told my client to send me the one with the 7010, so I can make sure everything
works on it, the 7020 should be the same as the zedboard, shouldn't it?

> The SPL removes the need for the "fsbl" and the whole image can now be
> generated from source code without the annoying manual fifty-mouseclicks step
> of creating the FSBL.

Yeah, but I was thinking today...seems to make more sense to do use the sd
card for development, cause flashing the SPI is a PITA that requires using the
Xilinx tools. With the SD card, I can do everything at the command line. After
the core work is done, then the flash makes sense to save time on boot.
However, this SD card is blazing fast on boot. This seems way faster than the
older MLO style...

I modified a script today, you and others are welcome to use it if you like. I
tar'd it up into a file with the needed files from the deploy/images/ on a
meta-topic. This tarball has support for 16G, 8G, and 4G SD partitions. I use
only 50M for the BOOT, and the rest of for the rootfs. The boot takes so
little, 50M seems enough...anyway, I put those geometry files in there and you
can see in the script how it's called.

The script is called create-sd-card. It has sparse help if you don't enter any
parameters.

DISCLAIMER: it is not a very elegant script, but I have used it on several
projects and it saves me a lot of time...I usually leave this in my /tftpboot,
and use a script to copy the images over to /tftpboot. I kinda use that as my
staging area. :-)

https://dl.dropboxusercontent.com/u/18576273/sd-card.tgz

-- 
Cheers,
Alan




More information about the meta-xilinx mailing list