[meta-xilinx] Zynq NAND Flash support in U-Boot SPL

Giordon Stark kratsg at gmail.com
Tue Feb 21 18:28:23 PST 2017


Have you read this section of the README?
https://github.com/Xilinx/meta-xilinx/blob/master/README.booting.md#loading-via-sd


It lists the files necessary and the steps for the SPL method. It didn't
exist last year, and was added somewhat recently. I admit that I'm also
constantly confused by a consistent way to boot up the board with files
generated only from bitbake. [The FSBL method - not possible, the SPL
method - supposedly possible].

Giordon

On Tue, Feb 21, 2017 at 7:26 PM Richard Cagley <rcagley at gmail.com> wrote:

> On Tue, Feb 21, 2017 at 1:05 PM, Oleg K Dzhimiev <oleg at elphel.com> wrote:
> > Hi,
> >
> >> Within my krogoth/yocto build I get several files and it is confusing
> >> which to use.
> >> I have a boot.bin (fsbl/bit/u-boot.elf) I generate/program in SDK and
> >> that works fine.
> >>
> >> If I'd like to program NAND from within u-boot via say booting from an
> >> SD card, do you have a recommendation for which files to use? I've
> >> patched u-boot with my ps7 files and have CONFIG_SPL=y. Should I use
> >> SPL or is there a way to program my existing boot.bin directly?
> >
> >
> > 1. If you are able to load the full u-boot then it doesn't matter what
> was
> > used - fsbl or spl.
> > To be able to write to NAND, you might need to include into the full
> u-boot
> > image:
> > * a driver that supports the flash chip.
> > * flash commands support  - example: elphel393.h. For the commands, see
> > UBootCmdGroupNand.
> >
> spl is still a complete mystery to me. I wish I could figure out which
> files to use.
>
> > With our 10393 board I tried NAND reading/writing a while ago but since
> then
> > we program flash from OS (booted from SD or NAND) only.
> > To be able to do this - make sure the required applications are included
> in
> > the rootfs - our current rootfs recipe. Commands examples.
> >
> > 2. If your goal is to put the bootloaders to NAND flash and eventually
> boot
> > from it:
> > fsbl:
> > * Haven't used it for a while - don't know whether it can load the full
> > u-boot from flash.
> > spl:
> > * Make sure it comes with a driver to read from flash - we had to make
> our
> > own.
> >
> thanks. yeah, I just use fsbl/u-boot to boot from NAND and then use
> the ubi commands to manage everything else from within u-boot. thanks
> for sharing your bb file. Mine looks very similar but it was still
> good to validate against someone else's.
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20170222/8bf52049/attachment.html>


More information about the meta-xilinx mailing list