jmart
|
2011-03-09
, 01:00
|
Posts: 35 |
Thanked: 14 times |
Joined on Oct 2010
@ Durham, NC
|
#191
|
|
2011-03-09
, 07:52
|
Posts: 542 |
Thanked: 117 times |
Joined on Sep 2008
@ 52 N, 6 E
|
#192
|
Yes
No, this patch doesn't solve issues with faulty hardware or old batteries, I never promised such a thing.
|
2011-03-09
, 08:17
|
Posts: 1,101 |
Thanked: 1,184 times |
Joined on Aug 2008
@ Spain
|
#193
|
The battery is renewed 6 months ago and how do you think I have 'faulty hardware' ?
It is the same unmodded N810 as I bought it in Sept 2008.
|
2011-03-09
, 10:35
|
Posts: 2,802 |
Thanked: 4,491 times |
Joined on Nov 2007
|
#194
|
I do not do perl, too arcane for me to learn, but I'll happyly use your code snippet.
While you're at it, why don't you add the equivalent of "if filesize(Z)<$l: exit(1)" before truncate?
#!/bin/sh dd if=zImage-backup of=l skip=44 count=4 bs=1 b=$(echo $(echo -n '0000' | cmp -l l | cut -c3-5)) read a b c d <<EOF $b EOF rm l eval $(printf "l=\$(( (((0$d \* 256 + 0$c) \* 256 + 0$b) \* 256 + 0$a) ))") s=$(echo $(ls -l zImage-backup) | cut -f5 -d" ") if [ "$s" -gt "$l" ] ; then dd if=zImage-backup bs=$l count=1 of=zImage-backup.new && \ mv -f zImage-backup.new zImage-backup fi
|
2011-03-09
, 11:10
|
Posts: 542 |
Thanked: 117 times |
Joined on Sep 2008
@ 52 N, 6 E
|
#195
|
The two main causes for spontaneus reboots
I think it is a hardware fault, either the battery or the device, because you refer spontaneous reboots, independently of the software.
Now, about your new battery.... it is a real Nokia one or another brand, Mugen in particular?
|
2011-03-09
, 12:13
|
Posts: 1,101 |
Thanked: 1,184 times |
Joined on Aug 2008
@ Spain
|
#196
|
The only possible hardware fauly might be the MMC1 card which is a 3rd party Micro SD card in a Mini adapter. Can that be qa problem ?
In earlier posts I read that the spontaneous reboots were because of a firmware bug which triggers the watchdog inadvertently. And with the better handling of events / watchdog in your improved kernel I hoped this problem would be solved. Now this is not the case then it can be a hardware problem.
|
2011-03-09
, 12:20
|
Posts: 1,101 |
Thanked: 1,184 times |
Joined on Aug 2008
@ Spain
|
#197
|
Just for the hell of it, I had a go at doing it in a shell script, using only what's provided by busybox and without "cheating" by using other interpreters like awk, sed etc. It turned out to be surprisingly tricky to get the 32bit int in decimal format without having something like od(1), but here goes anyway:
Improvements welcome ;-)Code:#!/bin/sh dd if=zImage-backup of=l skip=44 count=4 bs=1 b=$(echo $(echo -n '0000' | cmp -l l | cut -c3-5)) read a b c d <<EOF $b EOF rm l eval $(printf "l=\$(( (((0$d \* 256 + 0$c) \* 256 + 0$b) \* 256 + 0$a) ))") s=$(echo $(ls -l zImage-backup) | cut -f5 -d" ") if [ "$s" -gt "$l" ] ; then dd if=zImage-backup bs=$l count=1 of=zImage-backup.new && \ mv -f zImage-backup.new zImage-backup fi
|
2011-03-09
, 15:07
|
Posts: 35 |
Thanked: 14 times |
Joined on Oct 2010
@ Durham, NC
|
#198
|
|
2011-03-09
, 15:31
|
Posts: 1,101 |
Thanked: 1,184 times |
Joined on Aug 2008
@ Spain
|
#199
|
Any suggestions on why my ramzswap doesn't seem to be working properly would be appreciated. I think it's an important part of DT and I would like to get it working, but it's a little beyond my scope.
/etc/init.d/ramzswap restart in xterm as root worked, when I typed free I then saw my swap memory. However, after restarting my N810 I am back to 0 swap memory -- until I restart ramzswap in xterm again
Thanks!
|
2011-03-09
, 15:34
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#200
|