#96132 - 28/05/2002 06:42
Emptriv & userinit
|
new poster
Registered: 29/03/2001
Posts: 13
|
Hi, I'm trying to get Emptriv to run on my Empeg. I've installed it onto my player and it runs fine when I launch it from the serial console.
I've replaced my init with Franks modified init, and created a userinit in the sbin directory, but my Empeg halts booting on the logo and I'm left at the shell.
Has anyone got an example userinit so I can see where I'm going wrong? I only want to run Emptriv at this stage.
Many thanks!
|
Top
|
|
|
|
#96133 - 28/05/2002 07:27
Re: Emptriv & userinit
[Re: Nodge]
|
carpal tunnel
Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
|
Well, I also use Frank's userinit, but I don't have my Empeg handy. A couple things to check though... Make sure it's got this on the first line:
#!/bin/sh
.
Also, make sure it's got read and execute permissions (chmod u+rx /sbin/userinit).
If that doesn't help, let me know and I'll send you my userinit script when I get home.
|
Top
|
|
|
|
#96134 - 28/05/2002 08:29
Re: Emptriv & userinit
[Re: tonyc]
|
new poster
Registered: 29/03/2001
Posts: 13
|
Hi, thanks for this but still no go!  If you could send me your userinit that would be great. I have very little Linux experience I'm afraid so I'm a bit lost!
james@thenodge.com
Many thanks!
|
Top
|
|
|
|
#96135 - 28/05/2002 11:17
Re: Emptriv & userinit
[Re: Nodge]
|
enthusiast
Registered: 19/04/2001
Posts: 369
Loc: Seattle, WA (formerly Houston,...
|
ok,
The script should look something like (off the top of my head):
#!/bin/bash
/drive0/files/emptriv/emptriv
The file need to be saved with unix style line breaks! (Common pitfall) On my windows machine a use a program called Ultraedit32 which has the option to do line break convertions (File->Convertions->Dos to Unix), but there are tons of other ways to do that.
The script should named with an M as the first letter (you probably put it on the music partition because the files are pretty large) and it should be set to be executable:
cd /etc/preinit.d
chmod 755 Mscriptname
At this point running the script from the command line should run emptriv:
cd /etc/preinit.d
./Mscriptname
If that doesn't work you've probably done something wrong from above. If it does work but still freezes on boot then you need to investigate how the preinit has been installed. Check to see if the /sbin/hijack file is executable as well.
Hope this helps!
John
_________________________
1998 BMW ///M3
30 GB Mk2a, Tuner,
and 10 GB backup
|
Top
|
|
|
|
#96137 - 28/05/2002 11:46
Re: Emptriv & userinit
[Re: tonyc]
|
enthusiast
Registered: 19/04/2001
Posts: 369
Loc: Seattle, WA (formerly Houston,...
|
oh hey, my bad. I'll have to check out this other init package too...
_________________________
1998 BMW ///M3
30 GB Mk2a, Tuner,
and 10 GB backup
|
Top
|
|
|
|
#96138 - 28/05/2002 11:52
Re: Emptriv & userinit
[Re: johnmcd3]
|
carpal tunnel
Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
|
|
Top
|
|
|
|
#96139 - 29/05/2002 03:45
Re: Emptriv & userinit
[Re: tonyc]
|
new poster
Registered: 29/03/2001
Posts: 13
|
Okay I've redone my userinit using UltraEdit32, converted it to UNIX format and set the file permissions. If I type sbin/userinit at the shell it now executes Emptriv fine, but my Empeg still doesn't boot when I change the init to the custom one.
I've attached my userinit here, what am I missing?  Many thanks for your help so far!
Attachments
94755-userinit (274 downloads)
|
Top
|
|
|
|
#96141 - 01/06/2002 20:12
Re: Emptriv & userinit
[Re: tonyc]
|
pooh-bah
Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
|
My emptriv is locking up fairly often. Is this normal, or am I a special case?
btw, no errors in hyperterm. Just stops responding to button presses. And I have no idea whether the music is still going as I don't have an amp to plug into right now.
|
Top
|
|
|
|
#96143 - 01/06/2002 21:17
Re: Emptriv & userinit
[Re: tonyc]
|
pooh-bah
Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
|
Unfortunately I was running everything as default (0-100 difficulty, etc). I'll try reserving more memory. Didn't know about that one.
BTW, VERY cool program. I wonder how long it's going to be before I hit somebody.
|
Top
|
|
|
|
#96145 - 01/06/2002 23:41
Re: Emptriv & userinit
[Re: tonyc]
|
enthusiast
Registered: 19/04/2001
Posts: 369
Loc: Seattle, WA (formerly Houston,...
|
Actually, I also have expirienced lockups. They don't not appear to be particular to any hijack vertion. They also always happen in the same place, but I haven't had time to diagnose them. As I remember, after you finish a question, there is a small menu at the bottom to got to the next one, and it doesn't respond to any user input. I was thinking maybe it had something do do with my playing around with the source code, so I didn't mention it, but I really didn't think I did anything that could cause this. It'll be interesting to see if the these are the same type of lockup.
John
_________________________
1998 BMW ///M3
30 GB Mk2a, Tuner,
and 10 GB backup
|
Top
|
|
|
|
#96146 - 02/06/2002 10:16
Re: Emptriv & userinit
[Re: johnmcd3]
|
new poster
Registered: 07/04/2001
Posts: 23
Loc: Lancs UK
|
In the short time I have been using Emptriv I have also had a couple of lock ups at the same point going to the next question.
Mark.
|
Top
|
|
|
|
#96147 - 02/06/2002 12:46
Re: Emptriv & userinit
[Re: Rufus]
|
enthusiast
Registered: 19/04/2001
Posts: 369
Loc: Seattle, WA (formerly Houston,...
|
Hmmm. Smells like a bug.
_________________________
1998 BMW ///M3
30 GB Mk2a, Tuner,
and 10 GB backup
|
Top
|
|
|
|
#96149 - 02/06/2002 18:26
Re: Emptriv & userinit
[Re: tonyc]
|
pooh-bah
Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
|
That is exactly when it locks. When I try to hit next to go to the next question. Unfortunately, not all the time.
|
Top
|
|
|
|
#96150 - 02/06/2002 18:28
Re: Emptriv & userinit
[Re: lectric]
|
pooh-bah
Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
|
Mayhaps it simply is trying to load a question that does not exist? (Would explain why it happens when it happens, and why it happens randomly.)
|
Top
|
|
|
|
|
|