mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCHv2] Enable a way to provide the reason for "being here"
@ 2012-06-21  9:16 Juergen Beisert
  2012-06-21  9:16 ` [PATCH 1/2] " Juergen Beisert
  2012-06-21  9:16 ` [PATCH 2/2] Add two architectures which can detect the reset source Juergen Beisert
  0 siblings, 2 replies; 11+ messages in thread
From: Juergen Beisert @ 2012-06-21  9:16 UTC (permalink / raw)
  To: barebox

Many architectures support a way to detect why the bootloader is running.
This patch adds a global variable to be able to use the cause in some kind of
shell code to do special things on demand. For example to do an emergency boot,
when the last boot fails and the watchdog reactivates the hanging system.

This series includes Marcs suggesion.

Comments are welcome.

Juergen

The following changes since commit 2761ef4d4ae401887f0832d1fd496f26cdf11f20:

  Merge branch 'for-next/resource-size' into next (2012-06-20 10:30:40 +0200)

are available in the git repository at:

  git://git.pengutronix.de/git/jbe/barebox.git next_provide_reset_sourceV2

for you to fetch changes up to 8fded47341461b284589b5cc81f5c5dfc89f2ec9:

  Add two architectures which can detect the reset source (2012-06-21 10:54:19 +0200)

----------------------------------------------------------------
Juergen Beisert (2):
      Enable a way to provide the reason for "being here"
      Add two architectures which can detect the reset source

 arch/arm/mach-imx/Makefile           |    1 +
 arch/arm/mach-imx/reset_source.c     |   59 ++++++++++++++++++++++++++++++++++
 arch/arm/mach-samsung/Makefile       |    1 +
 arch/arm/mach-samsung/reset_source.c |   56 ++++++++++++++++++++++++++++++++
 common/Makefile                      |    2 +-
 common/reset_source.c                |   44 +++++++++++++++++++++++++
 include/reset_source.h               |   27 ++++++++++++++++
 7 files changed, 189 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/mach-imx/reset_source.c
 create mode 100644 arch/arm/mach-samsung/reset_source.c
 create mode 100644 common/reset_source.c
 create mode 100644 include/reset_source.h

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH] Enable a way to provide the reason for "being here"
@ 2012-06-20 14:32 Juergen Beisert
  2012-06-20 14:32 ` [PATCH 2/2] Add two architectures which can detect the reset source Juergen Beisert
  0 siblings, 1 reply; 11+ messages in thread
From: Juergen Beisert @ 2012-06-20 14:32 UTC (permalink / raw)
  To: barebox

Many architectures support a way to detect why the bootloader is running.
This patch adds a global variable to be able to use the cause in some kind of
shell code to do special things on demand. For example to do an emergency boot,
when the last boot fails and the watchdog reactivates the hanging system.

Comments are welcome.

Juergen

The following changes since commit 2761ef4d4ae401887f0832d1fd496f26cdf11f20:

  Merge branch 'for-next/resource-size' into next (2012-06-20 10:30:40 +0200)

are available in the git repository at:


  git://git.pengutronix.de/git/jbe/barebox.git next_provide_reset_source

for you to fetch changes up to ca97f3afb35740ac742f67a070101decd729c848:

  Add two architectures which can detect the reset source (2012-06-20 16:22:58 +0200)

----------------------------------------------------------------
Juergen Beisert (2):
      Enable a way to provide the reason for "being here"
      Add two architectures which can detect the reset source

 arch/arm/mach-imx/Makefile           |    1 +
 arch/arm/mach-imx/reset_source.c     |   59 ++++++++++++++++++++++++++++++++
 arch/arm/mach-samsung/Makefile       |    1 +
 arch/arm/mach-samsung/reset_source.c |   56 ++++++++++++++++++++++++++++++
 common/Makefile                      |    2 +-
 common/reset_source.c                |   62 ++++++++++++++++++++++++++++++++++
 include/reset_source.h               |   26 ++++++++++++++
 7 files changed, 206 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/mach-imx/reset_source.c
 create mode 100644 arch/arm/mach-samsung/reset_source.c
 create mode 100644 common/reset_source.c
 create mode 100644 include/reset_source.h


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-06-21 21:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-21  9:16 [PATCHv2] Enable a way to provide the reason for "being here" Juergen Beisert
2012-06-21  9:16 ` [PATCH 1/2] " Juergen Beisert
2012-06-21  9:16 ` [PATCH 2/2] Add two architectures which can detect the reset source Juergen Beisert
2012-06-21 18:27   ` Sascha Hauer
2012-06-21 19:01     ` Juergen Beisert
2012-06-21 19:03       ` Sascha Hauer
2012-06-21 21:50       ` Roberto Nibali
  -- strict thread matches above, loose matches on Subject: below --
2012-06-20 14:32 [PATCH] Enable a way to provide the reason for "being here" Juergen Beisert
2012-06-20 14:32 ` [PATCH 2/2] Add two architectures which can detect the reset source Juergen Beisert
2012-06-20 14:59   ` Marc Kleine-Budde
2012-06-20 15:05     ` Juergen Beisert
2012-06-20 15:09       ` Marc Kleine-Budde

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