Post Last Edited by roses2at at 2014-9-16 12:24 |
Why is there no functioning OTG out-of-the-box?
This for me is a MAJOR problem, a HUGE drawback and a big DISADVANTAGE with the B-Pi. (Cannot speak for the R-Pi as I never tried one. Does it even have OTG?? With 4 USB ports, probably not.)
I expected that I would be able to use my USB Thumb Drives and Wireless WiFi dongle and other USB devices (at least those that don't demand a lot of power anyway) immediately. But instead, according to another post in this forum that's not possible. You have to start editing script.bin (http://wiki.lemaker.org/Kernel_drivers_porting_and_configuration#Porting_USB_OTG_Driver) and this involves fex2bin and bin2fex and a lot of other shenanigans. And what happens if you're not confident enough with CLI/Terminal commands in Linux to do all this? What happens if like me you only have a Windows computer and no Linux PC? I thought the B-Pi was about encouraging beginners - I'm not afraid of getting my hands dirty with a few sudo commands but all this is WAY above my head - and it's enough to make me want to give up with the B-Pi almost right from the off.
Please LeMaker, add this change into ALL your images in the download section. It was stated somewhere else that this was disabled by default, but it actually doesn't matter to me if it takes a little bit more CPU resources (twin core 1.0GHz should be enough anyway for most things anyway, isn't it???) Sorry, but this decision is the wrong way round if you want to have a successful product with wide appeal - ENABLE it by default, then those with the relevant knowledge can DISABLE if they want to if they find their CPU struggling or for other reasons only known to themselves.
So I refer you to Post #8 from sashijoseph in http://forum.lemaker.org/viewthread.php?tid=3077&highlight=otg
and download that file and unzip it. I suggest naming the resulting folder to something useful like "OTG activation" as - if you use many different B-Pi distros - you might be using it a lot.
It wasn't clear to me from this thread what to do next, but this below is how I did it. It's a lot of words, but it's no more complicated really than basic moving and copying/pasting and overwriting of files between Windows folders. (If you don't know how to that, then I would suggest politely that maybe this kind of computing isn't really for you.)
Inside the folder you'll see the necessary and already amended script.bin file that we need to get into our B-Pi. First, on your PC, format a thumb drive to FAT32 and copy the folder to it. Set up your B-Pi with the mouse USB plug on the bottom and the keyboard on the top. Boot it up into your distro (I was using Raspbian v3.0 at the time). To get the script folder into the B-Pi, unplug temporarily the keyboard and plug in the thumb drive. You should see its window opening on the desktop. Copy the folder on to the desktop. If this distro requires you to unmount the USB drive, do so. (Not all do - with some you can just physically pull it out with no ill effects.) Re-insert the keyboard.
Now to get the bin file into your root system. Again using File Manager, navigate to the root system designated by the forward slash /
Find where the script.bin file is located. This is different depending on the distro and sometimes even with different versions of the same distro. On my Raspbian v3.0 it was in the folder /bananapi (in the smaller boot partition, not the main rootfs one).
Now comes a slight problem. You need to copy your bin file and this is a system folder so you won't be allowed to do that without su/root privileges. If you know how to do that with Terminal, go ahead. But there's a simple way. Right click on the file and choose 'Open in Root Window'. Now right click on your 'OTG activation' folder and open that in a new window. Now it's just a case of cutting and pasting (or moving - but not copying as this will lose the original file) from one window to the other. To make sure, use View on each window to make both of them show full file details, and check the date/time of the existing file with that of the other one. Click on Overwrite. Both date-time stamps should match now (cos they're the same file).
Close all windows, reboot, and plug in your USB drive via the OTG cable to the OTG socket on the B-Pi. It should mount automatically and you will be able to see your files. If you're using NTFS formatted USB drives, you might need to install ntfs-3g as a kernel module but that is outside the scope of this post. (A euphemism for "I don't know how the hell to do that!!")
Perhaps someone could write a simple program that can be downloaded from LeMaker which does all of the above automatically with one mouse click.