#53603 - 02/01/2002 13:53
config.ini
|
enthusiast
Registered: 21/12/2001
Posts: 326
Loc: Mission Viejo, California
|
Somehow my config.ini file got corrupted. Now, whenever I try to change its settings in emplode, I get the error "sequence mismatch, someone was here before us". I'm using 2.00b7 with hijackv92. When I sz the file to my computer to view it, I see a bunch of weird ascii characters, and then the actual config file below them. Any ideas on how to revert back to a plain, original config.ini file, or how to edit the one I have now?
_________________________
John Heathco - 30gig MKIIa w/ tuner module
|
Top
|
|
|
|
#53604 - 02/01/2002 14:05
Re: config.ini
[Re: jheathco]
|
enthusiast
Registered: 21/12/2001
Posts: 326
Loc: Mission Viejo, California
|
Anyways, I just tried re-downloading the 2.00b7 upgrade and installing it to no avail. I truely hope the solution doesn't involve me losing everything on the drive as I just finished uploading it all today 
_________________________
John Heathco - 30gig MKIIa w/ tuner module
|
Top
|
|
|
|
#53605 - 02/01/2002 14:10
Re: config.ini
[Re: jheathco]
|
pooh-bah
Registered: 13/09/1999
Posts: 2401
Loc: Croatia
|
I can think of two easy ways:
- sz it to your computer, edit it there, rz it back to empeg. Use editor that can keep Unix EOL characters (LF (ctrl-J), as opposed to DOS/Win CR LF (ctrl-M ctrl-J)).
- Load developer image. Connect via serial, drop to shell. cd to appropriate directory, type
cat > config.ini
(type carefully yout config.ini)
(finish with ctrl-D)
_________________________
Dragi "Bonzi" Raos
Q#5196
MkII #080000376, 18GB green
MkIIa #040103247, 60GB blue
|
Top
|
|
|
|
#53606 - 02/01/2002 14:15
Re: config.ini
[Re: bonzi]
|
enthusiast
Registered: 21/12/2001
Posts: 326
Loc: Mission Viejo, California
|
Hey again, I'm getting the read-only file system. I did rw in the /empeg/var directory but that didn't help. Is there something I'm missing?
_________________________
John Heathco - 30gig MKIIa w/ tuner module
|
Top
|
|
|
|
#53607 - 02/01/2002 14:16
Re: config.ini
[Re: jheathco]
|
enthusiast
Registered: 21/12/2001
Posts: 326
Loc: Mission Viejo, California
|
Nevermind, I just tried rwm and that worked... I'll let you know if this solves it...
_________________________
John Heathco - 30gig MKIIa w/ tuner module
|
Top
|
|
|
|
#53608 - 02/01/2002 14:17
Re: config.ini
[Re: jheathco]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31617
Loc: Seattle, WA
|
I have a suspicion that it might be related to one of the Hijack versions. Were you running Hijack?
(Mark, jump in here and slap me if I'm wrong about it).
Re-installing an Upgrade will not fix the config.ini file, as the upgrade deliberately does not touch config.ini.
To fix config.ini, use this procedure from the FAQ to edit it and see if all is well afterwards. Let us know how it goes.
|
Top
|
|
|
|
#53609 - 02/01/2002 14:19
Re: config.ini
[Re: jheathco]
|
pooh-bah
Registered: 13/09/1999
Posts: 2401
Loc: Croatia
|
Ah, /empeg/var is a symlink to /drive0/var. Do both rw and rwm. Don't forget ro and rom later!
_________________________
Dragi "Bonzi" Raos
Q#5196
MkII #080000376, 18GB green
MkIIa #040103247, 60GB blue
|
Top
|
|
|
|
#53610 - 02/01/2002 14:22
Re: config.ini
[Re: jheathco]
|
enthusiast
Registered: 21/12/2001
Posts: 326
Loc: Mission Viejo, California
|
Okay great I got it, now I can edit it in emplode again, thanks. By the way, if the seq_number gets screwed up, does that prevent you from doing anymore syncs???
_________________________
John Heathco - 30gig MKIIa w/ tuner module
|
Top
|
|
|
|
#53611 - 02/01/2002 14:28
Re: config.ini
[Re: jheathco]
|
enthusiast
Registered: 21/12/2001
Posts: 326
Loc: Mission Viejo, California
|
I was using hijack, I don't think that screwed it up, it might have gotten screwed up during a sync. Anyways, I just did the rw and rwm and just put a blank line in the config, then I was able to edit it from within emplode.
By the way, anyone know of any resources that explain the commonly used developer commands on the bash prompt, like sed and such? Also, is there a cross-compiler from arm-linux that will run on a win32 box?
_________________________
John Heathco - 30gig MKIIa w/ tuner module
|
Top
|
|
|
|
#53612 - 02/01/2002 14:40
Re: config.ini
[Re: jheathco]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
sed is a separate command altogether. It's not part of bash (ugh) or any other shell. However, there are a number of good places to look for Unix command basics. Try Unix Guru Universe. Other beginners seem to have had good success there.
_________________________
Bitt Faulk
|
Top
|
|
|
|
#53613 - 02/01/2002 15:26
Re: config.ini
[Re: tfabris]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14509
Loc: Canada
|
>I have a suspicion that it might be related to one of
>the Hijack versions. Were you running Hijack?
>(Mark, jump in here and slap me if I'm wrong about it).
Consider yourself slapped silly!
Hijack does not have write access to the disk, never even thinks about calling a write() routine, and definitely does not attempt to write or modify config.ini or any other file or buffered item, so it cannot corrupt anything on it.
-ml
|
Top
|
|
|
|
#53614 - 02/01/2002 15:30
Re: config.ini
[Re: mlord]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31617
Loc: Seattle, WA
|
Is it maybe some extra hijack-related options, hand-added to config.ini, that are confusing emplode's ability to read and write the file?
|
Top
|
|
|
|
#53615 - 02/01/2002 15:47
Re: config.ini
[Re: tfabris]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14509
Loc: Canada
|
I am not aware of any such impairment. Are you?
I once also saw a corrupted config.ini file, with 2.00beta3, long before hijack even had code to read the darned thing. I think emplode / emptool / player just get seriously confused at times, and have a small chance of randomly corrupting things.
I suppose someday we may bump into a possibly hardcoded buffer size limit in Emplode, like if one crams zillions of ir_translate codes into config.ini, but it hasn't happened yet.
Cheers
-ml
|
Top
|
|
|
|
#53616 - 02/01/2002 16:36
Re: config.ini
[Re: mlord]
|
carpal tunnel
Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
|
My config.ini somehow got corrupted a week or two ago. I have no idea how it happened. I was running hijack but I am also skeptical about that having anything to do with the corruption.
I wonder if this rash of config.ini corruptions has anything to do with the 2.0 betas? Have any 1.03 users had their config.ini corrupted?
|
Top
|
|
|
|
#53617 - 02/01/2002 23:50
Re: config.ini
[Re: tonyc]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
I also had a config.ini corruption a while back. I am pretty sure it was after upgrading to 2.0b3 and before I started running hijack. Hasn't happened since so I have not worried about it.
-Mike
|
Top
|
|
|
|
#53618 - 03/01/2002 00:42
Re: config.ini
[Re: mlord]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31617
Loc: Seattle, WA
|
I am not aware of any such impairment. Are you?
Here's what I recall. This could be wrong, my memory is... ... what was I going to say? I don't remember...
I seem to recall that config.ini didn't like nonstandard formatting. It was something like either semicolons didn't count as comments, or it didn't handle them right or something, or if the file wasn't in a perfect [section](cr) key=value(cr) format, then it would get corrupted on the next emplode edit.
The only reason I thought of hijack was because I thought that early in hijack's history it used some settings that either had the semicolon doing something emplode didn't like, or the lines didn't have equals signs, or something like that. It's all a blur to me now, but I could have sworn we discussed it here on the board.
|
Top
|
|
|
|
#53619 - 03/01/2002 04:34
Re: config.ini
[Re: tfabris]
|
pooh-bah
Registered: 13/09/1999
Posts: 2401
Loc: Croatia
|
a perfect [section](cr) key=value(cr) format
[nitpick]
(lf), not (cr)
[/nitpick]
Speaking of that, are CRs tolerated at all?
_________________________
Dragi "Bonzi" Raos
Q#5196
MkII #080000376, 18GB green
MkIIa #040103247, 60GB blue
|
Top
|
|
|
|
#53620 - 03/01/2002 13:29
Re: config.ini
[Re: bonzi]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31617
Loc: Seattle, WA
|
You are correct. Since the program resides on a Linux system, it's not CR's, it's LF's.
I meant that on the screen when you edit the file, there is a new line at those points.
I wonder if the presence of CRs is what corrupted the file in the first place?
|
Top
|
|
|
|
|
|