Reboot-Loop Hunting Season...

Página 2 de 2. Precedente  1, 2

Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  Keltek el Jue Feb 03, 2011 12:15 pm

evr escribió:
It is very weird because any other files are untouched. Why is damaged only the PM binary?
Probably just bud luck (in this particular case). This is why I predict that next time it can happen with another soft piece...
I suspect the Victor to make some self-destructing code into PipeManagement. Wink
avatar
Keltek

Mensajes : 291
Fecha de inscripción : 10/03/2010
Edad : 41
Localización : Praha - Czech Republic

Ver perfil de usuario http://www.fozona.cz/

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  evr el Jue Feb 03, 2011 12:57 pm

Keltek escribió:
evr escribió:
It is very weird because any other files are untouched. Why is damaged only the PM binary?
Probably just bud luck (in this particular case). This is why I predict that next time it can happen with another soft piece...
I suspect the Victor to make some self-destructing code into PipeManagement. Wink
Yea! Sure! I have seen several pieces of "self-destructing code into PipeManagement": they are hidden in the form of "system()" calls to busybox ... Wink

evr

Mensajes : 279
Fecha de inscripción : 12/10/2010

Ver perfil de usuario

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  evr el Jue Feb 03, 2011 1:50 pm

Keltek escribió:[...]So... - we can check of damaged PipeManagement and if it is damaged, boot without it[...]
I think we should implement this turnaround as soon as possible. In fact it is just a matter of writing the rcS script in the proper way; I mean, as it is now the invocations of both DvdPlayae and RootApp are correctly conditioned by the corresponding sanity checks, but PipeManagemet is unconditionally invoqued!! :(. So a proper rcS invocation code should look something like:
Código:
[...]
if [ -f $DEFAULT_AP_DIR/DvdPlayer ] && [ -x $DEFAULT_AP_DIR/DvdPlayer ]; then
  cd $DEFAULT_AP_DIR
  if [ -f $DEFAULT_AP_DIR/RootApp ] && [ -x $DEFAULT_AP_DIR/RootApp ]; then
    echo Running dvdplayer with RootApp
    tail -f /tmp/command_sender.txt | ./RootApp DvdPlayer >> /tmp/appout &
else
  echo Running dvdplayer
  tail -f /tmp/command_sender.txt | ./DvdPlayer >> /tmp/appout &
fi
if [ -f /usr/local/etc/PipeManagement ] && [ -x /usr/local/etc/PipeManagement ]; then
  cat /tmp/appout | /usr/local/etc/PipeManagement/PipeManagement &
fi
[...]
Best,

evr

Mensajes : 279
Fecha de inscripción : 12/10/2010

Ver perfil de usuario

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  Keltek el Jue Feb 03, 2011 2:02 pm

This check will not works, because the damaged PipeManagement is regular file and is executable (have the executable flag set) but the data is overwritten.
See this:
Código:
Ondra@L3AGL6V:/cygdrive/d/Workspace-HELIOS-LG/temp/rebootloop$ ls -al
-rwxrwxrwx  1 Ondra None 230769 Dec  7 21:53 PipeManagement*
-rwxrwxrwx  1 Ondra None 230769 Feb  2 22:33 PipeManagement.BAD*

Ondra@L3AGL6V:/cygdrive/d/Workspace-HELIOS-LG/temp/rebootloop$ file *
PipeManagement:    ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), statically linked, with unknown capability 0xf41 = 0x756e6700, with unknown capability 0x70100 = 0x3040000, not stripped
PipeManagement.BAD: data
avatar
Keltek

Mensajes : 291
Fecha de inscripción : 10/03/2010
Edad : 41
Localización : Praha - Czech Republic

Ver perfil de usuario http://www.fozona.cz/

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  evr el Jue Feb 03, 2011 2:18 pm

Keltek escribió:This check will not works, because the damaged PipeManagement is regular file and is executable (have the executable flag set) but the data is overwritten.
See this:
Código:
Ondra@L3AGL6V:/cygdrive/d/Workspace-HELIOS-LG/temp/rebootloop$ ls -al
-rwxrwxrwx  1 Ondra None 230769 Dec  7 21:53 PipeManagement*
-rwxrwxrwx  1 Ondra None 230769 Feb  2 22:33 PipeManagement.BAD*

Ondra@L3AGL6V:/cygdrive/d/Workspace-HELIOS-LG/temp/rebootloop$ file *
PipeManagement:    ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), statically linked, with unknown capability 0xf41 = 0x756e6700, with unknown capability 0x70100 = 0x3040000, not stripped
PipeManagement.BAD: data
Right! So we need a more clever check... What happens if you try to execute it? does it cause an immediate reboot? or do you get some recoverable error (from the shell)? Alternatively we should compute a checksum or at list have two copies and make a diff and only invoque it if the checksum and/or the diff are positive...

Best,

evr

Mensajes : 279
Fecha de inscripción : 12/10/2010

Ver perfil de usuario

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  Keltek el Jue Feb 03, 2011 2:58 pm

Yesterday I have an idea about md5sum, but this md5sum should be updated every time the PM is updated. Now, I prefer md5sum checking. This will slightly slow the booting, but not to much.
avatar
Keltek

Mensajes : 291
Fecha de inscripción : 10/03/2010
Edad : 41
Localización : Praha - Czech Republic

Ver perfil de usuario http://www.fozona.cz/

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  evr el Jue Feb 03, 2011 5:19 pm

Keltek escribió:Yesterday I have an idea about md5sum, but this md5sum should be updated every time the PM is updated. Now, I prefer md5sum checking. This will slightly slow the booting, but not to much.
Yes, md5sumshould be O.K.

Best,

evr

Mensajes : 279
Fecha de inscripción : 12/10/2010

Ver perfil de usuario

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  vic1972 el Jue Feb 03, 2011 7:57 pm

Hello friends Smile
Sorry, been *VERY* busy yesterday and today.
Very glad of the posts you are writing Smile

Yes, we noted also some strange behaviour in this part of memory;
Keltek, remember the kernel driver of IR that was corrupted from time to time ...
yes, is seems it is the same reason!!!!


So, a check of md5sum of PM is a very nice solution!!!






avatar
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 46
Localización : Malaga

Ver perfil de usuario

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  evr el Vie Feb 04, 2011 1:03 am

vic1972 escribió:Yes, we noted also some strange behaviour in this part of memory; Keltek, remember the kernel driver of IR that was corrupted from time to time ... yes, is seems it is the same reason!!!!
Agree (...it reinforces my "flash swap overflow" theory Wink)
So, a check of md5sum of PM is a very nice solution!!!
Yep! NOT a "solution", just a very basic turnaround!!

We need to find the cause of these corruptions, not only a way to recover from them.

Best,

evr

Mensajes : 279
Fecha de inscripción : 12/10/2010

Ver perfil de usuario

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  vic1972 el Lun Feb 07, 2011 12:11 pm

Yes, that is clear.
But mean while we could help with workarounds.

I have done this check which works well:
in rcS:

if /usr/bin/md5sum -c /usr/local/etc/PipeManagement/Files/PipeManagement_Boot.md5; then
cat /tmp/appout | /usr/local/etc/PipeManagement/PipeManagement &
fi

I have created a md5sum file and a check, if the check is fine, then PM is launched.

Another solution I have in mind, is instead of launching PM right from the begining (that is why it is place in this memory /usr/local/etc); is to have it started later (around 20 seconds later), and then it can be placed in the other filesystem, for eg. in /root/custom/PM

Then PipeManagement_Boot.md5 is for example like:
c08636925b4f18971a41503b794b76df /usr/local/etc/PipeManagement/PipeManagement





avatar
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 46
Localización : Malaga

Ver perfil de usuario

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  Keltek el Miér Feb 09, 2011 4:40 pm

I uploaded all the scripts to SVN and I add some md5sum checking of PM. Please check this out and tell me...
avatar
Keltek

Mensajes : 291
Fecha de inscripción : 10/03/2010
Edad : 41
Localización : Praha - Czech Republic

Ver perfil de usuario http://www.fozona.cz/

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  vic1972 el Miér Feb 09, 2011 9:30 pm

Very good Smile
I like very much the way it is controlled, using var: startpm
Thanks.
avatar
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 46
Localización : Malaga

Ver perfil de usuario

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  jpg12305 el Vie Feb 18, 2011 11:17 pm

I cannot add value, except my encouragements. bounce

I got the infinite reboot syndroma today (again), and girls here were again complaining about this stupid black box, and why their recording failed, and why I purchased that and blah blah blah.. Sigh... Sad

Keep on searching, guys, and thanks for the good useful job done so far !

jpg12305

Mensajes : 4
Fecha de inscripción : 20/06/2010

Ver perfil de usuario

Volver arriba Ir abajo

Re: Reboot-Loop Hunting Season...

Mensaje  Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Página 2 de 2. Precedente  1, 2

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.