[KERNEL][ICS] I.A.P Samurai - Updated- 6/8/12 - Epic 4G Android Development
Independent Android Project
and
The House Of The Samurai
Present
USB HOST MODE FOR THE EPIC
(special thanks to SZTUPY for his code and help)
DISCLAIMER: We are in no way responsible for any damages that you may cause to your device or other equipment used... With that said I would like to add some input on this. The samsung epic seems to have an overcharge protection. When you apply to much voltage it seems to reboot. In order to find this out I burnt up a usb hub. With that said learn from my mistakes more power is not always a good thing... and 10v and 1.4a is far to much power for a hub. stick with 5v 0.7a...
SIDE NOTE: The I.A.P.Appv3... Works with both Gingerbread and Ice Cream Sandwich Roms. A Colaboration of Earthbound And Luna ! ! ! Still being refined but you have access to everything IAP has to offer with this app, from downloads, current news, to a donation page...
Download Link: I.A.P.APPv3
What is USB Host Mode: Well usb host mode was SzTupy's continuation of others work on implementing access to usb media & hid devices from our phone. He succeeded in porting it to many different devices but had not done it for the epic. With a little help from him, I was able to port it and get it working properly.
.:Materials:.
Code:
~OTG connector (do your self a favor & save on the headaches, Amazon $3)
~A jig (made of 2 male & a female USB connectors with a power supply)
~HID device/hdd/or some type of flash media (USB device)
~A 5v 0.7amp power supply (your stock epic charger...)
Notes: even though the kernel has ntfs support you will need a program like drive mount in order to mount these devices.
What works:
Code:
~ FAT32 support (usb host controller)
~ HID support (usb host controller) (love the mouse pointer... lol)
~ Wireless HID support now working (a bit finicky but it works)
~ NTFS support (drive mount) (watched a full video on my epic today)
What doesn't work yet:
Code:
~ Plugging a usb 1.0 device into a 2.0 usb hub
Please watch these videos before attempting this:
.:JIG SETUP:.
.:HOST MODE WITH HID DEVICE:.
Now that you have seen the setup and what you need.
.: Phone Setup :.
Code:
#1 download usb host controller by sztupy
#2 download and install usb host mode samurai kernel
#3 go into settings in usb host controller app..
#4 set the settings that are displayed below
.: SETUP THE JIG :.
Code:
#1 Plug the one end of your jig into the power supply.
#2 Plug your usb hub into one end of the jig.
#3 Plug a usb media device (fat32 format) into the usb hub.
#4 Plug the OTG Cable into the other end of the jig.
.: PLUGGING IN THE PHONE :.
Code:
[I]*NOTE : make sure your jig is all setup. Power Connected. USB hub connected, at least 1 usb media device plugged into the hub, and your otg cable connected to the hub.*[/I]
#1 MAKE SURE YOUR SYSTEM IS MOUNTED READ/WRITE (i use root explorer to check this)
#2 Plug the micro usb end into your samsung epic micro usb port.
(you will see it enumerate the the hub and the device, then it will show your devices listed below that.
#4 Select mount and choose your mount point (mount point is where you will view your files at from an explorer)
#5 Now open an explorer of your choice (once again I use root explorer)
#6 Navigate to the mount point you set. So if you used /mnt/emme it will be in mnt/emme, i set a mount point in my sd card /sdcard/host so I can browse the sd card to the host file and view, copy paste or edit files on the media device in that file...
#7 When you are done be sure to unmount the devices before pulling out the otg cable from the phone !
(if you do not do this depending on where you mounted it (system = reboot the phone) (sdcard = cannot mount to a pc, or unmount and remount from the system until you reboot)
.: DOWNLOAD LINKS :.
.: CM9/AOKP/MIUIv4 :.
SAMURAI.AKITA.CM9.OTG.06.08.15.38.zip
voodoo color tweaks
battery tweaks (not BLX crap)
low battery shutdown fix
Governor & I/O tweaks
1.5GHz max cpu freq
Cache Flush Routine
400mhz GPU overclocking
USB Host Mode
+ many other Samurai Tweaks
.:SOURCE:.
BARBONE.CM9.SAMURAI.HOST.MODE
[kernel] iap samurai *cm9 host mode updated* 04/21/2012
Reservered. Earthbound has passed on the OP to Uber.
First?
Sent from my SPH-D700 using Tapatalk 2 Beta-5
.:OLD DOWNLOADS:.
CM9: SAMURAI.AKITA.CM9.OTG.04.09.22.48
Reserved for later use.... Damn it marcus ! ! ! Lol
earthbound[iap] said:
Reserved for later use.... Damn it marcus ! ! ! Lol
Click to expand...
Click to collapse
The funny thing is that I have not been on XDA for most of the day and was just checking ;P. If a moderator wants, they can remove my post.
Sent from my SPH-D700 using Tapatalk 2 Beta-5
Naw it's all good you just hit the thread at the perfect moment...
Sent from my SPH-D700 using xda premium
Can't wait for my OTG Cable to get here. This will be so awesome!
Oh yes
Sent from my SPH-D700 using XDA
So I watched the vid, and the hardware needed looks to be:
the standard power supply for my epic
standard male/female USB cord (to be cut to have power wires added to it)
adapter for standard USB (like on the HD) to the mini USB (of my epic)
That it hardware wise?
Everything else looked to be straight forward in the setup and explanation, just wanted to make sure I had the HW correct before I started cutting.
Gotta have an otg connector it has a ground that your phone needs in order to register usb host mode.
Sent from my SPH-D700 using xda premium
Source code link?
I'm not going to turn this into an argument of how it has to be formatted, but XDA rules do require it, in full.
jnadke said:
Source code link?
I'm not going to turn this into an argument of how it has to be formatted, but XDA rules do require it, in full.
Click to expand...
Click to collapse
Do you see a link yet ? ? ? The kernel hasn't even gone live yet the only people with access to the source code or even the kernel right now are current IAP developers... When the link goes up so will the source code... Pay close attention... Do not bring your source nazi BS in here before the thread is even a go... My source is always up to date and I always provide a link.....
I was going to push a commit but just for this instance of source nazi'ism b4 the kernel is even up for the general public, I believe I will throw the source up fresh with no commits. Thank you for your time and if anyone wants to truly contribute to the host cause with some valuable input just ask me once the kernel goes live and I will send you a patch otherwise the rest of you can weed out the commit from a completely commit free source... I suggest getting a diff viewer.... LMFAO !
THANKS AGAIN,
Justin D. Maggiolo
EarthBound.IAP
P.S. You got me thinkin about not even releasing this publicly now... I'm ok with that and I'm pretty sure our devs are as well...
jnadke said:
Source code link?
I'm not going to turn this into an argument of how it has to be formatted, but XDA rules do require it, in full.
Click to expand...
Click to collapse
A pm could have maybe been a little more better, sheesh.
Sent from my SPH-D700 using XDA Premium App
jnadke said:
Source code link?
I'm not going to turn this into an argument of how it has to be formatted, but XDA rules do require it, in full.
Click to expand...
Click to collapse
What an [email protected]@ho*e
thing is the kernel isn't even up yet, I do not have to provide source until it goes public... Even before the kernel comes out got cherry pickers hunting away.... lol.
What the hell they have a GPL committee now for earthbound.. seems like everytime you post things they automatically say something about it. Before someone says how important is i understand... but its not even up yet... let it go!
earthbound[iap] said:
thing is the kernel isn't even up yet, I do not have to provide source until it goes public... Even before the kernel comes out got cherry pickers hunting away.... lol.
Click to expand...
Click to collapse
I'm a cherry picker
But yes, kernel source does not have to be released for a time after the kernel is released.
His point is that somebody like me could go in, steal the commit, release my kernel and have people think I did it first.
Sent from my SPH-D700 using Tapatalk
jnadke said:
Source code link?
I'm not going to turn this into an argument of how it has to be formatted, but XDA rules do require it, in full.
Click to expand...
Click to collapse
Why would you require source for a video of something. Unless the actual kernel is up for download, source is not needed.
Sent from my SPH-D700 using Tapatalk
marcusant said:
Why would you require source for a video of something. Unless the actual kernel is up for download, source is not needed.
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
This is correct.
Related
USB HOST working !
Just confirmed working usb host mode on the magic 32b using hacked up version of the hero host patches posted to android-kernel google group by Andrew de Quincey, applied on top of current cyanogen. Y cable for external power required. No where near ready for production (word to wise, dont try to mount a 32gb partition while each usb register operation is debug logged) but at least we now know the hardware can do it. Chris
Can you provide the link with the patch?
pagubg said: Can you provide the link with the patch? Click to expand... Click to collapse When I get rid of the hacked up part... supposed to be asleep right now.
Andrew's patches are at http://groups.google.com/group/android-kernel/browse_thread/thread/c8471573d7553331 The one for 2.6.27 will apply to current cyanogen 2.6.29.6 if you remove the diffs for the battery file which will fail incomplete. However there is a bug that was causing one of the structure to get corrupted so some function pointers for phy setup never got called leading to inability to detect anything on the USB bus below the built-in hub. I did an ugly fix to verify the hardware works. I suspect for a real fix the hcd_to_msm7201() function needs an internal cast to (char *) or just some extra () or something to make the arithmetic come out right (it seems to be multiplying the size of the structs instead of adding them). Of course you loose your adb when you play with this...
Installing Linux on a PC Using Inspire
Ok, so I know that this phone can be used as a USB drive. I'm trying to install Linux on my computer, but I don't have a CD or USB drive available other than my phone. Would it be possible to install Linux using my phone? Thanks
You would need to figure out a way for the computer to read the phones SD card as an ISO which can be done on a standard SD card using Unetbootin or something similar. However if you put it into the phone the phone itself may not see it as a usable drive and want to format it.
+1 for Unetbootin, it makes the drive bootable. However older versions would format the drive first... I think the newer versions don't, but don't hold me to that. Also it installs to the root directory of the drive so it would suck to remove it later.
No CD drive? Are you using a "slim" laptop? If you have a floppy drive, you could do the "oooold school" install with 40+ floppies, ha ha ha. If you have access to a second PC, couldn't you network 'em via an ethernet cross-over cable (or hub) and install over the network?
I'm gonna recommend going and buying a $10 thumb drive. Then, as long as you're running Linux anyway, I'm gonna shamelessly plug Fuduntu.
ST3ALTHPSYCH0 said: Then, as long as you're running Linux anyway, I'm gonna shamelessly plug Fuduntu. Click to expand... Click to collapse What ever happened to RedHat? Is it still around these days?
At risk of total thread derailment: Red Hat still sponsors the community development of Fedora and actively deveopes and supports RHEL (RedHat Enterprise Linux). Fuduntu is a Fedora spin, for which I'm a dev (very junior though I may be).
zuriken said: What ever happened to RedHat? Is it still around these days? Click to expand... Click to collapse Its still around- a popular distro of it is fedora- it just seems most people, especially working with android go debian based instead of anything else like rpm(redhat) Edit- and I should have refreshed the page before I responded.
di11igaf said: Its still around- a popular distro of it is fedora- it just seems most people, especially working with android go debian based instead of anything else like rpm(redhat) Edit- and I should have refreshed the page before I responded. Click to expand... Click to collapse Fedora 14 user here.
Returning to the original idea Well, maybe you could format your card with one of the tools Linux provides to create bootable USB drives. The problem starts when you turn on your computer to boot from the drive, as you would have to force your phone to USB drive mode and I'm not sure if the detection process will be fast enough so the PC catches the phone as a pen drive. However, if you have no other choice at the moment (when I formatted a netbook I preffered to buy a 8GB pendrive and forget about any other trouble) you might give it a try. If it works please post back...
[Development] CyanogenMod porting
I and some fellow developers (especially thanks manveru0, skywalker01, other users for testing, reporting and other help) are trying to port AOSS to our device, working with CyanogenMod 7 for now. You can check out this thread, repositories, and this post for changelogs, bug reports and so on. Github repositories: https://github.com/abbradar https://github.com/manveru0 Feel free to check them out and fork! Current status of porting: Working: Screen (w. touch features, w. backlight) Buttons Radio (w. 2G/3G, Internet is working) Bluetooth WLAN Rotate sensor Handset button USB Battery sensors Camera GPU acceleration Not working: GPS (does not lock) Audio (both input and output, will be tough) Camcorder (because of audio) Storage-related (external SD not working, internal with no USB storage, vold misconfigured) USB tethering/MTP (will require some programming) Host access point (similar to USB tethering) Light sensor Buttons force feedback Contacts on SIM card Not tested: Other sensors (compass, magnetic) HDMI (should not work, as logs say) FM radio (should not work) Another bugs: CyanogenMod settings doesn't work (fixed by Random reboots sometimes Sometimes - very long resume from sleep (30 seconds approximately) Keyboard is very small Dialer is laggy (because of audio) USB connected notification is shown without USB cable attached APN database is not working (enter settings manually) Vibration strength is very weak Regressions: (worked before) Nothing for now Visualized changelogs (with CM9), made and hosted by CastagnaIT in dedicated thread: http://forum.xda-developers.com/showthread.php?t=1492165 Last testing build (will be updated after major improvements or after some time): http://forum.xda-developers.com/showpost.php?p=22394052&postcount=284 skywalker01's testing builds: http://forum.xda-developers.com/showpost.php?p=22969855&postcount=394 User tomsteel1 have made good-looking banner images for our work: http://forum.xda-developers.com/showpost.php?p=22506050&postcount=350
Wow this sound really good. Thanks for your work. I write that i would support a cyanogenmod with a donation (and other people too). Maybe you can initate something in the gt9001 thread in the cyanogenmod forum.
jeahh, keep up the good workkk
OK, I'll continue my work later this week according to ideas in the first post.
Owwwiiiii !!!! I like it !
Made few modifications to the kernel to make its log readable. Further trying to make bootimage mount /system. By the way, isn't /system image size in my configuration too small? (~140MiB) Do we have some source of information on partition sizes?
YardE said: While helping manveru0 with developing of his awesome CWM mod and kernel, I've tried to compile CM for our device. So far, we have those problems as for now: 1) Resulting type of image - CM builds *.img files in output, and system/data/cache partitions, too - we should find some option in Makefiles to change output to raw ext4 image, as in Odin images. I was able to create ext4 image manually, but that is not an option for frequent builds, and I don't want to write a script if there is option avaliable (though, I think I will write it for now) 2) Booting. Right now, boot.img from builded CM loads adb, and I can send some basic commands to the phone, but it cannot mount /system and because of that "adb shell" doesn't work, so I cannot check what is going wrong during boot. My current idea is to insert /system/bin/sh into boot.img for testing. I have nearly no time for work now because of university, but I will try to make some test builds later. We have all our work in github repositories: https://github.com/abbradar https://github.com/manveru0 So feel free to check them out and fork! Click to expand... Click to collapse I comming back as soon as I have more time, see other posts
After groking sources of Android's init for some time, it seems we should implement exporting partition table to /proc/mtd to continue or we'll have to modify lots of cyanogenmod's sources. Alternative to this is to try using stock binary "init".
Yeah man, keep on porting. I love CM Rom... Sent from my GT-I9001 using XDA App
Finally! Thank you both YardE and manveru0 for all your efforts for developing something to i9001. I'm definately one of those willing to donate for your work!
mikeeo019 said: I'm definately one of those willing to donate for your work! Click to expand... Click to collapse +1 to donating
i love u!!!
Let's wait with donating till we really have something usable ~_^. Okay, good news to you guys - I was able to build good enough bootloader to mount partitions! So we have adb shell and stuff now. The next step is to try to load actual system.
I've also been able to found out format of out images (system.img and such) and there is utility to convert them to raw ext4 images - simg2img. Looks like the first two tasks in porting were completed. ^_^ I was able to boot till CyanogenMod's splashscreen! \(^_^)/ It hang ups on it, though, but I can read error messages though adb now and shell is working.
Oh god YES! I was finally able to boot it! Hurrray!
That sounds great! Perhaps you can post some screenshots to give a first impression to us ;-) Sent from my GT-I9001 using XDA App
I was just uploading one. Made from my notebook web-camera, so quality is ****ty, but this is a proof-of-concept:
This is results of first testing: nearly nothing works out-of-the-box, including sound, proper backlight, Wi-Fi/Bluetooth, video accelerator and phone. Looks like this will need lots of further tweaking, however, I'm glad I've got to make it this far! ^_^
AWESOME YardE said: This is results of first testing: nearly nothing works out-of-the-box, including sound, proper backlight, Wi-Fi/Bluetooth, video accelerator and phone. Looks like this will need lots of further tweaking, however, I'm glad I've got to make it this far! ^_^ Click to expand... Click to collapse dude you got it working everything else will fall in place sooner or later!!!!!! AWESOME!!!!
Guys on Russian forum asked me for posting test build, so I'm uploading it on mediafire now. I'll repeat - this build doesn't have ANY practical usage, it's only proof of concept and having it on phone is nearly the same as having no phone at all.. Link to the build: http://www.mediafire.com/?6i9q54xhkvt984i
usb support that works
Hi: on another site, it has boiled to using this as a really good solution that works for usb support.. according to http://forums.webosnation.com/hp-touchpad/296505-functional-usb-host-touchpad.html use this for power supply w/o cord mess:: http://www.amazon.com/Solar-Powered-Battery-Charger-Adapter/dp/B006DVMW92 use this to connect to TP:: http://www.ebay.co.uk/itm/270823070399?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649 thread is some 500 posts.. you need to type some lines to mount and unmount flash drive etc.. but supposedly it works.. anyone here have this rig going?
hmm, interesting. I have one of these too but don't have my uber usb converter set with me (currently deployed) but when I get back to the states I'll check it out. Considering WebOS and Android both run on top of a linux kernel I suppose if you have the right modules loaded for whatever you're doing then it could work. Only one way to find out.
wil try the OTG USB Converter Setting up a linux env in [and android, and native WebOS]. This looks like exactly what I'm looking for to adb etc. Yep, my linux config will be [hopefully] be to build an android dev environment. Gave it 20gig [lionshare]... that looks like a handy converter. Not trying the solor thing yet. Rob
What is handheld_core_hardware.xml
I have a kobo arc that does not support USB OTG so I rooted it and downloaded an app that checks if it supports OTG and if it does not it will try and fix it. It says android.hardware.USB.host.XML not readable but handheld_core_hardware.XML ok So what does that mean? Does it mean I can plug in keyboards? because of the handheld bit, but cannot plug in a mass storage device I really would test it out, but I don't want to waste money on something that potentially may not work. Please answer if someone may know tried to look for an answer, but I keep getting something to download it.
How is that helpful? Sent from my Arc using xda app-developers app