Re: [edk2] Entry Point for SEC -> PEI Transition

Subject: Re: [edk2] Entry Point for SEC -> PEI Transition

From: "Olivier Martin" <olivier.martin@arm.com>

To: <edk2-devel@lists.sourceforge.net>

Date: 2014-07-09 20:26:33

Hi Varad,
Why do you want to you want to use SEC? Why x-loader do not directly jump to
PrePeiCore?
I was told you have a JTAG. Check you have a 'BL 0x.....' at the base
address of your FV file 0x80048000.
This jump address should be the entrypoint of your PrePeiCore module.
Thanks,
Olivier

> -----Original Message-----
> From: Varad Gautam [mailto:varadgautam@gmail.com]
> Sent: 08 July 2014 18:02
> To: edk2-devel@lists.sourceforge.net
> Subject: Re: [edk2] Entry Point for SEC -> PEI Transition
> 
> Hi Olivier,
> 
> Yes, this is for the UEFI port for BeagleBoneBlack.
> 
> I am building a single FD that consists of both SEC and PEI. SEC is
> loaded from
> the x-loader, and I am trying to figure out how to pass over to PEI.
> 
> The source is at [1] -- I call return_from_exception() on
> PcdFvBaseAddress after I am
> done with SEC.
> 
> I tried passing the offset addresses mentioned in my build report [2]
> for
> ArmPlatformPrePeiCore but with no luck.
> 
> I see that GenFvInternalLib.c:UpdateArmResetVectorIfNeeded() places the
> PEI Core
> address into the FvImage. Do I want to jump to this address?
> 
> Thanks,
> Varad
> 
> [1]
> https://github.com/varadgautam/TexasInstrumentsPkg/tree/PEI/BeagleBoneB
> lackPkg
> [2] http://fpaste.org/116323/48225071/
> 
> On Tue, Jul 8, 2014 at 4:03 PM, Olivier Martin 
> wrote:
> > Hi Varad,
> >
> > Can you give a bit more details on your boot flow.
> > Where do you start the SEC from (Flash?)? Is SEC and PEI in the same
> FD
> > file?
> > I guess it is the related to the UEFI support for the
> BeagleBoneBlack?
> >
> > Looking at the code in
> >
> https://github.com/varadgautam/TexasInstrumentsPkg/blob/master/BeagleBo
> neBla
> > ckPkg/ArmPlatformPkg.fdf I do not see anything obvious.
> >
> > Does the BeagleBone black use x-loader? Are you using it? Or you are
> trying
> > to bypass x-loader with your Sec_ArmPlatform_EFI.FD ?
> >
> > Thanks,
> > Olivier
> >
> >> -----Original Message-----
> >> From: Varad Gautam [mailto:varadgautam@gmail.com]
> >> Sent: 07 July 2014 10:47
> >> To: edk2-devel@lists.sourceforge.net
> >> Subject: [edk2] Entry Point for SEC -> PEI Transition
> >>
> >> Hi,
> >>
> >> How is the entry point address needed to transition from SEC -> PEI
> >> found out for an ARM platform package?
> >>
> >> Although the PcdFvBaseAddress is set to 0x80048000 according to the
> >> build report,  `PcdGet32(PcdFvBaseAddress)` returns 0, and
> >> `NonTrustedWorldTransition()` hangs. Passing this address manually
> too
> >> doesn't work.
> >>
> >> The report shows the entry point address as `*EF 0x00800481c4
> >> _ModuleEntryPoint` for
> ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
> >> module, but this address doesn't work either.
> >>
> >> Thanks.
> >> Varad
> >>
> >> --------------------------------------------------------------------
> ---
> >> -------
> >> Open source business process management suite built on Java and
> Eclipse
> >> Turn processes into business applications with Bonita BPM Community
> >> Edition
> >> Quickly connect people, data, and systems into organized workflows
> >> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> >> http://p.sf.net/sfu/Bonitasoft
> >> _______________________________________________
> >> edk2-devel mailing list
> >> edk2-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> ---------
> > Open source business process management suite built on Java and
> Eclipse
> > Turn processes into business applications with Bonita BPM Community
> Edition
> > Quickly connect people, data, and systems into organized workflows
> > Winner of BOSSIE, CODIE, OW2 and Gartner awards
> > http://p.sf.net/sfu/Bonitasoft
> > _______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/edk2-devel
> 
> -----------------------------------------------------------------------
> -------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community
> Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel





------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel