[maemo-developers] N810 Resets

From: Alex Iliadis alex at immunityinc.com
Date: Thu Dec 13 16:40:13 EET 2007
On Thursday 13 December 2007 02:25:58 am you wrote:
> Hi,
>
> ext Alex Iliadis wrote:
> > Yeah, it's running as root, but it's a python script. After running
> > top to monitor it's memory usage it was ranging from 35-55MB.
>
> How much memory it was using just before the device booted?
> (By consuming all memory root process can make the device so slow
> that HW watchdog reboots it.)
>
It has to run as root since I do low level things with the interfaces. I 
wrote a script that monitored memory usage of the application and it 
seemed within bounds ranging from 28-57mb. I also extended the swap drive 
by the maximum and from what I've noticed in the free output the memory 
mapped space hasn't been utilized by it. (0mb used)

>  > Let me know if you need any further details.
>
> If running your script as normal user doesn't help
> (e.g. from xterminal), You could install syslog and
> give the information just before the device reboots.
>
> I.e. after the reboot search for the last "Bootup reason:"
> message from syslog and go up from that until you see where
> the kernel starts and check what happens at that time).
>
This is prior Bootup:

Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.085937] Disabling unused 
clock "uart3_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.085937] Disabling unused 
clock "uart3_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.085937] Disabling unused 
clock "uart2_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.085937] Disabling unused 
clock "uart2_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.085937] Disabling unused 
clock "gpt12_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.085937] Disabling unused 
clock "gpt12_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.085937] Disabling unused 
clock "gpt11_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt11_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt10_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt10_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt9_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt9_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt8_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt8_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt7_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt7_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt6_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt6_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt5_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt5_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt4_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt4_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt3_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt3_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt2_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "gpt2_ick"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Disabling unused 
clock "dss2_fck"
Dec 13 09:36:18 Nokia-N810-42-18 kernel: [    1.093750] Bootup reason: 
32wd_to


I scrolled a bit further down though and I noticed the following:

Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.375000] menelaus 1-0072: 
Shutting off 'VIO'
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.390625] menelaus 1-0072: 
Shutting off 'VMEM'
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.531250] attempt to access 
beyond end of device
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.531250] mmcblk0: rw=0, 
want=4013848, limit=3932160
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.531250] Buffer I/O error on 
device mmcblk0p1, logical block 501728
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.531250] attempt to access 
beyond end of device
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.531250] mmcblk0: rw=0, 
want=4013848, limit=3932160
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.531250] Buffer I/O error on 
device mmcblk0p1, logical block 501728
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.531250] attempt to access 
beyond end of device
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.531250] mmcblk0: rw=0, 
want=4014080, limit=3932160
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.531250] Buffer I/O error on 
device mmcblk0p1, logical block 501757
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.531250] attempt to access 
beyond end of device
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.531250] mmcblk0: rw=0, 
want=4014080, limit=3932160
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.531250] Buffer I/O error on 
device mmcblk0p1, logical block 501757
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.539062] attempt to access 
beyond end of device
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.539062] mmcblk0: rw=0, 
want=4014080, limit=3932160
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.539062] Buffer I/O error on 
device mmcblk0p1, logical block 501757
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.546875] attempt to access 
beyond end of device
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.546875] mmcblk0: rw=0, 
want=4014080, limit=3932160
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.546875] Buffer I/O error on 
device mmcblk0p1, logical block 501757
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.554687] attempt to access 
beyond end of device
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.554687] mmcblk0: rw=0, 
want=4014080, limit=3932160
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.554687] Buffer I/O error on 
device mmcblk0p1, logical block 501757
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.562500] attempt to access 
beyond end of device
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.562500] mmcblk0: rw=0, 
want=4014080, limit=3932160
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.562500] Buffer I/O error on 
device mmcblk0p1, logical block 501757
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.570312] attempt to access 
beyond end of device
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.570312] mmcblk0: rw=0, 
want=4014024, limit=3932160
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.570312] Buffer I/O error on 
device mmcblk0p1, logical block 501750
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.578125] attempt to access 
beyond end of device
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.578125] mmcblk0: rw=0, 
want=4014072, limit=3932160
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.578125] Buffer I/O error on 
device mmcblk0p1, logical block 501756
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.585937] attempt to access 
beyond end of device
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.585937] mmcblk0: rw=0, 
want=4014080, limit=3932160
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.593750] attempt to access 
beyond end of device
Dec 13 09:36:20 Nokia-N810-42-18 kernel: [   18.593750] mmcblk0: rw=0, 
want=4014080, limit=3932160
Dec 13 09:36:21 Nokia-N810-42-18 waitdbus[794]: trying to connect to the 
system bus


-Alex

>
> 	- Eero
>
> > On Wednesday 12 December 2007 12:38:18 pm you wrote:
> >> ext Alex Iliadis wrote:
> >>> I suspected it was the watchdog which was doing software resets.
> >>> Here is the output of the results:
> >>>
> >>> /proc/bootreason
> >>> 32wd_to
> >>>
> >>> 32wd_to:
> >>> 5
> >>
> >> ...
> >>
> >>> After that I decided to disable the lifeguard resets in the device
> >>> by using the flasher tool:
> >>> flasher --set-rd-flags=no-lifeguard-reset -R
> >>
> >> 32wd_to is the device HW watchdog reboot, not the SW watchdog one.
> >>
> >>> (side note: the device was in r&d mode in both runs)
> >>>
> >>> Unfortunately I ended up having the same exact result, the device
> >>> rebooted while running my python script. I also enabled core files
> >>> to see if it was an application crashing but that didn't turn out to
> >>> be the case since there were no core's generated. Furthermore I
> >>> installed sysklogd to see if there will be any time to save error
> >>> messages prior the reset but nothing useful was in the logs. I would
> >>> appreciate any pointers on debugging this issue.
> >>
> >> Are you running your script as root?  And if yes, how much memory
> >> it's using?  (root processes are protected from OOM-killing i.e.
> >> like on any Linux device, root can mess the system)



More information about the maemo-developers mailing list