OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Alfinfrance on March 06, 2007, 04:11:05 pm

Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance 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?
Title: Cf Card / Microdrive Switched...
Post by: Capn_Fish on March 06, 2007, 04:12:57 pm
It's a bug.  
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance on March 06, 2007, 04:21:45 pm
Ok.

And no way to correct it?
Title: Cf Card / Microdrive Switched...
Post by: Capn_Fish 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.
Title: Cf Card / Microdrive Switched...
Post by: speculatrix on March 06, 2007, 05:20:03 pm
tried rebooting with the card not inserted?
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance 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 ).
Title: Cf Card / Microdrive Switched...
Post by: Capn_Fish 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.
Title: Cf Card / Microdrive Switched...
Post by: speculatrix 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!
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance 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).
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance 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 ).
Title: Cf Card / Microdrive Switched...
Post by: Meanie 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...
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance 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...
Title: Cf Card / Microdrive Switched...
Post by: radiochickenwax 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?
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance 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.
Title: Cf Card / Microdrive Switched...
Post by: radiochickenwax 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.
Title: Cf Card / Microdrive Switched...
Post by: Meanie on March 06, 2007, 06:59:30 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]

recompile the kernel with those values in the correct order
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance on March 07, 2007, 01:53:37 pm
Not sure it will work anyway... And it's a long way. Don't forget that even if I flash back to Sharp Rom and after go back to beta4 or r121 the problem is still there...

Is there a part of the memory which isn't reset when installing U-boot?

If so, how could I reset it? I expect not to erase base datas of my zaurus...

I tried all reset options in the D+M menu and haven't found anything making it work after...
Title: Cf Card / Microdrive Switched...
Post by: desertrat on March 08, 2007, 10:08:37 am
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?
This is for beta3 and older (not sure whether it any different for beta4 etc) -> when you boot with a CF inserted then CF becomes device 0 and microdrive is device 1.

a) do you observe any difference in the device numbers when you boot with and without CF?

b) what does "fdisk -l" show when you boot with and without CF?

c) are you able to mount the CF manually?
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance on March 08, 2007, 01:15:01 pm
For pdaxrom beta4 and r121

a ) no. That's why I tried to reflash with and without CF Card

b )

/dev/hda1   1  20       10048+    83  Linux
/dev/hda2  21  40      10080      83  Linux
/dev/hda3  41  7936  3979584     c  W95 FAT32 (LBA)

and, with a CF inserted at boot, just add :

/dev/hdc1  1   992   49936+   6   FAT16

pccardctl status (without CF inserted)

Socket 0:
 3.3V 16-bit PC-Card
 Subdevice 0 (function 0) bound to driver "ide-cs"
Socket 1:
 no card

c ) I can mount the CF Card manually

For beta3

b )

/dev/hda1   1  20       10048+    83  Linux
/dev/hda2  21  40      10080      83  Linux
/dev/hda3  41  7936  3979584     c  W95 FAT32 (LBA)

and, with a CF inserted at boot:

/dev/hdc1   1  20       10048+    83  Linux
/dev/hdc2  21  40      10080      83  Linux
/dev/hdc3  41  7936  3979584     c  W95 FAT32 (LBA)

/dev/hda1   1   992    499936+    6  FAT16

cardctl status (without CF inserted)

Socket 0:
 no card
Socket 1:
 3.3V 16-bit PC-Card
 function 0: [ready], [bat dead], [bat low]

For Sharp Rom :


So, as I thought, there is a problem between cardctl and pccardctl. Even if microdrive is detected as hda also in beta3 when I boot without CF...

Sharp Rom : CF inserted or not :

b )

/dev/hda1   1  20       10048+    83  Linux
/dev/hda2  21  40      10080      83  Linux
/dev/hda3  41  7936  3979584     c  W95 FAT32 (LBA)

cardctl status (without CF inserted)

Socket 0:
 no card
Socket 1:
 3.3V 16-bit PC-Card
 function 0: [ready], [bat dead], [bat low]
Title: Cf Card / Microdrive Switched...
Post by: desertrat on March 09, 2007, 07:17:35 am
Quote
So, as I thought, there is a problem between cardctl and pccardctl. Even if microdrive is detected as hda also in beta3 when I boot without CF...
NB I haven't used anything later beta3, is pccardctl the equivalent of cardctl? If so, it is not directly responsible for mounting your partitions. I think the only conclusion that can be drawn is what Capn_Fish pointed out right at the beginning, ie the "Card utility" is broken - but you knew that already didn't you   Doesn't any other beta4 (or later) users have this problem?
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance on March 09, 2007, 07:45:57 am
Ok, but what I can't understand is why this happened ONLY if you try to flash beta4 or r121 with a CF card ( I did this at the very first time beta4 was downloadable and before this error was described on pdaxrom web site ).

And where are these data written, because I thought that if you came back to original Sharp Rom, problem will be solved.

Is there any other data than NAND you can save/restore in the SL-C3100? ( I saw a HDD Backup / Restore tool in the D+M Menu for example ).

If so, could anyone place here a save from his own data to test ( and how to restore it ).

Another thing : has anyone a sharp rom backup ( original, not the trisoft one ) just to test if it can solve something?

And last : is there anywhere a translation of the buttons of the emergency boot from Sharp? ( I can't read japanese, only french english and german  )

If anyone need more information about this issue, I'm ready to post any other information you need and to do any test also.

I think I've got a solution, but I'm not quite equiped yet : flash the Sharp Rom without the Microdrive, then flash to r121 and only after all that done, put back the Microdrive ( I need to buy some very small screwdriver to open my Zaurus ). Will send the results here
Title: Cf Card / Microdrive Switched...
Post by: Capn_Fish on March 09, 2007, 07:56:42 am
Tyrannozaurus has a translatipn of the buttons:

http://www.tyrannozaurus.com/?q=cacko (http://www.tyrannozaurus.com/?q=cacko)
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance on March 09, 2007, 08:08:55 am
Quote
Tyrannozaurus has a translatipn of the buttons:

http://www.tyrannozaurus.com/?q=cacko (http://www.tyrannozaurus.com/?q=cacko)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155831\"][{POST_SNAPBACK}][/a][/div]

Thanks.

But it's not a full translation of the menu. I saw for example that some "things" could be solve by the third item of the menu ( harddrive problems for example ) on another part of this forum ( a story of harddrive locked on boot if I remember well ).

Does anyone here speaks japanese?
Title: Cf Card / Microdrive Switched...
Post by: Capn_Fish on March 09, 2007, 02:21:25 pm
I'm fairly sure Meanie does.
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance on March 11, 2007, 09:52:13 am
For those who will be interestede, I found original Sharp Rom Backups here :

http://downloads.conics.net/pda/zaurus-sl-...iginal-backups/ (http://downloads.conics.net/pda/zaurus-sl-c700/service-menus/original-backups/)
Title: Cf Card / Microdrive Switched...
Post by: Antikx on March 11, 2007, 07:30:05 pm
Thanks Conics. You rock!
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance on March 26, 2007, 04:50:53 pm
Hum, tried to start the Zaurus without Microdrive and...

Battery light blinking...

Ok, so I reassembled it...

Battery light still blinking ((((((((((((((

No way to make it start again.

Anyone have a clue of what's going on?
Title: Cf Card / Microdrive Switched...
Post by: speculatrix on March 26, 2007, 06:46:19 pm
Quote
Hum, tried to start the Zaurus without Microdrive and...

Battery light blinking...

Ok, so I reassembled it...

Battery light still blinking ((((((((((((((

No way to make it start again.

Anyone have a clue of what's going on?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157230\"][{POST_SNAPBACK}][/a][/div]

the startup scripts specifically look for the hdd, search the forum for "microdrive partition" and you'll find out where the scripts live and how to bypass.

if you're running cacko or OZ, simply install the SL-C1000 variants which don't expect to find a microdrive.
Title: Cf Card / Microdrive Switched...
Post by: Alfinfrance on March 27, 2007, 10:26:39 am
Quote
Quote
Hum, tried to start the Zaurus without Microdrive and...

Battery light blinking...

Ok, so I reassembled it...

Battery light still blinking ((((((((((((((

No way to make it start again.

Anyone have a clue of what's going on?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157230\"][{POST_SNAPBACK}][/a][/div]

the startup scripts specifically look for the hdd, search the forum for "microdrive partition" and you'll find out where the scripts live and how to bypass.

if you're running cacko or OZ, simply install the SL-C1000 variants which don't expect to find a microdrive.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157250\"][{POST_SNAPBACK}][/a][/div]

I put back the microdrive, and my Zaurus is still in "Blinking Light" Mode. As it couldn't find the battery... Very strange, no?
Title: Cf Card / Microdrive Switched...
Post by: Meanie on March 28, 2007, 03:17:41 am
Quote
Quote
Quote
Hum, tried to start the Zaurus without Microdrive and...

Battery light blinking...

Ok, so I reassembled it...

Battery light still blinking ((((((((((((((

No way to make it start again.

Anyone have a clue of what's going on?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157230\"][{POST_SNAPBACK}][/a][/div]

the startup scripts specifically look for the hdd, search the forum for "microdrive partition" and you'll find out where the scripts live and how to bypass.

if you're running cacko or OZ, simply install the SL-C1000 variants which don't expect to find a microdrive.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157250\"][{POST_SNAPBACK}][/a][/div]

I put back the microdrive, and my Zaurus is still in "Blinking Light" Mode. As it couldn't find the battery... Very strange, no?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157289\"][{POST_SNAPBACK}][/a][/div]

comment out the code in rc.rofilesys which tries to mount the partitions and make the light blink when it fails to...