#95320 - 22/05/2002 16:15
Random anims on startup
|
enthusiast
Registered: 07/01/2002
Posts: 339
Loc: Squamish, BC
|
Hey,
What would be the possibility of writing a program that would, on startup, init and copy a random bootup animation from a directory to the bootup animation location, before the player software had had time to initialise? In effect giving a random different bootup animation each time the payer is started.
Anyone feel like a challenge?
Cheers,
A.
|
Top
|
|
|
|
#95321 - 22/05/2002 16:20
Re: Random anims on startup
[Re: snoopstah]
|
Carpal Tunnel
Registered: 08/02/2002
Posts: 3411
|
...and boot logos
_________________________
Mk2a 60GB Blue. Serial 030102962
sig.mp3: File Format not Valid.
|
Top
|
|
|
|
#95322 - 22/05/2002 16:24
Re: Random anims on startup
[Re: snoopstah]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
I don't think you could do it exactly the way you describe, because the hard disk isn't spun up when you see the animation. Therefore it can't copy the animation into place before the animation starts.
However, there's nothing to stop someone from writing a program to flash a new animation AFTER the player is booted, therefore providing a randomized animation for the NEXT boot. The end result would appear to be the same from where you're sitting.
The problem is that the process for flashing the RAM is slow, and you will corrupt the flash if you interrupt the flashing process (for example, if you cycle the power in the middle of the process, or it reboots cause you were starting your engine or whatever.) So there'd have to be some safeguards in place. Also, the flash is a limited resource that can only be burned X number of times before it doesn't work any more, so anything to reduce the wear and tear on the flash bytes is good, anything that increases it, is bad.
I'm not sure if the player can keep playing while things are being flashed or not...
|
Top
|
|
|
|
#95323 - 22/05/2002 23:05
Re: Random anims on startup
[Re: tfabris]
|
old hand
Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
|
what is the flash chip goes bad, is it just s standard flash chip and u can replace it or, dose it have super powers and can only be replaced by empeg? i do alot of messing with the player, and serveral flashes a month. just kinda looking into the future
_________________________
----
Justin Larsen
|
Top
|
|
|
|
#95324 - 23/05/2002 01:11
Re: Random anims on startup
[Re: tfabris]
|
old hand
Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
|
To minimise flash wear, you could select the new animation only when the music partions get mounted read-only - IOW, once per sync. This would deal with the partial-write problem, as you shouldn't be pulling the power while syncing anyway.
Perhaps a timestamp would be useful for people like me who tend to sync several times when installing a bunch of new music (once after uploading with emptool and several times with jEmplode as I copy tracks into all the relevant playlists). Then, you could install the new logo only if the old one is more than a {day, week, etc} old.
_________________________
Toby Speight 030103016 (80GB Mk2a, blue) 030102806 (0GB Mk2a, blue)
|
Top
|
|
|
|
#95325 - 23/05/2002 02:19
Re: Random anims on startup
[Re: justinlarsen]
|
carpal tunnel
Registered: 24/12/2001
Posts: 5528
|
Well. I think it's a standard flash chip but if you count soldering SMD parts with lots of legs as a super power then yes If you do replace it then you'd probably want to get the same model number as the flash driver in the kernel sends commands for that specific brand/model.
- Trevor
|
Top
|
|
|
|
#95326 - 23/05/2002 02:22
Re: Random anims on startup
[Re: tms13]
|
carpal tunnel
Registered: 24/12/2001
Posts: 5528
|
I could probably hack together a small Hijack app which lets you select a new animation and then flash it. Anybody want this? I've already written the code for displaying it and loading them anyway.
- Trevor
|
Top
|
|
|
|
#95327 - 23/05/2002 03:58
Re: Random anims on startup
[Re: tman]
|
old hand
Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
|
If you were to replace the flash, I think you'd also need to program the protected area (with the initial pump code)...
_________________________
Toby Speight 030103016 (80GB Mk2a, blue) 030102806 (0GB Mk2a, blue)
|
Top
|
|
|
|
#95328 - 23/05/2002 04:10
Re: Random anims on startup
[Re: tms13]
|
carpal tunnel
Registered: 24/12/2001
Posts: 5528
|
Hmm. Good point. I forgot about the protected bootloader.
So if you wanted to replace your flash then you'd need to download the bootloader from another empeg, flash it into the new chip, unsolder the old chip, solder in the new one and finally flash the new kernel. I think the easiest option is to not wear out your flash
- Trevor
|
Top
|
|
|
|
#95329 - 23/05/2002 10:34
Re: Random anims on startup
[Re: justinlarsen]
|
Carpal Tunnel
Registered: 08/02/2002
Posts: 3411
|
A quick google suggested that '96 era flash chips had a write-count expectancy of ~100,000. So if you were flashing your kernel/updating boot animations 3 times a day, it should still last about 90 years, and I imagine that (as great as it is) the empeg may just be obsolete by then.
Of course, I didn't bother to check the actual flash chip used in the empeg, so this figure may be wrong. I'll leave that as an exercise for somebody else
_________________________
Mk2a 60GB Blue. Serial 030102962
sig.mp3: File Format not Valid.
|
Top
|
|
|
|
#95330 - 23/05/2002 12:05
Re: Random anims on startup
[Re: genixia]
|
old hand
Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
|
haha well in that case i dont think ill have to worrie about it, in 90 years i dont even know if this planet will be around.
_________________________
----
Justin Larsen
|
Top
|
|
|
|
#95331 - 23/05/2002 14:23
Re: Random anims on startup
[Re: justinlarsen]
|
old hand
Registered: 14/02/2002
Posts: 804
Loc: Salt Lake City, UT
|
Yeah, but I plan on willing my empeg to my children
_________________________
-Michael
#040103696 on a shelf Mk2a - 90 GB - Red - Illuminated buttons
|
Top
|
|
|
|
#95332 - 23/05/2002 17:17
Re: Random anims on startup
[Re: tfabris]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
>Also, the flash is a limited resource that can only be
>burned X number of times before it doesn't work any more
A random animation selector (something I suggested here months ago) would not be an issue in that regard. The flash savearea is updated far more often than the animation ever would be, and the savearea will be the first to go, by a longshot.
The slight worry of messing things up with a sudden powerfail while writing a new animation is a minor issue. We don't really care if the animation gets corrupted, and we could add a checksum or crc to them for Hijack to examine before "trusting" the table of offsets at the start of each animation.
But a bigger powerfail issue is that, if the player is busy writing the animation, then it cannot update the savearea. Again, probably a non-issue, since this will be immediately at power on, before the player runs, and therefore before the player can modify the savearea buffer (Hijack might change it, but no big deal there).
So, if we added a CRC to the animation, I don't see an issue here.
Cheers
|
Top
|
|
|
|
|
|