Skip to contentSkip to conversation

bootcount support on arm/kirkwood

U-Boot Heiko Schocher 3 participants 9 messages Jul 8, 2009 – Jul 9, 2009

lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
#1 lore raw
Quoted 11 lines

-----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,

Quoted 8 lines

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 . .

Quoted 11 lines

thanks in advance
Heikos

Signature · 6 lines
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
#2 lore raw

Dear Prafulla Wadaskar,

Quoted 7 lines · In message <[email protected]>…
Quoted 4 lines

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.

Quoted 1 line

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

Signature · 6 lines
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.
#3 lore raw
Quoted 20 lines

-----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 <[email protected].

Quoted 2 lines · com> you wrote:
Quoted 2 lines

I searched for some space on this CPU for implementing

this feature,

Quoted 3 lines
Quoted 2 lines

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

Quoted 8 lines

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.

Quoted 2 lines

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 . .

#4 lore raw

Hello Prafulla,

Quoted 18 lines · Prafulla Wadaskar
Quoted 18 lines

-----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 <[email protected].

Quoted 2 lines · com> you wrote:
Quoted 2 lines

I searched for some space on this CPU for implementing

this feature,

Quoted 3 lines
Quoted 2 lines

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

Quoted 8 lines
Quoted 6 lines

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.

Quoted 1 line

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

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
#5 lore raw
Quoted 42 lines

-----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,

Quoted 5 lines · Prafulla Wadaskar
Quoted 5 lines

-----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

Quoted 11 lines
Quoted 11 lines

Subject: Re: [U-Boot] bootcount support on arm/kirkwood

Dear Prafulla Wadaskar,

In message <[email protected].

Quoted 2 lines · com> you wrote:
Quoted 2 lines

I searched for some space on this CPU for implementing

this feature,

Quoted 1 line
Quoted 1 line

but could not find any (at least 4 bytes = 1 register),

which not

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Quoted 1 line

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.

Quoted 1 line

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

Quoted 3 lines
Quoted 1 line

values across a processor reset.

With Kirkwood, the only way to implement it is with flash assist

Quoted 7 lines

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 . .

Quoted 7 lines

thanks in advance
Heiko

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
#6 lore raw

Hello Prafulla,

Quoted 38 lines · Prafulla Wadaskar
Quoted 38 lines

-----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,

Quoted 5 lines · Prafulla Wadaskar
Quoted 5 lines

-----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

Quoted 11 lines
Quoted 11 lines

Subject: Re: [U-Boot] bootcount support on arm/kirkwood

Dear Prafulla Wadaskar,

In message <[email protected].

Quoted 2 lines · com> you wrote:
Quoted 2 lines

I searched for some space on this CPU for implementing

this feature,

Quoted 1 line
Quoted 1 line

but could not find any (at least 4 bytes = 1 register),

which not

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Quoted 1 line

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.

Quoted 1 line

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

Quoted 2 lines
Quoted 1 line

values across a processor reset.

With Kirkwood, the only way to implement it is with flash assist

Quoted 8 lines
Quoted 7 lines

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

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
#7 lore raw
In reply to Prafulla Wadaskar

Dear Prafulla Wadaskar,

Quoted 3 lines · In message <[email protected]>…
Quoted 3 lines

No chance? Is there really no register/mem array which keep its value across a processor reset?

...

Quoted 1 line

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

Signature · 5 lines
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.
#8 lore raw
In reply to Prafulla Wadaskar

Dear Prafulla Wadaskar,

Quoted 5 lines · In message <[email protected]>…
Quoted 3 lines

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

Signature · 5 lines
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.