Hi Leonardo,

>  since I put a TPLINK WR741N v1.9 as a wi-fi client on my Fonera network,
> I'm experiencing unexpected reboots.
Unexpected reboots are hard to diagnose, unfortunately. The most common
reason for a reboot is the Fonera running out of memory, which triggers
a reboot.

To diagnose this, you could try to set up a serial console, which allows
you to view the kernel output directly, even just before a reboot.
However, a serial console on the 2.0n requires some very delicate
soldering, which isn't an option for most people. If you want to try,
instructions are here: http://trac.fonosfera.org/fon-ng/wiki/serial

An alternative would be to write all log entries to a file, so you can
see what happens just before the reboot. There is a fair chance that the
log entries just before the reboot (which are probably the most
interesting) are not written to the file, making this method useless. In
any case, the easiest way to set this up is to login through SSH and run
the following command:

    root@Fonera:~# logread -f > /etc/logread &

This should create a file called /etc/logread, containing every message
logged by the kernel and some programs. After such an unexpected reboot,
check this file (and perhaps send it to me privately, there might be
private data in there).

Be careful that keeping a log file like this could fill up your Flash
memory if left running for too long, so delete the file again when you
don't need it anymore. You can see the the free flash space by running
the "df" command, look at the /jffs line.

Alternatively, you could log to an external flash stick, by connecting
it and replacing the /etc/logread line with /var/mounts/Disc-A1/logread
(or something like that).

If this doesn't help to find the cause, you could use this command to
regularly write the current memory usage to a logfile:

    root@Fonera:~# while true; do date >> /etc/memusage; free|head -2|tail -1 
>> /etc/memusage; sleep 300; done&

This creates a file called /etc/memusage, containg memory usage info for
every five minutes. This could help to see if the memory usage is
actually growing to 100% just before the reboot. The same caveat and
workaround for available flash space as above applies.

If you have further questions, don't hesitate to ask.

Gr.

Matthijs

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Development mailing list
[email protected]
http://fonosfera.org/mailman/listinfo/development

Reply via email to