Unoffical empeg BBS

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

Topic Options
#153255 - 04/04/2003 12:11 empeg flash uploader (AKA Hijack-installer)
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Those of you using a Unix other than Linux may have noticed that the download.c program that is used for, mostly, installing Hijack over the serial port doesn't work. This annoyed me under Solaris, specifically, though I doubt it worked on any non-glibc-based Unix (so Hurd may have worked, I suppose).

I modified that program so that it works under Solaris. I don't see any reason right off hand why it wouldn't work under any other Unix, as long as you have a serial port that will support 115200 (older Sparc machines won't ) and you have termios support (most, if not all, Unices do, AFAIK).

It definitely compiles and works on my SunBlade 2000 running Solaris 8 using Forte/SunOne cc. Again, it's basic enough, I think, that it ought to work with any Unix using any reasonably modern C compiler. If it doesn't, tell me what fails, and, preferably, provide me with a patch.

I'll test it on my OpenBSD/i386 machine tonight.

Mad props to Jan Harkes (jaharkes on this board), whose serial port kung fu can beat mine any day. (I can't believe I just typed that sentence.)

Source code attached. (Note that the command line arguments are different than for the stock download.c. What they are should be obvious. Just run the program with no options for a usage statement.)

Also note that the use of this is free of restriction, especially to the empeg developers, who are specifically more than welcome to use this in any upcoming upgrade to any product, or any upcoming new product. (They are not, however, allowed to go back in time and upgrade any product that exists now. At least not without taking me along for the ride.)


Attachments
151223-empeg-download.c (109 downloads)

_________________________
Bitt Faulk

Top
#153256 - 04/04/2003 22:41 Re: empeg flash uploader (AKA Hijack-installer) [Re: wfaulk]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I got empeg-download to work under OpenBSD. (It would have gone faster if I hadn't spent hours trying to figure why /dev/tty02 wouldn't talk to a device hooked to /dev/tty01.)

I did encounter the same problem Tony had with upload.exe, though, and I added some code to add some delays to the process. It's accessible via the `-s' option.

Source code attached.


Attachments
151323-empeg-download.c (92 downloads)

_________________________
Bitt Faulk

Top