Unoffical empeg BBS

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

Page 2 of 2 < 1 2
Topic Options
#120826 - 14/10/2002 13:40 Re: gpsapp-0.9 [Re: jaharkes]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
    It would have to remount / as writable and such. I would really advise against doing anything like that in such an ad-hoc fashion ...
fsck'ing / isn't a huge deal, and we're not really modifying any data other than dirents, so I wasn't too concerned about that.
_________________________
Bitt Faulk

Top
#120827 - 14/10/2002 14:39 Re: gpsapp-0.9 [Re: wfaulk]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
and you can't also sit through a script that'll take about 2 seconds?

It's not the time, it's just the additional steps I have to remember. Each time I upgrade the player, I already have a bunch of stuff to do and I keep slipping farther and farther away from being able to remember all of it each time.

If we had that Hijack feature I talked about, I could put everything in drive0/var somewhere and would never have to do ANYTHING on a re-upgrade.
_________________________
Tony Fabris

Top
#120828 - 14/10/2002 15:27 Re: gpsapp-0.9 [Re: tfabris]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Hey Tony, we're talking the JEmplode wishlist thread about simplifying 3rd party app installs to a point and click thing which should at least ease this concern.

But what you are asking for here is a technical challenge - unix and linux systems usually only pass control to userland once - via init. init is then responsible for spawning whatever is needed in userland, and the userland/kernel interactions at that point are fairly limited to system calls from userland.

The problem here is that the empeg-supplied init is locked down to only do one thing - start the player. And always tells the player to hog the serial port. Even if hijack were able to start arbitrary userland applications, gpsapp would still need to start before the player in order to work (and then the player wouldn't) . Now this again could be solved in hijack - we could (optionally) remap the serial device (/dev/ttyS0) to a dummy device that does nothing but dump the data, and then tell gpsapp to use /dev/ttyS1 that would really point to the port. This potentially would allow hijack to remap the port at will from a menu item - allowing either gpsapp or player serial messages to be using the real port at will. If my serial port expansion plans come to any fruitition then it would use a scheme similar to this - but I digress.

What would pretty much solve the init issue is if the empeg guys included preinit in the distribution. Only hijack kernels would use it - so it would be transparent to non-HJ users. And whether the player uses the serial port should be a config.ini setting.

Once that is done it is comparatively easy to get JEmplode (or some other software) to deal with the rest of 3rd party app installs.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#120829 - 14/10/2002 15:32 Re: gpsapp-0.9 [Re: genixia]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
What would pretty much solve the init issue is if the empeg guys included preinit in the distribution.

But wouldn't they be loath to do that, because if preinit could execute arbitrary code from one of the drives that doesn't get wiped on a .upgrade, then you could theoretically render your player unbootable in a way that .upgrade wouldn't fix? A builder image would, but a regular .upgrade wouldn't.

Empeg guys, any of you listening here? Got any ideas?
_________________________
Tony Fabris

Top
#120830 - 14/10/2002 15:39 Re: gpsapp-0.9 [Re: tfabris]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
    if preinit could execute arbitrary code from one of the drives that doesn't get wiped on a .upgrade, then you could theoretically render your player unbootable in a way that .upgrade wouldn't fix?
No, because preinit will only be called by hijack kernels. It exists as the file /sbin/hijack, which hijack will try to execute in favor of /sbin/init. The default kernels won't do that. Hijack will fall back to /sbin/init if /sbin/hijack doesn't exist. Both kernels will then fall back to /sbin/sh if init doesn't exist; that's a standard feature of all(?) Unix kernels.
_________________________
Bitt Faulk

Top
#120831 - 14/10/2002 15:42 Re: gpsapp-0.9 [Re: wfaulk]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
Interesting.

Hmm. Empeg guys... Listening?
_________________________
Tony Fabris

Top
#120832 - 14/10/2002 15:45 Re: gpsapp-0.9 [Re: wfaulk]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
It exists as the file /sbin/hijack, which hijack will try to execute in favor of /sbin/init.

Wait wait wait.

What if hijack were changed so that preinit could exist somewhere specific on Drive0 instead? Then one wouldn't have to re-install preinit on each upgrade, and the empeg guys wouldn't have to get involved.

Then if your mountpoint stuff could somehow be worked into a startup script, preinit could be a painless thing. Then all add-ons could go onto Drive0 and nothing would never have to be reinstalled after a .upgrade.
_________________________
Tony Fabris

Top
#120833 - 14/10/2002 15:50 Re: gpsapp-0.9 [Re: tfabris]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5914
Loc: Wivenhoe, Essex, UK
It's not the time, it's just the additional steps I have to remember. Each time I upgrade the player, I already have a bunch of stuff to do and I keep slipping farther and farther away from being able to remember all of it each time.

Why not just add the details to the FAQ and then refer yourself to it when you need to do an upgrade...



(I tried so hard to resist it)


Edited by andy (14/10/2002 15:53)
_________________________
Remind me to change my signature to something more interesting someday

Top
#120834 - 14/10/2002 15:50 Re: gpsapp-0.9 [Re: tfabris]
jaharkes
enthusiast

Registered: 20/08/2002
Posts: 340
Loc: Pittsburgh, PA
/drive0 isn't mounted during boot, so you cannot have preinit on /drive0 and start it before /sbin/init mounts the drive.
_________________________
40GB - serial #40104051 gpsapp

Top
#120835 - 14/10/2002 15:50 Re: gpsapp-0.9 [Re: andy]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Why not just add the details to the FAQ and then refer yourself to it when you need to do an upgrade...

Oof!

Top
#120836 - 14/10/2002 16:13 Re: gpsapp-0.9 [Re: tfabris]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Only the root parition (flash) is mounted at that point, and the player app mounts /drive0. /programs0 is mounted through a preinit script.

_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#120837 - 14/10/2002 16:19 Re: gpsapp-0.9 [Re: genixia]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
the player app mounts /drive0

Yuck. How much time would it add to the boot process to have the kernel mount /drive0?
_________________________
Tony Fabris

Top
#120838 - 14/10/2002 16:32 Re: gpsapp-0.9 [Re: tfabris]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Theoretically speaking, not much. But, It's Not The Correct Thing To Do(tm). I don't know whether that might affect the player in any way (the players mount command would 'fail')

Is it me, or are we holding the same conversation in 3 different threads now?
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#120839 - 14/10/2002 16:54 Re: gpsapp-0.9 [Re: tfabris]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
    How much time would it add to the boot process to have the kernel mount /drive0?
Have the kernel start mounting other filesystems before it passes control to init.

EVIL!
_________________________
Bitt Faulk

Top
Page 2 of 2 < 1 2