* [U-Boot] bootcount support on arm/kirkwood
@ 2009-07-08 13:11 Heiko Schocher
2009-07-08 18:01 ` Prafulla Wadaskar
0 siblings, 1 reply; 9+ messages in thread
From: Heiko Schocher @ 2009-07-08 13:11 UTC (permalink / raw)
To: u-boot
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
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] bootcount support on arm/kirkwood
2009-07-08 13:11 [U-Boot] bootcount support on arm/kirkwood Heiko Schocher
@ 2009-07-08 18:01 ` Prafulla Wadaskar
2009-07-08 18:59 ` Wolfgang Denk
0 siblings, 1 reply; 9+ messages in thread
From: Prafulla Wadaskar @ 2009-07-08 18:01 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: u-boot-bounces at lists.denx.de
> [mailto:u-boot-bounces at 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 at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] bootcount support on arm/kirkwood
2009-07-08 18:01 ` Prafulla Wadaskar
@ 2009-07-08 18:59 ` Wolfgang Denk
2009-07-09 5:55 ` Prafulla Wadaskar
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Denk @ 2009-07-08 18:59 UTC (permalink / raw)
To: 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
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
PLEASE NOTE: Some Quantum Physics Theories Suggest That When the Con-
sumer Is Not Directly Observing This Product, It May Cease to Exist
or Will Exist Only in a Vague and Undetermined State.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] bootcount support on arm/kirkwood
2009-07-08 18:59 ` Wolfgang Denk
@ 2009-07-09 5:55 ` Prafulla Wadaskar
2009-07-09 6:35 ` Heiko Schocher
2009-07-09 7:44 ` Wolfgang Denk
0 siblings, 2 replies; 9+ messages in thread
From: Prafulla Wadaskar @ 2009-07-09 5:55 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Wolfgang Denk [mailto:wd at denx.de]
> Sent: Thursday, July 09, 2009 12:29 AM
> To: Prafulla Wadaskar
> Cc: hs at 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 . .
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] bootcount support on arm/kirkwood
2009-07-09 5:55 ` Prafulla Wadaskar
@ 2009-07-09 6:35 ` Heiko Schocher
2009-07-09 6:49 ` Prafulla Wadaskar
2009-07-09 7:44 ` Wolfgang Denk
1 sibling, 1 reply; 9+ messages in thread
From: Heiko Schocher @ 2009-07-09 6:35 UTC (permalink / raw)
To: u-boot
Hello Prafulla,
Prafulla Wadaskar wrote:
>> -----Original Message-----
>> From: Wolfgang Denk [mailto:wd at denx.de]
>> Sent: Thursday, July 09, 2009 12:29 AM
>> To: Prafulla Wadaskar
>> Cc: hs at 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
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] bootcount support on arm/kirkwood
2009-07-09 6:35 ` Heiko Schocher
@ 2009-07-09 6:49 ` Prafulla Wadaskar
2009-07-09 7:26 ` Heiko Schocher
2009-07-09 7:47 ` Wolfgang Denk
0 siblings, 2 replies; 9+ messages in thread
From: Prafulla Wadaskar @ 2009-07-09 6:49 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Heiko Schocher [mailto:hs at 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 at denx.de]
> >> Sent: Thursday, July 09, 2009 12:29 AM
> >> To: Prafulla Wadaskar
> >> Cc: hs at 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
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] bootcount support on arm/kirkwood
2009-07-09 6:49 ` Prafulla Wadaskar
@ 2009-07-09 7:26 ` Heiko Schocher
2009-07-09 7:47 ` Wolfgang Denk
1 sibling, 0 replies; 9+ messages in thread
From: Heiko Schocher @ 2009-07-09 7:26 UTC (permalink / raw)
To: u-boot
Hello Prafulla,
Prafulla Wadaskar wrote:
>> -----Original Message-----
>> From: Heiko Schocher [mailto:hs at 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 at denx.de]
>>>> Sent: Thursday, July 09, 2009 12:29 AM
>>>> To: Prafulla Wadaskar
>>>> Cc: hs at 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
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] bootcount support on arm/kirkwood
2009-07-09 5:55 ` Prafulla Wadaskar
2009-07-09 6:35 ` Heiko Schocher
@ 2009-07-09 7:44 ` Wolfgang Denk
1 sibling, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2009-07-09 7:44 UTC (permalink / raw)
To: u-boot
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
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There are two ways to write error-free programs. Only the third one
works.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] bootcount support on arm/kirkwood
2009-07-09 6:49 ` Prafulla Wadaskar
2009-07-09 7:26 ` Heiko Schocher
@ 2009-07-09 7:47 ` Wolfgang Denk
1 sibling, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2009-07-09 7:47 UTC (permalink / raw)
To: u-boot
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
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A Puritan is someone who is deathly afraid that someone, somewhere,
is having fun.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-07-09 7:47 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-08 13:11 [U-Boot] bootcount support on arm/kirkwood Heiko Schocher
2009-07-08 18:01 ` Prafulla Wadaskar
2009-07-08 18:59 ` Wolfgang Denk
2009-07-09 5:55 ` Prafulla Wadaskar
2009-07-09 6:35 ` Heiko Schocher
2009-07-09 6:49 ` Prafulla Wadaskar
2009-07-09 7:26 ` Heiko Schocher
2009-07-09 7:47 ` Wolfgang Denk
2009-07-09 7:44 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox