All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Custom SPL for im.X6UL
@ 2019-03-08 16:58 Araya, Jose
  2019-03-09  1:11 ` Peng Fan
  0 siblings, 1 reply; 3+ messages in thread
From: Araya, Jose @ 2019-03-08 16:58 UTC (permalink / raw)
  To: u-boot

Hello everyone,

I would like to ask what would be a good starting point to have a custom multi-stage booting for the NXP i.mx6UL processor?

Basically I need to be able to configure an FPGA before the U-Boot is executed. The reason for that is that the PGA must be configured so that the im6UL can have a physical connection to the DRAM. To clarify:


-       In the circuit, the DRAM will be multiplexed by an FPGA. If the FPGA is not configured, the imx6UL has no access to the DRAM.

-       The imx6UL has a direct SPI connection to the flash and to the FPGA, so all I need is to take the bitstream from a given location in the FLASH and load it into the FPGA, then just wait for a flag (GPIO?) saying that the FPGA was successfully configured and keep the booting process in the processor as normal.


As I haven't done yet anything similar, just wanted to know if you have any recommendations regarding where to start and some  hints to proceed.

Thanks in advance!

Bests,

Jose Moises




SensoPart Industriesensorik GmbH
Am Wiedenbach 1 | 79695 Wieden  Amtsgericht Freiburg HRB 660163
Gesch?ftsf?hrer: Dr. Theodor Wanner     [http://www.sensopart.com//images/outlook/si_sensopart.png] <http://www.sensopart.com/>         [http://www.sensopart.com//images/outlook/si_linkedin.png] <https://www.linkedin.com/company/sensopart/>        [http://www.sensopart.com//images/outlook/si_youtube.png] <https://www.youtube.com/user/SensoPart>      [http://www.sensopart.com//images/outlook/si_xing.png] <https://www.xing.com/companies/sensopartindustriesensorikgmbh>

Informationen gem. Art. 13 DSGVO f?r unsere Kunden, Partner, Lieferanten finden Sie in unserer Erkl?rung zum Datenschutz unter https://www.sensopart.com/de/datenschutz



[http://www.sensopart.com/images/outlook/mi_hmiia.png]

Besuchen Sie uns auf der
HANNOVER MESSE Industrial Automation
01. - 05.04.2019 | Halle 017, Stand E42/4
        > Newsletter abonnieren<http://www.sensopart.com/de/ueber-uns/aktuelles/newsletter-abonnieren>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Custom SPL for im.X6UL
  2019-03-08 16:58 [U-Boot] Custom SPL for im.X6UL Araya, Jose
@ 2019-03-09  1:11 ` Peng Fan
       [not found]   ` <9f6f09f686d0447d85775bb9f2ff90de@SRVR-GO-XCHANGE.sensopart.net>
  0 siblings, 1 reply; 3+ messages in thread
From: Peng Fan @ 2019-03-09  1:11 UTC (permalink / raw)
  To: u-boot



> -----Original Message-----
> From: U-Boot [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Araya,
> Jose
> Sent: 2019年3月9日 0:59
> To: u-boot at lists.denx.de
> Subject: [U-Boot] Custom SPL for im.X6UL
> 
> Hello everyone,
> 
> I would like to ask what would be a good starting point to have a custom
> multi-stage booting for the NXP i.mx6UL processor?
> 
> Basically I need to be able to configure an FPGA before the U-Boot is executed.
> The reason for that is that the PGA must be configured so that the im6UL can
> have a physical connection to the DRAM. To clarify:
> 
> 
> -       In the circuit, the DRAM will be multiplexed by an FPGA. If the FPGA
> is not configured, the imx6UL has no access to the DRAM.
> 
> -       The imx6UL has a direct SPI connection to the flash and to the FPGA,
> so all I need is to take the bitstream from a given location in the FLASH and
> load it into the FPGA, then just wait for a flag (GPIO?) saying that the FPGA
> was successfully configured and keep the booting process in the processor as
> normal.
> 
> 
> As I haven't done yet anything similar, just wanted to know if you have any
> recommendations regarding where to start and some  hints to proceed.

SPL might help here, because it runs in OCRAM.

Regards,
Peng.

> 
> Thanks in advance!
> 
> Bests,
> 
> Jose Moises
> 
> 
> 
> 
> SensoPart Industriesensorik GmbH
> Am Wiedenbach 1 | 79695 Wieden  Amtsgericht Freiburg HRB 660163
> Gesch?ftsf?hrer: Dr. Theodor Wanner
> [https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww
> w.sensopart.com%2F%2Fimages%2Foutlook%2Fsi_sensopart.png&amp;data=
> 02%7C01%7CPeng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18
> c%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C63687678551123
> 6465&amp;sdata=kdlCeiA68J03mVvsfo7LLum%2BJaK6n9Tj%2BzEDIsW3XhQ
> %3D&amp;reserved=0]
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww
> w.sensopart.com%2F&amp;data=02%7C01%7CPeng.Fan%40nxp.com%7C642
> 764588c8048fdcb1b08d6a40fe18c%7C686ea1d3bc2b4c6fa92cd99c5c301635
> %7C0%7C1%7C636876785511236465&amp;sdata=5grDBEFPHFgII%2FwJx8N
> qvbDCljp9ye%2F9R8T6AeCT12Q%3D&amp;reserved=0>
> [https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww
> w.sensopart.com%2F%2Fimages%2Foutlook%2Fsi_linkedin.png&amp;data=0
> 2%7C01%7CPeng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c
> %7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C636876785511236
> 465&amp;sdata=DB4s4lvXipPogJ%2BWE61YNv9p7vbx4gThM6EjFkXCjuI%3D
> &amp;reserved=0]
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fw
> ww.linkedin.com%2Fcompany%2Fsensopart%2F&amp;data=02%7C01%7CPe
> ng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c%7C686ea1d3
> bc2b4c6fa92cd99c5c301635%7C0%7C1%7C636876785511236465&amp;sda
> ta=JsDOBDl5aedr8pz1zQtw55WDxdkZGiXEfrhF8GMYRAQ%3D&amp;reserved
> =0>
> [https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww
> w.sensopart.com%2F%2Fimages%2Foutlook%2Fsi_youtube.png&amp;data=0
> 2%7C01%7CPeng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c
> %7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C636876785511236
> 465&amp;sdata=xRbXYdLlBnsXaGA1sPjNfIcX%2B6KPR6l7eWdrLWRj00s%3D&
> amp;reserved=0]
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fw
> ww.youtube.com%2Fuser%2FSensoPart&amp;data=02%7C01%7CPeng.Fan%
> 40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c%7C686ea1d3bc2b4c6f
> a92cd99c5c301635%7C0%7C1%7C636876785511236465&amp;sdata=bJ0Mk
> iBcIQoumP38uQkP4nkdW%2F12VPaJ7I3Yy7Bv%2BFc%3D&amp;reserved=0>
> [https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww
> w.sensopart.com%2F%2Fimages%2Foutlook%2Fsi_xing.png&amp;data=02%7
> C01%7CPeng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c%7C
> 686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C636876785511236465
> &amp;sdata=niGCFmUw1RdHcjD6TLM6JZfRnmDl00qxt9MxBNbe9S4%3D&a
> mp;reserved=0]
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fw
> ww.xing.com%2Fcompanies%2Fsensopartindustriesensorikgmbh&amp;data=
> 02%7C01%7CPeng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18
> c%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C63687678551123
> 6465&amp;sdata=oZbv4D67KSKBRPfXBYrsObcwnxCFeaYXn%2FYrhbw4MlE%3
> D&amp;reserved=0>
> 
> Informationen gem. Art. 13 DSGVO f?r unsere Kunden, Partner, Lieferanten
> finden Sie in unserer Erkl?rung zum Datenschutz unter
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
> w.sensopart.com%2Fde%2Fdatenschutz&amp;data=02%7C01%7CPeng.Fan%
> 40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c%7C686ea1d3bc2b4c6f
> a92cd99c5c301635%7C0%7C1%7C636876785511246465&amp;sdata=vzn3U
> cNFUwrp%2BLKvXwaB9DH7QYABRfOTvHKlXgEQJgg%3D&amp;reserved=0
> 
> 
> 
> [https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww
> w.sensopart.com%2Fimages%2Foutlook%2Fmi_hmiia.png&amp;data=02%7C
> 01%7CPeng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c%7C6
> 86ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C636876785511246465&
> amp;sdata=mWq4QGgoEzawlEWaZpbY3GssRiEbZhyGtht5Qej2owQ%3D&amp
> ;reserved=0]
> 
> Besuchen Sie uns auf der
> HANNOVER MESSE Industrial Automation
> 01. - 05.04.2019 | Halle 017, Stand E42/4
>         > Newsletter
> abonnieren<https://emea01.safelinks.protection.outlook.com/?url=http%3A
> %2F%2Fwww.sensopart.com%2Fde%2Fueber-uns%2Faktuelles%2Fnewslette
> r-abonnieren&amp;data=02%7C01%7CPeng.Fan%40nxp.com%7C642764588
> c8048fdcb1b08d6a40fe18c%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%
> 7C0%7C636876785511246465&amp;sdata=QG8bvU6oo5QciMTQ%2FanXET1
> roDou9OP6ZnZLDHmV53s%3D&amp;reserved=0>
> 
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.
> denx.de%2Flistinfo%2Fu-boot&amp;data=02%7C01%7CPeng.Fan%40nxp.co
> m%7C642764588c8048fdcb1b08d6a40fe18c%7C686ea1d3bc2b4c6fa92cd99
> c5c301635%7C0%7C0%7C636876785511246465&amp;sdata=N3T2bB6QmP
> KnMtrxmjA%2BuqlUelZwxxNJhMiaEZRij7I%3D&amp;reserved=0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Custom SPL for im.X6UL
       [not found]   ` <9f6f09f686d0447d85775bb9f2ff90de@SRVR-GO-XCHANGE.sensopart.net>
@ 2019-03-11  9:43     ` Peng Fan
  0 siblings, 0 replies; 3+ messages in thread
From: Peng Fan @ 2019-03-11  9:43 UTC (permalink / raw)
  To: u-boot

Hi 

> -----Original Message-----
> From: Araya, Jose [mailto:j.araya at sensopart.de]
> Sent: 2019年3月11日 16:50
> To: Peng Fan <peng.fan@nxp.com>
> Subject: AW: [U-Boot] Custom SPL for im.X6UL
> 
> Hi Peng,
> 
> thanks for answering! Just a follow up question:
> 
> Does the U-boot from NXP run in OCRAM or in DRAM?

For i.MX6UL, NXP released U-Boot runs from DRAM, no SPL.

> 
> I read that a multi-stage boot is faster and more efficient, that makes me
> think that if I use a single-stage boot it should run in OCRAM (which is limited)
> and that's why the multi-stage (which uses DRAM) is actually faster. That's
> why my question arises.

You could use the upstream uboot for i.MX6UL, it supports SPL runs from OCRAM.

Regards,
Peng.

> 
> Source:
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcom
> munity.nxp.com%2Fthread%2F438580&amp;data=02%7C01%7Cpeng.fan%40
> nxp.com%7C96b71f4edfc34b0b0ef008d6a5fe9d99%7C686ea1d3bc2b4c6fa92
> cd99c5c301635%7C0%7C0%7C636878910318937272&amp;sdata=yyE40Ut0
> no9nQHAWWusnk2reszG2WuEOI0Po7pr6ahI%3D&amp;reserved=0
> 
> Thanks!
> 
> Moises
> 
> -----Ursprüngliche Nachricht-----
> Von: Peng Fan <peng.fan@nxp.com>
> Gesendet: Samstag, 9. März 2019 02:11
> An: Araya, Jose <j.araya@sensopart.de>; u-boot at lists.denx.de
> Betreff: RE: [U-Boot] Custom SPL for im.X6UL
> 
> 
> 
> > -----Original Message-----
> > From: U-Boot [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Araya,
> > Jose
> > Sent: 2019年3月9日 0:59
> > To: u-boot at lists.denx.de
> > Subject: [U-Boot] Custom SPL for im.X6UL
> >
> > Hello everyone,
> >
> > I would like to ask what would be a good starting point to have a
> > custom multi-stage booting for the NXP i.mx6UL processor?
> >
> > Basically I need to be able to configure an FPGA before the U-Boot is
> executed.
> > The reason for that is that the PGA must be configured so that the
> > im6UL can have a physical connection to the DRAM. To clarify:
> >
> >
> > -       In the circuit, the DRAM will be multiplexed by an FPGA. If the
> FPGA
> > is not configured, the imx6UL has no access to the DRAM.
> >
> > -       The imx6UL has a direct SPI connection to the flash and to the
> FPGA,
> > so all I need is to take the bitstream from a given location in the
> > FLASH and load it into the FPGA, then just wait for a flag (GPIO?)
> > saying that the FPGA was successfully configured and keep the booting
> > process in the processor as normal.
> >
> >
> > As I haven't done yet anything similar, just wanted to know if you
> > have any recommendations regarding where to start and some  hints to
> proceed.
> 
> SPL might help here, because it runs in OCRAM.
> 
> Regards,
> Peng.
> 
> >
> > Thanks in advance!
> >
> > Bests,
> >
> > Jose Moises
> >
> >
> >
> >
> > SensoPart Industriesensorik GmbH
> > Am Wiedenbach 1 | 79695 Wieden  Amtsgericht Freiburg HRB 660163
> > Gesch?ftsf?hrer: Dr. Theodor Wanner
> >
> [https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww
> >
> w.sensopart.com%2F%2Fimages%2Foutlook%2Fsi_sensopart.png&amp;data=
> >
> 02%7C01%7CPeng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18
> >
> c%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C63687678551123
> >
> 6465&amp;sdata=kdlCeiA68J03mVvsfo7LLum%2BJaK6n9Tj%2BzEDIsW3XhQ
> > %3D&amp;reserved=0]
> >
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww
> >
> w.sensopart.com%2F&amp;data=02%7C01%7CPeng.Fan%40nxp.com%7C642
> >
> 764588c8048fdcb1b08d6a40fe18c%7C686ea1d3bc2b4c6fa92cd99c5c301635
> > %7C0%7C1%7C636876785511236465&amp;sdata=5grDBEFPHFgII%2FwJx8
> N
> > qvbDCljp9ye%2F9R8T6AeCT12Q%3D&amp;reserved=0>
> >
> [https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww
> >
> w.sensopart.com%2F%2Fimages%2Foutlook%2Fsi_linkedin.png&amp;data=0
> >
> 2%7C01%7CPeng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c
> > %7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C6368767855112
> 36
> >
> 465&amp;sdata=DB4s4lvXipPogJ%2BWE61YNv9p7vbx4gThM6EjFkXCjuI%3D
> > &amp;reserved=0]
> >
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fw
> >
> ww.linkedin.com%2Fcompany%2Fsensopart%2F&amp;data=02%7C01%7CPe
> >
> ng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c%7C686ea1d3
> >
> bc2b4c6fa92cd99c5c301635%7C0%7C1%7C636876785511236465&amp;sda
> >
> ta=JsDOBDl5aedr8pz1zQtw55WDxdkZGiXEfrhF8GMYRAQ%3D&amp;reserved
> > =0>
> >
> [https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww
> >
> w.sensopart.com%2F%2Fimages%2Foutlook%2Fsi_youtube.png&amp;data=0
> >
> 2%7C01%7CPeng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c
> > %7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C6368767855112
> 36
> >
> 465&amp;sdata=xRbXYdLlBnsXaGA1sPjNfIcX%2B6KPR6l7eWdrLWRj00s%3D&
> > amp;reserved=0]
> >
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fw
> >
> ww.youtube.com%2Fuser%2FSensoPart&amp;data=02%7C01%7CPeng.Fan%
> >
> 40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c%7C686ea1d3bc2b4c6f
> >
> a92cd99c5c301635%7C0%7C1%7C636876785511236465&amp;sdata=bJ0Mk
> >
> iBcIQoumP38uQkP4nkdW%2F12VPaJ7I3Yy7Bv%2BFc%3D&amp;reserved=0>
> >
> [https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww
> >
> w.sensopart.com%2F%2Fimages%2Foutlook%2Fsi_xing.png&amp;data=02%7
> >
> C01%7CPeng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c%7C
> >
> 686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C636876785511236465
> >
> &amp;sdata=niGCFmUw1RdHcjD6TLM6JZfRnmDl00qxt9MxBNbe9S4%3D&a
> > mp;reserved=0]
> >
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fw
> >
> ww.xing.com%2Fcompanies%2Fsensopartindustriesensorikgmbh&amp;data=
> >
> 02%7C01%7CPeng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18
> >
> c%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C63687678551123
> >
> 6465&amp;sdata=oZbv4D67KSKBRPfXBYrsObcwnxCFeaYXn%2FYrhbw4MlE%3
> > D&amp;reserved=0>
> >
> > Informationen gem. Art. 13 DSGVO f?r unsere Kunden, Partner,
> > Lieferanten finden Sie in unserer Erkl?rung zum Datenschutz unter
> >
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
> >
> w.sensopart.com%2Fde%2Fdatenschutz&amp;data=02%7C01%7CPeng.Fan%
> >
> 40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c%7C686ea1d3bc2b4c6f
> >
> a92cd99c5c301635%7C0%7C1%7C636876785511246465&amp;sdata=vzn3U
> > cNFUwrp%2BLKvXwaB9DH7QYABRfOTvHKlXgEQJgg%3D&amp;reserved=0
> >
> >
> >
> >
> [https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww
> >
> w.sensopart.com%2Fimages%2Foutlook%2Fmi_hmiia.png&amp;data=02%7C
> >
> 01%7CPeng.Fan%40nxp.com%7C642764588c8048fdcb1b08d6a40fe18c%7C6
> >
> 86ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C636876785511246465&
> >
> amp;sdata=mWq4QGgoEzawlEWaZpbY3GssRiEbZhyGtht5Qej2owQ%3D&amp
> > ;reserved=0]
> >
> > Besuchen Sie uns auf der
> > HANNOVER MESSE Industrial Automation
> > 01. - 05.04.2019 | Halle 017, Stand E42/4
> >         > Newsletter
> > abonnieren<https://emea01.safelinks.protection.outlook.com/?url=http%3
> >
> A %2F%2Fwww.sensopart.com%2Fde%2Fueber-uns%2Faktuelles%2Fnewslet
> te
> >
> r-abonnieren&amp;data=02%7C01%7CPeng.Fan%40nxp.com%7C642764588
> >
> c8048fdcb1b08d6a40fe18c%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%
> >
> 7C0%7C636876785511246465&amp;sdata=QG8bvU6oo5QciMTQ%2FanXET1
> > roDou9OP6ZnZLDHmV53s%3D&amp;reserved=0>
> >
> >
> > _______________________________________________
> > U-Boot mailing list
> > U-Boot at lists.denx.de
> >
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.
> > denx.de%2Flistinfo%2Fu-boot&amp;data=02%7C01%7CPeng.Fan%40nxp.co
> >
> m%7C642764588c8048fdcb1b08d6a40fe18c%7C686ea1d3bc2b4c6fa92cd99
> >
> c5c301635%7C0%7C0%7C636876785511246465&amp;sdata=N3T2bB6QmP
> > KnMtrxmjA%2BuqlUelZwxxNJhMiaEZRij7I%3D&amp;reserved=0

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-11  9:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-08 16:58 [U-Boot] Custom SPL for im.X6UL Araya, Jose
2019-03-09  1:11 ` Peng Fan
     [not found]   ` <9f6f09f686d0447d85775bb9f2ff90de@SRVR-GO-XCHANGE.sensopart.net>
2019-03-11  9:43     ` Peng Fan

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.