Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bimbo

Pages: [1]
1
General Discussion / I Mounted A 2 Gig Sd Card!
« on: February 23, 2006, 06:30:00 pm »
Quote
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114998\"][{POST_SNAPBACK}][/a][/div]

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<--

2
General Discussion / I Mounted A 2 Gig Sd Card!
« on: February 16, 2006, 04:33:34 pm »
Quote
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114998\"][{POST_SNAPBACK}][/a][/div]

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)

3
General Discussion / I Mounted A 2 Gig Sd Card!
« on: February 15, 2006, 06:03:14 pm »
Quote
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
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

4
General Discussion / I Mounted A 2 Gig Sd Card!
« on: February 11, 2006, 03:43:26 pm »
Quote
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

Pages: [1]