public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 00/12] Enable returning back to BootROM from spear SPL
@ 2019-05-07 12:18 Miquel Raynal
  2019-05-07 12:18 ` [U-Boot] [PATCH 01/12] spl: Fix typo in kernel doc Miquel Raynal
                   ` (12 more replies)
  0 siblings, 13 replies; 39+ messages in thread
From: Miquel Raynal @ 2019-05-07 12:18 UTC (permalink / raw)
  To: u-boot

Spear machines currently have only the possibility to boot from NOR
while an interesting alternative exist: booting from USB. For this,
the BootROM will enumerate an USB device and wait for a RAM driver
(likely, the SPL). It will load the driver in SRAM and jump to
it. Once the initialization done, the SPL must return back into the
BootROM so that another enumeration occurs allowing the user to upload
the full Bootloader (eg. U-Boot). The BootROM will finally load the
file in RAM and jump into it.

Most of the patches are cleanups and preparation work to ease the
reading of the main assembly file.

The last patch is a fallback on USB Boot if the NOR is empty or
corrupted. Of course if USB boot has not been enabled, nothing will
happen.

Tested on a custom board featuring a SPEAr600.

Hope this change will find users!

Thanks,
Miquèl


Miquel Raynal (12):
  spl: Fix typo in kernel doc
  arm: spear: Drop useless board_init_r call
  arm: spear: Call the SPL 'SPL', not 'Xloader'
  arm: spear: Drop false comment
  arm: spear: Fix the main comment in start.S
  arm: spear: Purely cosmetic changes in start.S
  arm: spear: Use PUSH/POP mnemonics when relevant
  arm: spear: Reference the link register with LR instead of R14
  arm: spear: Simplify start.S organization
  arm: spear: Support returning to BootROM
  arm: spear: Do not link the _main branch
  arm: spear: Return to BootROM if failing to boot from the main device

 arch/arm/cpu/arm926ejs/spear/spl.c   | 47 +++++++++++++++++++++--
 arch/arm/cpu/arm926ejs/spear/start.S | 56 +++++++++++-----------------
 common/spl/spl.c                     |  2 +-
 3 files changed, 66 insertions(+), 39 deletions(-)

-- 
2.19.1

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

end of thread, other threads:[~2019-07-11 22:05 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-07 12:18 [U-Boot] [PATCH 00/12] Enable returning back to BootROM from spear SPL Miquel Raynal
2019-05-07 12:18 ` [U-Boot] [PATCH 01/12] spl: Fix typo in kernel doc Miquel Raynal
2019-05-07 12:40   ` Stefan Roese
2019-07-11 22:05   ` Tom Rini
2019-05-07 12:18 ` [U-Boot] [PATCH 02/12] arm: spear: Drop useless board_init_r call Miquel Raynal
2019-05-07 12:40   ` Stefan Roese
2019-07-11 22:05   ` Tom Rini
2019-05-07 12:18 ` [U-Boot] [PATCH 03/12] arm: spear: Call the SPL 'SPL', not 'Xloader' Miquel Raynal
2019-05-07 12:40   ` Stefan Roese
2019-07-11 22:05   ` Tom Rini
2019-05-07 12:18 ` [U-Boot] [PATCH 04/12] arm: spear: Drop false comment Miquel Raynal
2019-05-07 12:41   ` Stefan Roese
2019-07-11 22:05   ` Tom Rini
2019-05-07 12:18 ` [U-Boot] [PATCH 05/12] arm: spear: Fix the main comment in start.S Miquel Raynal
2019-05-07 12:41   ` Stefan Roese
2019-07-11 22:05   ` Tom Rini
2019-05-07 12:18 ` [U-Boot] [PATCH 06/12] arm: spear: Purely cosmetic changes " Miquel Raynal
2019-05-07 12:41   ` Stefan Roese
2019-07-11 22:05   ` Tom Rini
2019-05-07 12:18 ` [U-Boot] [PATCH 07/12] arm: spear: Use PUSH/POP mnemonics when relevant Miquel Raynal
2019-05-07 12:42   ` Stefan Roese
2019-07-11 22:05   ` Tom Rini
2019-05-07 12:18 ` [U-Boot] [PATCH 08/12] arm: spear: Reference the link register with LR instead of R14 Miquel Raynal
2019-05-07 12:42   ` Stefan Roese
2019-07-11 22:05   ` Tom Rini
2019-05-07 12:18 ` [U-Boot] [PATCH 09/12] arm: spear: Simplify start.S organization Miquel Raynal
2019-05-07 12:42   ` Stefan Roese
2019-07-11 22:05   ` Tom Rini
2019-05-07 12:18 ` [U-Boot] [PATCH 10/12] arm: spear: Support returning to BootROM Miquel Raynal
2019-05-07 12:44   ` Stefan Roese
2019-07-11 22:05   ` Tom Rini
2019-05-07 12:18 ` [U-Boot] [PATCH 11/12] arm: spear: Do not link the _main branch Miquel Raynal
2019-05-07 12:44   ` Stefan Roese
2019-07-11 22:05   ` Tom Rini
2019-05-07 12:18 ` [U-Boot] [PATCH 12/12] arm: spear: Return to BootROM if failing to boot from the main device Miquel Raynal
2019-05-07 12:45   ` Stefan Roese
2019-07-11 22:05   ` Tom Rini
2019-05-07 12:50 ` [U-Boot] [PATCH 00/12] Enable returning back to BootROM from spear SPL Stefan Roese
2019-05-07 12:52   ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox