ts-7000
[Top] [All Lists]

Re: [ts-7000] ts7800 Segmentation Fault and HWclock

To:
Subject: Re: [ts-7000] ts7800 Segmentation Fault and HWclock
From: "Michael Schmidt" <>
Date: Mon, 26 Nov 2007 10:55:10 -0700 (MST)
On Fri, November 23, 2007 11:42 am, raaku12 wrote:
> but now on halt, reboot, shutdown i'm getting Segmentation fault
> error and nothing happens...
>
> Stopping system log daemon: syslogd.
> Asking all remaining processes to terminate...done.
> Killing all remaining processes...done.
> Deconfiguring network interfaces...done.
> Unmounting temporary filesystems...done.
> Deactivating swap...done.
> Unmounting local filesystems...done.
> Will now restart.
> /etc/rc6.d/S90reboot: line 17:  1032 Segmentation fault      reboot -
> d -f -i
> Press enter for maintenance
> (or type Control-D to continue):
>

Unfortunately the initial load had a bug in drivers/mmc/tssdcard.c: the
function tssdcard_shutdownhook() has a call to tssdcard_sdcommit() which
should look like this:

static int tssdcard_shutdownhook(struct notifier_block *NotifierBlock,
    unsigned long Event, void *Buffer)
{
  int i;

  if (!(Event == SYS_RESTART || Event == SYS_HALT || Event == SYS_POWER_OFF))
    return NOTIFY_DONE;

  for (i = 0; i< ndevices ; i++) {
    tssdcard_sdcommit((unsigned long)(devices+i));
  }

  return NOTIFY_OK;
}

In the initial version a null pointer was (indirectly) being passed.  This
caused reboot to crash, but only when running from an SD card.


 ______   Best Regards,
|__  __/                  Michael Schmidt
   ||                   Software Engineer
   ||echnologic Systems (EmbeddedARM.com)
   || (480)    16610 East Laser Drive #10
   |/ 837-5200   Fountain Hills, AZ 85268
       http://oz.embeddedarm.com/~michael



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU