* [U-Boot] u-boot sunxi fel plan for v2015.04 @ 2015-02-13 8:19 Hans de Goede 2015-02-13 14:17 ` Simon Glass 2015-02-13 21:50 ` Tom Rini 0 siblings, 2 replies; 8+ messages in thread From: Hans de Goede @ 2015-02-13 8:19 UTC (permalink / raw) To: u-boot Hi Siarhei and Simon, I'm wondering what the plan is wrt sunxi FEL booting for u-boot v2015.04 I know that you both have been working on this, and I think that for v2015.04 Simon's latest set probably is the best way forward for now, we're going to need parts of that set anyways for the more complete solution Siarhei has. we could replace the patch adding all the #ifdef's to start.S with code saving / restoring PCR15 and friends, that would be more cleaner. So I see 2 ways forwards for v2014.05 1) Go with Simon's latest set as is. 2) Take the first patches from Simon's set and replace the on adding he #ifdef's to start.S with one saving / restoring the necessary regs I've a slight preference for 2. Siarhei, can you perhaps prepare a patch-set for 2 for merging for v2014.05 ? Regards, Hans ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] u-boot sunxi fel plan for v2015.04 2015-02-13 8:19 [U-Boot] u-boot sunxi fel plan for v2015.04 Hans de Goede @ 2015-02-13 14:17 ` Simon Glass 2015-02-13 19:53 ` Siarhei Siamashka 2015-02-13 21:50 ` Tom Rini 1 sibling, 1 reply; 8+ messages in thread From: Simon Glass @ 2015-02-13 14:17 UTC (permalink / raw) To: u-boot +Albert, Tom HI Hans, On 13 February 2015 at 01:19, Hans de Goede <hdegoede@redhat.com> wrote: > Hi Siarhei and Simon, > > I'm wondering what the plan is wrt sunxi FEL booting for u-boot > v2015.04 I know that you both have been working on this, and I > think that for v2015.04 Simon's latest set probably is the best > way forward for now, we're going to need parts of that set > anyways for the more complete solution Siarhei has. > > we could replace the patch adding all the #ifdef's to start.S > with code saving / restoring PCR15 and friends, that would be > more cleaner. > > So I see 2 ways forwards for v2014.05 > > 1) Go with Simon's latest set as is. > 2) Take the first patches from Simon's set and replace the > on adding he #ifdef's to start.S with one saving / restoring > the necessary regs > > I've a slight preference for 2. Siarhei, can you perhaps prepare > a patch-set for 2 for merging for v2014.05 ? Sounds good to me. My last patch could be replaced or updated with something more suitable for your needs. That can provide a basis for Siarhei's bigger adjustments (e.g. perhaps getting rid of CONFIG_SPL_FEL). Regards, Simon ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] u-boot sunxi fel plan for v2015.04 2015-02-13 14:17 ` Simon Glass @ 2015-02-13 19:53 ` Siarhei Siamashka 0 siblings, 0 replies; 8+ messages in thread From: Siarhei Siamashka @ 2015-02-13 19:53 UTC (permalink / raw) To: u-boot On Fri, 13 Feb 2015 07:17:20 -0700 Simon Glass <sjg@chromium.org> wrote: > +Albert, Tom > > HI Hans, > > On 13 February 2015 at 01:19, Hans de Goede <hdegoede@redhat.com> wrote: > > Hi Siarhei and Simon, > > > > I'm wondering what the plan is wrt sunxi FEL booting for u-boot > > v2015.04 I know that you both have been working on this, and I > > think that for v2015.04 Simon's latest set probably is the best > > way forward for now, we're going to need parts of that set > > anyways for the more complete solution Siarhei has. > > > > we could replace the patch adding all the #ifdef's to start.S > > with code saving / restoring PCR15 and friends, that would be > > more cleaner. > > > > So I see 2 ways forwards for v2014.05 > > > > 1) Go with Simon's latest set as is. > > 2) Take the first patches from Simon's set and replace the > > on adding he #ifdef's to start.S with one saving / restoring > > the necessary regs > > > > I've a slight preference for 2. Siarhei, can you perhaps prepare > > a patch-set for 2 for merging for v2014.05 ? > > Sounds good to me. My last patch could be replaced or updated with > something more suitable for your needs. I'm totally lost regarding who has to ACK your last patch, what is blocking it and which tree it should be merged from. But the patch fixes the CONFIG_SPL_FEL option and this looks fine for me. Just a few adjustment could be made to improve it: 1. Don't enable the generation of the u-boot-sunxi-with-spl.bin file when CONFIG_SPL_FEL=y (because this results in a non-workable junk file, which may just confuse the users) 2. Replace the 'lr' range check with just #ifdef CONFIG_SPL_FEL The runtime detection does not quite fit in this patch because it relies on #ifdef CONFIG_SPL_FEL in other places anyway. And this particular method of runtime detection is not compatible with my follow up patch. 3. Maybe set the stack pointer to the end of the 0x2000-0x5D00 area instead of 0x8000 (because that's how CONFIG_SPL_FEL implicitly behaved earlier by just keeping the 'sp' value set by the BROM). But I'm not really insisting on this change and using 0x8000 for the stack could be also fine (or even better than what we had before). Here is a set of shell commands to retrieve the initial 'sp' value, that is initialized by the BROM when executing code via FEL: # str sp, [pc] fel fill 0x2000 1 0x00 fel fill 0x2001 1 0xd0 fel fill 0x2002 1 0x8f fel fill 0x2003 1 0xe5 # bx lr fel fill 0x2004 1 0x1e fel fill 0x2005 1 0xff fel fill 0x2006 1 0x2f fel fill 0x2007 1 0xe1 fel exe 0x2000 fel hex 0x2008 4 And we get the following results on different Allwinner SoC variants: A10 : initial sp = 0x5DF8 A13 : initial sp = 0x5DF8 A20 : initial sp = 0x5E08 A31s : initial sp = 0x5E08 With these adjustments done (at least 1 and 2), you can have my ACK. But I have no objections to even taking the patch as as-is. > That can provide a basis for Siarhei's bigger adjustments (e.g. > perhaps getting rid of CONFIG_SPL_FEL). That's not a much bigger adjustment. Basically, just a rather minor tweak in the code, which makes the decision whether to load the main u-boot binary from the SD card or return to the FEL BROM code. And also save/restore of the system registers, because we are not allowed to add a runtime check to skip setting them in 'start.S' in the first place. After this minor u-boot tweak, the CONFIG_SPL_FEL option is not needed anymore. All the complexity is hidden in the 'fel' tool and is not really visible in the u-boot code (the fact that the 'spl' command of the 'fel' tool smuggles the SPL binary in pieces over USB and reassembles it in memory before executing). -- Best regards, Siarhei Siamashka ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] u-boot sunxi fel plan for v2015.04 2015-02-13 8:19 [U-Boot] u-boot sunxi fel plan for v2015.04 Hans de Goede 2015-02-13 14:17 ` Simon Glass @ 2015-02-13 21:50 ` Tom Rini 2015-02-15 14:43 ` Siarhei Siamashka 1 sibling, 1 reply; 8+ messages in thread From: Tom Rini @ 2015-02-13 21:50 UTC (permalink / raw) To: u-boot On Fri, Feb 13, 2015 at 09:19:08AM +0100, Hans de Goede wrote: > Hi Siarhei and Simon, > > I'm wondering what the plan is wrt sunxi FEL booting for u-boot > v2015.04 I know that you both have been working on this, and I > think that for v2015.04 Simon's latest set probably is the best > way forward for now, we're going to need parts of that set > anyways for the more complete solution Siarhei has. > > we could replace the patch adding all the #ifdef's to start.S > with code saving / restoring PCR15 and friends, that would be > more cleaner. > > So I see 2 ways forwards for v2014.05 > > 1) Go with Simon's latest set as is. > 2) Take the first patches from Simon's set and replace the > on adding he #ifdef's to start.S with one saving / restoring > the necessary regs > > I've a slight preference for 2. Siarhei, can you perhaps prepare > a patch-set for 2 for merging for v2014.05 ? And when everyone is happy I'll take it via the sunxi tree (And try and see about giving it a spin on my Lime2). Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150213/50dc767d/attachment.sig> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] u-boot sunxi fel plan for v2015.04 2015-02-13 21:50 ` Tom Rini @ 2015-02-15 14:43 ` Siarhei Siamashka 2015-02-15 15:46 ` Simon Glass 2015-02-15 16:38 ` Hans de Goede 0 siblings, 2 replies; 8+ messages in thread From: Siarhei Siamashka @ 2015-02-15 14:43 UTC (permalink / raw) To: u-boot On Fri, 13 Feb 2015 16:50:49 -0500 Tom Rini <trini@ti.com> wrote: > On Fri, Feb 13, 2015 at 09:19:08AM +0100, Hans de Goede wrote: > > Hi Siarhei and Simon, > > > > I'm wondering what the plan is wrt sunxi FEL booting for u-boot > > v2015.04 I know that you both have been working on this, and I > > think that for v2015.04 Simon's latest set probably is the best > > way forward for now, we're going to need parts of that set > > anyways for the more complete solution Siarhei has. > > > > we could replace the patch adding all the #ifdef's to start.S > > with code saving / restoring PCR15 and friends, that would be > > more cleaner. > > > > So I see 2 ways forwards for v2014.05 > > > > 1) Go with Simon's latest set as is. > > 2) Take the first patches from Simon's set and replace the > > on adding he #ifdef's to start.S with one saving / restoring > > the necessary regs > > > > I've a slight preference for 2. Siarhei, can you perhaps prepare > > a patch-set for 2 for merging for v2014.05 ? > > And when everyone is happy I'll take it via the sunxi tree (And try and > see about giving it a spin on my Lime2). Thanks! Thanks for clarifying this. Simon, could you please confirm that you are not going to do anything anymore with the third patch from your sunxi FEL fixes set? Hans, could you please queue Simon's patches in the sunxi next branch just like Tom suggested (and after the status of the third patch becomes more clear)? If I don't get any response in a few hours, I will just assume that the third Simon's patch is to be kept as-is and submit additional patches to be applied on top of it. We are not exactly losing time. The sunxi FEL patches are getting additional testing every day by me and also by other people (thanks Karsten!). But missing the -rc2 release would not be great. Thanks to everyone for doing a great job. The FEL mode support is going to be much better than before. -- Best regards, Siarhei Siamashka ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] u-boot sunxi fel plan for v2015.04 2015-02-15 14:43 ` Siarhei Siamashka @ 2015-02-15 15:46 ` Simon Glass 2015-02-15 16:38 ` Hans de Goede 1 sibling, 0 replies; 8+ messages in thread From: Simon Glass @ 2015-02-15 15:46 UTC (permalink / raw) To: u-boot Hi Siarhei, On 15 February 2015 at 07:43, Siarhei Siamashka <siarhei.siamashka@gmail.com> wrote: > On Fri, 13 Feb 2015 16:50:49 -0500 > Tom Rini <trini@ti.com> wrote: > >> On Fri, Feb 13, 2015 at 09:19:08AM +0100, Hans de Goede wrote: >> > Hi Siarhei and Simon, >> > >> > I'm wondering what the plan is wrt sunxi FEL booting for u-boot >> > v2015.04 I know that you both have been working on this, and I >> > think that for v2015.04 Simon's latest set probably is the best >> > way forward for now, we're going to need parts of that set >> > anyways for the more complete solution Siarhei has. >> > >> > we could replace the patch adding all the #ifdef's to start.S >> > with code saving / restoring PCR15 and friends, that would be >> > more cleaner. >> > >> > So I see 2 ways forwards for v2014.05 >> > >> > 1) Go with Simon's latest set as is. >> > 2) Take the first patches from Simon's set and replace the >> > on adding he #ifdef's to start.S with one saving / restoring >> > the necessary regs >> > >> > I've a slight preference for 2. Siarhei, can you perhaps prepare >> > a patch-set for 2 for merging for v2014.05 ? >> >> And when everyone is happy I'll take it via the sunxi tree (And try and >> see about giving it a spin on my Lime2). Thanks! > > Thanks for clarifying this. > > Simon, could you please confirm that you are not going to do anything > anymore with the third patch from your sunxi FEL fixes set? That is fine with me. I am no expert in this area and was just trying to solve the low-level problem in U-Boot. > > Hans, could you please queue Simon's patches in the sunxi next branch > just like Tom suggested (and after the status of the third patch becomes > more clear)? > > If I don't get any response in a few hours, I will just assume that > the third Simon's patch is to be kept as-is and submit additional > patches to be applied on top of it. That seems like the best idea. > > We are not exactly losing time. The sunxi FEL patches are getting > additional testing every day by me and also by other people (thanks > Karsten!). But missing the -rc2 release would not be great. > > Thanks to everyone for doing a great job. The FEL mode support is > going to be much better than before. Indeed. More compatible with U-Boot, more general-purpose and definitely more glorious. Thanks for chasing all this down. Regards, Simon ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] u-boot sunxi fel plan for v2015.04 2015-02-15 14:43 ` Siarhei Siamashka 2015-02-15 15:46 ` Simon Glass @ 2015-02-15 16:38 ` Hans de Goede 2015-02-16 16:42 ` Tom Rini 1 sibling, 1 reply; 8+ messages in thread From: Hans de Goede @ 2015-02-15 16:38 UTC (permalink / raw) To: u-boot Hi, On 15-02-15 15:43, Siarhei Siamashka wrote: > On Fri, 13 Feb 2015 16:50:49 -0500 > Tom Rini <trini@ti.com> wrote: > >> On Fri, Feb 13, 2015 at 09:19:08AM +0100, Hans de Goede wrote: >>> Hi Siarhei and Simon, >>> >>> I'm wondering what the plan is wrt sunxi FEL booting for u-boot >>> v2015.04 I know that you both have been working on this, and I >>> think that for v2015.04 Simon's latest set probably is the best >>> way forward for now, we're going to need parts of that set >>> anyways for the more complete solution Siarhei has. >>> >>> we could replace the patch adding all the #ifdef's to start.S >>> with code saving / restoring PCR15 and friends, that would be >>> more cleaner. >>> >>> So I see 2 ways forwards for v2014.05 >>> >>> 1) Go with Simon's latest set as is. >>> 2) Take the first patches from Simon's set and replace the >>> on adding he #ifdef's to start.S with one saving / restoring >>> the necessary regs >>> >>> I've a slight preference for 2. Siarhei, can you perhaps prepare >>> a patch-set for 2 for merging for v2014.05 ? >> >> And when everyone is happy I'll take it via the sunxi tree (And try and >> see about giving it a spin on my Lime2). Thanks! > > Thanks for clarifying this. > > Simon, could you please confirm that you are not going to do anything > anymore with the third patch from your sunxi FEL fixes set? > > Hans, could you please queue Simon's patches in the sunxi next branch > just like Tom suggested (and after the status of the third patch becomes > more clear)? I'm fine with taking Simon's patch-set as is, and upstreaming it through the sunxi tree, but the start.S changes are not really sunxi specific, so I think they need Alberts ack? Tom are you ok with taking these without Albert's ack? And/or Albert can we have your ack for: http://patchwork.ozlabs.org/patch/437580/ http://patchwork.ozlabs.org/patch/437581/ http://patchwork.ozlabs.org/patch/437582/ (the 2nd one is not really ARM specific, but still) Regards, Hans ^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] u-boot sunxi fel plan for v2015.04 2015-02-15 16:38 ` Hans de Goede @ 2015-02-16 16:42 ` Tom Rini 0 siblings, 0 replies; 8+ messages in thread From: Tom Rini @ 2015-02-16 16:42 UTC (permalink / raw) To: u-boot On Sun, Feb 15, 2015 at 05:38:48PM +0100, Hans de Goede wrote: > Hi, > > On 15-02-15 15:43, Siarhei Siamashka wrote: > >On Fri, 13 Feb 2015 16:50:49 -0500 > >Tom Rini <trini@ti.com> wrote: > > > >>On Fri, Feb 13, 2015 at 09:19:08AM +0100, Hans de Goede wrote: > >>>Hi Siarhei and Simon, > >>> > >>>I'm wondering what the plan is wrt sunxi FEL booting for u-boot > >>>v2015.04 I know that you both have been working on this, and I > >>>think that for v2015.04 Simon's latest set probably is the best > >>>way forward for now, we're going to need parts of that set > >>>anyways for the more complete solution Siarhei has. > >>> > >>>we could replace the patch adding all the #ifdef's to start.S > >>>with code saving / restoring PCR15 and friends, that would be > >>>more cleaner. > >>> > >>>So I see 2 ways forwards for v2014.05 > >>> > >>>1) Go with Simon's latest set as is. > >>>2) Take the first patches from Simon's set and replace the > >>>on adding he #ifdef's to start.S with one saving / restoring > >>>the necessary regs > >>> > >>>I've a slight preference for 2. Siarhei, can you perhaps prepare > >>>a patch-set for 2 for merging for v2014.05 ? > >> > >>And when everyone is happy I'll take it via the sunxi tree (And try and > >>see about giving it a spin on my Lime2). Thanks! > > > >Thanks for clarifying this. > > > >Simon, could you please confirm that you are not going to do anything > >anymore with the third patch from your sunxi FEL fixes set? > > > >Hans, could you please queue Simon's patches in the sunxi next branch > >just like Tom suggested (and after the status of the third patch becomes > >more clear)? > > I'm fine with taking Simon's patch-set as is, and upstreaming it through > the sunxi tree, but the start.S changes are not really sunxi specific, so I > think they need Alberts ack? > > Tom are you ok with taking these without Albert's ack? [ Oops, looks like Albert wasn't on the To list at one point and thus part of the delay? ] > > And/or Albert can we have your ack for: > > http://patchwork.ozlabs.org/patch/437580/ > http://patchwork.ozlabs.org/patch/437581/ > http://patchwork.ozlabs.org/patch/437582/ > > (the 2nd one is not really ARM specific, but still) I've looked them over and I think we're somewhere between "safe enough and correct" and "there's still time to re-work things more if Albert wants a different approach". So if there's still time today lets get that part moving along, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150216/af5a035a/attachment.sig> ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-02-16 16:42 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-02-13 8:19 [U-Boot] u-boot sunxi fel plan for v2015.04 Hans de Goede 2015-02-13 14:17 ` Simon Glass 2015-02-13 19:53 ` Siarhei Siamashka 2015-02-13 21:50 ` Tom Rini 2015-02-15 14:43 ` Siarhei Siamashka 2015-02-15 15:46 ` Simon Glass 2015-02-15 16:38 ` Hans de Goede 2015-02-16 16:42 ` Tom Rini
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox