Jump to content

An experimental CM7 Kernel


Guest t0mm13b

Recommended Posts

Is there a way to get that changes integrated in official CM7?

It's been logged in the tracker.

Rebooting into clockwork and running the two USB OTG zip files in this forum on the latest official version should work. Its working with CM7-07242011- Nightly for me. Give it a try!

Link to comment
Share on other sites

Guest Phoenix Silver

For people who want to experiment serial don't forget that rs232 is 12 V

Never try to connect the blade directly to a serial port !

You need an adaptor

Link to comment
Share on other sites

Guest t0mm13b

For people who want to experiment serial don't forget that rs232 is 12 V

Never try to connect the blade directly to a serial port !

You need an adaptor

In conjunction with the above, a tty-RS232-usb board - that can be easily obtained from some shops that specializes in electronic components, possibly ready made, that converts the signal from 12v to 5v then you should be okie :)

Link to comment
Share on other sites

Guest kol0bok

Btw, I mentioned tomm's case to my brother who is electronics engineer and was working on a few USB gadgets in the past years. The immediate response was: Ha!Ha! You are challenging your gods if you connect it this way.

The background is that this "5th pin circuit thing" exists for a reason. It signals the OTG controller to enable its own self-clocked charge pump, to bring the supply voltage to 5V from whatever the battery currently provides. However, if you create a conflict with another (self-clocked) switching power source then all kinds of damage can happen, including tomm's problem. Depending on their internal design, sometimes they work along but you better don't try.

And there are rumors that this "usability issue" is known to USB implementors and somebody already works on improvements of the USB charging spec. We will see.

Link to comment
Share on other sites

Guest DB_Runner

can anybody explain this failure? I used a powered hub with connected keyboard

<6>[01-01 00:00:01.400003] [4: events/0]usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

 <6>[01-01 00:00:01.400003] [4: events/0]usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

 <6>[01-01 00:00:01.400003] [4: events/0]usb usb1: Product: Qualcomm On-Chip EHCI Host Controller

 <6>[01-01 00:00:01.400003] [4: events/0]usb usb1: Manufacturer: Linux 2.6.32.9-perf ehci_hcd

 <6>[01-01 00:00:01.400003] [4: events/0]usb usb1: SerialNumber: msm_hsusb_host.0

 <6>[01-01 00:00:01.400003] [4: events/0]usb usb1: configuration #1 chosen from 1 choice

 <6>[01-01 00:00:01.400003] [4: events/0]hub 1-0:1.0: USB hub found

 <6>[01-01 00:00:01.400003] [4: events/0]hub 1-0:1.0: 1 port detected

 <6>[01-01 00:00:01.720001] [13: khubd]usb 1-1: new high speed USB device using msm_hsusb_host and address 2

 <6>[01-01 00:00:01.870001] [13: khubd]usb 1-1: New USB device found, idVendor=1a40, idProduct=0201

 <6>[01-01 00:00:01.870001] [13: khubd]usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0

 <6>[01-01 00:00:01.870001] [13: khubd]usb 1-1: Product: USB 2.0 Hub [MTT]

 <6>[01-01 00:00:01.870001] [13: khubd]usb 1-1: configuration #1 chosen from 1 choice

 <6>[01-01 00:00:01.870001] [13: khubd]hub 1-1:1.0: USB hub found

 <6>[01-01 00:00:01.870001] [13: khubd]hub 1-1:1.0: 7 ports detected

 <6>[01-01 00:00:02.150005] [13: khubd]usb 1-1.7: new low speed USB device using msm_hsusb_host and address 3

 <6>[01-01 00:00:02.260003] [13: khubd]usb 1-1.7: New USB device found, idVendor=046a, idProduct=0023

 <6>[01-01 00:00:02.260003] [13: khubd]usb 1-1.7: New USB device strings: Mfr=0, Product=0, SerialNumber=0

 <6>[01-01 00:00:02.260003] [13: khubd]usb 1-1.7: configuration #1 chosen from 1 choice

 <4>[01-01 00:00:06.400001] [1: swapper]======return value=1895301568

 <4>[01-01 00:00:06.400001] [1: swapper]

 <3>[01-01 00:00:06.400001] [1: swapper]msm_hsusb_get_set_usb_conf_nv_value: rpc call failed! error: -110

@ h4z7d: i can now use a usb mouse connected with the blade but the keyboard doesnt work. What keyboard do you use ?

Edited by DB_Runner
Link to comment
Share on other sites

I've used a number of keyboards with all with success. Maybe there isnt enough power?

Heres my Dmesg with a usb keyboard attached:

<6>[08-19 08:32:05.833201] [4: events/0]msm_otg_resume: usb exited from low power mode

<6>[08-19 08:32:06.493205] [13: khubd]usb 1-1: new low speed USB device using msm_hsusb_host and address 2

<6>[08-19 08:32:06.653278] [13: khubd]usb 1-1: New USB device found, idVendor=0a81, idProduct=0101

<6>[08-19 08:32:06.653278] [13: khubd]usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

<6>[08-19 08:32:06.653278] [13: khubd]usb 1-1: Product: USB Keyboard

<6>[08-19 08:32:06.653278] [13: khubd]usb 1-1: Manufacturer: CHESEN

<6>[08-19 08:32:06.653278] [13: khubd]usb 1-1: configuration #1 chosen from 1 choice

<6>[08-19 08:32:06.673213] [13: khubd]input: CHESEN USB Keyboard as /devices/platform/msm_hsusb_host.0/usb1/1-1/1-1:1.0/input/input5

<6>[08-19 08:32:06.773221] [13: khubd]generic-usb 0003:0A81:0101.0001: input: USB HID v1.10 Keyboard [CHESEN USB Keyboard] on usb-msm_hsusb_host.0-1/input0

<6>[08-19 08:32:06.803216] [13: khubd]input: CHESEN USB Keyboard as /devices/platform/msm_hsusb_host.0/usb1/1-1/1-1:1.1/input/input6

<6>[08-19 08:32:06.813215] [13: khubd]generic-usb 0003:0A81:0101.0002: input: USB HID v1.10 Device [CHESEN USB Keyboard] on usb-msm_hsusb_host.0-1/input1

I've recently made a USB cable as per my description in previous post. It works excellently. I've been using it in conjunctioin with New Trent IMP660 (http://www.amazon.co...y/dp/B0050DYZ1M). Its an excellent power pack, I highly recommend it.

Unfortunately I still get reboots when connecting/disconnecting a USB OTG device.

I'm looking to get a usb Wifi dongle working with ubnuntu on my phone for Aicrack-ng. Should make it a great portable security tool.

Link to comment
Share on other sites

Guest kol0bok

Hi, today I got my fingers on an OTG adapter (definitely working on Galaxy S2) and decided to play with OTG@Blade. I used TomG's kernel source repository (2.6.32-zte branch) and the .config file from johnsmithx's posts (cyanogen_blade_gen2_defconfig). Mostly following the Howto from http://android.modac...t/#entry1553367 slightly modified for the current situation (gen2 baseband offset).

However, I do not see any reaction when the cable is plugged in. Absolutely no news in dmesg output. After reading more of this thread, I understand that Blade does not provide a power source... ok, but then I think I should at least see some report about mode switch of the USB controller?

Link to comment
Share on other sites

Guest sakke11

how the steps to enable the usb host on zte blade froyo 2.2.2

kernel 2.6.32.9-kernel-perf @ Zdroid zte-SMT

I am sorry im newbie

Me too!

Please.

Link to comment
Share on other sites

Guest DB_Runner

Hi, today I got my fingers on an OTG adapter (definitely working on Galaxy S2) and decided to play with OTG@Blade. I used TomG's kernel source repository (2.6.32-zte branch) and the .config file from johnsmithx's posts (cyanogen_blade_gen2_defconfig). Mostly following the Howto from http://android.modac...t/#entry1553367 slightly modified for the current situation (gen2 baseband offset).

However, I do not see any reaction when the cable is plugged in. Absolutely no news in dmesg output. After reading more of this thread, I understand that Blade does not provide a power source... ok, but then I think I should at least see some report about mode switch of the USB controller?

I dont get any report without connected power source.I think that is normal.

Edited by DB_Runner
Link to comment
Share on other sites

Guest DB_Runner

I've used a number of keyboards with all with success. Maybe there isnt enough power?

I've recently made a USB cable as per my description in previous post. It works excellently. I've been using it in conjunctioin with New Trent IMP660 (http://www.amazon.co...y/dp/B0050DYZ1M). Its an excellent power pack, I highly recommend it.

Unfortunately I still get reboots when connecting/disconnecting a USB OTG device.

I'm looking to get a usb Wifi dongle working with ubnuntu on my phone for Aicrack-ng. Should make it a great portable security tool.

My keyboard requires only 40mA, the mouse 100mA. I think power is not the problem. Maybe the multimedia keys cause the problems. I have ordered a new keyboard, hope that solve the problems.

Any idea what cause the reboots? That problem is really annoying.

Edited by DB_Runner
Link to comment
Share on other sites

Guest t0mm13b

My keyboard requires only 40mA, the mouse 100mA. I think power is not the problem. Maybe the multimedia keys cause the problems. I have ordered a new keyboard, hope that solve the problems.

Any idea what cause the reboots? That problem is really annoying.

Have no idea why it reboots - perhaps a power surge or something that has knocked out the USB subsystem - just be careful that you don't fry the blade like what happened to me :)

Link to comment
Share on other sites

Guest t0mm13b

is kernel debug shed_features enabled in this kernel?

Not sure... do not recall adding debugging features.... unless someone who has it actually working to extract the kernel config and pastebin it for you to look at and verify :)

Link to comment
Share on other sites

My keyboard requires only 40mA, the mouse 100mA. I think power is not the problem. Maybe the multimedia keys cause the problems. I have ordered a new keyboard, hope that solve the problems.

Any idea what cause the reboots? That problem is really annoying.

I thought this might be relavent to your issue with it not detecting keyboards :

http://forum.xda-developers.com/showthread.php?p=16333147

You might need to add vendor codes.

Link to comment
Share on other sites

  • 2 weeks later...
Guest DB_Runner

I thought this might be relavent to your issue with it not detecting keyboards :

http://forum.xda-dev....php?p=16333147

You might need to add vendor codes.

thx for the hint! I will try to add the required vendor code for my "old" Cherry keyboard. Fortunately my new keyboard works perfectly with the blade.

Any progress with your usb wifi dongle experiment?

I have heard that not the usb otg experiment killed t0mm13b his blade. A faulty usb socked caused the sudden dead. So i hope that nobody have to be afraid to kill the blade due testing usb otg.

Link to comment
Share on other sites

thx for the hint! I will try to add the required vendor code for my "old" Cherry keyboard. Fortunately my new keyboard works perfectly with the blade.

Any progress with your usb wifi dongle experiment?

I have heard that not the usb otg experiment killed t0mm13b his blade. A faulty usb socked caused the sudden dead. So i hope that nobody have to be afraid to kill the blade due testing usb otg.

Glad to hear that your new keyboard works.

I've run into issues with compiling the driver for my wifi dongle. I think I'll have to wait until android.git.kernel.org is available again. I've got lsusb in my chmod ubuntu instance displaying my wifi card, now all I need is the driver!

Link to comment
Share on other sites

Guest JoshuaHiggins

I've looked through masses of posts, and even other forums and still have no success getting USB Host mode to work...

I've got the 179 nightly, all the correct hardware, I've got the USBOTG zip file, but I'm a little unclear how to "install" those files, as they fail to run in Clockwork... I've been trying via "install via zip" option, but it aborts on all attempts.

I've run the zip with both files, with them both extracted, and it continues to fail.

Could someone tell me what I'm doing wrong, and possibly explain how to execute this properly?

If so, any other advice regarding OTG would be useful too, such as using dmesg, so on.

I've been trying this for months!! :P

Thanks, any help would be GREATLY appreciated! :)

Link to comment
Share on other sites

I've got the 179 nightly, all the correct hardware, I've got the USBOTG zip file, but I'm a little unclear how to "install" those files, as they fail to run in Clockwork... I've been trying via "install via zip" option, but it aborts on all attempts.

I've run the zip with both files, with them both extracted, and it continues to fail.

- Dont extract the zip files.

- Copy them to your SD card.

- Reboot into clockwork (recovery).

- Choose "Install Zip from SD Card", "Choose zip from sdcard", run usbotg.zip and usb_otg.zip

- Reboot back into android

- Check - Menu > Settings > About Phone > Kernel Version - should read: "2.6.32.9-perf t0mm13b@tribbles#1"

- Connect appropriate cables powered as per advice in previous posts along with USB keyboard and/or mouse

- At this point phone may reboot, if it doesnt I would reboot it anyway. I've had issues with hardware not being detected without a reboot.

- Check if it works, if not do the following:

- Open a terminal and write "lsusb > /sdcard/lsusb.txt" and then run "dmesg > /sdcard/dmesg.txt" This will create two files on your sd card. copy the text and post it up here. Make sure you use the "Insert Code Snippet" when you post up dmesg and lsusb logs here.

Link to comment
Share on other sites

Guest DB_Runner

is it really necessary to install both zip ? I thought only the newer one.

I assume, since new kernel (2.6.35.7) we need a adapted patch to use furthermore USB OTG at the Blade.

Edited by DB_Runner
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.