is that possible? i can't see the kernel panic i'm getting...get a bunch of 'CPU X stopping ... swapper not tainted" errors that flush the screen
if i boot with kernel and no 'root=mmcblk1p2' i do see a 'mmc -110 error' which i've read is a timeout, and it goes to the internal mmc
and i see there are ppl complaining about sd problems on here...
using a 'sandisk pixtor 32gb' (class 10) - don't have a card to test if it's the card
update - cmdline 'maxcpus=1' ftw
'initramfs unpacking failed: junk in compressed archive'
and not mounting like i thought
'mounting /dev/mmcblk1p2 on /newroot failed: no such file or directory'
update again - no sd
edited init to ls /dev...no sd card under there...not sure what the initramfs error is but i'll ignore it..
would still like to know if anyone has had success (maybe w/ a diff card?) booting on SHIELD
Booting a userspace stored from a microSD is possible, yes. However, the kernel itself must be on the internal memory (or sideloaded using fastboot). SHIELD's bootloader does not support booting a kernel directly off a microSD card, unfortunately.
The CPU errors are because Trusted Foundations support is not enabled in your kernel. It is required for booting secondary CPUs. What kernel are you trying to boot? Android or Linux? Which branch?
The CPU errors are because Trusted Foundations support is not enabled in your kernel. It is required for booting secondary CPUs. What kernel are you trying to boot? Android or Linux? Which branch?[/QUOTE said:
yours - https://github.com/linux-shield/kernel
do have a blank 'login screen' for gentoo - however that doesnt work, and i got this for the purpose of the quad-A15 vs my dual chromebook
so i'd hate to chroot compile half the system on my chromebook
I will try to boot to mmcblk0 instead of 1 with the SD inserted.
Click to expand...
Click to collapse
it seems even with the newer 'roth_next' kernel - sd still doesn't seem to show up at boot
going to guess that it's my card...
if anyone can test the steps at https://github.com/linux-shield/kernel/tree/roth_next and edit the https://github.com/linux-shield/bbinitramfs init to 'ls /dev' (if you mount a bogus root it will fail) to see if you can notice any other mmcblk# - that'd tell for sure
going to see if i have a non-sandisk laying around and test if it will show up
What type of SD are you using exactly? (SDHC, XDHC?). For use with upstream kernel I would not go beyond SDHC 32GB.
The steps on my Github page should be correct, I did them myself many times. The initramfs can be a pain in the ass sometimes, I did it for people who want to be able to keep using Android. If this is not your case, and you don't mind borking your user data partition, you can put your root filesystem on /dev/mmcblk0p12 and boot directly to this (root parameter of the kernel). This gives the best performance and is the easiest to set up, but after that Android won't start.
Then if you have a USB network adapter that you can connect to a hub along with your keyboard, you should be able to import stuff easily to your SHIELD's root (without using SD), using just rsync. This should be more comfortable than using a SD card as root, actually.
Anyway, your SD card should at least show up as /dev/mmcblk1 when inserted after boot. If you want to validate it once and for all, try the following:
- boot using my bbfs (not bbinitramfs) filesystem using fastboot (fastboot boot zImage_dtb ramdisk.img.gz). This will get you to a shell without any physical storage mounted, and you will be able to use a USB keyboard.
- insert your SD card and wait ~5 seconds. Check that /dev/mmcblk1 had been created.
- if not, check any kernel error message using dmesg.
By the way, have your problems with CPUs been solved by using tegra_roth_defconfig? Are you able to see all 4 cores now?
All 4 cores was the problem in (not) seeing the init failing to mount root (it flooded 'CPU X stopping' - 4 times)
I believe my sandisk is SDHC (UHS-I <- that's an 'i' )
Looks like the problem is my card - found some 4GB (lower speed i'm guessing) and i do see a mmcblk1 and 0 (1 being my card, 0 being internal) at boot. Also my other sandisk card (16GB) does not show up; it is the same type of card.
Guess i'll have to nuke and backup the android partition =/ or eat the money and buy a different card and hope it works...(16 should be fine for almost everything, but 32 leaves space for compiling some bigger programs, which i really don't need i guess...)
My keyboard doesn't work when i plug it into the usb with a female converter (SHIELD > microUSB cable > female-female < keyboard) think i need a USB OTG cable. Once i get that i can login to gentoo and try to mess around
Yeah, you will need an OTG cable to get your keyboard to work. I suggest connect the OTG cable to a self-powered USB hub, and then plugging your keyboard, mouse, and network adapter there. If you get a powered OTG cable (like this one: http://www.amazon.com/Estoreimport-Micro-Cable-Power-Samsung/dp/B00C4521R4 ) you should even in theory be able to charge your SHIELD while using all these peripherals by plugging the big male port into your hub as well. But that will require another patch to the kernel - I plan to get this done at some point, just not immediatly.
I *think* Android will work just fine with a Linux root filesystem on your (ext4-formatted) data partition, it is just going to put its own directories in there and you will end up with Android directories at the root of your Linux filesystem. If this doesn't bother you, this is also an option. You will have to reformat your data partition to ext4 in any case. SD card support is kind of unreliable in my experience and also slower than MMC, unfortunately.
T_T *sigh*
so got my OTG...keyboard = awesome, rt28xx (alfa) wifi works
but reinserting my SD UHS, just results in the same -110 error about failing to initialize. still the same only mmc0 in /dev
i don't think the tegra SD drivers are working, but i don't do a whole lot of driver programming.
clearly the card works in android. so comparing the 2 drivers may help me understand. but i'm going to bkup and nuke the /data and install there.
so in the end...32GB card is good for backup..not that i 'need' to do that
bl00dy said:
T_T *sigh*
so got my OTG...keyboard = awesome, rt28xx (alfa) wifi works
but reinserting my SD UHS, just results in the same -110 error about failing to initialize. still the same only mmc0 in /dev
i don't think the tegra SD drivers are working, but i don't do a whole lot of driver programming.
clearly the card works in android. so comparing the 2 drivers may help me understand. but i'm going to bkup and nuke the /data and install there.
so in the end...32GB card is good for backup..not that i 'need' to do that
Click to expand...
Click to collapse
Yeah, the upstream SD driver is clearly behind the Android one. That or I did a poor job in the SHIELD's device tree.
Well, actually since you have a USB hub, and USB works at boot already, you can also use a USB mass storage device as your root filesystem. That would certainly work and you won't have to bork your /data partition.
Gnurou said:
Yeah, the upstream SD driver is clearly behind the Android one. That or I did a poor job in the SHIELD's device tree.
Well, actually since you have a USB hub, and USB works at boot already, you can also use a USB mass storage device as your root filesystem. That would certainly work and you won't have to bork your /data partition.
Click to expand...
Click to collapse
not sure what it is, haven't looked.
nope...used and mounted as sda - was a PAIN. anything mounted on USB OTG kept getting errors and saying it couldn't be read
so i eventually found a card i haven't used in forever...cp'd my root.img gentoo to that. cp'd that sd card to mmcblk0p12. finally after hours of moving data around i got a functional booting shield...
but of course like you said, it doesn't charge while running, so i have to keep moving the keyboard/power around. it dies in the middle of compiling and it doesn't like that =/
i'd distcc to make it faster...but i want to make sure it doesn't die. so i'll leave it on power and wait overnight to see what all it can compile
bl00dy said:
not sure what it is, haven't looked.
nope...used and mounted as sda - was a PAIN. anything mounted on USB OTG kept getting errors and saying it couldn't be read
so i eventually found a card i haven't used in forever...cp'd my root.img gentoo to that. cp'd that sd card to mmcblk0p12. finally after hours of moving data around i got a functional booting shield...
but of course like you said, it doesn't charge while running, so i have to keep moving the keyboard/power around. it dies in the middle of compiling and it doesn't like that =/
i'd distcc to make it faster...but i want to make sure it doesn't die. so i'll leave it on power and wait overnight to see what all it can compile
Click to expand...
Click to collapse
It should be possible to charge your SHIELD while using it as a USB host with a Y cable to provide power to the SHIELD and some more kernel hacking. Let me know if you really need it, if so I will try to find the time to implement it (it should work *in theory*, but no guarantee of course).
---------- Post added at 11:15 AM ---------- Previous post was at 11:11 AM ----------
Gnurou said:
It should be possible to charge your SHIELD while using it as a USB host with a Y cable to provide power to the SHIELD and some more kernel hacking. Let me know if you really need it, if so I will try to find the time to implement it (it should work *in theory*, but no guarantee of course).
Click to expand...
Click to collapse
Actually if you have such a Y cable, try to connect it so the SHIELD gets powered - it might be working already since the orange led lights up when you do so. I haven't kept mine long enough in this situation to know if this means the battery is actually charging though. :silly:
hm...
so i'm looking at the dev tree...
Code:
/* SD card */
[email protected] {
status = "okay";
bus-width = <4>;
vmmc-supply = <&vddio_sdmmc3>;
cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
power-gpios = <&gpio TEGRA_GPIO(H, 0) GPIO_ACTIVE_HIGH>;
};
and i found a few things...like http://comments.gmane.org/gmane.linux.kernel.mmc/21564
and https://en.wikipedia.org/wiki/Secure_Digital
which says...
Cards that comply with UHS show Roman numerals 'I' or 'II' next to the SD card logo,[23] and report this capability to the host device. Use of UHS requires that the host device command the card to drop from 3.3-volt to 1.8-volt operation and select the 4-bit transfer mode.
Click to expand...
Click to collapse
i'm guessing that's why my card wont work?
have things compiling right now... but i figure i dont mess with low level kernel that much. may want to make sure it looks right to someone who knows more
update:2-4-14
well looked like everything compiled last night. even though i forgot to plug the power into a socket x-x
did edit the .dts and added some of the lines from that link, didn't really do anything. i figured it was worth a shot...
update : 2-4-14
looking at my android dmesg i saved
Code:
<6>[ 2.598398] mmc1: new ultra high speed SDR50 SDHC card at address aaaa
<6>[ 2.598778] mmcblk mmc1:aaaa: Card claimed for testing.
<6>[ 2.599158] mmcblk1: mmc1:aaaa SU32G 29.7 GiB
<6>[ 2.602559] mmcblk1: p1 p2
.
.
.
<6>[ 5.456799] mmc2: new ultra high speed SDR104 SDIO card at address 0001
<6>[ 5.457720] SDIO Vendor ID:02d0 and SDIO Device ID: 4324
looks like my sandisk and the wireless are UHS speeds...so...that would explain why neither seem to show up except a 'fail to initialize' error
mmc1 shows as UHS in your log, and I'm pretty sure the driver can handle the drop to 1.8V (IIRC).
On other boards this driver is known to work fine (if a little bit slow), so I really don't know what I screwed up here.
I find it surprising that you are having issues with USB mass storage devices. I really don't see what could go wrong, at least if they are powered externally (i.e. behind a self-powered hub). Could you maybe post the relevant logs?
Gnurou said:
Could you maybe post the relevant logs?
Click to expand...
Click to collapse
here's the dmesg i was talking about
http://pastebin.com/r0uv97Up
as far as linux..there's nothing else to show, nothing shows up. it's like the UHS devices don't exist
IIRC, used tegra defconfig and may have added some crypto/fs' or something...but didn't take anything away. edited the cmdline for boot in .dts
edit:
that linux dmesg was before i put things on internal /data. think it's the same though info though
edit:
http://pastebin.com/agdi1CVR
turned on mmc debug...don't know if this helps. basically keeps looping while the UHS SD card is in.
Mmmm yeah. I'm afraid I'm clueless here, at least until the Tegra MMC driver gets an update. Sorry.
no problem, thanks for taking the time.
quick stupid question...what version of GCC are you using?
$ arm-none-linux-gnueabi-gcc --version
arm-none-linux-gnueabi-gcc (Sourcery CodeBench Lite 2013.05-24) 4.7.3
Related
there is a usb hookup.. so the question is raised, in my mind, can you hook up an external hard drive and thus rendering the 13gb a non issue (at least in the area of video/audio files).
anyone had experience with this?
I've been able to use my flash usb thumb drives without any problems, however when I plugged my WD 1Tb storage drive into the GTab, used ES File explorer to open usbdisk folder but did not see any files listed.
If you want to use a external usb hard drive for movies/files it has to be formated fat32 and it will work.
I have connected with 16gb, 32gb, 64gb and a 500gb Western Digital HD (usb powered). All work fine, but best to NOT remove the USB until the G is placed in sleep mode. There appears to be an unmounting issue that also blows up the app index. Apps can vanish and then not appear again until rebooting.
Archos 101 seems to have a similar issue, so maybe Froyo related.
rushless said:
I have connected with 16gb, 32gb, 64gb and a 500gb Western Digital HD (usb powered). All work fine, but best to NOT remove the USB until the G is placed in sleep mode. There appears to be an unmounting issue that also blows up the app index. Apps can vanish and then not appear again until rebooting.
Archos 101 seems to have a similar issue, so maybe Froyo related.
Click to expand...
Click to collapse
Yeah, I try to put mine to sleep before I pull out my thumb drive as well, but sometimes I forget and as soon as I yank it, the tablet reboots. Ugh!
I bought a 500gb Seagate the same night I got my tablet (been needing a portable hd for a while). It wouldn't work on either the tablet or my PS3. Definitely a format thing. As mentioned earlier, it needs to be formatted Fat32.
Just an FYI, formatting a big hd to Fat32 isn't the easiest thing in the world to do. Windows 7 won't do Fat32 and 95 has a size limit (32 gb maybe?). HP has a program you get download from their site. It works on any make, not just their's. If anyone needs it, I still have it on my PC at home.
J_Bone said:
I bought a 500gb Seagate the same night I got my tablet (been needing a portable hd for a while). It wouldn't work on either the tablet or my PS3. Definitely a format thing. As mentioned earlier, it needs to be formatted Fat32.
Just an FYI, formatting a big hd to Fat32 isn't the easiest thing in the world to do. Windows 7 won't do Fat32 and 95 has a size limit (32 gb maybe?). HP has a program you get download from their site. It works on any make, not just their's. If anyone needs it, I still have it on my PC at home.
Click to expand...
Click to collapse
What is the app called? Work with Vista? I tried formatting a 1gb HD to Fat32 via DOS commands, but failed.
As far as USB, main issue for removing while G is asleep (besides random reboots) is that removing while awake seems to be a main reason apps vanish until a reboot.
If I need to format a big, big hard drive to FAT32, I'll boot up a Linux LiveCD (usually Ubuntu or Knoppix) and use gParted to do it.
rushless said:
What is the app called? Work with Vista? I tried formatting a 1gb HD to Fat32 via DOS commands, but failed.
Click to expand...
Click to collapse
This is a different site but I think it is the same program. One of the comments said it didn't work on Vista business but YMMV. Worth a try.
http://hp-usb-disk-storage-format-tool.software.informer.com/
I went and checked my reformatted portable drive a few minutes ago and the tablet doesn't recognize it. It actually says there are no files in that directory. The drive is working on my pc and PS3. I put a small 4 gb stick in the tablet and it read it fine.
Any ideas?
It recognized my Ipod 120GB classic in disk mode. It also appears to be hot swappedable.
papote18 said:
It recognized my Ipod 120GB classic in disk mode. It also appears to be hot swappedable.
Click to expand...
Click to collapse
It is hardware wise. Software wise, depending on ROM, it can crash your tablet. I try to put it to sleep before pulling my flash drive out. If not, sometimes it will go black and I'll see the boot animation.
I went to the link above looking for the Fat32 > 32 gig tool and it was not available.
If you need this tool, Google for "HP SP27608" and there are a few places where you can download it. HP didn't even have it on their FTP server -- don't know why they have quit offering it?!
Rev
Hi,
Sorry for the late post, but I just got around to trying a bunch of my USB flash drives, and Gtab doesn't see any of them ...
The LED on the drives flashes for a second, then goes off.
Do I have to mount it or something?
Jim
same problem here too. Is there a way to mount a USB drive without formatting? I do not want to loose my collection.
I've never had an issue with my Flash drives (VEGAn or TnT Lite). Are the drives formatted to FAT32?
I have had an issue with a 32GB USB flash drive not showing up on the gtab. I plugged it into my win7. Machine, moved files off, formatted fat, put files back on and it worked fine in the tab.
Another note, using vegan, I never sleep the device to get the drive out. Just wait a second and Yank it. Never been an issue for me.
I have noticed that my flash drives don't mount 100% of the time and sometimes require dis/reconnecting. Also I have a 1tb wd my passport. I formatted the whole drive fat32 and the gtab wouldn't see it. I then formatted just a partition of 120gb in fat32.....still no dice. I then reduced the partition to 32gb nd the gtab sees/reads/writes no problem.
I'm wondering how that other Guy got his 500gb to mount....
I'd like to know how folks have been able to get their external hard drives recognized as well. I have tried stock and tnt lite roms. Also tried several different hard disks all formated fat32. Even repartioned disks to 8GB and still no joy. Flash drives I own all work OK. Just can't use hard disk as yet. Even tried new rom image that came out today, no luck. Am I missing or not doing something?
The usb port does not supply enough power for external hard drives. I tried several and they did not show up in dmesg. When I used one with external power, the drive was seen and the partitions, but was not mounted.
The usb port does not supply enough power for external hard drives. I tried several and they did not show up in dmesg. When I used one with external power, the drive was seen and the partitions, but was not mounted.
Click to expand...
Click to collapse
Thanks, but 2 out of 3 drives I tried use ext power. still no work.
Can anyone who has this working please post what drive they are using?
My first thread that I can call my own.
Question for you all. Is there an easier way to transfer files over the the GTAB then having to pop out the SD Card and put it into an adapter and then into the computer and then out of the computer, out of the adapter and back in the GTAB?
Because every time I mount the USB, it only mounts the "internal" SD Card. Is there some sort of way to get it to mount both the internal and external SD Card?
I hate messing with the external SD Card. All the "popping in and out" makes me nervous.
I even tried mounting the internal SD Card and then copying the movies/music/etc.. over to the external SD Card via a file manager... but that is DAMNNNNN slow.
I haven't found a way (yet). Given that neither the zPad or TnT stock builds work, I'm thinking it's not that easy to do. Drives me nuts as well because I really don't want to keep taking the card out over and over and potentially damage it, over time.
That's exactly what I am worried about. LOL
I can just picture not paying 100% attention and snapping the card in half or, breaking the "locking" mechanism that holds the card in place.
roebeet said:
I haven't found a way (yet). Given that neither the zPad or TnT stock builds work, I'm thinking it's not that easy to do. Drives me nuts as well because I really don't want to keep taking the card out over and over and potentially damage it, over time.
Click to expand...
Click to collapse
If you have ADB, can you do adb pull or push?
Jim
My workaround has been to use the LAN tab in ES File Explorer to copy data wirelessly to sdcard2. Probably not the speediest method but it keeps the card in place.
The techie/hacker solution to easy file transfer is to use the Rsync for Android app in the market store. Once you have it setup, (not the easiest thing to do) it works great for moving files automated from your gtab back to an rsync server (my linux box to the rescue). I even have a secondary profile to get it to reverse rsync a specified directory FROM my linux box to my gtab. Presto -- easy file transfer via wifi!!!
Also, another idea might be to use Dropbox?
Jim
P0RT3R said:
My workaround has been to use the LAN tab in ES File Explorer to copy data wirelessly to sdcard2. Probably not the speediest method but it keeps the card in place.
Click to expand...
Click to collapse
I do the same thing. It's mighty slow, but it works.
roebeet - an idea that almost worked - maybe you know why?
roebeet said:
I haven't found a way (yet). Given that neither the zPad or TnT stock builds work, I'm thinking it's not that easy to do. Drives me nuts as well because I really don't want to keep taking the card out over and over and potentially damage it, over time.
Click to expand...
Click to collapse
Hi,
You all got me curious, so I just tried the following:
- Created a dir under /mnt/sdcard, /mnt/sdcard/mymnt
- Get temp root (z4root)
- Start terminal
- su
- mount -t vfat /dev/block/vold/179:17 /mnt/sdcard/mymnt
At this point, I can access the sdcard2 by using /mnt/sdcard/mymnt or simply /sdcard/mymnt.
So, I disabled USB debugging, and I get the popup asking if I want to activate USB transfer (I'm on 3452, on earlier TNT firmware, it use to say enable USB storage).
I click the button to Activate, and then another window pops up, and I click Activate.
Then, the popup just stays there, with the spinning thing. It never enables USB transfer, and, on my PC, I see the removable drive, but when I click on it, it says it's not ready.
I've also tried umounting /mnt/sdcard2, thinking that it might be confused because of the two mounts to /dev/block/vold/179:17, but it still does the same thing.
So:
- It looks like I can mount the /dev/block/vold/179:17 (the external microSD card) under /mnt/sdcard, and
- When I do that mount, I can see the contents of the external microSD card in terminal under /mnt/sdcard/mymnt and under /sdcard/mymnt, but
- For some reason, turning off USB debugging/activatiing USB transfer fails.
Maybe someone can figure out why activating the USB transfer fails. If we can figure that out, then that would allow seeing the external microSD card via the PC USB interface.
Jim
I think it would need to mount both volumes -- the internal SDcard and the external SDCARD2 -- separately...
Using a mount (reparse) works internally since they are on the same device -- but if you try to mount SDCARD externally it doesn't understand the reference to SDCARD2
My phone actually mounts to the computer as two drives -- one for internal (SDCARD) and the other for external (SDCARD2)
I'd assume there is a way to have something similar work on our gTablets...
I'll have to slap a spare microSD card into the tablet to try though...wondering if teh INF needs to be tweaked as well (??)
From what Ive seen or experienced, Cyanogen was the only rom that Had the Sd card and Sd card2 Thing fixed right (with exception of having to plug in the Power cord before mounting). Evrey other Rom seems to have problems. But Cyanogen has way too many other problems so I use Vegan since to me it seems the most stable :s
Yeah -- my phone is running a fork from Cyanogenmod 6...so the code is shared
TeutonicWolf said:
I think it would need to mount both volumes -- the internal SDcard and the external SDCARD2 -- separately...
Using a mount (reparse) works internally since they are on the same device -- but if you try to mount SDCARD externally it doesn't understand the reference to SDCARD2
My phone actually mounts to the computer as two drives -- one for internal (SDCARD) and the other for external (SDCARD2)
I'd assume there is a way to have something similar work on our gTablets...
I'll have to slap a spare microSD card into the tablet to try though...wondering if teh INF needs to be tweaked as well (??)
Click to expand...
Click to collapse
That's the problem... When the Gtab is plugged into the PC USB (while USB debug is disabled), only one new "drive" appears, corresponding to /sdcard on the Gtab. There is no 2nd drive appearing on the PC corresponding to /sdcard2 on the Gtab.
I've been looking at my Windows configuration, with the Gtab plugged in, and the one drive that appears shows up under "Portable Devices" branch in Device Manager. The properties show that it corresponds to "wpdfs.inf", and looking through that, it looks like a generic USB Mass Storage configuration, i.e., a USB drive.
I still think that something would need to be fixed on the Gtab end for the two drives to appear on the Windows end.
Jim
app fix
I have found a workaround for the issue with the installation of a single app:
http://forum.xda-developers.com/showpost.php?p=12299831&postcount=2
Depending on what you want to do, an FTP solution is also possible as discussed in this thread:
http://forum.xda-developers.com/showthread.php?t=869844
By using swiFTP, I am able to open a connection through a Win7 windows explorer, and I can drag-and-drop files to SDCARD2 (over a wireless connection). I put a 1Gig movie on the card and it took about 12 minutes.
Another option is to use Multi Mount SD-Card. This is link is for the lite version, there is also a paid version.
This app works outside the embedded SD Card Mounting scheme that comes with Froyo.
With this you dont have to press the "Mount USB" button that comes up in the notification bar when you attach the USB cable. Instead it will auto-mount the either the internal or the external SD Card when you plug in the cable.
(Having configured the setting of your choice before hand).
Unfortunately it can not mount both at the same time.
It works with my GTAB and I'm using VEGAn 5.1 Beta.
(Without the 5.1.1 Suppliment patch)
Folks are still struggling with this?
Use a USB flash drive, I do it all the time. Just a regular, boring, Windows FAT-formatted flash drive.
Wow it is amazing that this problem still exists.
I am a new owner of a Gtab and have had it for less than 2 days. Thank goodness for the many informative posts on this site, that have helped me make my new toy almost perfect.
I updated to 3588, installed cwm and titanbackup, vegan5.1.1 including the suppl patch and even learned how to tether it to my Samsung Captivate. The one thing that was annoying me was my device not seeing the 16 gb microsd card that I had inserted both in the gtab and on my pc.
After reading this thread, it looks like I am not going crazy, but it seems like my device is destined to not acknowledge this addtional storage in it's settings?
I really was hoping to use the external card for videos and my mp3 collection, so I am missing something or did I do something wrong to make this happen?
I would appreciate any comments or suggestions since this is the only thing that I need to get squared away before I install more apps(with the possibility and ever present threat of having to re-install something I may have already done)
I could not post this question in the dev section since I do not have enough posts to allow me to.
Thanks
Tina
Does Someone has successfully attached an external usb disk to the gtab using Vegan Beta 5? Is not working for me, not even recognized. It is formatted on Fat32 and my Archos 101 see it. Any suggestions???
chpimentelpr said:
Does Someone has successfully attached an external usb disk to the gtab using Vegan Beta 5? Is not working for me, not even recognized. It is formatted on Fat32 and my Archos 101 see it. Any suggestions???
Click to expand...
Click to collapse
Have you looked for the usb drive in a file manager? There is no popup when you plug it in.
chpimentelpr said:
Does Someone has successfully attached an external usb disk to the gtab using Vegan Beta 5? Is not working for me, not even recognized. It is formatted on Fat32 and my Archos 101 see it. Any suggestions???
Click to expand...
Click to collapse
Hi,
I have been using my external Western Digital usb 500gb disk with gtab. I am on Vegan 5.1.
The first time i hooked it up, it did not work. Gtab did not see the usb hdd and usbdisk did not show anything at all. I tried it couple of times in vain,
Then i powered down the gtab, unplugged the usb hdd and restarted the gtab. After gtab booted up i gave it some more time before touching the tab. Then i hooked up the usb hdd and allowed gtab to scan / read the usb hdd. I took a while ( maybe based on amount of data you have in usb hdd) and then i when to file manager, usbdisk and i could access all my files on usb hdd. it is fat32 formatted.
Try couple of time and allow gtabl to read through all the files . I will work.
Let me know if that helped.
thebadfrog said:
Have you looked for the usb drive in a file manager? There is no popup when you plug it in.
Click to expand...
Click to collapse
Nothing...
New2Android said:
Hi,
I have been using my external Western Digital usb 500gb disk with gtab. I am on Vegan 5.1.
The first time i hooked it up, it did not work. Gtab did not see the usb hdd and usbdisk did not show anything at all. I tried it couple of times in vain,
Then i powered down the gtab, unplugged the usb hdd and restarted the gtab. After gtab booted up i gave it some more time before touching the tab. Then i hooked up the usb hdd and allowed gtab to scan / read the usb hdd. I took a while ( maybe based on amount of data you have in usb hdd) and then i when to file manager, usbdisk and i could access all my files on usb hdd. it is fat32 formatted.
Try couple of time and allow gtabl to read through all the files . I will work.
Let me know if that helped.
Click to expand...
Click to collapse
Ok, will try that... I'm using a WD 750GB
Didn't work for me... will try to reformatted to see if that helps...
chpimentelpr said:
Didn't work for me... will try to reformatted to see if that helps...
Click to expand...
Click to collapse
That didn't work either... will try CM6 Rom to see if can detected the usb hdd.
Hasn't worked for me either. I have a FAT32 USB hard drive that never shows up under usbdisk. I am running Vega-Tab b5.1 and the USB port is working; my evidence is a working USB keyboard, and a green light on the hard drive indicating it is connected. I will try again but so far nothing.
For those of you for whom this doesn't work: I wonder if maybe there's more than just a single FAT32 partition on the hard drive? Maybe there's a hidden partition that might not be normally visible?
Jim
jimcpl said:
For those of you for whom this doesn't work: I wonder if maybe there's more than just a single FAT32 partition on the hard drive? Maybe there's a hidden partition that might not be normally visible?
Jim
Click to expand...
Click to collapse
How would one check for this? (Using WinXP)
worked for me
I think you have to have a FAT32 format to get the drive recognized. I had a 100GB thin, portable drive and it worked just fine. It shows up as /usbdrive. This worked before the latest update of the base OS and still works for me.
anjenaire said:
How would one check for this? (Using WinXP)
Click to expand...
Click to collapse
You can try to go to Computer Management==>Disk Management to see what shows up there for the USB drive, but, that might now show some weird partition types. It would show the unallocated space but not the unknown partition type.
Or, try to go here:
http://www.terabyteunlimited.com/downloads-free-software.htm
and download "Partinfo" and run that, and see what that says. That dumps out a bunch of info on partitions on the drives that your machine sees.
Jim
jimcpl said:
You can try to go to Computer Management==>Disk Management to see what shows up there for the USB drive, but, that might now show some weird partition types. It would show the unallocated space but not the unknown partition type.
Or, try to go here:
http://www.terabyteunlimited.com/downloads-free-software.htm
and download "Partinfo" and run that, and see what that says. That dumps out a bunch of info on partitions on the drives that your machine sees.
Jim
Click to expand...
Click to collapse
As has been mentioned in other posts, for the drive to work, it appears that you'd need to have only a single FAT32-formatted partition on the drive. If either Disk Management or Partinfo show that there's more than that, then that may be why the Gtab can't see or mount the USB drive to /usbdisk.
Just guessing here...
Jim
I just get rid of the hidden partition, and now is a single fat32 partition. Will check and write back with results.
chpimentelpr said:
I just get rid of the hidden partition, and now is a single fat32 partition. Will check and write back with results.
Click to expand...
Click to collapse
It sounds like you did find a hidden partition on your drive? If that's the case, was at the beginning of the drive, or somewhere else (at the end)?
I'm kind of assuming that the Gtab may only be able to see a FAT32 partition that starts at the beginning of the drive, but not 100% sure about that.
Jim
jimcpl said:
You can try to go to Computer Management==>Disk Management to see what shows up there for the USB drive, but, that might now show some weird partition types. It would show the unallocated space but not the unknown partition type.
Or, try to go here:
http://www.terabyteunlimited.com/downloads-free-software.htm
and download "Partinfo" and run that, and see what that says. That dumps out a bunch of info on partitions on the drives that your machine sees.
Jim
Click to expand...
Click to collapse
This particular drive only has one partition and uses FAT32 format. It is an 80GB drive (and nearly full). My other portable drive uses NTFS. The FAT32 drive says it is "healthy, active, primary partition" under "Disk Management". The graphic (Windows 7 PC, I am at home now), shows only one partition where as my "C" drive shows three separate partitions: one 30MB, one 14.65 GB and one 916.83GB.
Still scratching my head. No big deal as long as I have an internet connection and upnplay capabilities.
USB host lets you hook up external USB devices to your phone, like a keyboard, mouse, USB drive, etc..
Unlike devices which are designed to support USB host, the One S doesn't provide power to the peripheral. That means we need a few more adapters/cables to get it to work (and we need an external power source).
Purchase links are listed for all the required cables/adapters.
You will need:
USB Host adapter (The otherwise unused 5th pin on a micro-usb connector is grounded) dx.com/m-129671
Mini USB power Y cable (this kind of cable is often packaged with portable hard drives) dx.com/u-65630
Mini USB Female to USB A Female adapter This package comes with two, but you only need one. dx.com/u-55613
Your charger
Assemble the cable:
The micro USB of the "USB Host adapter" connects to your phone.
Your peripheral plugs into the female end of the "Mini USB Female to USB A Female adapter"
The "Mini USB power Y cable" has three connectors:
Mini USB connector - connects to the "Mini USB Female to USB A Female adapter"
Male USB A Power (the thinner wire) - connects to your charger
Male USB A - connects to the "USB Host adapter"
That's all. As long as your ROM supports the peripheral, it will work.
Some fun peripherals to try:
Powered USB hub (You can also power the adapter from one of the hub's ports)
Keyboard
Mouse (a cursor will appear on your device)
USB flash drives and USB hard drives must be FAT32. You have to run a few commands to use a USB drive. Mount manually from the shell (use Connectbot or Terminal Emulator):
Code:
su
mkdir /mnt/sdcard/usb
mount -o uid=1000,gid=1015,fmask=0702,dmask=0702 /dev/block/sda1 /mnt/sdcard/usb
To unmount:
Code:
su
umount /mnt/sdcard/usb
Hello,
I'm French so please excuse me for my english.
Just one question.
I understand nothing with custom ROMs (and i don't want to modify the phone).
Do i need to do something on the phone or your solution with only a couple of cables, an adaptor, a power (i mean a battery like a TeckNet Dual-Port 7000mAh) AND my micro sd card reader (USB), all that will be sufficient to make the deal? I mean i will be able to read the files (.flac music files) of the micro sd or sd card?
Thank you
mrufino63 said:
Hello,
I'm French so please excuse me for my english.
Just one question.
I understand nothing with custom ROMs (and i don't want to modify the phone).
Do i need to do something on the phone or your solution with only a couple of cables, an adaptor, a power (i mean a battery like a TeckNet Dual-Port 7000mAh) AND my micro sd card reader (USB), all that will be sufficient to make the deal? I mean i will be able to read the files (.flac music files) of the micro sd or sd card?
Thank you
Click to expand...
Click to collapse
A battery pack (like the TeckNet) should work as the power source.
For Keyboard/mouse, you do not need to modify the phone. (Only the cables and power are needed.)
For a card reader, you must "root" the phone, because to 'mount' the USB drive, you must run 'su'.
So i'd have to root the HTC One S to mount external flash memory cards!
What a pity to sell phones without micro sd emplacement (so they sell you. mp3 players).
I have a 64gb micro SDXC in my HTC Desire (bravo) which works perfectly...
HTC will wait... (Perhaps i will root that one: i must learn how to do...)
Nice from you to answer me - specially on xda-developers site, i mean where the members speak of more interesting problems, like development, etc.
Thank you again
Is this part right?
Code:
mkdir /media/sdcard/usb
My phone doesn't have a media directory. Plus on your next line you mount /mnt/sdcard/usb.
Thanks for the write up. Tried with a powered hub and couldn't get it to work. Going to order the cables I listed below and give it a shot. If I store and access movies/music from an external drive for travel that would be awesome! Will use this for power source on the plane!
Also, for other options for what to purchase you can bring it down to 2 items with these.
1 - Y-cable with female end instead of mini usb.
2 - Micro to female "host" cable. Same as what you linked, just a different place to buy so order is from same site (cheaper shipping!).
setzer715 said:
Is this part right?
Code:
mkdir /media/sdcard/usb
My phone doesn't have a media directory. Plus on your next line you mount /mnt/sdcard/usb.
Click to expand...
Click to collapse
Yes, it should be "mkdir /mnt/sdcard/usb". I'm updating the post now.
nerd65536 said:
Yes, it should be "mkdir /mnt/sdcard/usb". I'm updating the post now.
Click to expand...
Click to collapse
Yeah, that's what I figured. Thanks for updating the post.
Were you able to mount a flash drive doing this? If so, could you stream a movie from it? Just curious what all you have done with this mod.
Thanks again for the write up. I always though the issue was that the tech was not included in the kernel, not that we didn't have a powered port!
setzer715 said:
Yeah, that's what I figured. Thanks for updating the post.
Were you able to mount a flash drive doing this? If so, could you stream a movie from it? Just curious what all you have done with this mod.
Thanks again for the write up. I always though the issue was that the tech was not included in the kernel, not that we didn't have a powered port!
Click to expand...
Click to collapse
I am able to mount a flash drive and play movies from it. I also tested using a USB keyboard and a USB mouse.
Note: It is best to use a fast charger (1 amp or more) for powering the arrangement. The phone can charge when everything is plugged in.
nerd65536 said:
I am able to mount a flash drive and play movies from it. I also tested using a USB keyboard and a USB mouse.
Note: It is best to use a fast charger (1 amp or more) for powering the arrangement. The phone can charge when everything is plugged in.
Click to expand...
Click to collapse
Awesome, thanks! Just ordered some cables, cant wait to try it out!
So I have been playing with this for a bit. I can get it to mount my old 4GB USB 2.0 flash drive but not my new 32GB USB3.0 flash drive. Do you think it's a 32GB thing or a USB3 thing? I would like to order a new drive for this but not sure which to eliminate.
I would prefer to use a 32GB drive if it's just a USB3 thing but if it's the size of the drive I don't want to deal with returns.
Any ideas?
Also it will not mount my SDCard reader with 16GB card in it.
EDIT: So I found my old 16GB USB3 flash drive and it mounts that just fine. So it's looking like it just won't mount a 32GB drive. Of course my 32GB drive is a super fast USB3 (write speeds of 100Mbps+) so maybe that could have something to do with it. Either way my 16 gig is good enough for travel so I'm good.
Thanks again for the write up!
setzer715 said:
So I have been playing with this for a bit. I can get it to mount my old 4GB USB 2.0 flash drive but not my new 32GB USB3.0 flash drive. Do you think it's a 32GB thing or a USB3 thing? I would like to order a new drive for this but not sure which to eliminate.
I would prefer to use a 32GB drive if it's just a USB3 thing but if it's the size of the drive I don't want to deal with returns.
Any ideas?
Also it will not mount my SDCard reader with 16GB card in it.
Click to expand...
Click to collapse
I'm able to use a 32GB MicroSDHC card in a MicroSDHC-USB adapter.
In principle, a USB 3.0 device should be backwards-compatible, but I don't have any to test with.
Troubleshooting:
Do you get a specific error when using the "mount" command? If so, please paste the error message here.
Run
Code:
ls /dev/block/
to see whether the device "/dev/block/sda" is detected. How many numbered "sda*" entries are listed?
Does the phone charge while everything is plugged in?
nerd65536 said:
I'm able to use a 32GB MicroSDHC card in a MicroSDHC-USB adapter.
In principle, a USB 3.0 device should be backwards-compatible, but I don't have any to test with.
Troubleshooting:
Do you get a specific error when using the "mount" command? If so, please paste the error message here.
Run
Code:
ls /dev/block/
to see whether the device "/dev/block/sda" is detected. How many numbered "sda*" entries are listed?
Does the phone charge while everything is plugged in?
Click to expand...
Click to collapse
The error I get is "No such file or directory". It happens on this and my sdcard reader.
I ran ls /dev/block. With the 16gb flash drive I see sda and sda1. With my 32GB I only see sda.
My 32GB flash drive is a high speed Lexor. I tried my wifes flash drive, her's is a Lexor 32GB USB3 but a slower rated one and I can see her's.
Further testing with my SDCard reader. I have a Transcend 8GB Class 6, A-Data 16GB Class 6 and Patriot 32GB Class 10 SDCards. I can see the 8GB and 32GB but not the 16GB.
Seems maybe a compatibility issue maybe? The card's/drives I couldn't read I tried formatting again, everything is FAT32. Who knows. At least I know most things work.
setzer715 said:
I ran ls /dev/block. With the 16gb flash drive I see sda and sda1. With my 32GB I only see sda.
Click to expand...
Click to collapse
The drive is detected by the phone, but the lack of a "sda1" entry means that the drive does not have a standard partition table. In that case, it should work if you specify "/dev/block/sda" instead of "/dev/block/sda1" in the mount command.
(The ideal solution would be to partition and format the drive so that it would behave like the others.)
nerd65536 said:
The drive is detected by the phone, but the lack of a "sda1" entry means that the drive does not have a standard partition table. In that case, it should work if you specify "/dev/block/sda" instead of "/dev/block/sda1" in the mount command.
(The ideal solution would be to partition and format the drive so that it would behave like the others.)
Click to expand...
Click to collapse
Thanks but what do you mean "partition and format" with a flash drive? Are you saying there should be more than one partition and there isn't? I've formatted the flash drive a few time in windows always as fat32. Is there another way I should do it?
I have an Ubuntu Live CD if you think I should do it in Linux but I'm VERY new to Linux and have no clue as to what commands to use to accomplish this.
setzer715 said:
Thanks but what do you mean "partition and format" with a flash drive? Are you saying there should be more than one partition and there isn't? I've formatted the flash drive a few time in windows always as fat32. Is there another way I should do it?
I have an Ubuntu Live CD if you think I should do it in Linux but I'm VERY new to Linux and have no clue as to what commands to use to accomplish this.
Click to expand...
Click to collapse
It is possible to skip the partition table altogether and just start with the FAT32 data instead. This is what the manufacturer of the drive has done. (The drive doesn't have any partitions, so there is no first partition to be named "/dev/block/sda1")
You should be able to use the drive if you mount "sda" instead of "sda1". You can follow these instructions below to make it behave like the other drives:
If you have an Ubuntu LiveCD, boot from it, and open GParted (Partition Editor):
Choose your flash drive from the drop-down at the top right. Make absolutely sure you select the correct device (the size of the drive is listed), as all data on it will be erased.
In the menu: Device --> Create Partition Table... --> Apply.
Click on the "unallocated" space, to select it.
Next, menu: Partition --> New --> File system: FAT32 --> Add.
Finally, menu: Edit --> Apply All Operations
(When finished, close GParted and shutdown the liveCD)
The drive should now show up with the expected /dev/block/sda1 partition.
I just mounted it as you previously described on sda instead of sda1 and it worked fine. I don't want to repartition it as I don't know if that will mess with the speeds. Who knows what Lexor did to make this thing so amazing fast but I want to keep it that way. It's nice to through 8gigs of movies on it in 1-2 minutes.
I'm sure partitioning has nothing to do with it and it's all based on hardware but you never know!
Would this work using a simple 5-pin male micro-USB to female USB adapter connected to a powered USB hub?
Just ordered an HTC One S. YAY!
I'm a little scared about potentially frying my new toy by using the wrong cables...
Would an all in one cable do the job?
(ebay search for "Micro USB Host OTG Cable With USB power")
Seems to be the same as the DIY setup mentioned in the OP just all wrapped up in a single cable.
Thanks,
Mark
I'm think if we buy an extended battery which have a micro usb cable (I forget the brand) exist on amazon.
We can solder a female to the cable and use battery as power source for phone and host.
What u think???
Sent from my One Sinderella using Tapatalk 2
Hi everybody,
First of all sorry for my englisch. I have a big problem with the USB otg function. An USB mouse works well but USB drives don't work. I have copied the text from terminal emulator:
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ su
[email protected]:/ # mkdir /mnt/sdcard/usb
mkdir: can't create directory '/mnt/sdcard/usb': File exists
2 /dev/block/sda1 /mnt/sdcard/usb <
mount: mounting /dev/block/sda1 on /mnt/sdcard/usb failed: No such file or directory
255|[email protected]:/ #
I also tried sda instead of sda1. No difference.
Please could anybody help me.
Hi all,
Apologies if this has been answered elsewhere but I have looked and cant find anything.
My One S is Jelly Bean 4.0.1 (un-rooted)
The problem I have is basically this.
I have a Micro-B Usb Otg On The Go Cable and Integral MicroSD USB Card Reader with a 32gb Micro SD.
When I first put all this together and plugged into the USB slot of the phone everything was fine, the little red light on the Integral MicroSD USB Card Reader was lit up. The message of Unable To Charge Device was coming up but the phone was also mounting the storage for reading via Astro File Manager no problem, so I was able to play MP3's and 4's and so on. But then it literally just stopped reading the Micro SD card and the Micro USB Card Reader is not lighting up at all.
Any help will be greatly appreciated as I am at a lost as to why it would be working perfectly one second and then not another.
Thanks you.
Follow up.
Been doing a little bit more looking into this and it looks like it has to do with USB hosting. Is there any reason my phone would just stop hosting a OTG USB Flash Drive? As i mentioned before it work fine for a while and literally just stopped recognizing that there was any Mini Sd attached.
spruggs said:
Hi all,
Apologies if this has been answered elsewhere but I have looked and cant find anything.
My One S is Jelly Bean 4.0.1 (un-rooted)
The problem I have is basically this.
I have a Micro-B Usb Otg On The Go Cable and Integral MicroSD USB Card Reader with a 32gb Micro SD.
When I first put all this together and plugged into the USB slot of the phone everything was fine, the little red light on the Integral MicroSD USB Card Reader was lit up. The message of Unable To Charge Device was coming up but the phone was also mounting the storage for reading via Astro File Manager no problem, so I was able to play MP3's and 4's and so on. But then it literally just stopped reading the Micro SD card and the Micro USB Card Reader is not lighting up at all.
Any help will be greatly appreciated as I am at a lost as to why it would be working perfectly one second and then not another.
Thanks you.
Click to expand...
Click to collapse
You seem to be stock so not sure what's up with that but could try factory reset in the bootloader has long has you haven't changed recovery but backup what's on the SD Card because that will get wiped too.
Darknites said:
You seem to be stock so not sure what's up with that but could try factory reset in the bootloader has long has you haven't changed recovery but backup what's on the SD Card because that will get wiped too.
Click to expand...
Click to collapse
Thanks Darknites,
I have reset hard from the settings menu, does it make a difference if i reset from bootloader? I have downloaded USB Host Controller and look at what results I get from running that and I get the SC3 USB Host Driver Not Found which I believe is something to do with the chip set which doesnt apply to my phone but I also get the message of USB Root Hub Present but I also get Not Present sometimes when re-running and the same with USB Host Mode is Active and then sometimes Not Active after re-running the Host Controller App.
I did read somewhere that its possible that certain chip/chips might have been damaged/fried by an extended use of USB Hosting to a flash drive, is this correct?
Thanks again for the reply.
spruggs said:
I did read somewhere that its possible that certain chip/chips might have been damaged/fried by an extended use of USB Hosting to a flash drive, is this correct?
Click to expand...
Click to collapse
I havnt heard of that in YEARS, and even that was in most cases a false rumor. I have never encountered a chip dying by being used properly.
If you short-circut the cables or something - then yeah, thats a different story.
spruggs said:
Thanks Darknites,
I have reset hard from the settings menu, does it make a difference if i reset from bootloader? I have downloaded USB Host Controller and look at what results I get from running that and I get the SC3 USB Host Driver Not Found which I believe is something to do with the chip set which doesnt apply to my phone but I also get the message of USB Root Hub Present but I also get Not Present sometimes when re-running and the same with USB Host Mode is Active and then sometimes Not Active after re-running the Host Controller App.
I did read somewhere that its possible that certain chip/chips might have been damaged/fried by an extended use of USB Hosting to a flash drive, is this correct?
Thanks again for the reply.
Click to expand...
Click to collapse
Ya in bootloader everything gets wiped even sd.
I did cross my mind re the cable because the drives are fine in my PC, I know they are powered there though. I might try another OTG cable, there cheap as. Its just strange that one minute the Micro SD drive was working perfectly and then kaput.