#153183 - 04/04/2003 11:48
Is it possible to upgrade without serial?
|
addict
Registered: 10/11/2000
Posts: 497
Loc: Utah, USA
|
Okay, let's imagine for a second the following scenario: A man is in a remote mountain cabin with his empeg, a computer, and internet access. However, a pack of weasels break into the cabin, break the man's arms and legs, rip his flesh, and worst of all, steal the serial cable for his empeg. The man now has no way to leave the cabin to get another serial cable, and since it's so remote, no one can come to deliver him another one.
In that scenario, if the man wants to upgrade to 2.0 is he completely out of luck? Or, can he hack through it somehow?
Hypothetical man has hijack installed. So isn't there some way that the upgrade file could be dissected so that the kernel is discarded and the binaries get installed to the root of the drive using good old linux? If I remember correctly, the upgrade file completely wipes out the root partition and replaces it with a new one. If that can't be done, then I suppose at least the relevant binaries can be copied over (assuming they can get extracted out of the upgrade file).
(The actual situation is that I'm out of town for several days, and would like to at least sample the goodness of 2.0. However, my serial cable is at home, and I don't feel like buying another one when I have a perfectly good one at home. I do dislike weasels, though.)
_________________________
-Aaron
|
Top
|
|
|
|
#153184 - 04/04/2003 11:57
Re: Is it possible to upgrade without serial?
[Re: adavidw]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
You could conceivably do it. There's code available to explode the .upgrade files (search here for UpgradeSplitter). There are a number of things that needs to be upgraded in flash. Mark has demonstrated that this is doable inside the OS, though I don't think that there's any currently implemented code to replace an arbitrary address in the flash -- only the kernel point -- though it shouldn't be hard to make that enhancement.
In addition, the majority of the data in the .upgrade file is a filesystem image for the root partition. There ought to be a way to do this, even if I can't think of it right now. Perhaps that's some of what the flash upgrades do in the .upgrade file?
Regardless, there's no way to do this all currently. A significant amount of development would have to happen, but I don't think it's not overcomeable.
(BTW, I like the oblique FZ reference.)
_________________________
Bitt Faulk
|
Top
|
|
|
|
#153185 - 04/04/2003 12:58
Re: Is it possible to upgrade without serial?
[Re: adavidw]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
|
"It was right about then that a little ditty started going through my head. It went a little something like this: AAAAAAAGGGH! GET 'EM OFF ME, GET 'EM OFF ME, GAAAAAAAA!"
|
Top
|
|
|
|
#153186 - 04/04/2003 16:11
Re: Is it possible to upgrade without serial?
[Re: adavidw]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
It is very possible, but nobody has bothered writing the small program required for it yet, since upgrades are usually pretty rare.
But now that the Linux upgclient tool no longer works for me (doesn't like my newer notebook computer), I suppose I'll write an upgrader for Linux.
This one works over ethernet, doesn't wipe out the Hijack kernel (unless you want it to, I suppose), and should be much faster than the old serial based one.
Linux / Unix only, of course. But others are welcome to port it.
I'll have a go at it this evening.
Cheers
|
Top
|
|
|
|
#153187 - 04/04/2003 16:37
Re: Is it possible to upgrade without serial?
[Re: mlord]
|
old hand
Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
|
Sounds good, Mark - definitely something I'd use.
The option to wipe Hijack would be nice, but the most likely use for it would be for verifying bugs against a pristine player, and it's probably best to use the Empeg-supplied upgclient if possible for that, for 100% confidence the bug is their fault.
_________________________
Toby Speight 030103016 (80GB Mk2a, blue) 030102806 (0GB Mk2a, blue)
|
Top
|
|
|
|
#153188 - 04/04/2003 19:45
Re: Is it possible to upgrade without serial?
[Re: tms13]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
best to use the Empeg-supplied upgclient if possible upgclient currently only works under Linux/x86. I have multiple Unix machines and none of them fit that requirement.
_________________________
Bitt Faulk
|
Top
|
|
|
|
#153189 - 04/04/2003 21:23
Re: Is it possible to upgrade without serial?
[Re: tms13]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Okay, I can now do an upgrade of my player in just under two minutes, not including the final reboot and rebuild of the player database.
Cool.
I've got a few things left to clean up before I unleash this:
-- kill the player before doing the upgrade
-- reboot the machine afterwards
-- force a database rebuild (just delete the database files, I guess)
But apart from that, it's working reasonably well.
As a short-cut, it calls "gunzip" (for the root partition data, which comes gzip'd in the upgrade file), and "ncftpput" to do the FTP transfers for me. Anyone who thinks they may want to run this sometime soon should hunt down the "ncftpput" program while they're waiting for me. It is part of the "ncftp" program suite, for which source code is available for most unices. I happen to be using version 3.1.5 on my machine.
Once it's all nicely working, I might build the FTP client stuff into the program, but for now I'm sticking with the lazy approach.
Cheers
|
Top
|
|
|
|
#153190 - 04/04/2003 21:25
Hijack v328
[Re: mlord]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
And, oh yeah, I'll be releasing Hijack v328 in a few minutes. The only changes are that it now has extra /proc/ entries for the required flash memory partitions that are written to by the upgrader.
Cheers
|
Top
|
|
|
|
#153191 - 04/04/2003 21:29
Re: Is it possible to upgrade without serial?
[Re: mlord]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Mmm.. actually, deleting the database files will force a rebuild on all reboots until the next sync, so I suppose I need to find out how to do this properly.. is it as simple as booting with the partitions mounted R/W, so that the player can write the new database it creates?
I suppose I could trace what the current upgclient does, if it actually worked on my machine..
Cheers
|
Top
|
|
|
|
#153192 - 04/04/2003 21:47
Re: Is it possible to upgrade without serial?
[Re: mlord]
|
carpal tunnel
Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
|
I don't remember it needing to rebuild on the new boot. I'd guess the upgrade client reads it in (optionally updates it, but probably not) and writes it back out after updating.
|
Top
|
|
|
|
#153193 - 04/04/2003 21:52
Re: Is it possible to upgrade without serial?
[Re: mlord]
|
addict
Registered: 10/11/2000
Posts: 497
Loc: Utah, USA
|
Okay, this is downright ridiculous. I was hoping that someone would point to a way to break up the file so that I could gunzip the relevant parts and stick them up there. Not only do I have that, but somehow I spurred Mark Lord into basically solving the problem for me.
I'm continually amazed at the way idle musings and impossible wishes constantly turn into reality overnight. I just have a really hard time wrapping my head around the talent, skill, creativity, generosity, and all around coolness of everyone in the empeg community.
A hearty thank you to everyone!
_________________________
-Aaron
|
Top
|
|
|
|
#153194 - 04/04/2003 22:05
Re: Is it possible to upgrade without serial?
[Re: adavidw]
|
carpal tunnel
Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
|
It's great isn't it? I know the upgrade via ethernet has been a wish for many for quite a while. I guess you just reminded them.
_________________________
Brad B.
|
Top
|
|
|
|
#153195 - 04/04/2003 22:22
Linux Ethernet Upgrader: preliminary version
[Re: adavidw]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Okay, I've attached the current version.
From the README: This version is pretty simple to use, but not 100% complete.
--> requires Hijack v328 or newer.
--> you should manually "pause" your player first, or put it in stand-by mode.
--> after "upgrader" completes, you must manually reboot your player.
--> after the reboot, you should run emptool or emplode to rebuild the databases.
It works for me.
Attachments
151318-upgrader.tgz (64 downloads)
|
Top
|
|
|
|
#153196 - 04/04/2003 22:32
Re: Is it possible to upgrade without serial?
[Re: tfabris]
|
enthusiast
Registered: 08/03/2001
Posts: 202
Loc: Denver, CO
|
"It was right about then that a little ditty started going through my head. It went a little something like this: AAAAAAAGGGH! GET 'EM OFF ME, GET 'EM OFF ME, GAAAAAAAA!"
Wow,
I love this song Tony.
o/` All i have is this box of one dozen starving crazed weasles.
_________________________
- Damien
- Mk2a 24G Blue SN: 120001043
|
Top
|
|
|
|
#153197 - 04/04/2003 22:36
Re: Linux Ethernet Upgrader: preliminary version
[Re: mlord]
|
enthusiast
Registered: 08/03/2001
Posts: 202
Loc: Denver, CO
|
And mark, this is sweet. Everyone has been talking about this for a long time and no one ever really did it. Kudos. This community amazes me. It's sad that I have nothing to contribute
It would be nice seeing this work in Windows, since I don't use *nix as my primary OS. But it really doesn't matter. Since I do it so little
_________________________
- Damien
- Mk2a 24G Blue SN: 120001043
|
Top
|
|
|
|
#153198 - 04/04/2003 22:56
Re: Is it possible to upgrade without serial?
[Re: mlord]
|
carpal tunnel
Registered: 18/01/2000
Posts: 5683
Loc: London, UK
|
is it as simple as booting with the partitions mounted R/W, so that the player can write the new database it creates?
No, it's simpler. Don't delete the database files at all. There's no need.
If you really want to delete them, then mounting the partitions R/W is all it takes for the player to write them back to disk.
_________________________
-- roger
|
Top
|
|
|
|
#153199 - 04/04/2003 23:17
Re: Is it possible to upgrade without serial?
[Re: xanatos]
|
member
Registered: 08/12/2001
Posts: 109
|
I HAte SAurkraut!!!!!
that song rocks
|
Top
|
|
|
|
#153200 - 04/04/2003 23:24
Re: Linux Ethernet Upgrader: preliminary version
[Re: mlord]
|
veteran
Registered: 19/06/2000
Posts: 1495
Loc: US: CA
|
I'm by no means a C programmer, but I (very) quickly added support for a user name and password, for those of us that have that turned on in Hijack. Works for me... Source attached.
Thanks Mark!
Attachments
151332-upgrader.c (136 downloads)
_________________________
Donato MkII/080000565 MkIIa/010101253 ricin.us
|
Top
|
|
|
|
#153201 - 05/04/2003 01:48
Re: Linux Ethernet Upgrader: preliminary version
[Re: mlord]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
|
Too cool, Mark! Now someone has to figure out how to port it to Win32. Then we can all do upgrades in two minutes.
A few thoughts:
--> you should manually "pause" your player first, or put it in stand-by mode. Isn't there a way to do that programatically with an HTTP command to hijack or something?
--> after "upgrader" completes, you must manually reboot your player. Ditto?
--> after the reboot, you should run emptool or emplode to rebuild the databases. Yeah, as I'm reading through this thread, I'm wondering to myself... Why is Mark deleting the database? The factory upgrade doesn't do it... Who told Mark that was needed?
|
Top
|
|
|
|
#153202 - 05/04/2003 06:51
Re: Is it possible to upgrade without serial?
[Re: Roger]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Okay.
I just thought that all of that code in upgclient was probably doing something to the database ... lots of string matches for "database" and "tags" in that binary.
Let's say, theoretically of course, that I was trying out a v3-alpha release.. might not the database format/content theoretically be different on such releases?
Cheers
Edited by mlord (05/04/2003 06:52)
|
Top
|
|
|
|
#153203 - 05/04/2003 07:30
Re: Is it possible to upgrade without serial?
[Re: mlord]
|
carpal tunnel
Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
|
Let's say, theoretically of course, that I was trying out a v3-alpha release.. might not the database format/content theoretically be different on such releases? Theoretically, yes. But in any theoretical future alpha releases of v3, you won't theoretically have to worry about that, as they'll be using a different theoretical filename for their databases, for precisely this theoretical reason.
Peter
|
Top
|
|
|
|
#153204 - 05/04/2003 07:36
Re: Is it possible to upgrade without serial?
[Re: peter]
|
carpal tunnel
Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
|
A lot of theory being discussed...
_________________________
Paul Grzelak 200GB with 48MB RAM, Illuminated Buttons and Digital Outputs
|
Top
|
|
|
|
#153205 - 05/04/2003 08:01
Re: Is it possible to upgrade without serial?
[Re: pgrzelak]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
A lot of theory being discussed... Yeah, this computer programming stuff gets complicated at times..
Speaking of which, I've now attached the latest version of the upgrader utility. This one incorporates FTP user/passwd capability (derived from an earlier post in this thread), and automatically reboots the player after the upgrade has been applied. One should still pause the player before doing the upgrade, though.
Cheers
Attachments
151376-upgrader.tgz (64 downloads)
Edited by mlord (05/04/2003 08:01)
|
Top
|
|
|
|
#153206 - 05/04/2003 08:30
Re: Is it possible to upgrade without serial?
[Re: mlord]
|
carpal tunnel
Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
|
Any chance of getting a "HiJack free" player "HiJacked" via ethernet? (I know HiJack updates can be done via ethernet, but only if HiJack is previously installed.)
_________________________
Brad B.
|
Top
|
|
|
|
#153207 - 05/04/2003 08:45
Re: Is it possible to upgrade without serial?
[Re: SE_Sport_Driver]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
I have not figured out a way to do that, and as much as I dislike saying it, I don't think it's easily done. There might be a buffer exploit of some kind that one could use in the player to trick it into uploading and running arbitrary code, but short of that..
Cheers
|
Top
|
|
|
|
#153208 - 05/04/2003 09:51
Re: Is it possible to upgrade without serial?
[Re: mlord]
|
old hand
Registered: 28/04/2002
Posts: 770
Loc: Los Angeles, CA
|
There might be a buffer exploit of some kind that one could use in the player to trick it into uploading and running arbitrary code
haha... i can see the headlines now.
EMPEG owners being DOSed by a worm that exploits a buffer overflow in the player software, reverting it version to 1.03.
|
Top
|
|
|
|
#153209 - 05/04/2003 19:55
Re: Is it possible to upgrade without serial?
[Re: mlord]
|
addict
Registered: 10/11/2000
Posts: 497
Loc: Utah, USA
|
The upgrading over ethernet worked flawlessly for me. My Unix machine is somewhere between Houston and Tucson right now, but thanks to the miracle of Knoppix, I was able to boot my Windows machine into Linux, upgrade the empeg, and shut down, all in less time than it would have taken to drive to the local store for a serial cable.
_________________________
-Aaron
|
Top
|
|
|
|
#153210 - 05/04/2003 20:17
Re: Is it possible to upgrade without serial?
[Re: adavidw]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
OOoooo! And yet another creative application of KNOPPIX!
Well done, dude!
|
Top
|
|
|
|
#153211 - 05/04/2003 21:41
Re: Is it possible to upgrade without serial?
[Re: mlord]
|
enthusiast
Registered: 08/03/2001
Posts: 202
Loc: Denver, CO
|
Wow that's a pretty nifty thing. I've never heard of it.
*Now downloading*
_________________________
- Damien
- Mk2a 24G Blue SN: 120001043
|
Top
|
|
|
|
#153212 - 05/04/2003 22:03
Re: Is it possible to upgrade without serial?
[Re: xanatos]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
For best results with KNOPPIX, override the default 800x600 resolution at boot time: knoppix screen=1600x1200 (or whatever your monitor can take).
Cheers
|
Top
|
|
|
|
|
|