Unoffical empeg BBS

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

Page 1 of 3 1 2 3 >
Topic Options
#137276 - 25/01/2003 17:33 Hijack v304: ;@EXEC, ;@EXEC_ONCE
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Okay, Hijack v304 is out:

-- the "exec_once=" option is replaced with ";@EXEC_ONCE "
-- the "exec=" option is replaced with ";@EXEC "
-- note the lack of an '=' sign on the new forms above!!!!

For example:

[hijack]
;@EXEC_ONCE /sbin/gpsapp

-- when running on DC power, the player executable is always started with the "-s-" flag, to free up the serial port for GPSApp and friends

-- support has been added for a new I2C based fan thermostat/controller under development by another BBS member. Three new config.ini options now exist for this device, and they have no effect if the unit lacks the new hardware required: fan_control=1, fan_low=45, fan_high=50

Hopefully this all still works, but I'm sure y'all will test it and let me know!

Cheers

Top
#137277 - 25/01/2003 18:58 Re: Hijack v304: ;@EXEC, ;@EXEC_ONCE [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
MARK, YOU DA MAN!!!!

_________________________
Tony Fabris

Top
#137278 - 25/01/2003 19:10 Re: Hijack v304: ;@EXEC, ;@EXEC_ONCE [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Mark, after all of your work, I realize I may have been mistaken by saying that Emplode didn't like lines with the same keyname.

<- Sheepish embarrassment.

I had tried using emplode to edit the config.ini and add lines with the same keyname earlier today (trying to add exec_once twice) and it didn't take. That's what I based my earlier report on.

However, I just tried adding a line with a different keyname and it still didn't work. I think I may be looking at a bug in Emplode that's unrelated to same-keynames. What I said might still be true, or it might not, I'm not sure. I'm trying to figure out why I've got trouble editing config.ini via Emplode right now and I haven't gotten to the bottom of it.

For now, I'm using FTP to edit the file and I'll see if I can come up with more answers later tonight.
_________________________
Tony Fabris

Top
#137279 - 25/01/2003 19:41 Re: Hijack v304: ;@EXEC, ;@EXEC_ONCE [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
YEah, well, whatever (thanks!)

Just let me know if GPSApp still has trouble (or not) with the serial port when in the car and using the new EXEC stuff to launch it directly.

Cheers

Top
#137280 - 25/01/2003 19:56 Re: Hijack v304: ;@EXEC, ;@EXEC_ONCE [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
and using the new EXEC stuff to launch it directly.

GPSapp and empacman don't appear on the Hijack menu any more.

Hijack 304, double-checked by running the breakout game, config-ini double checked with FTP, contains:

[hijack]
;@EXEC_ONCE /drive0/var/gpsapp/gpsapp
;@EXEC_ONCE /drive0/var/empacman/empacman

Formerly, with Hijack 303, I had:

[hijack]
exec_once=/drive0/var/gpsapp/gpsapp
exec=/drive0/var/empacman/empacman

and that worked.

Am I doing something wrong?
_________________________
Tony Fabris

Top
#137281 - 25/01/2003 20:00 Re: Hijack v304: ;@EXEC, ;@EXEC_ONCE [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
drat.. 'guess I gotta test it myself.. gimme a sec..

Top
#137282 - 25/01/2003 20:08 Re: Hijack v304: ;@EXEC, ;@EXEC_ONCE [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Yup.. goofed.. misplaced two lines of C.

v305 as soon as my notebook can build it.. (about 7 minutes, I believe)..

Top
#137283 - 25/01/2003 20:13 Re: Hijack v304: ;@EXEC, ;@EXEC_ONCE [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
/me keeps pressing "Refresh" at the Hijack site....
_________________________
Tony Fabris

Top
#137284 - 25/01/2003 20:20 Re: Hijack v304: ;@EXEC, ;@EXEC_ONCE [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Okay, it works now.. but I'm rebuilding again.. decided to fix the error status so that "255" becomes "-1" as it was intended to be.. so, another six minutes or so.

Then please let me know if the "-s-" flag for the player is working as intended in the car.

Cheers

Top
#137285 - 25/01/2003 20:24 Re: Hijack v304: ;@EXEC, ;@EXEC_ONCE [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Then please let me know if the "-s-" flag for the player is working as intended in the car.

Will do. I've got a short errand to run as soon as I get the software installed, and I'll test the software on that errand.
_________________________
Tony Fabris

Top
#137286 - 25/01/2003 20:25 Hijack v305 [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Okay, go!

Top
#137287 - 25/01/2003 20:31 Re: Hijack v305 [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Installing kernel now...

Initial check after the reboot says...

Looks good, Empacman and GPSapp show in the menu. Will test the serial port thingy once I get it out to the car.

I did reinstall an .upgrade file prior to this, so I know I've erased the hacked init and the serial port test will be valid. Talk to you in a little while.

Thanks!
_________________________
Tony Fabris

Top
#137288 - 25/01/2003 21:05 Re: Hijack v305 [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Okay, cool, serial port hack worked fine. Mark, you da man. Now I can do complete software upgrades without having to re-hack GPSapp. This is The Business.

Hey, anyone got a link to a version of Emptris that binds to the Hijack menu?
_________________________
Tony Fabris

Top
#137289 - 25/01/2003 21:59 Re: Hijack v305 [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
_________________________
- Tony C
my empeg stuff

Top
#137290 - 26/01/2003 00:37 Re: Hijack v305 [Re: tonyc]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
_________________________
Tony Fabris

Top
#137291 - 26/01/2003 02:48 Re: Hijack v306 [Re: mlord]
Waterman981
old hand

Registered: 14/02/2002
Posts: 804
Loc: Salt Lake City, UT
Mark, when playing around with this, I loaded emptris, empacman, empsoko, and GPSapp. All would show on the hijack menu, but as I ran them, they would eventually drop off the hijack menu. This is running one app, then another, etc... Emptris always stayed, but the rest disappeared. This was using the ;@EXEC_ONCE, and I also tried using just ;@EXEC on all of the program calls. Is this how it is "supposed" to function?

Installing these was much easier! Thank you for making 3rd party apps easier to run!
_________________________
-Michael

#040103696 on a shelf
Mk2a - 90 GB - Red - Illuminated buttons

Top
#137292 - 26/01/2003 07:34 Re: Hijack v306 [Re: Waterman981]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
No, any well-behaved programs should stay on the menu indefinitely.

Maybe the ones that "drop off" are doing something silly like trying to write to stdout/stderr, which are now NULL -- the old install method probably left stdout/stderr "connected" to the serial console.

Mmm.. actually, it might not hurt for the "new' method to also leave them connected to the serial console for stdout/stderr. I'll look into it.

Cheers

Top
#137293 - 26/01/2003 08:23 Hijack v307 [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Okay, v307 is now out.

-- fixed possible bug with "old style" GPSapp installs
-- EXEC'd applications now start up connected to serial console for stdin, stdout, and stderr -- so they can do printf/fprintf for errors/info etc..

If you'd like to test the new EXEC capability, try this in config.ini:

[hijack]
;@EXEC /bin/bash

The above lines cause the player startup to pause with a shell prompt on the serial console. Player init continues after you "exit" from the shell.

Cheers

Top
#137294 - 26/01/2003 13:05 Re: Hijack v307 [Re: mlord]
johnmcd3
enthusiast

Registered: 19/04/2001
Posts: 369
Loc: Seattle, WA (formerly Houston,...
wow, this is exciting!

now if someone else could just come up with standard method of installation...
_________________________
1998 BMW ///M3 30 GB Mk2a, Tuner, and 10 GB backup

Top
#137295 - 26/01/2003 13:08 Re: Hijack v307 [Re: johnmcd3]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
That's the beauty of it. No installation needed. Just copy the files anywhere to /drive0 and put the config.ini line in place and you're done.
_________________________
Tony Fabris

Top
#137296 - 26/01/2003 13:24 Hijack v309 [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
v309 is out, and fixes some nasty interactions from v307 and also from the brief existance of v308.

-ml

Top
#137297 - 26/01/2003 14:09 Re: Hijack v304: ;@EXEC, ;@EXEC_ONCE [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Mark, after all of your work, I realize I may have been mistaken by saying that Emplode didn't like lines with the same keyname.

I got to the bottom of the problem, and yeah, it had nothing to do with Emplode and key names.

The problem is that I was messing with the EXEC lines already, and was launching these third-pary applications even when in AC mode (I was not using the @DC macro).

Having one of these third-party applications running (not sure if GPSapp was the culprit or if it was empacman) prevents the synch from working right. I don't know exactly why, I think it has something to with the drives being busy when the synch tries to unmount and remount them. For instance, I get errors that the drive is busy when I try to unmount or remount from the shell prompt if these apps were running.

So yeah, silly me, the syntax change wasn't needed. Sorry.
_________________________
Tony Fabris

Top
#137298 - 26/01/2003 14:43 Re: Hijack v307 [Re: tfabris]
thinfourth2
Pooh-Bah

Registered: 13/04/2001
Posts: 1742
Loc: The land of the pale blue peop...
Great but could you translate that into simpleton for me

as i have said before " its got no pistons it can't possibly work !"
_________________________
P.Allison fixer of big engines Mk2+Mk2a signed by God / Hacked by the Lord Aberdeen Scotland

Top
#137299 - 26/01/2003 15:21 Re: Hijack v307 [Re: thinfourth2]
johnmcd3
enthusiast

Registered: 19/04/2001
Posts: 369
Loc: Seattle, WA (formerly Houston,...
That's the beauty of it. No installation needed. Just copy the files anywhere to /drive0 and put the config.ini line in place and you're done.

I was referring to a more powerful idiot-proof installation management system. One that does not require knowing how to copy files or what drive0 is or how to modify the config ini. One that people used to working with large hammers can handle.

Some great ideas have been thrown around in years past, and I've been playing with an idea (from a theoretical standpoint) for the last few days. More to follow in the next hour.

John
_________________________
1998 BMW ///M3 30 GB Mk2a, Tuner, and 10 GB backup

Top
#137300 - 26/01/2003 16:41 Re: Hijack v304: ;@EXEC, ;@EXEC_ONCE [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Do the apps still interfer with the sync in v309 Hijack?

Top
#137301 - 26/01/2003 17:47 Re: Hijack v304: ;@EXEC, ;@EXEC_ONCE [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Do the apps still interfer with the sync in v309 Hijack?

Interesting question. I don't know, not sure I want to try since I was having to do the FSCK thing a whole bunch as I was messing with all of this and I don't want to induce another instance of that.
_________________________
Tony Fabris

Top
#137302 - 26/01/2003 17:53 Re: Hijack v307 [Re: johnmcd3]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
What's missing, though? I guess just a utility to do the necessary bits with ftp and modify config.ini.

Top
#137303 - 26/01/2003 18:09 Re: Hijack v307 [Re: Daria]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
See, that's what I'm saying. Now that it's down to one FTP transfer, a CHMOD, and a config.ini edit, it's really simple enough now so that anyone can do it. An install tool really isn't necessary at all.
_________________________
Tony Fabris

Top
#137304 - 26/01/2003 18:17 Re: Hijack v309 [Re: mlord]
foxtrot_xray
addict

Registered: 03/03/2002
Posts: 687
Loc: Atlanta, Georgia
Wow, Mark.. At this rate you'll surpass my own company's rate of putting out software revisions! :> But thanks! Love it!

(My company has over 500 revision in the two years that I've been there. Scary.)

Me.
_________________________
Mike 'Fox' Morrey 128BPM@124MPH. Love it! 2002 BRG Mini Cooper

Top
#137305 - 26/01/2003 18:56 Re: Hijack v309 [Re: mlord]
oliver
addict

Registered: 02/04/2002
Posts: 691
Hi Mark,
This looks very interesting, i like what you have done. I deleted my hacked preinit, and converted my programs to start with your EXEC. Now my question. Before i was using bitts? launcher to load all my extra program from your hijack menu. The way the launcher worked was, you would setup in the config.ini your programs, and menu structure. Then in the Hijack menu i would only see "Launcher" This would be the only program starting up at bootup. When i go into launcher, and start telnet, or pacman, or emptriv, or sokoban... etc... it would then load the program into player memory, and return to the hijack menu, where that program i clicked would now be in the hijack menu. So when i would click on that items hijack menu, it would start the program.

So i guess, my question would be, does your EXEC, and EXEC_ONCE load each started program into memory reducing the cache size for music? or does it only use memory when your using the program? If this is a pile of jibberish, let me know and i will retype it

Oh, i just thought of another thing. I was using the tts to speak the date and time on startup. But, with preinit, i could pause player startup while a program was running. This is needed for the tts, other wise she will stutter while the empeg is still booting up. Is there anyway you could add the abilty to pause the empeg bootup while a script is running?

Anyways, thanks again mark for the endless hijack releases
_________________________
Oliver mk1 30gb: 129 | mk2a 30gb: 040104126

Top
Page 1 of 3 1 2 3 >