Upgrading player software via ethernet...

Posted by: Taym

Upgrading player software via ethernet... - 08/09/2004 16:54

I remember there was a way to upgrade/downgrade software via ethernet rather than serial, but could not find anything by serching the board... Anybody remembers?
Posted by: genixia

Re: Upgrading player software via ethernet... - 08/09/2004 17:05

Upgrader - one of Mark's creations. Click the Hijack link up top...
Posted by: Taym

Re: Upgrading player software via ethernet... - 08/09/2004 17:10

That's True! Thank you!

I got the .tar file, and inside there's an 'UPGRADER' file which does not seems to be a windows executable, which is what i need now... ?
Posted by: tfabris

Re: Upgrading player software via ethernet... - 08/09/2004 18:07

That's most likely a Linux executable. See if you can find a Win32 executable.
Posted by: tfabris

Re: Upgrading player software via ethernet... - 08/09/2004 18:11

Ah, he's got one in the TGZ file, it's in the win32 subdirectory, but I think it requires cygwin. I'll mess with it and see if I can get it working and give instructions.
Posted by: tfabris

Re: Upgrading player software via ethernet... - 08/09/2004 18:17

Yeah, it requires cygwin1.dll, which Mark does not include in the TGZ file. I don't think you're allowed to redistribute cygwin anyway, so that's probably why.

I have a version of cygwin1.dll that I use for FindEmpeg, but it doesn't work with Mark's program. I get the error message:

"The procedure entry point __getreent could not be located in the dynamic link library cygwin1.dll".

I suppose I need a different version of Cygwin.

This is why I gave up on trying to use it a long time ago and just said "screw it, I'll use the serial cable." Why does this stuff have to be so hard?
Posted by: tfabris

Re: Upgrading player software via ethernet... - 08/09/2004 18:24

God, the process for getting the newest Win32 version of Cygwin is terribly and unnecessarily convoluted. Why does this stuff have to be so hard? All I want is one fucking DLL.
Posted by: ricin

Re: Upgrading player software via ethernet... - 08/09/2004 18:39

Uhmmm... You can download just the DLL from here: http://cygwin.com/snapshots/
Posted by: Taym

Re: Upgrading player software via ethernet... - 08/09/2004 18:40

Thanks for your efforts Tony. I totally agree in this being totally convoluted.

I did all this successfully in the past, but now I'm not at home (which is why I don't have a serial cable) and I am doing all over again. I completely forgot everything. I am going to write a doc for the windows users, hoing it helps, and give it to you to put in the FAQ, if you agree.

Anyway, here's what I did so far (I made some progress, and I need to complete this hopefully by tonight):

1) Got the upgrader_0.8_cygwin.exe file attached by Mataglap (IIRC) in this board. I found and lost it Here is the versione 0.6 http://empegbbs.com/ubbthreads/showflat....true#Post197549
0.8 must be somewhere else on the board.

2) Got the cygwin1.dll

I now need ncftpput and gunzip. They have to be in path in order to make the whole thing work. I think I found ncftpput here: http://www.ncftp.com/download/dlf2.html . I downloaded and installed the win32 version, and from the installation dir I took ncftpput.exe and put it in path.

I am now lookin for gunzip. Hopefully I'll succeed. I'll post as I'm done...
Posted by: tfabris

Re: Upgrading player software via ethernet... - 08/09/2004 18:52

Quote:
You can download just the DLL from here: http://cygwin.com/snapshots/


And why doesn't it say that on the main page, or in its FAQ that's linked from the main page? At the top of the main page is a very convoluted "Setup.exe" installer that tries to put in a bunch of utilities that I don't need, and which takes forever to expand and uncheck each one. It also says on the main page that it's only distributed to people with a Red Hat Support contract, which is confusing.

Anyway, I've now got a copy of a working version of the DLL here, too, for anyone that wants it.

All you need to do is get Mark's TGZ of the upgrader utility at his site, which includes those other utilities such as gunzip, unzip it with subfolders, then get cygwin1 here and unzip it in the same directory as upgrader-cygwin.exe and run it from there.
Posted by: Daria

Re: Upgrading player software via ethernet... - 08/09/2004 18:57

Quote:
Yeah, it requires cygwin1.dll, which Mark does not include in the TGZ file. I don't think you're allowed to redistribute cygwin anyway, so that's probably why.


Cygnus was at the pinnacle of the open source movement, and not allowing redistribution seems very contrary to that, so I'm inclined to think not. But I'm too lazy to check.
Posted by: ricin

Re: Upgrading player software via ethernet... - 08/09/2004 19:05

I believe you also need to provide the source for the DLL you're offering in order to be compliant with the GPL.

http://cygwin.com/licensing.html
Posted by: Taym

Re: Upgrading player software via ethernet... - 08/09/2004 19:05

Edit: ok, I'm trying this too... I found the subdir in the archive.

Thank you again.
Posted by: tfabris

Re: Upgrading player software via ethernet... - 08/09/2004 19:08

When I open Mark's file with Winzip, I see a couple of subdirectories full of several different files. Among those files is a subdirectory called "Win32" with three executable files in it.

I don't know what WinRar's problem is, try Winzip instead.
Posted by: Taym

Re: Upgrading player software via ethernet... - 08/09/2004 19:33

For some reason Winzip (9.0) did not even opened the file.

However, I'm giving up. I eventually opened the targz file, found all the files, tried them, tried installing cygwin completely and working in the cygwin environment. Nothing. The player seems not to notice that someting is being sent to it. I'll try with a serial when I get it.
When I'm home I'll find the doc I worote for myslef and post it here, hoping it helps somebody else.
Posted by: tfabris

Re: Upgrading player software via ethernet... - 08/09/2004 19:36

Quote:
The player seems not to notice that someting is being sent to it.


Are you giving it the proper address? Is Hijack properly responding to HTTP and FTP requests? Have you set passwords in the player to prevent people on the same network from accessing FTP and HTTP? See if you can connect to that address with your web browser.

If you can't connect at all to the address, is the player in DC/Car mode? By default, hijack's FTP features are disabled in DC mode.
Posted by: Taym

Re: Upgrading player software via ethernet... - 08/09/2004 21:05

I can ping, ftp, and http the adress.
No password is required.
I disabled my firewall.

It seems to me there's some other prolem I can't figure out.
Posted by: genixia

Re: Upgrading player software via ethernet... - 09/09/2004 23:51

ncftpput in the right place?
Posted by: Taym

Re: Upgrading player software via ethernet... - 10/09/2004 17:28

It was. It actually was in the local directory, in a dir which is in the path variable, in c:\windows, in c:\windows\stsrem32 (so three times in the path variable). Nothing. Also, now that I am back home I verified and I was doing exaclty what I had previously successfully done. Only difference, I was using a crossed cable. I doubt that was the problem, though, since I could ping, ftp, http my player.
Posted by: image

Re: Upgrading player software via ethernet... - 10/09/2004 18:37

oh! oh! i know! you NEED to setup a cygwin enviornment, because mark lord has hard wired /dev/null redirection into the ncftpput execs. hence, it hangs at that point. relevant stuff here, never replied to:
Quote:
try this. its everything u need, even findempeg. just use the up.bat script. there are quirks tho. since you're not in a cygwin bash shell, /dev/null isn't avaliable, so you wont auto-standby nor reboot. i probably can change it to ^Z but i'm lazy. also, findempeg has trouble when you have two empegs. modify the up.bat to accept a serial# if thats the case. put latest cygwin1.dll in the unzipped folder.
Posted by: tfabris

Re: Upgrading player software via ethernet... - 10/09/2004 18:43

Isn't there any way to port this thing to Windows in such a way that you don't need to install the full cygwin environment?
Posted by: Daria

Re: Upgrading player software via ethernet... - 10/09/2004 19:21

I can't imagine it couldn't be ported directly to Windows, but I can't imagine Mark would do it, either.
Posted by: Taym

Re: Upgrading player software via ethernet... - 11/09/2004 00:41

Quote:
you NEED to setup a cygwin enviornment


Oh, true! That's another difference between my previous attempt and this one! I had installed completely Cygwin, before! This time I was simply using the .dll! I have no time to verify this, nor I feel like doing it at this point (I eventually waited to get a serial cable), but it does sound right!

As to porting to Windows, is the source code available somewhere? I am not a good programmer, but I can ask some good friends. Having a W32 upgrader.exe would be nice.
Posted by: genixia

Re: Upgrading player software via ethernet... - 11/09/2004 03:23

LOL. You should get yourself a Knoppix disc.
Posted by: mschrag

Re: Upgrading player software via ethernet... - 11/09/2004 12:08

Does anyone happen to know if Mark's upgrader is just the serial upgrader that writes to a /proc file or something instead of the serial line? If so, I have a Java port of the serial upgrader that could be trivially converted over to use an FTP stream instead of a serial stream. If that would be useful to people that is ...
Posted by: Daria

Re: Upgrading player software via ethernet... - 11/09/2004 16:12

It splits the upgrade apart and writes to the appropriate /dev files for the disk slice, or /proc files for flash, iirc.

And whoever asked: well, I assume you can find the source somewhere on the Hijack site, and I know it's been posted on the bbs as an attachment.

I can probably find the 0.8 source if you need it.
Posted by: image

Re: Upgrading player software via ethernet... - 12/09/2004 00:02

this feature gets popular around the times a new player is released, so that people can go back and forth much quicker between versions. so yeah, if java can do it trivially, i say it would be really handy, especially when a public alpha rears its ugly head. (still montering www.empeg.com/v3alpha hourly btw). i don't believe it took this long last year between a new release and the euromeet.
Posted by: Taym

Re: Upgrading player software via ethernet... - 13/09/2004 23:47

Quote:
LOL. You should get yourself a Knoppix disc.


Maybe. Or maybe I should get myself a serial cable. And it's much more likely that I leave at home a Knoppix CD than a serial cable.
Posted by: Derek

Re: Upgrading player software via ethernet... - 14/09/2004 13:56

being a Mac user, I'd find it pretty useful! It's a pain having to bring a Win32 laptop home from work to do upgrades.
Posted by: mcomb

Re: Upgrading player software via ethernet... - 14/09/2004 15:12

Quote:
being a Mac user, I'd find it pretty useful

Mark's ethernet upgrader does work (quite well) on OS X.

-Mike
Posted by: Derek

Re: Upgrading player software via ethernet... - 14/09/2004 16:41

ah yes! A quick chmod to make upgrade.MacOS executable and it runs. The help text says that it needs ncftpput - is that true, and if so where do I get it. It doesn't appear to be included with OS X and isn't listed in fink.

Ta
Derek
Posted by: mcomb

Re: Upgrading player software via ethernet... - 14/09/2004 18:07

Quote:
ah yes! A quick chmod to make upgrade.MacOS executable and it runs. The help text says that it needs ncftpput - is that true, and if so where do I get it. It doesn't appear to be included with OS X and isn't listed in fink.


Yep, I think I got my copy of ncftp from DarwinPorts. If you don't feel like installing all that send me a PM and I can email you the binaries.

-Mike