![]() |
USB Mass Storage Mode not working anymore (no select popup)
Hello everyone!
I have browsed the net and this board for the last two evenings with no success. I have owned and played with the N900 for more than a year now. My N900 is not able to connect via USB in mass storage mode to either linux nor WinXP PC. When connecting the USB cable (tried 2 different) the same action as when charging on a wall charger happens, so no popup to choose the mass storage mode or PC suite. I can access the internal memory as well as the mmc1 from FileBox. I have recently installed CSSU3.1stable as well as the ke-recv from the testing for enabling the USB host mode (http://talk.maemo.org/showthread.php?t=85658). I am not completely sure if that was the exact moment when the problem begun. I noticed there was a lot of discussion about ke-recv in April in connection with the accessability of the internal memory. for that reason I tried a bit and installed different Versions of ke-recv 3.14 and 3.19-15.2 as the last. Nothing helped, but as far as I understood the problem was with access from the device itself. One could argue the USB port is physically broken, but when connecting to a Windows PC, two removable devices appear, but empty like an empty sd card slot. In linux under /dev sdb and sdc appear when connecting, but are not mounted. When running cat /proc/driver/musb_hdrc it says "OTG state: b_peripheral; active". Wen USB is disconnected "OTG state: b_idle; inactive". dmesg says after connecting USB cable: [20556.997009] twl4030_usb twl4030_usb: HW_CONDITIONS 0xd0/208; link 2 [20557.777832] musb_hdrc periph: enabled ep1in for bulk IN, maxpacket 512 [20557.777862] musb_hdrc periph: enabled ep1out for bulk OUT, maxpacket 512 [20557.777923] g_file_storage gadget: high speed config #1 So it does not seem completely broken. I would rather not like to reflash the N900 since the re-setup process would be tedious. I tried also some scripts under /usr/sbin such as osso-usb-mass-storage-enable.sh, no help. It would be very kind if someone with a better knowledge of the N900 could help out. I am not a professional in linux but have medium knowledge, so I can attach logfiles etc if it is helpful for further diagnosis. Thank you, Enrico |
Re: USB Mass Storage Mode not working anymore (no select popup)
Hello everybody,
I updated the CSSU to 4.1T, no success. I remember doing "passwd user" a couple of weeks ago to be able to login over ssh as user. Could this be part of the problem? It seems to me, the memory cannot be unmounted on the device upon USB connection, since mount | grep MyDocs delivers "/dev/mmcblk0p1 on /home/user/MyDocs type vfat (rw,noauto,nodev,exec,nosuid,noatime,nodiratime,ut f8,uid=29999,shortname=mixed,dmask=000,fmask=0000, rodir)", while connected via USB. But "lsof +d /home/user/MyDocs/" delivers nothing. The notebooks dmesg says upon connect: [ 5787.588060] usb 1-1: new high speed USB device using ehci_hcd and address 10 [ 5787.722565] usb 1-1: configuration #1 chosen from 2 choices [ 5787.725774] scsi12 : SCSI emulation for USB Mass Storage devices [ 5787.734386] usb-storage: device found at 10 [ 5787.734390] usb-storage: waiting for device to settle before scanning [ 5792.732557] usb-storage: device scan complete [ 5792.733340] scsi 12:0:0:0: Direct-Access Nokia N900 031 PQ: 0 ANSI: 2 [ 5792.733870] scsi 12:0:0:1: Direct-Access Nokia N900 031 PQ: 0 ANSI: 2 [ 5792.734987] sd 12:0:0:0: Attached scsi generic sg1 type 0 [ 5792.735176] sd 12:0:0:1: Attached scsi generic sg2 type 0 [ 5792.754855] sd 12:0:0:0: [sdb] Attached SCSI removable disk [ 5792.765222] sd 12:0:0:1: [sdc] Attached SCSI removable disk My question is, how is the unmounting of the internal memory (as well as mmc1) upon USB connection handled? Any ideas what would be diagnostic steps to approach the problem? Your help is very much apprecciated. Thank you, Enrico |
Re: USB Mass Storage Mode not working anymore (no select popup)
Hi,
does nobody have any hint whatsoever? How is the USB-connect-popup triggered and where can it be triggered manually? I assume it still exists in the CSSU(t). Enrico |
Re: USB Mass Storage Mode not working anymore (no select popup)
is your usb port is working fine ? Is your usb cable is lose ?
|
Re: USB Mass Storage Mode not working anymore (no select popup)
EnricoL, hate to say that, but I would suggest doing fuil backupmenu backup, and then, clean reflash. If it works after reflash, You know that it's something in Your software. If it still fails, You can be sure that something is screwed hardware-wise.
In case it's hardware problem, You can always restore backupmenu backup, saving You from (needlessly) reinstalling everything. Of course, it it turns out to be software issue, it's worth installing everything from scratch (one program at time), as it's extremely hard to say what could result in such strange problem. /Estel |
Re: USB Mass Storage Mode not working anymore (no select popup)
I've had lots of bad luck with USB cables so I would double check both of them
|
Re: USB Mass Storage Mode not working anymore (no select popup)
@independent:The cables are out of question, work on Android.
@Estel: Reinstalling is my very last option since everything else works fine. I was hoping to get to know the device a bit better by trying to find this fault. I even can mount a USB flash drive using USB mode 1.0-2, so I do not think the connector is faulty either. Could someone shed some light on how the flow of action upon USB connect is? 1.Somehow it is sensed if is a charger or data cable.-->This is not the problem with my device, since in /proc/driver/musb_hdrc both cahrger and datacable are recognized as such. 2.The popup is triggered, but not in my device. Can it be invoked manually? 3. The Popup button starts something, depending on selection. Are these by any chance the scripts under /usr/sbin such as osso-usb-mass-storage-enable.sh? Can this whole process be gone through manually? So if anybody knows some part of the puzzle, please dont hesitate to add it. Thank you, Enrico |
Re: USB Mass Storage Mode not working anymore (no select popup)
osso-usb-mass-storage-enable.sh is exactly the script You need to use, for "exporting" things into mass storage, manually. Check my signature and TrueCrypt thread - there is instruction, how to use this script (with given parameter) to export other partition into mass storage, instead of MyDocs (in case of mentioned instructions, it was about exporting - transparently for desktop - encrypted partition from n900 to desktop, where n900 does all decrypting work, creating de facto encrypted pendrive funcionality - but, it shouldn't matter for Your case).
I absolutely understand Your will to learn and fix it Yourself - personally, I never did reflash, fighting with (even most irritating and troublesome) problems manually, always managing to solve them, somehow (wouldn't be possible without help of wonderful people, here). I've suggested backup and reflash, only because it's extremely hard to tell why Your device is in such state. If You can usb hostmode, it's definitely not hardware problem, so something - program or manual tweak - pushed device into such random state. Usually, owner know - even slightly - what might be responsible, so it's easier to pin out the problem. /Estel |
Re: USB Mass Storage Mode not working anymore (no select popup)
Ok, it's getting exciting.
@Estel: Thanks for your post. Very likely the cause for this was something I installed recently and as it is related to the same hardware, USB mode 1.0-2 comes to my mind, but I am not 100% sure. /usr/sbin/osso-usb-mass-storage-enable.sh /dev/mmcblk1p1 works, the SD card pops up on the computer. Same for the internal memory. Means I was using the script in a wrong way earlier without handing over the dev. So it is very likely, that only the popup which starts the exporting process is faulty or just is not triggered. So #3 from my last post is solved. The N900 can be used as mass storage, when triggered manually. Any hints what makes the PopUp fly to solve #1 & #2? Thanks a lot, Enrico |
Re: USB Mass Storage Mode not working anymore (no select popup)
No idea, but IIRC, osso-usb-mass-storage-enable.sh provided without arguments, should just export MyDocs and SD card (as mass storage), i.e. act like pressing of "mass storage" button.
In your case, it require You to explicitly define what to export, so it may be more than "just no popup" problem. What it may be, I have no clue. /Estel |
Re: USB Mass Storage Mode not working anymore (no select popup)
Hello,
to conclude the issue here is what I have done: -created two scripts containing usr/sbin/osso-usb-mass-storage-enable.sh /dev/mmcblk1p1 AND usr/sbin/osso-usb-mass-storage-disable.sh -created two desktop links with nice icons :) upon connecting USB cable I press one icon, for removal the other. So long, Enrico |
Re: USB Mass Storage Mode not working anymore (no select popup)
Hello I am having d same problem Enricol had but quite unlike him I am a newbie with N900, my N900 is no longer able to connect via USB in mass storage and PC Suite mode since yesterday. When connecting the USB cable I only noticed the charging action, no popup to choose the mass storage mode or PC suite. I have also tried different usb cable no solution. Please is there anything i should do to solve this crucial problem?
|
Re: USB Mass Storage Mode not working anymore (no select popup)
Quote:
Enricol's problem was due to the software he'd installed on his machine; would you happen to know the version of the OS you are using? In particular, have you replaced the kernel or performed any other upgrades that may mess with the operating system? |
Re: USB Mass Storage Mode not working anymore (no select popup)
any fix on this ?,i'm facing this problem also ,the reflash can't be done now , usb it's working in backupmenu , it's a software related problem , not hardware , any hints?
|
Re: USB Mass Storage Mode not working anymore (no select popup)
Try calling (as root) osso-usb-mass-storage-disable.sh, and/or unloading all approriate modules (and loading them again - things like g_file etc).
As a temporary workaround you may try using this (while connected by usb, physically): Code:
#!/bin/sh Also, warning about above script - written by hand at nearly 5 AM o'clock, so watch for typos, and if something won't work, you *may* actually need to use brain and read error messages + act accordingly to tweak something in above commands. /Estel |
Re: USB Mass Storage Mode not working anymore (no select popup)
Quote:
Could You please post your .desktop files, that you created ? Thanks |
All times are GMT. The time now is 13:22. |
vBulletin® Version 3.8.8