[U-Boot] bootcount support on arm/kirkwood

Hello,
does somebody know, if it is possible to use the uboot bootcount feature on an ARM926EJS (CPU Core Version FEROCEON_88FR131 SOC Family: KIRKWOOD, KW88F6281) based board ?
I searched for some space on this CPU for implementing this feature, but could not find any (at least 4 bytes = 1 register), which not lost his value on a reset of this CPU.
thanks in advance Heiko

-----Original Message----- From: u-boot-bounces@lists.denx.de [mailto:u-boot-bounces@lists.denx.de] On Behalf Of Heiko Schocher Sent: Wednesday, July 08, 2009 6:42 PM To: U-Boot user list Subject: [U-Boot] bootcount support on arm/kirkwood
Hello,
does somebody know, if it is possible to use the uboot bootcount feature on an ARM926EJS (CPU Core Version FEROCEON_88FR131 SOC Family: KIRKWOOD, KW88F6281) based board ?
I searched for some space on this CPU for implementing this feature, but could not find any (at least 4 bytes = 1 register), which not lost his value on a reset of this CPU.
There is reset counter register on Kirkwood which counts the time for which H/w Reset is pressed-n-hold. This is generally used to trigger "Factory Reset" Kind of function using reset key.
I don't think you are searching for the same. Do you?
BTW: What's your end use case?
Reagrds.. Prafulla . .
thanks in advance Heikos -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Dear Prafulla Wadaskar,
In message 73173D32E9439E4ABB5151606C3E19E202DD54DE86@SC-VEXCH1.marvell.com you wrote:
I searched for some space on this CPU for implementing this feature, but could not find any (at least 4 bytes = 1 register), which not lost his value on a reset of this CPU.
There is reset counter register on Kirkwood which counts the time for which H/w Reset is pressed-n-hold. This is generally used to trigger "Factory Reset" Kind of function using reset key.
I don't think you are searching for the same. Do you?
No, he doesn't. He needs a register that is guaranteed to keep it''s values across a processor reset.
BTW: What's your end use case?
The boot counter counts the number of (failed) boot attempts (i. e. processor resets minus one) after power on. See http://www.denx.de/wiki/view/DULG/UBootBootCountLimit
Best regards,
Wolfgang Denk

-----Original Message----- From: Wolfgang Denk [mailto:wd@denx.de] Sent: Thursday, July 09, 2009 12:29 AM To: Prafulla Wadaskar Cc: hs@denx.de; U-Boot user list; Prabhanjan Sarnaik; Ashish Karkare Subject: Re: [U-Boot] bootcount support on arm/kirkwood
Dear Prafulla Wadaskar,
In message <73173D32E9439E4ABB5151606C3E19E202DD54DE86@SC-VEXCH1.marvell. com> you wrote:
I searched for some space on this CPU for implementing
this feature,
but could not find any (at least 4 bytes = 1 register), which not lost his value on a reset of this CPU.
There is reset counter register on Kirkwood which counts
the time for which H/w Reset is pressed-n-hold. This is generally used to trigger "Factory Reset" Kind of function using reset key.
I don't think you are searching for the same. Do you?
No, he doesn't. He needs a register that is guaranteed to keep it''s values across a processor reset.
With Kirkwood, the only way to implement it is with flash assist
Regards.. Prafulla . .

Hello Prafulla,
Prafulla Wadaskar wrote:
-----Original Message----- From: Wolfgang Denk [mailto:wd@denx.de] Sent: Thursday, July 09, 2009 12:29 AM To: Prafulla Wadaskar Cc: hs@denx.de; U-Boot user list; Prabhanjan Sarnaik; Ashish Karkare Subject: Re: [U-Boot] bootcount support on arm/kirkwood
Dear Prafulla Wadaskar,
In message <73173D32E9439E4ABB5151606C3E19E202DD54DE86@SC-VEXCH1.marvell. com> you wrote:
I searched for some space on this CPU for implementing
this feature,
but could not find any (at least 4 bytes = 1 register), which not lost his value on a reset of this CPU.
There is reset counter register on Kirkwood which counts
the time for which H/w Reset is pressed-n-hold. This is generally used to trigger "Factory Reset" Kind of function using reset key.
I don't think you are searching for the same. Do you?
No, he doesn't. He needs a register that is guaranteed to keep it''s values across a processor reset.
With Kirkwood, the only way to implement it is with flash assist
No chance? Is there really no register/mem array which keep its value across a processor reset?
There is a "Security Accelerator SRAM" on this chip. Couldn;t I use it? (I looked at it, but it seems, the SRAM gets initialized by reset, but maybe there is a way to deactivate this initialization?)
thanks in advance Heiko

-----Original Message----- From: Heiko Schocher [mailto:hs@denx.de] Sent: Thursday, July 09, 2009 12:05 PM To: Prafulla Wadaskar Cc: Wolfgang Denk; U-Boot user list; Prabhanjan Sarnaik; Ashish Karkare Subject: Re: [U-Boot] bootcount support on arm/kirkwood
Hello Prafulla,
Prafulla Wadaskar wrote:
-----Original Message----- From: Wolfgang Denk [mailto:wd@denx.de] Sent: Thursday, July 09, 2009 12:29 AM To: Prafulla Wadaskar Cc: hs@denx.de; U-Boot user list; Prabhanjan Sarnaik;
Ashish Karkare
Subject: Re: [U-Boot] bootcount support on arm/kirkwood
Dear Prafulla Wadaskar,
In message <73173D32E9439E4ABB5151606C3E19E202DD54DE86@SC-VEXCH1.marvell. com> you wrote:
I searched for some space on this CPU for implementing
this feature,
but could not find any (at least 4 bytes = 1 register),
which not
lost his value on a reset of this CPU.
There is reset counter register on Kirkwood which counts
the time for which H/w Reset is pressed-n-hold. This is generally used to trigger "Factory Reset" Kind of function using reset key.
I don't think you are searching for the same. Do you?
No, he doesn't. He needs a register that is guaranteed to
keep it''s
values across a processor reset.
With Kirkwood, the only way to implement it is with flash assist
No chance? Is there really no register/mem array which keep its value across a processor reset?
There is a "Security Accelerator SRAM" on this chip. Couldn;t I use it? (I looked at it, but it seems, the SRAM gets initialized by reset, but maybe there is a way to deactivate this initialization?)
Do you want only across reboots(i.e. resets)? How about re-power cycle? Regards.. Prafulla . .
thanks in advance Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

Hello Prafulla,
Prafulla Wadaskar wrote:
-----Original Message----- From: Heiko Schocher [mailto:hs@denx.de] Sent: Thursday, July 09, 2009 12:05 PM To: Prafulla Wadaskar Cc: Wolfgang Denk; U-Boot user list; Prabhanjan Sarnaik; Ashish Karkare Subject: Re: [U-Boot] bootcount support on arm/kirkwood
Hello Prafulla,
Prafulla Wadaskar wrote:
-----Original Message----- From: Wolfgang Denk [mailto:wd@denx.de] Sent: Thursday, July 09, 2009 12:29 AM To: Prafulla Wadaskar Cc: hs@denx.de; U-Boot user list; Prabhanjan Sarnaik;
Ashish Karkare
Subject: Re: [U-Boot] bootcount support on arm/kirkwood
Dear Prafulla Wadaskar,
In message <73173D32E9439E4ABB5151606C3E19E202DD54DE86@SC-VEXCH1.marvell. com> you wrote:
I searched for some space on this CPU for implementing
this feature,
but could not find any (at least 4 bytes = 1 register),
which not
lost his value on a reset of this CPU.
There is reset counter register on Kirkwood which counts
the time for which H/w Reset is pressed-n-hold. This is generally used to trigger "Factory Reset" Kind of function using reset key.
I don't think you are searching for the same. Do you?
No, he doesn't. He needs a register that is guaranteed to
keep it''s
values across a processor reset.
With Kirkwood, the only way to implement it is with flash assist
No chance? Is there really no register/mem array which keep its value across a processor reset?
There is a "Security Accelerator SRAM" on this chip. Couldn;t I use it? (I looked at it, but it seems, the SRAM gets initialized by reset, but maybe there is a way to deactivate this initialization?)
Do you want only across reboots(i.e. resets)? How about re-power cycle?
Yes, I need this only across reboots (processor resets). If the board is powered off/on, the value of this area gets new initialized from software.
bye Heiko

Dear Prafulla Wadaskar,
In message 73173D32E9439E4ABB5151606C3E19E202DD54DFED@SC-VEXCH1.marvell.com you wrote:
No chance? Is there really no register/mem array which keep its value across a processor reset?
...
Do you want only across reboots(i.e. resets)? How about re-power cycle?
It needs to keep it's value only through resets; it is assumed that power cycling gets detected independently from that, in which case this boot counter would be reset to 0.
Best regards,
Wolfgang Denk

Dear Prafulla Wadaskar,
In message 73173D32E9439E4ABB5151606C3E19E202DD54DFCC@SC-VEXCH1.marvell.com you wrote:
No, he doesn't. He needs a register that is guaranteed to keep it''s values across a processor reset.
With Kirkwood, the only way to implement it is with flash assist
There is not a single register in the whole CPU and all the peripherals it implements that keeps it's value over a reset? I'd really be surprised if that was indeed true.
Could you please check again? Maybe ask the chip designers?
Best regards,
Wolfgang Denk
participants (3)
-
Heiko Schocher
-
Prafulla Wadaskar
-
Wolfgang Denk