Help - Search - Members - Calendar
Full Version: I Mounted A 2 Gig Sd Card!
OESF Forums > General Forums > General Support and Discussion > General Discussion
Pages: 1, 2, 3
DrWowe
Thanks C-Guys!

I was poking around the driver for their WiFi card to investigate something. Then, I realized that they completely replace the sharp_sdmmc kernel module with their own SD/SDIO stack. So just for fun, I installed it and surprise, I can now read, write, and mount a Sandisk 2 GB SD card. So far, it's been working very reliably.

Now, the catches:

1) It works fine on my C760 (running Cacko 1.12). But, when I tried to install the modules on my 6000, I got kernel oopses. So, it may be very sensitive to the model/kernel that is running. This is not that surprising since C760 is one of the few models listed as supported on their website.

2) vfat filesystems are fine. I had some problems with ext2. I fixed it by reformatting my card with "mke2fs -b 1024 /dev/mmcda1". This driver doesn't seem to like block sizes > 1024.


Anyway, if you want to repeat my experiment, just download and install this ipk, and reboot the Zaurus:

http://c-guys.net/cgi-bin/download/passche...n_arm.ipk&key=1
Cresho
sorry mr wowo, no link...........
Cresho
found it,,,gona test it
Cresho
sorry, does not work for c-1000 running stock sharprom.

just testing it out for everybody.
Jon_J
That would make for a really "nice" C3100. 8GB CF to replace microdrive + 8GB CF in external slot + 4GB SD card in SD slot = 20GB total storage internally with no external drives attached to it. rolleyes.gif

just my 2¢
Jon
Cresho
QUOTE(Jon_J @ Jan 17 2006, 08:12 PM)
That would make for a really "nice" C3100. 8GB CF to replace microdrive + 8GB CF in external slot + 4GB SD card in SD slot = 20GB total storage internally with no external drives attached to it.  rolleyes.gif

just my 2¢
Jon
*



sad.gif
bjornkeizers
QUOTE(Jon_J @ Jan 18 2006, 05:12 AM)
That would make for a really "nice" C3100. 8GB CF to replace microdrive + 8GB CF in external slot + 4GB SD card in SD slot = 20GB total storage internally with no external drives attached to it.   rolleyes.gif
*


Cool, in a geeky sort of way. Still, those 8 gig CF's and 4 gig SD's probably aren't cheap. I can hook up my old ipod or archos to the Z and get 20G's in one lump. biggrin.gif

Thinking about it... how would you get WiFi on it then... powered hub with a USB dongle?
dbowden
QUOTE(Jon_J @ Jan 17 2006, 11:12 PM)
That would make for a really "nice" C3100. 8GB CF to replace microdrive + 8GB CF in external slot + 4GB SD card in SD slot = 20GB total storage internally with no external drives attached to it.  rolleyes.gif

just my 2¢
Jon
*

Or just wait until next year when Hitachi comes out with the promised 20GB microdrive!
Jon_J
I don't plan on using WiFi any time soon, but if a person needed to use the CF slot for WiFi or Bluetooth, wouldn't it be nice to be able to use a 8GB SD card, which remained in the slot at all times? Does anyone know how to "make" the above mentioned driver "adapt" to the C1000, C3000, C3100 series?

Jon
corecoder
YES!
Finally!
My C860 works. Fdisked into vfat and ext2 partitions.I had to change the block size per above for the the ext2, but it works great ( so far).
merli
IMHO seem to me that only 2.4.18 kernel is supported _not_ 2.4.20 for c1000,3x00 series ...
speculatrix
QUOTE(Cresho @ Jan 18 2006, 04:41 AM)
found it,,,gona test it
*


any chance of posting the file here or the link, my Japanese is non-existent and I don't know how to look for the file!
daniel3000
QUOTE(speculatrix @ Jan 24 2006, 11:59 AM)
QUOTE(Cresho @ Jan 18 2006, 04:41 AM)
found it,,,gona test it
*


any chance of posting the file here or the link, my Japanese is non-existent and I don't know how to look for the file!
*



Oh yes, please. I'd like to try it on a C3000 with Cacko ROM 1.23b1.
Now I only have to find a 2GB card to test with.

daniel
speculatrix
cheers!
merli
As I said ... there are only binary modules for 2.4.18 kernel :-). No 2.4.20 so Cxx00 series wont work. They should recmpile their module also for 2.4.20 kernel ... Anyone can ask them to do it?
merli
As I said ... there are only binary modules for 2.4.18 kernel :-). No 2.4.20 so Cxx00 series wont work. They should recmpile their module also for 2.4.20 kernel ... Anyone can ask them to do it?
Jon_J
Can anyone translate this:
Linux Zaurus direction user's manual (instruction manual) Renewal 2004/10/22 (Ver1.0)(PDF:1,105KB)

http://www.c-guys.net/cgi-bin/download/dow...product=link11b

I tried google to convert it to html, but google couldn't access the PDF to convert it. If google can convert it, then I could use google to translate it.

Jon
daniel3000
QUOTE(merli @ Jan 24 2006, 04:33 PM)
As I said ... there are only binary modules for 2.4.18 kernel :-). No 2.4.20  so Cxx00 series wont work. They should recmpile their module also for 2.4.20 kernel ... Anyone can ask them to do it?
*


oh :-( I initially thought my Z would run a 2.4.18, but you are right, it's 2.4.20. So no chance it seems... at least not yet.

daniel
mk500
DrWowe: This is AMAZING!

Any chance you could try reading/writing some files to your 2GB card and give us a sense of the speed? One of the problems with the old driver is that every SD card was put into MMC mode -- I believe -- and that made the cards much slower.
craigtyson
QUOTE(Jon_J @ Jan 24 2006, 02:46 PM)
Can anyone translate this:
Linux Zaurus direction user's manual (instruction manual) Renewal 2004/10/22 (Ver1.0)(PDF:1,105KB)

http://www.c-guys.net/cgi-bin/download/dow...product=link11b

I tried google to convert it to html, but google couldn't access the PDF to convert it. If google can convert it, then I could use google to translate it.

Jon
*

open it in acrobat copy and past the text into a htmldoc and post it somewhere (here could be one place) point google at the url and it will xlate. OR past the text into google to translate directly

Page 2 -->"-2- specification and price of main product of note ・ depending upon the improvement and the like of the product without notice is a る thing which is modified. シイガイズ (Inc.) has owned the copyright of this manual of the ・, no permission reprinting is prohibited. In regard to the contents of this manual of the ・, without notice there are times when it modifies. Also the cost which in addition is required for repair vis-a-vis the damage which occurs due to the use of the product which is stated in this manual and this manual of the ・, includes, our company or the store do not owe all responsibility. In regard to the contents of this manual of the ・, be a doubtful point and the like the better cod, to our company support center please communicate. Main product of the ・ is the Japanese domestic specification model, is overseas Japan and our company or the store do not owe all responsibility concerning the result due to use. In addition, support or guarantee in the foreign country for this product have not gone. When main product of the ・ being cancelled, following to the regulations of the local self-governing body, processing, the occasion where it is the く. Correspondence to the condemned pulling taking has not done. ・ Zaurus is the registered trade mark of SHARP. As for ・ Linux, it is registered trade mark or the trade mark in the United States and other countries of Linus Torvalds. The ・ in addition, trade name and the company name etc. which are stated in this manual are trade mark or registered trade mark of each company generally. ・ Bluetooth, is the registered trade mark of United States Bluetooth SIG and Inc.."
Jon_J
Here is a very rough translation in RTF format. I have a text format, but it is harder to read than this RTF file. I broke it up by page numbers, which are at the end of each (paragraph, or group of text).

Jon
jagrka
Horray! I'm now using my Transcend 2GB SD card. Thanks for making this discovery!
DrWowe
Who is going to buy the 4 gig card and see if it works? smile.gif

http://www.surpluscomputers.com/store/Main...l&item=CPM10325
corecoder
I noticed a problem. It was a critical issue for me.
Can someone verify? If you suspend, the card becomes unstable. I tried to copy a file to the card after a suspend/resume and ended up with IO errors. It happend with either the 1GB or the 2GB ( I would suspect with any other) and with vfat and worse with ext2.
If you create an ext2 filesystem and you suspend/resume the card disapears although it shows as mounted using the mount command.
I tried messing with the sdiomgr and sdio scripts. Didn't work.

C860 with orignal sharp ROM.
DrWowe
QUOTE(corecoder @ Jan 25 2006, 01:06 PM)
If you create an ext2 filesystem and you suspend/resume the card disapears although it shows as mounted using the mount command.


This is because the sdiomgr script tries to pass vfat specific mount options, and the ext2 code rejects it and fails. (run dmesg and you can see this)

I fixed by removing all the mount options except for async from the script.
jagrka
I noticed the same problem. Mine is formated FAT16. I determined that the problem was related to fastload applications on the SD card, which made it so that the SD card could not be unmounted during a suspend (the disk is in use error prevents the successful unmount). My calendar app and zten (which accessed dictionaries on the SD card) were set to fastload. Once I turned off fastload for these, I did not have the suspend/resume problem anymore.
If DrWowe was able to fix this by editing the sdiomgr script, could he post his edited script here? I would like to test it on my system.
corecoder
So anything linking to the card will cause this I guess. I have some PSC catalogs linked to the card.
And Pocket Workstation is going to be a problem. Runs great though. Its a little slower, but not much.
I'll try to fiddle with the scripts again.
DrWowe
QUOTE(jagrka @ Jan 25 2006, 06:28 PM)
If DrWowe was able to fix this by editing the sdiomgr script, could he post his edited script here? I would like to test it on my system.
*


I literally just edited one line. It's the one that sets a shell variable with a bunch of mount options.
Ragnorok
- Interesting. This implies just anyone with the right know-how could replace the sharp sd card driver and enable larger SD card usage, and perhaps SDIO-like capability.
Meanie
QUOTE(Ragnorok @ Jan 29 2006, 02:57 PM)
- Interesting.  This implies just anyone with the right know-how could replace the sharp sd card driver and enable larger SD card usage, and perhaps SDIO-like capability.
*


the pdaxrom team (sashz in particular i think) has developed a driver to allow SD cards > 1GB to be used on clamshell models which is currently being tested. if we ask nicely, he might compile it for sharp rom too.
InSearchOf
Has anyone got this working for the Cxx00 series Zaurus's (Zaurii) yet?

I'm looking into buying my first SD in the next week and I dont want to buy a 1gig and 2.. 3... and 4gig become the new "thing" right after my purchase... I dont want multiple cards because once the sd goes in... it prolly wont come back out unless I need to copy a large file from/to it using my pc... since I will be running my swap space from it...

Thanks
A Crutch
bimbo
QUOTE(DrWowe @ Jan 18 2006, 02:02 AM)
Anyway, if you want to repeat my experiment, just download and install this ipk, and reboot the Zaurus:


hi, I got the sdlink package, install it and can manually mount my sdcards.
One thing I found, is that the `sdiomgr` tries to mount /mnt/card wich fails on my C860.
I can only mount on the /usr/mnt.rom/card since /mnt/card is a symlink.
My SanDisk wlan-sdcard is not recognized at all.

Is there any chance to get a 4GB sdcard from Transcend working?
I use the original sharp rom for my zaurus.

by bimbo
bimbo
QUOTE(DrWowe @ Jan 18 2006, 02:02 AM)
Thanks C-Guys!

I was poking around the driver for their WiFi card to investigate something.  Then, I realized that they
[...]
Anyway, if you want to repeat my experiment, just download and install this ipk ...


I does it. A 4GB Trancent sdcard work in a C860 with stock rom using the sd-link package.
It's great!

QUOTE(DrWowe @ Jan 18 2006, 02:02 AM)
2) vfat filesystems are fine.  I had some problems with ext2.  I fixed it by reformatting my card with "mke2fs -b 1024 /dev/mmcda1".  This driver doesn't seem to like block sizes > 1024.


The zaurus format the partition, but cannot mount it, because it does not change the fragment size for partitions larger than 512 MB. I format the card in a reader at my desktop, even with
"mke2fs -b 1024" and I end up with nearly 3.8GB real space in my zaurus. The blocksize parameter is important, else the fragment size is set to 4096.

There is only one point: the `sdiomgr` does not check whether or not any process is using the filesystem before it tries to "umount" it, like the "/etc/sdcontrol" does. For that, i.e. if mysql runs, the `umount` fails, resulting in a garbeled filesystem. I will merge these scripts next days, and if anybody needs, I can post it.

HAND
corecoder
Does the filesystem get garbled on suspend?

Thats the prob I had. If your scripts help that, please post. I tried all kinds of things.
There was a post about the line with all the mount options, but I didn't see them in the sdiomgr script. All I saw was the line with uid and gid options.
bimbo
QUOTE(corecoder @ Feb 16 2006, 01:14 PM)
Does the filesystem get garbled on suspend?

Thats the prob I had. If your scripts help that, please post. I tried all kinds of things.
There was a post about the line with all the mount options, but I didn't see them in the sdiomgr script. All I saw was the line with uid and gid options.
*


that't the line in question.

first, try it manually:

after resume have a shell an be root. try

8<--
$ umount /usr/mnt.rom/card
$ mount /dev/mmcda1 /usr/mnt.rom/card
$ ls /usr/mnt.rom/card/*
8<--

everything o.k.?
(sorry, I've not yet completed the script for generic use. give me the weekend)
bimbo
QUOTE(corecoder @ Feb 16 2006, 01:14 PM)
Does the filesystem get garbled on suspend?

Thats the prob I had. If your scripts help that, please post. I tried all kinds of things.
There was a post about the line with all the mount options, but I didn't see them in the sdiomgr script. All I saw was the line with uid and gid options.
*


I'm so very sorry for the long time ...

It's rather simple: just call the original /etc/sdcontrol from within the sdiomgr and everything is fine.
I added some lines to see whats happen, simply touch /tmp/sd to set it active.

this is the complete script, that works for me since 1 week.
HAND

because I can't upload the script (no permissions) I paste it below:
8<--
#!/bin/sh
#
# Copyright © 2004 By C-guys, Inc.
# 1-6-3, Roppongi, Minato-ku, Tokyo Japan
#
# This software is protected by the law and the agreement concerning
# a Japanese country copyright method, an international agreement,
# and other intellectual property right and may be used and copied
# only in accordance with the terms of such license and with the inclusion
# of the above copyright notice.
#
# This software or any other copies thereof may not be provided
# or otherwise made available to any other person. No title to
# and ownership of the software is hereby transferred.
#
# The information in this software is subject to change without
# notice and should not be construed as a commitment by C-guys, Inc.
#
#****************************************************************************

export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/home/QtPalmtop/bin
DEV=/dev/mmcda1
MNT=/usr/mnt.rom/card
SDCONTROL=/etc/sdcontrol

BUSTYPE=$1
EVENT=$2

INSTALL_DIR=/home/root/Settings/sd-link11b/res

LOGFILE=/tmp/sd
if [ -f $LOGFILE ]; then

cat >> $LOGFILE << EOF
----------

this is $0

BUSTYPE = $BUSTYPE
EVENT = $EVENT

current environment:
EOF
env >> $LOGFILE

fi

if [ "x"$BUSTYPE != "xsdcard" ]; then exit 0; fi

if [ "x"$BUS = "x" ]; then exit 0; fi
if [ "x"$SLOT = "x" ]; then exit 0; fi

case "x"$EVENT in
xattach)
if [ "x"$HAVE_SDMEMORY != "x" ]; then
if [ "x"$BUS":"$SLOT = "x0:0" ]; then

#do_umount
#umount $MNT
#mount -o uid=500,gid=500 $DEV $MNT

# for zaurus SL-Cxxx series
$SDCONTROL compeject
$SDCONTROL insert
fi
fi

if [ "x"$HAVE_SDIO != "x" ]; then
if [ "y"$VENDOR":"$PRODUCT = "y0x0092:0x0001" ]; then
echo "0" > $INSTALL_DIR/qcop.lock
echo "1" > $INSTALL_DIR/status.inf
# qcop QPE/Network 'up()'
fi
fi

;;

xdetach)
if [ "x"$HAVE_SDMEMORY != "x" ]; then
if [ "x"$BUS":"$SLOT = "x0:0" ]; then

#do_umount
#umount $MNT

# for zaurus SL-Cxxx series
$SDCONTROL compeject
fi
fi

if [ "x"$HAVE_SDIO != "x" ]; then
if [ "y"$VENDOR":"$PRODUCT = "y0x0092:0x0001" ]; then
echo "-1" > $INSTALL_DIR/qcop.lock
echo "0" > $INSTALL_DIR/status.inf
# qcop QPE/Network 'down()'
fi
fi

;;

*)
;;
esac

8<--
corecoder
Thanks. This works.
As long as there is only one partition/filesystem its OK.

I did a little more testing.

I have two partitions. A vfat and an ext2. The ext2 is running Pocketworkstation which I mount and start using Icons.

After a suspend the filesystems/mounts are messed up.

Why would the filesystems have to umount on suspend anyway? Does home umount?
stbrock
Could someone tell me how to restart the sd control processes using either the original script from Dr Wowe or bimbo's version? I am running Cacko 1.23 Lite on a C860. When I install the ipk and reboot, I can read a 2GB or 4GB card fine. Once. But suspending or unmounting and removing the card kills the process and after that the sd slot is entirely dead. Inserting a card, trying to mount /dev/mmcda1, and other attempts all fail and don't even generate any error messages in dmesg. If I remove and reinstall the driver ipk, things work again. But only once.

I've tried quite a few commands to reset or restart the sd control processes when this happens, but apparently not the right ones, or at least not in the right order. What's the trick?
rokugo
QUOTE(stbrock @ May 10 2006, 11:48 AM)
Could someone tell me how to restart the sd control processes using either the original script from Dr Wowe or bimbo's version? I am running Cacko 1.23 Lite on a C860. When I install the ipk and reboot, I can read a 2GB or 4GB card fine. Once. But suspending or unmounting and removing the card kills the process and after that the sd slot is entirely dead. Inserting a card, trying to mount /dev/mmcda1, and other attempts all fail and don't even generate any error messages in dmesg. If I remove and reinstall the driver ipk, things work again. But only once.

I've tried quite a few commands to reset or restart the sd control processes when this happens, but apparently not the right ones, or at least not in the right order. What's the trick?
*


I came across the same problem yesterday when reinstalling Cacko on my C860, this is how I managed to get it to work:

1) install the SDIO drivers and reboot.
2) copy bimbo's script onto Notepad (or any plaintext editor on your PC).
Click to view attachment
3)transfer to the Zaurus' usr/sbin directory to replace the original sdiomgr script. Make sure to set the appropriate file permission (easily done with TreeExplorerQT)
4) Open this new script with ZEditor, and check the very first line. It should be:
#!/bin/sh
But chances are there will be a an extra character before the # (on my Japanese C860 its a square box). Somehow Windows had automatically added this character into the script rendering it useless.
So delete this junk character and make sure you save the script as a UTF-8 encoding.
5) Reboot and enjoy 2GB and above SD card support.
zedkatuf2
QUOTE(rokugo @ May 18 2006, 12:48 PM)
I came across the same problem yesterday when reinstalling Cacko on my C860, this is how I managed to get it to work:

1) install the SDIO drivers and reboot.
2) copy bimbo's script onto Notepad (or any plaintext editor on your PC).
Click to view attachment
3)transfer to the Zaurus' usr/sbin directory to replace the original sdiomgr script. Make sure to set the appropriate file permission (easily done with TreeExplorerQT)
4) Open this new script with ZEditor, and check the very first line.  It should be:
#!/bin/sh
But chances are there will be a an extra character before the # (on my Japanese C860 its a square box). Somehow Windows had automatically added this character into the script rendering it useless.
So delete this junk character and make sure you save the script as a UTF-8 encoding.
5) Reboot and enjoy 2GB and above SD card support.
*


Does anyone know if this will work on a collie (5500)?
grog
QUOTE(rokugo @ May 18 2006, 05:48 AM)
1) install the SDIO drivers and reboot.
2) copy bimbo's script onto Notepad (or any plaintext editor on your PC).
Click to view attachment
3)transfer to the Zaurus' usr/sbin directory to replace the original sdiomgr script. Make sure to set the appropriate file permission (easily done with TreeExplorerQT)
4) Open this new script with ZEditor, and check the very first line.  It should be:
#!/bin/sh
But chances are there will be a an extra character before the # (on my Japanese C860 its a square box). Somehow Windows had automatically added this character into the script rendering it useless.
So delete this junk character and make sure you save the script as a UTF-8 encoding.
5) Reboot and enjoy 2GB and above SD card support.
*

It's been a while, but I'm just jumping on this bandwagon (late as usual smile.gif). By following these instructions I'm able to use my Transcend 4gb card in my C860. YAH! BUT I've partitioned it into a 1gb ext2 & a 3gb fat32 & I'm experiencing the suspend problems others have mentioned (in my case the unit locks up & I have to do a hard restart).

I want to be able to install programs & other stuff on the ext2 & have a swap file there to. Has anyone found a fix to this problem? thks
grog
QUOTE(grog @ Jan 30 2007, 08:18 PM)
I want to be able to install programs & other stuff on the ext2 & have a swap file there to. Has anyone found a fix to this problem? thks
*
Well I managed to get this setup stable as far as I can tell so far. For the archives in case anyone's interested, here's what I did.

First, put my hacked version of Cacko's /etc/sdcontrol script (see attachment). This will mount/umount all sd partitions listed in the /etc/fstab, so you need to add your card partitions there. Here's mine for an example:

CODE
zaurus:<pts/0>$ grep mmcd /etc/fstab
/dev/mmcda1     /mnt/card       auto    noauto,owner,umask=000  0  0
/dev/mmcda2     /mnt/card1      auto    noauto,owner,umask=000  0  0

You of course need to create the directories the partitions are to be mounted on (the second on /mnt/card1 in my example).

Now your Z will automatically mount all of your partitions when the card is inserted.

To overcome the suspend problem, I found I needed to eject the card before I suspended. When the Z resumes It'll automatically re-insert it & all's well. So I created a new apm script & symlinked it so it'll be run when the Z suspends.

CODE
# ll /etc/apm.d/sd
-rwxr-xr-x    1 root     root           33 Feb  1 08:49 /etc/apm.d/sd
# cat /etc/apm.d/sd
#!/bin/sh
/etc/sdcontrol eject
# ln -s /etc/apm.d/sd /etc/apm.d/suspend.d/S99sd

Note that all of this has to be done as root.

And that's it. Like I said, seems to work for me. I'll report back if I have any problems. HTH
shelandy
Hi!

I am using sharp-rom on my C860.
Like "grog", I wish to use ext2 for my SD. However, I will use only ext2 on the whole 2G PQI SD card. I check my /etc, there is no apm.d. since "grog" mentioned that he got the problem when he used "bimbo"'s /usr/sbin/sdiomgr with one FAT partition and one ext2 partition, I guessed it is OK for me to use "bimbo"'s script with ext2 only.
I used
mke2fs -b 1024 /dev/mmcda1
to format the SD. It won't automount although it should.
I tried manually mount /mnt/card
It complained that there is some issue with the mount parameter.
So I guess that's becuase /etc/fstab
so I changed the entry to
/dev/mmcda1 /mnt/card ext2 defaults 0 0

Now I can manually mount, However
It turn out to be, I can not see the SD mounted after I turn off the power and turn on again.

So I guess bimbo's script has some issue with ext2 partition, not with two partitions.
Has any one a better solution to let ext2 partition work without sufferring from lost in suspend?

Another question: how can people who using sharp rom adapt grog's appraoch, whcih seems to work fine with ext2.


thanks
grog
QUOTE(shelandy @ Feb 8 2007, 01:53 AM)
Another question:  how can people who using sharp rom adapt grog's appraoch, whcih seems to work fine with ext2.
*
Does the card show up the first time after you've restarted/rebooted? Try to manually eject the card & then suspend. Is the card automatically remounted when you resume?

Depending on your results of the above tests, the fact that you can't set the apm scripts as I've lined out is probably the crux of the matter. The card needs to be ejected before you suspend. I would've thought that since Cacko is a Sharp-based ROM it would've used the same apm scheme. Obviously not.

If I can make some time (a very short commodity these days) I can flash back to Sharp & see if I can figure it out. In the mean time, if somebody else can shed some light for shelandy, that'd be great.
Meanie
QUOTE(grog @ Feb 9 2007, 02:08 AM)
QUOTE(shelandy @ Feb 8 2007, 01:53 AM)
Another question:  how can people who using sharp rom adapt grog's appraoch, whcih seems to work fine with ext2.
*
Does the card show up the first time after you've restarted/rebooted? Try to manually eject the card & then suspend. Is the card automatically remounted when you resume?

Depending on your results of the above tests, the fact that you can't set the apm scripts as I've lined out is probably the crux of the matter. The card needs to be ejected before you suspend. I would've thought that since Cacko is a Sharp-based ROM it would've used the same apm scheme. Obviously not.

If I can make some time (a very short commodity these days) I can flash back to Sharp & see if I can figure it out. In the mean time, if somebody else can shed some light for shelandy, that'd be great.
*



one of the difference between Sharp and Cacko is that Cacko has apm.d scripts whereas Sharp does not. check the scripts inside /etc/sdcard, they control how the card is inserted/ejected/mounted/unmounted
grog
QUOTE(Meanie @ Feb 8 2007, 05:44 PM)
one of the difference between Sharp and Cacko is that Cacko has apm.d scripts whereas Sharp does not. check the scripts inside /etc/sdcard, they control how the card is inserted/ejected/mounted/unmounted
*

Does the Sharp ROM use /etc/sdcontrol at all, or is it all under /etc/sdcard?
shelandy
QUOTE(Meanie @ Feb 8 2007, 06:44 PM)
one of the difference between Sharp and Cacko is that Cacko has apm.d scripts whereas Sharp does not. check the scripts inside /etc/sdcard, they control how the card is inserted/ejected/mounted/unmounted
*


there is no /etc/sdcard in my sharp rom

(ps. I have updated officeal 1.40 ROm and installed special kernel 1.4i http://tetsu.homelinux.org/zaurus/kernel/v...-v14i-C860.bin)
shelandy
QUOTE(grog @ Feb 8 2007, 11:08 AM)
QUOTE(shelandy @ Feb 8 2007, 01:53 AM)
Another question:  how can people who using sharp rom adapt grog's appraoch, whcih seems to work fine with ext2.
*
Does the card show up the first time after you've restarted/rebooted? Try to manually eject the card & then suspend. Is the card automatically remounted when you resume?

Depending on your results of the above tests, the fact that you can't set the apm scripts as I've lined out is probably the crux of the matter. The card needs to be ejected before you suspend. I would've thought that since Cacko is a Sharp-based ROM it would've used the same apm scheme. Obviously not.

If I can make some time (a very short commodity these days) I can flash back to Sharp & see if I can figure it out. In the mean time, if somebody else can shed some light for shelandy, that'd be great.
*



thanks for your answer. I have some thing to share with everyone:

the SD did not show up after the 1st time reboot. However, after I manually
# mount /mnt/card
it came up.
The problem was: I though it worked, so I started to install lots of packages into SD.
then pressed the on/off button to turn it off.
The next time I turned it on, the SD won't be mounted automatically, and I had no way to manually mount it because I installed the terminal package under SD blink.gif
So I installed another different terminal in the internal flash, manually mount the SD.
then every thing is back.

However, since that, no matter how I turn on/off my Z, the SD is still mounted. This is counter-intuitive. I do not know why.

however, I still keep the terminal program installed in the internal flash, in case the SD can not be mounted automatically again during power/off.

I can not answer this, because it works for me in different way.
QUOTE
Try to manually eject the card & then suspend. Is the card automatically remounted when you resume?
grog
QUOTE(shelandy @ Feb 9 2007, 07:43 AM)
However, since that, no matter how I turn on/off my Z, the SD is still mounted.  This is counter-intuitive.  I do not know why.
Strange, but good news, I guess dry.gif

QUOTE
however, I still keep the terminal program installed in the internal flash, in case the SD can not be mounted automatically again during power/off.

I can not answer this, because it works for me in different way.
QUOTE(grog)
Try to manually eject the card & then suspend. Is the card automatically remounted when you resume?
*

If you open the terminal, unmount the card (umount /mnt/card), suspend then resume, is the card mounted or do you have to manually remount it?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.