Author Topic: Cf Card / Microdrive Switched...  (Read 6931 times)

Alfinfrance

  • Newbie
  • *
  • Posts: 18
    • View Profile
Cf Card / Microdrive Switched...
« on: March 06, 2007, 04:11:05 pm »
Hi,

I've got this strange problem on my SL-C3100 :

In PdaXrom v 1.1.0beta4 and 1.1.0r121, when I click on the Card utility, I see my Hitachi Microdrive and the SD Card. Can't see the CF Card.

I read that it was due to some error in flashing with a CF card inserted.

So I tried to flash back to Trisoft Sharp Rom.

In this rom, no problem, SD and CF are detected well.

I tried PdaXrom 1.1.0beta3 : also no problem.

But each time I go back to a beta4 or r121, the problem occures ( and I only flash with an SD Card ).

Could someone please help?

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Cf Card / Microdrive Switched...
« Reply #1 on: March 06, 2007, 04:12:57 pm »
It's a bug.  
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Alfinfrance

  • Newbie
  • *
  • Posts: 18
    • View Profile
Cf Card / Microdrive Switched...
« Reply #2 on: March 06, 2007, 04:21:45 pm »
Ok.

And no way to correct it?

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Cf Card / Microdrive Switched...
« Reply #3 on: March 06, 2007, 04:49:30 pm »
If it's unmounting /dev/hda, you may be able to do a pccardclt eject 1 and a pccardctl eject 0, then reinsert the CF card (pccardctl insert 0/1, whichever is CF. You can check with pccardctl ident 0/1 to see what either card is) first (so it becomes /dev/hdax), then the microdrive.

This is completely untested, but let me know how it goes.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Cf Card / Microdrive Switched...
« Reply #4 on: March 06, 2007, 05:20:03 pm »
tried rebooting with the card not inserted?
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Alfinfrance

  • Newbie
  • *
  • Posts: 18
    • View Profile
Cf Card / Microdrive Switched...
« Reply #5 on: March 06, 2007, 05:32:20 pm »
speculatrix : of course I did all the next flash without any CF Card inserted. And, to test, I also tried with a CF Card inserted, that doesn't change anything.

Quote
If it's unmounting /dev/hda, you may be able to do a pccardclt eject 1 and a pccardctl eject 0, then reinsert the CF card (pccardctl insert 0/1, whichever is CF. You can check with pccardctl ident 0/1 to see what either card is) first (so it becomes /dev/hdax), then the microdrive.

This is completely untested, but let me know how it goes.

when I do pccardctl eject 0, Microdrive disappeare. Then, I do pccardctl insert 1 but CF is still not mounting in the control applet. And, when I do pccardctl insert 0, Microdrive is back in the applet.

Any way to switch 0 and 1 when both ejected?

Just forgot to say, I have this problem for months now ( still 1.1.0beta4 ) and I went back to 1.10beta3, but I'd like to have a 2.6 kernel fine working ( graphics are so much faster ).
« Last Edit: March 06, 2007, 05:39:23 pm by Alfinfrance »

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Cf Card / Microdrive Switched...
« Reply #6 on: March 06, 2007, 05:39:24 pm »
I was hoping that the applet would be unmounting a device, and by switching the order in which you "inserted" the drives, you would also switch their device and so the other would be unmounted by the applet.

As a workaround, you could make a script to unmount the CF card and make a .desktop file for the script. From there you could put it in the system tray and have basically the same thing.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Cf Card / Microdrive Switched...
« Reply #7 on: March 06, 2007, 05:47:31 pm »
if this only happens with the new OS installed, try changing the order of loading kernel modules?

can either mangle by hand the modules config files, or manually - unmount the file systems manually (check that it works), kill the card manager process, lsmod to find the list of kernel modules, rmmod the appropriate kernel modules, then modprobe the modules in a different order before starting card manager and "cardctl insert" to load the cards!
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Alfinfrance

  • Newbie
  • *
  • Posts: 18
    • View Profile
Cf Card / Microdrive Switched...
« Reply #8 on: March 06, 2007, 05:49:42 pm »
So, I see where the problem comes from :

My Microdrive is /dev/hda and /dev/hda1 is mounted in /mnt/cf.

I tried to change it in fstab but it doesn't change anything ( I was sure of it before testing, but I give a try to any solution right now ).

Perhaps is there something to change in init files ( I clearly see the Microdrive is created as hda).

Alfinfrance

  • Newbie
  • *
  • Posts: 18
    • View Profile
Cf Card / Microdrive Switched...
« Reply #9 on: March 06, 2007, 05:55:32 pm »
Quote
if this only happens with the new OS installed, try changing the order of loading kernel modules?

can either mangle by hand the modules config files, or manually - unmount the file systems manually (check that it works), kill the card manager process, lsmod to find the list of kernel modules, rmmod the appropriate kernel modules, then modprobe the modules in a different order before starting card manager and "cardctl insert" to load the cards!

Ok, but... where is the module that manage my drive? I did an lsmod and :

Code: [Select]
mousedev
rfcomm
l2cap
bluetooth
joydev
ipv6
lots of snd
pxaficp_ir
irda

Nothing seems to be a module for microdrive. ( sorry, I'm just some kind of user, perhaps it is stupid and there is another way to fond it ).

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Cf Card / Microdrive Switched...
« Reply #10 on: March 06, 2007, 06:06:51 pm »
Quote
Quote
if this only happens with the new OS installed, try changing the order of loading kernel modules?

can either mangle by hand the modules config files, or manually - unmount the file systems manually (check that it works), kill the card manager process, lsmod to find the list of kernel modules, rmmod the appropriate kernel modules, then modprobe the modules in a different order before starting card manager and "cardctl insert" to load the cards!

Ok, but... where is the module that manage my drive? I did an lsmod and :

Code: [Select]
mousedev
rfcomm
l2cap
bluetooth
joydev
ipv6
lots of snd
pxaficp_ir
irda

Nothing seems to be a module for microdrive. ( sorry, I'm just some kind of user, perhaps it is stupid and there is another way to fond it ).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155598\"][{POST_SNAPBACK}][/a][/div]

it's probably a bug in udev config...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Alfinfrance

  • Newbie
  • *
  • Posts: 18
    • View Profile
Cf Card / Microdrive Switched...
« Reply #11 on: March 06, 2007, 06:23:15 pm »
Could somone please post what is the result when typing ./ide-devfs.sh in /etc/udev/scripts ?

I have :

Code: [Select]
ide/host-1/bus1/target/lun0/part discs/disc-1/part
if it works as I think, lun must be 2, like in a SCSI chain...

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Cf Card / Microdrive Switched...
« Reply #12 on: March 06, 2007, 06:36:59 pm »
Quote
Could somone please post what is the result when typing ./ide-devfs.sh in /etc/udev/scripts ?

I have :

Code: [Select]
ide/host-1/bus1/target/lun0/part discs/disc-1/part
if it works as I think, lun must be 2, like in a SCSI chain...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155603\"][{POST_SNAPBACK}][/a][/div]


Same as you, This gives me:

ide/host-1/bus1/targe/lun0/part discs/disc-1/part





Quote
Hi,

I've got this strange problem on my SL-C3100 :

In PdaXrom v 1.1.0beta4 and 1.1.0r121, when I click on the Card utility, I see my Hitachi Microdrive and the SD Card. Can't see the CF Card.

I read that it was due to some error in flashing with a CF card inserted.

So I tried to flash back to Trisoft Sharp Rom.

In this rom, no problem, SD and CF are detected well.

I tried PdaXrom 1.1.0beta3 : also no problem.

But each time I go back to a beta4 or r121, the problem occures ( and I only flash with an SD Card ).

Could someone please help?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155580\"][{POST_SNAPBACK}][/a][/div]


Quote
So, I see where the problem comes from :

My Microdrive is /dev/hda and /dev/hda1 is mounted in /mnt/cf.

I tried to change it in fstab but it doesn't change anything ( I was sure of it before testing, but I give a try to any solution right now ).

Perhaps is there something to change in init files ( I clearly see the Microdrive is created as hda).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155597\"][{POST_SNAPBACK}][/a][/div]


If I'm understanding this correctly, you're not able to mount the external CF cards at all?  I don't have this problem on the 3200 in pdax >= r121.

If booting with an external CF in the slot, the external CF consistently is recognized for me as /dev/hdc. whereas the internal CF is /dev/hda.

I only have one partition on my external CF card, so fstab just mounts /dev/hdc1 to /mnt/cf.

I have three partitions on the internal CF:

1. swap :  /dev/hda1
2. vfat  :   /dev/hda2  
3. ext2 :  /dev/hda3




which are set as follows in /etc/fstab.  


Code: [Select]
/dev/hdc1   /mnt/cf   auto   noauto,ownder   0  0
/dev/hda2   /data   auto   noauto,ownder   0  0
/dev/hda3   /share   auto   noauto,ownder   0  0




Prior to the altered fstab file, I had the same problems that I think you're speaking of.  But you did try this and it didn't work? Is this the same for all 3100s?  Does "dmesg" show anything upon the insert of the card?
« Last Edit: March 06, 2007, 06:46:03 pm by radiochickenwax »
ZAURII:    sl-6000 : (temporarily) bricked pdaxrom b1   ||   sl-c3200 : yonggun/Debian-EABI
OTHERS:  htc-excalibur,  axim x5,  ipaq 4355, (still trying to find useable linux setups)
thinking about gumstix to replace/augment zaurus

Alfinfrance

  • Newbie
  • *
  • Posts: 18
    • View Profile
Cf Card / Microdrive Switched...
« Reply #13 on: March 06, 2007, 06:42:39 pm »
And when I do a pccardctl, my microdrive is recognized as device 0 and CF as device 1. I think you should have CF as device 0 and microdrive has device 1, don't you?

And I don't have the slightest idea how to switch it.

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Cf Card / Microdrive Switched...
« Reply #14 on: March 06, 2007, 06:50:33 pm »
Quote
And when I do a pccardctl, my microdrive is recognized as device 0 and CF as device 1. I think you should have CF as device 0 and microdrive has device 1, don't you?

And I don't have the slightest idea how to switch it.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155608\"][{POST_SNAPBACK}][/a][/div]


I'm sorry, I don't quite understand the question.  My understanding is that the devices are recognized differently as /dev/hdc  and /dev/hda.  I haven't really used the 'pccardctl'.  

I just use 'dmesg' to tell me when the bus has changed.  Perhaps it's not as elegant, but it's worked for me thus far.
ZAURII:    sl-6000 : (temporarily) bricked pdaxrom b1   ||   sl-c3200 : yonggun/Debian-EABI
OTHERS:  htc-excalibur,  axim x5,  ipaq 4355, (still trying to find useable linux setups)
thinking about gumstix to replace/augment zaurus