Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#38780 - 19/09/2001 12:02 Limit to number of flashes?
Captain_Chaos
member

Registered: 18/11/2000
Posts: 126
Loc: Amersfoort, The Netherlands
Hi empeg tech guys,

Is there a limit to the number of times you can flash something to the flash ROM, such as a custom kernel, a boot logo or an official update? It used to be that flash ROM's would crap out after so many times, I was wondering if this is true for the empeg.

/Pepijn

Top
#38781 - 19/09/2001 12:05 Re: Limit to number of flashes? [Re: Captain_Chaos]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
Wow, good question. I was never aware there was such a limit to flash. Hugo?

___________
Tony Fabris
_________________________
Tony Fabris

Top
#38782 - 19/09/2001 12:13 Re: Limit to number of flashes? [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Woohoo I know something Tony doesn't know! This is my lucky day!

The minimum flash cycles is 100,000 which Hugo originally mentioned in this thread.


-Tony
MkII #554
_________________________
- Tony C
my empeg stuff

Top
#38783 - 19/09/2001 12:21 Re: Limit to number of flashes? [Re: tonyc]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
Interesting. If one reads that thread, it's interesting to note that the logo updates are the least of our worries.

The real bugaboo would be the other stuff that's written to flash: The player state on bootup/powerdown.

I wonder: Is the flash write limitation on an address-by-address basis, or is it global to the entire flash chip? In other words, if it starts forgetting its player state because it's been powered down 100,000 times, does that mean you can no longer upgrade the logo, either?

I did a little calculating, and if you powered the unit down and up four times a day every day, it would take 68 years to reach 100,000 flash writes.

Damn, my empeg has a Year 2069 bug.



___________
Tony Fabris
_________________________
Tony Fabris

Top
#38784 - 19/09/2001 12:36 Re: Limit to number of flashes? [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
My understanding of flash is that it's an address-by-address basis... Like, the same location can't be written to more than X times... Other locations on the flash chip should still be fine.

I can't imagine circumstances where anyone would be writing to ANY location on the flash 100,000 times throughout the life of their Empeg.

-Tony
MkII #554
_________________________
- Tony C
my empeg stuff

Top
#38785 - 19/09/2001 12:38 Re: Limit to number of flashes? [Re: tonyc]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
I can't imagine circumstances where anyone would be writing to ANY location on the flash 100,000 times throughout the life of their Empeg.

Well, we'll just have to see how we're all doing in 2069.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#38786 - 19/09/2001 12:47 Re: Limit to number of flashes? [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Hmm, if my Empeg lives that long I'll be happy... If *I* live that long, I'll be ecstatic! And senile...

-Tony
MkII #554
_________________________
- Tony C
my empeg stuff

Top
#38787 - 19/09/2001 13:04 Re: Limit to number of flashes? [Re: tonyc]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
My understanding of flash is that it's an address-by-address basis... Like, the same location can't be written to more than X times... Other locations on the flash chip should still be fine.

Thats how I remember it as well, and this is why I believe the current state data is moved around quite a bit. I'm sure the exact number of spaces could be found in the kernel source. This in effect would then turn the real limit into 100,000 custom logo changes/upgrades before an issue arrises.


Top
#38788 - 19/09/2001 14:12 Re: Limit to number of flashes? [Re: tfabris]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
Actually, it's 100,000 erases, not programs.

We store 128 bytes of state information on power down, and I worked out a neat algorithm (I'm sure someone else must have done this before, but...). We cycle through a single 8k page - at power up we work backwards through the page until we get a 128-byte block with a correct CRC, and note that on the next powerdown we have to use the next free slot in the page.

This means we get 8192/128=64 power downs for each 8k page erase, and more like 6.4 million powerdowns (minimum).

The limitation is *per block*. The blocks below 0x10000 (64k) are 8k, above that they are 64k.

Hugo



Top
#38789 - 19/09/2001 14:15 Re: Limit to number of flashes? [Re: altman]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
What a clever little boy you are.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#38790 - 19/09/2001 20:46 Re: Limit to number of flashes? [Re: tonyc]
Ezekiel
pooh-bah

Registered: 25/08/2000
Posts: 2413
Loc: NH USA
Of course by then you'll have twin 200 terabyte holographic drives so you can watch 3-D movies (a different one for each passenger) while your flying car takes you to to work (where there's still a better 'net connection). Although you worry the new teleportation device will finally render your empeg mkII obsolete....
:-)
-Zeke

just say you weren't paying much attention...
_________________________
WWFSMD?

Top
#38791 - 20/09/2001 06:37 Re: Limit to number of flashes? [Re: Ezekiel]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Not necessarily... I heard that SonicBlue is preparing to announce the "Teleportation Module" very soon. They anticipate shipping them early next week, but there may be some "slight delays" as order fulfillment problems are ironed out...

-Tony
MkII #554
_________________________
- Tony C
my empeg stuff

Top