Unoffical empeg BBS

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

Page 2 of 2 < 1 2
Topic Options
#109465 - 27/09/2002 17:49 Re: preinit v4 and launcher problems? [Re: Daria]
Warp10
member

Registered: 18/02/2002
Posts: 179
Loc: Germany
Do you mean enjoy compiling or did you forget the attachment?
_________________________
---------------------------- MK1: 00314 (4GB) MK2a: 030103104 (30GB) Installed in a BMW 323ti

Top
#109466 - 27/09/2002 18:15 Re: preinit v4 and launcher problems? [Re: Daria]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
This time for sure


Attachments
116755-empeg-preinit2 (205 downloads)


Top
#109467 - 27/09/2002 18:39 Re: preinit v4 and launcher problems? [Re: Daria]
Warp10
member

Registered: 18/02/2002
Posts: 179
Loc: Germany
What did I do???
My player only says "Waiting..." and "0:00" in the lower right...
I replaced the file hijack in /bin with the file you attached and changed to 755. What's going on? Help!!!
Thanks.
_________________________
---------------------------- MK1: 00314 (4GB) MK2a: 030103104 (30GB) Installed in a BMW 323ti

Top
#109468 - 27/09/2002 18:47 Re: preinit v4 and launcher problems? [Re: Warp10]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Do you have scripts in /etc/preinit.d?

Top
#109469 - 27/09/2002 18:51 Re: preinit v4 and launcher problems? [Re: Warp10]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
My player only says "Waiting..." and "0:00" in the lower right...

Probably has nothing to do with your init.

Check out this FAQ Entry.
_________________________
Tony Fabris

Top
#109470 - 27/09/2002 18:51 Re: preinit v4 and launcher problems? [Re: Daria]
Warp10
member

Registered: 18/02/2002
Posts: 179
Loc: Germany
The M50gpsapp script. Nothing else.
I think the player goes into aux mode after booting.
Why is the new file so small compared to the old one?
_________________________
---------------------------- MK1: 00314 (4GB) MK2a: 030103104 (30GB) Installed in a BMW 323ti

Top
#109471 - 27/09/2002 18:57 Re: preinit v4 and launcher problems? [Re: tfabris]
Warp10
member

Registered: 18/02/2002
Posts: 179
Loc: Germany
Simultaneous posting...
Ok, it was the aux... pooh, shock...
No idea why it switched over, I've never set the source to aux.
There's no memory violation anymore! Thanks alot.
_________________________
---------------------------- MK1: 00314 (4GB) MK2a: 030103104 (30GB) Installed in a BMW 323ti

Top
#109472 - 27/09/2002 19:01 Re: preinit v4 and launcher problems? [Re: Warp10]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
The old one is statically linked for safety. Doesn't seem to make much of a difference in real life, though. I'll see if I can get these changes incorporated into the real source.

And, jaharkes, the reason I called /bin/sh from the system() call is because it was failing to work for me without doing that before, for some reason. I assumed it was the same reason I couldn't get a shell script to run as an init in the first place, which I couldn't figure out, so I ignored it here, too, but I didn't want to make people compile programs for startup purposes, so I explicitly called upon /bin/sh.
_________________________
Bitt Faulk

Top
#109473 - 27/09/2002 19:29 Re: preinit v4 and launcher problems? [Re: wfaulk]
jaharkes
enthusiast

Registered: 20/08/2002
Posts: 340
Loc: Pittsburgh, PA
But /bin/sh is as far as I know only available on the developer image, so anyone with a regular image can install hijack, and upload preinit, but then nothing will work.

btw. I straced the difference between sh -c and sh and it looks like sh foo will fail when foo is not a shell script, while sh -c foo will actually exec foo when it is a binary, so sh -c sh foo should start sh, which exec's sh, which then parses the contents of foo. So the memory footprint isn't as bad as I expected initially.
_________________________
40GB - serial #40104051 gpsapp

Top
#109474 - 27/09/2002 19:32 Re: preinit v4 and launcher problems? [Re: jaharkes]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Maybe the lack of /sbin/sh was the initial problem. Hadn't even considered that. I got lost in a series of odd weirdnesses. Preinit was supposed to be a quick hack. Didn't turn out that way.

Do I have your permission to use your changes to fold back into my release? I've got some other semi-released code that I should get around to releasing, too.
_________________________
Bitt Faulk

Top
#109475 - 27/09/2002 19:32 Re: preinit v4 and launcher problems? [Re: Warp10]
jaharkes
enthusiast

Registered: 20/08/2002
Posts: 340
Loc: Pittsburgh, PA
You've got the gps connected to the serial port, and it is set to output nmea? I guess you didn't run hack_init on the player or you are running on AC, and as such the player isn't started with -s- and is actually trying to interpret the gps data as if they were commands coming in over the serial port.

Just a hunch
_________________________
40GB - serial #40104051 gpsapp

Top
#109476 - 27/09/2002 19:36 Re: preinit v4 and launcher problems? [Re: wfaulk]
jaharkes
enthusiast

Registered: 20/08/2002
Posts: 340
Loc: Pittsburgh, PA
Ofcourse, especially the ones that fix the couple of allocation problems that valgrind found.
_________________________
40GB - serial #40104051 gpsapp

Top
#109477 - 28/09/2002 04:24 Re: preinit v4 and launcher problems? [Re: jaharkes]
Warp10
member

Registered: 18/02/2002
Posts: 179
Loc: Germany
Do you refer to my post in the 'gpsapp - less talk more action' thread? I've run hack_init and I use gps only in the car.
My player switched to aux after uploading the patched preinit. No gps connected at that time...
_________________________
---------------------------- MK1: 00314 (4GB) MK2a: 030103104 (30GB) Installed in a BMW 323ti

Top
Page 2 of 2 < 1 2