Re: [meta-xilinx] Zynqmp QSPI boot: FSBL or SPL?

2018-06-11 Thread Manjukumar Harthikote Matha



> -Original Message-
> From: meta-xilinx-boun...@yoctoproject.org [mailto:meta-xilinx-
> boun...@yoctoproject.org] On Behalf Of Magne Munkejord
> Sent: Monday, June 11, 2018 8:42 AM
> To: meta-xilinx@yoctoproject.org
> Subject: [meta-xilinx] Zynqmp QSPI boot: FSBL or SPL?
> 
> Hi
> 
> I'm trying to generate boot images for QSPI for a custom board in Yocto but 
> ran
> into some issues.
> I use meta-xilinx-bsp and meta-xilinx-tools 2018.1 branches and I have added 
> u-
> boot and linux machines + DTS pathces.
> 
> Can the files generated by Yocto be used to boot from QSPI?
> I did not find it in any readme but a patch in u-boot-xlnx suggested I need to
> follow a special QSPI partition layout and a special atf-spi.ub:
> https://github.com/Xilinx/u-boot-
> xlnx/commit/378a437a49dd3d17a9a544768051b2336e5ed874
> Is there an easy way to make Yocto generate this special atf-spi.ub?
> 

You can add a bbappend, see the existing recipe which generates atf-uboot.ub.
On similar line you can create atf-spi.ub

> 
> I tried an alternate approach by setting PREFERRED_PROVIDER_virtual/boot-bin =
> xilinx-bootbin to use FSBL and generate a BOOT.bin for QSPI. But the FSBL 
> seems
> to require PMUFW version 1.0. I got around this by cherry-picking a commit 
> from
> master branch to get a newer pmu-firmware recipe. But now I also need a newer
> kernel recipe. So I am not sure this is a reasonable path forward.
> 

Pin PREFERRED_PROVIDER_virtual/pmu-firmware = "pmu-firmware" from 
meta-xilinx-tools
Being on 2018.1 branches, it will build all the components including v4.14 
kernel.

> In general which boot method would you recommend for QSPI? SPL or FSBL.

Flow depends on what you need. If you are sticking with SPL, then use Yocto 
release branches like master, rocko, morty etc 

If you using SPL flow, see Mikes input here
https://lists.yoctoproject.org/pipermail/meta-xilinx/2017-November/003343.html

Also check on Xilinx forum for any solution on FSBL flow.

Thanks,
Manju
-- 
___
meta-xilinx mailing list
meta-xilinx@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-xilinx


[meta-xilinx] Zynqmp QSPI boot: FSBL or SPL?

2018-06-11 Thread Magne Munkejord
Hi

I'm trying to generate boot images for QSPI for a custom board in Yocto but
ran into some issues.
I use meta-xilinx-bsp and meta-xilinx-tools 2018.1 branches and I have
added u-boot and linux machines + DTS pathces.
Can the files generated by Yocto be used to boot from QSPI?
I did not find it in any readme but a patch in u-boot-xlnx suggested I need
to follow a special QSPI partition layout and a special atf-spi.ub:
https://github.com/Xilinx/u-boot-xlnx/commit/378a437a49dd3d17a9a544768051b2336e5ed874
Is there an easy way to make Yocto generate this special atf-spi.ub?

I tried an alternate approach by setting
PREFERRED_PROVIDER_virtual/boot-bin = xilinx-bootbin to use FSBL and
generate a BOOT.bin for QSPI. But the FSBL seems to require PMUFW version
1.0. I got around this by cherry-picking a commit from master branch to get
a newer pmu-firmware recipe. But now I also need a newer kernel recipe. So
I am not sure this is a reasonable path forward.
In general which boot method would you recommend for QSPI? SPL or FSBL.
-- 
___
meta-xilinx mailing list
meta-xilinx@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-xilinx