OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> Cf Card / Microdrive Switched..., and no way to make them back.
Alfinfrance
post Mar 6 2007, 01:11 PM
Post #1





Group: Members
Posts: 18
Joined: 24-October 05
Member No.: 8,389



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?
Go to the top of the page
 
+Quote Post
Capn_Fish
post Mar 6 2007, 01:12 PM
Post #2





Group: Members
Posts: 2,342
Joined: 30-July 06
Member No.: 10,575



It's a bug. sad.gif
Go to the top of the page
 
+Quote Post
Alfinfrance
post Mar 6 2007, 01:21 PM
Post #3





Group: Members
Posts: 18
Joined: 24-October 05
Member No.: 8,389



Ok.

And no way to correct it?
Go to the top of the page
 
+Quote Post
Capn_Fish
post Mar 6 2007, 01:49 PM
Post #4





Group: Members
Posts: 2,342
Joined: 30-July 06
Member No.: 10,575



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.
Go to the top of the page
 
+Quote Post
speculatrix
post Mar 6 2007, 02:20 PM
Post #5





Group: Admin
Posts: 3,685
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



tried rebooting with the card not inserted?
Go to the top of the page
 
+Quote Post
Alfinfrance
post Mar 6 2007, 02:32 PM
Post #6





Group: Members
Posts: 18
Joined: 24-October 05
Member No.: 8,389



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 ).
Go to the top of the page
 
+Quote Post
Capn_Fish
post Mar 6 2007, 02:39 PM
Post #7





Group: Members
Posts: 2,342
Joined: 30-July 06
Member No.: 10,575



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.
Go to the top of the page
 
+Quote Post
speculatrix
post Mar 6 2007, 02:47 PM
Post #8





Group: Admin
Posts: 3,685
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



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!
Go to the top of the page
 
+Quote Post
Alfinfrance
post Mar 6 2007, 02:49 PM
Post #9





Group: Members
Posts: 18
Joined: 24-October 05
Member No.: 8,389



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).
Go to the top of the page
 
+Quote Post
Alfinfrance
post Mar 6 2007, 02:55 PM
Post #10





Group: Members
Posts: 18
Joined: 24-October 05
Member No.: 8,389



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
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 ).
Go to the top of the page
 
+Quote Post
Meanie
post Mar 6 2007, 03:06 PM
Post #11





Group: Members
Posts: 2,803
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(Alfinfrance @ Mar 7 2007, 08:55 AM)
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
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 ).
*



it's probably a bug in udev config...
Go to the top of the page
 
+Quote Post
Alfinfrance
post Mar 6 2007, 03:23 PM
Post #12





Group: Members
Posts: 18
Joined: 24-October 05
Member No.: 8,389



Could somone please post what is the result when typing ./ide-devfs.sh in /etc/udev/scripts ?

I have :

CODE
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...
Go to the top of the page
 
+Quote Post
radiochickenwax
post Mar 6 2007, 03:36 PM
Post #13





Group: Members
Posts: 158
Joined: 21-November 04
Member No.: 5,548



QUOTE(Alfinfrance @ Mar 6 2007, 11:23 PM)
Could somone please post what is the result when typing ./ide-devfs.sh in /etc/udev/scripts ?

I have :

CODE
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...
*



Same as you, This gives me:

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





QUOTE(Alfinfrance @ Mar 6 2007, 09:11 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?
*



QUOTE(Alfinfrance @ Mar 6 2007, 10:49 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).
*



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
/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?
Go to the top of the page
 
+Quote Post
Alfinfrance
post Mar 6 2007, 03:42 PM
Post #14





Group: Members
Posts: 18
Joined: 24-October 05
Member No.: 8,389



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.
Go to the top of the page
 
+Quote Post
radiochickenwax
post Mar 6 2007, 03:50 PM
Post #15





Group: Members
Posts: 158
Joined: 21-November 04
Member No.: 5,548



QUOTE(Alfinfrance @ Mar 6 2007, 11:42 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.
*



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.
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th April 2019 - 02:25 AM