OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: macstibs on January 20, 2006, 07:51:40 pm

Title: Problem With Shutdown
Post by: macstibs on January 20, 2006, 07:51:40 pm
When I try to reboot from the CLI the system hangs after killing the CF services instead of cleanly rebooting.  Suspending the machine exhibits the same problem.  I think something needs to be modified to tell the CF services to only kill the wifi card instead of the wifi card and the hd, but I'm not sure where to look.

Any ideas?

I'm using 1.1.0beta1 with pivotroot
Title: Problem With Shutdown
Post by: macstibs on January 23, 2006, 04:29:42 am
Quote
When I try to reboot from the CLI the system hangs after killing the CF services instead of cleanly rebooting.  Suspending the machine exhibits the same problem.  I think something needs to be modified to tell the CF services to only kill the wifi card instead of the wifi card and the hd, but I'm not sure where to look.

Any ideas?

I'm using 1.1.0beta1 with pivotroot
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111761\"][{POST_SNAPBACK}][/a][/div]

*bump*

Nobody else is seeing this behavior after installing pivot_root & KDE?
Title: Problem With Shutdown
Post by: desertrat on January 23, 2006, 04:57:32 am
Quote
Nobody else is seeing this behavior after installing pivot_root & KDE?

I'll take a stab at it (but I'm no expert ).

I'm using a regular install of 1.1.0beta on a c3100 (ie no pivot root), I install practically everything onto external storage - ie microdrive, and I have a swap partition.

To cut a long story short I have:

1) my hdd partitions mounted and swap enabled on startup (I have added commands to do this when pcmcia starts)

2) my hdd partitions umounted and swap disabled on shutdown/reboot (I have added commands to do this when pcmcia stops)

Originally I did not do (2) and when I reboot the hdd light stayed on and the reboot process just hung. See this thread (https://www.oesf.org/forums/index.php?showtopic=16560) for more details.

Now, on a regular linux system one of the last things it does on shutdown/reboot is to umount the filesystems. But because on most regular linux systems, the disks are attached to a "permanent" interface - as opposed to the pcmcia that you have on the Z (remember you pivoted your root and are now running your system from the "temporary" pcmcia interface). So I imagine the problem is that on shutdown/reboot as soon as the pcmcia service is stopped you're dead (so to speak). And a possible solution is to move the pcmcia shutdown procedure right to the very end. (Hope I haven't been talking out of my rear end   )

-- cheers
Title: Problem With Shutdown
Post by: Meanie on January 23, 2006, 08:53:19 am
you might be on to something here. i have observed the same behaviour, ie during reboot the Z just hangs at shutting down cardmgr.

I also noticed that it seems tobe related to a corrupt file system as well. if i see a warning message during bootup about needing to run fsck, then suspend and reboot won't work, ie reboot hangs and suspend suspends with the hdd light on.

if i then drop into dm mode and fsck the hdd, then suspend and reboot work again

that said, I also sometimes get 2 lines of io error messages during reboot so I hacked S99reboot (halt) to do some extra checking before turning things off and this helped a bit, but sometimes those errors come back again. so it seems to be the reboot and suspend scripts not doing a good enough job to check for inconsistencies on the disk.

as a workaround, i have changed the pivot script (init) to fsck the disk before mounting it and doing the pivot. now while i am at it, i think i might fix it so it can pivot even when an external cf is inserted.