Re: uefi stub + grub

2013-09-30 Thread Leif Lindholm
On Mon, Sep 30, 2013 at 10:28:49PM +0100, Grant Likely wrote: > > > load image protocol. In that case the sub should override the setting in > the > > > FDT if the initrd argument is present. > > > > Hmm, well, it's slightly worse than that - it will have one; only it > > will be GRUB's command lin

Re: uefi stub + grub

2013-09-30 Thread Leif Lindholm
On Mon, Sep 30, 2013 at 09:05:04PM +0100, Grant Likely wrote: > > Handling the 2 cases is not a problem.  I just don't want to handle > > 'mixed' cases where > > a command line and an FDT are passed to the stub, and information from > > both is used. > > > > As I understand it, the two cases are: >

Re: uefi stub + grub

2013-09-30 Thread Roy Franz
On Mon, Sep 30, 2013 at 12:26 PM, Leif Lindholm wrote: > On Mon, Sep 30, 2013 at 12:16:08PM -0700, Roy Franz wrote: >> >> So ... I guess that would modify the stub behaviour to: >> >> - Look for an FDT_GUID configuration table. >> >> - If there, use it. >> >> - If not there, require one to be load

Re: uefi stub + grub

2013-09-30 Thread Leif Lindholm
On Mon, Sep 30, 2013 at 12:16:08PM -0700, Roy Franz wrote: > >> So ... I guess that would modify the stub behaviour to: > >> - Look for an FDT_GUID configuration table. > >> - If there, use it. > >> - If not there, require one to be loaded based on command line. > > > > Create a mostly empty one fo

Re: uefi stub + grub

2013-09-30 Thread Leif Lindholm
On Mon, Sep 30, 2013 at 07:27:58PM +0100, Grant Likely wrote: > > So ... I guess that would modify the stub behaviour to: > > - Look for an FDT_GUID configuration table. > > - If there, use it. > > - If not there, require one to be loaded based on command line. > > Create a mostly empty one for pa

Re: uefi stub + grub

2013-09-30 Thread Roy Franz
On Mon, Sep 30, 2013 at 11:27 AM, Grant Likely wrote: > On Mon, Sep 30, 2013 at 5:46 PM, Leif Lindholm > wrote: >> On Mon, Sep 30, 2013 at 08:05:59AM -0700, Roy Franz wrote: >>> > I was thinking that the stub would want to use the FDT passed by grub >>> > if one is passed, but I hadn't thought a

Re: uefi stub + grub

2013-09-30 Thread Leif Lindholm
On Mon, Sep 30, 2013 at 08:05:59AM -0700, Roy Franz wrote: > > I was thinking that the stub would want to use the FDT passed by grub > > if one is passed, but I hadn't thought about the case where grub wants > > to pass information to the stub, but the stub still loads the FDT. The > > easiest thin

Re: uefi stub + grub

2013-09-30 Thread Roy Franz
On Mon, Sep 30, 2013 at 7:51 AM, Grant Likely wrote: > On Mon, Sep 30, 2013 at 2:59 PM, Leif Lindholm > wrote: >> Hi guys, >> >> I've been looking at the patches Matthew Garrett wrote for loading a >> UEFI stub kernel through GRUB, and noticed one thing that may require >> updates to the stub co

uefi stub + grub

2013-09-30 Thread Leif Lindholm
Hi guys, I've been looking at the patches Matthew Garrett wrote for loading a UEFI stub kernel through GRUB, and noticed one thing that may require updates to the stub code: it uses GRUB to load the initrd. Doing this of course means the initrd does not need to go into the EFI System Partition, wh