Jump to content

Issues with USB connectivity etc. and root / A2SD


Recommended Posts

Guest Carnage21
Posted

To do the module , we need to get someone who can confidently code c i believe it was discussed last night in irc , we have a few of us working on it every day , there is a guy called drvjik (spelling) he seems to have worked out what is causing it , its a switch that we arnt getting at startup called usb_h2w_sw this is set to 0 on working phones and 1 on bricked phones , we are trying to figure this all out at the moment , as you can understand its hard for paul etc to get on it , when they have nothign to test it on , as the issues is so random , he was telling us last night he flashes his phone All day and he hasnt come across the issue (yet lol) , i kindly offered to swap phones with him :) he poltefully declined , just chillax your phones work , it is being worked on

Guest afiorillo
Posted
To do the module , we need to get someone who can confidently code c i believe it was discussed last night in irc , we have a few of us working on it every day , there is a guy called drvjik (spelling) he seems to have worked out what is causing it , its a switch that we arnt getting at startup called usb_h2w_sw this is set to 0 on working phones and 1 on bricked phones , we are trying to figure this all out at the moment , as you can understand its hard for paul etc to get on it , when they have nothign to test it on , as the issues is so random , he was telling us last night he flashes his phone All day and he hasnt come across the issue (yet lol) , i kindly offered to swap phones with him ;) he poltefully declined , just chillax your phones work , it is being worked on

Heres the demonstration that silence != indifference. Often it means hard work. :)

Thank to all of you for your efforts.

Guest deovferreira
Posted (edited)
To do the module , we need to get someone who can confidently code c i believe it was discussed last night in irc , we have a few of us working on it every day , there is a guy called drvjik (spelling) he seems to have worked out what is causing it , its a switch that we arnt getting at startup called usb_h2w_sw this is set to 0 on working phones and 1 on bricked phones , we are trying to figure this all out at the moment , as you can understand its hard for paul etc to get on it , when they have nothign to test it on , as the issues is so random , he was telling us last night he flashes his phone All day and he hasnt come across the issue (yet lol) , i kindly offered to swap phones with him ;) he poltefully declined , just chillax your phones work , it is being worked on

I am not familiar with the whole kernel but know quite a bit from arch/arm/mach-msm, since I have been working on porting it to 2.6.34, I can help you. What is the IRC channel?

Edit: nevermind, #modaco on freenode :)

Edited by deovferreira
Guest Carnage21
Posted
I am not familiar with the whole kernel but know quite a bit from arch/arm/mach-msm, since I have been working on porting it to 2.6.34, I can help you. What is the IRC channel?

#Modaco on freenode

most of the activity i do personally is after work around 5:30pm Australian time , i know drvdjnvldi(spelling lol) is around normally that time to

we need to find a way to get that booting at kernal level

dammed usb_h2w_sw!

Guest ciairo
Posted
#Modaco on freenode

we need to find a way to get that booting at kernal level

dammed usb_h2w_sw!

Thanks so much guys. Hope you will succeed soon!

Guest geek78
Posted
To do the module , we need to get someone who can confidently code c i believe it was discussed last night in irc , we have a few of us working on it every day , there is a guy called drvjik (spelling) he seems to have worked out what is causing it , its a switch that we arnt getting at startup called usb_h2w_sw this is set to 0 on working phones and 1 on bricked phones , we are trying to figure this all out at the moment , as you can understand its hard for paul etc to get on it , when they have nothign to test it on , as the issues is so random , he was telling us last night he flashes his phone All day and he hasnt come across the issue (yet lol) , i kindly offered to swap phones with him :rolleyes: he poltefully declined , just chillax your phones work , it is being worked on

are you sure that usb_h2w_sw is a good way to find a trick ? this a kernel value for the head-set ?

Guest pina
Posted

are there people in here that also have got problems with charging? It doesn't work 100%. I plugged it in now but it isn't charging... and after 5 minutes, it starts charging, but not always....

Guest Biliskner
Posted
are there people in here that also have got problems with charging? It doesn't work 100%. I plugged it in now but it isn't charging... and after 5 minutes, it starts charging, but not always....

that's normal, comes free with a bricked phone.

Guest Biliskner
Posted

Just had a thought: everyone with a bricked phone - did you use HTC/Android's built in "backup all my crap onto SD Card?" I just remembered that when I first got the phone thinking "why would I use that? Root-backup / nandroid would be 1000x better!" Can't remember if i turned on that option though on first (root) boot...

Guest drvdijk
Posted

Hey thanks for the mentions guys, but I don't really feel I'm contributing a lot. What I found is that the board_bravo.usb_h2w_sw parameter is used in the board_bravo kernel module to load some stuff:

static uint opt_usb_h2w_sw;

module_param_named(usb_h2w_sw, opt_usb_h2w_sw, uint, 0);
and
	if (!opt_usb_h2w_sw) {

		msm_register_usb_phy_init_seq(bravo_phy_init_seq);

		msm_add_usb_id_pin_gpio(BRAVO_GPIO_USB_ID_PIN);

		msm_add_usb_id_pin_function(config_bravo_usb_id_gpios);

		config_bravo_usb_id_gpios(0);

		msm_enable_car_kit_detect(1);

		msm_hsusb_set_product(bravo_usb_products,

			ARRAY_SIZE(bravo_usb_products));

		msm_add_usb_devices(bravo_usb_phy_reset, NULL);

	}

What is causing the parameter to be set and how to unset it I really don't know (except for an engineering SPL)

Guest Kali-
Posted (edited)
Hey thanks for the mentions guys, but I don't really feel I'm contributing a lot. What I found is that the board_bravo.usb_h2w_sw parameter is used in the board_bravo kernel module to load some stuff:

static uint opt_usb_h2w_sw;

module_param_named(usb_h2w_sw, opt_usb_h2w_sw, uint, 0);
and
	if (!opt_usb_h2w_sw) {

		msm_register_usb_phy_init_seq(bravo_phy_init_seq);

		msm_add_usb_id_pin_gpio(BRAVO_GPIO_USB_ID_PIN);

		msm_add_usb_id_pin_function(config_bravo_usb_id_gpios);

		config_bravo_usb_id_gpios(0);

		msm_enable_car_kit_detect(1);

		msm_hsusb_set_product(bravo_usb_products,

			ARRAY_SIZE(bravo_usb_products));

		msm_add_usb_devices(bravo_usb_phy_reset, NULL);

	}

What is causing the parameter to be set and how to unset it I really don't know (except for an engineering SPL)

no one has tried to invert the if?

if (opt_usb_h2w_sw) {

Edited by Kali-
Guest deeren
Posted

i don't think that only playing with usb_h2w_sw will resolve the problem. i think the problem is actually bigger than that, i mean, if only the usb function was disabled , then why is sd card access too removed???

Guest Kali-
Posted (edited)
i don't think that only playing with usb_h2w_sw will resolve the problem. i think the problem is actually bigger than that, i mean, if only the usb function was disabled , then why is sd card access too removed???

for sure, didn't fix the recovery and could be only a workaround for usb, but i didn't know if it's also possible to flash a modified kernel without the recovery :rolleyes:

the main problem is probably on the spl

Edited by Kali-
Guest ZiCoN
Posted
I found this while trying to port the kernel to a more forward version:

#define ULPI_VERIFY_MAX_LOOP_COUNT  3
static int msm_hsusb_phy_verify_access(void __iomem *usb_base)
{
int temp;

for (temp = 0; temp < ULPI_VERIFY_MAX_LOOP_COUNT; temp++) {
if (ulpi_read(usb_base, ULPI_DEBUG) != (unsigned)-1)
break;
msm_hsusb_apps_reset_phy();
}
if (temp == ULPI_VERIFY_MAX_LOOP_COUNT) {
pr_err("%s: ulpi read failed for %d times\n",
__func__, ULPI_VERIFY_MAX_LOOP_COUNT);
return -1;
}
}

[/codebox]

Can someone with a usb-bricked device thoroughly check the kernel log for messages containing [b]ulpi read failed[/b] or similar?

If I am right the only thing one needs to do to revert this is call one of this functions from kernel space.

[codebox]
if (reset)
ret = msm_proc_comm(PCOM_CLK_REGIME_SEC_RESET_ASSERT,
&usb_id, NULL);
else
ret = msm_proc_comm(PCOM_CLK_REGIME_SEC_RESET_DEASSERT,
&usb_id, NULL);

This would need to be done in a module, I am not sure if we can easily insert modules now. I am not able to test this because my device is working correctly but I thought it might be useful for some.

What I don't understand, is they've put this function in so it'll disable these things.... I just can't believe it's not possible to reset the configuration WITHOUT sending the phone to repair... That make absolutely NO sense at all...

I've sent a mail to HTC today, said I've updated the phone with the latest update, had boot loop, and now I can't use usb and bt.... Let's see what they say..

Guest jeckyllhavok
Posted
What I don't understand, is they've put this function in so it'll disable these things.... I just can't believe it's not possible to reset the configuration WITHOUT sending the phone to repair... That make absolutely NO sense at all...

I've sent a mail to HTC today, said I've updated the phone with the latest update, had boot loop, and now I can't use usb and bt.... Let's see what they say..

1+ for that

Guest xTc is loVe
Posted
1+ for that

Yes, i startet thinking on a Petition vs HTC somethink like: " If u dont help us,(let it be for less money) we wont buy any HTC phone next time!

Maybe they help us?

Guest jeckyllhavok
Posted
Yes, i startet thinking on a Petition vs HTC somethink like: " If u dont help us,(let it be for less money) we wont buy any HTC phone next time!

Maybe they help us?

i guess not.... there was such a petition for the WiMo 3d drivers, but we never get them from HTC

Guest chrmrt
Posted (edited)

For any unfortunate danes out there:

1. Go to the 3 store where you bought Desire

2. Tell guy at counter that USB connection is not working, that you tried with your friends Desire which had no problems

3. Tell guy at counter that you spoke to HTC Customer Service for 30-40min without finding a solution (Don't actually call them)

4. ?????????

5. New Desire

EDIT: must.. not.. root.. GAAH!

Edited by chrmrt
Guest stuliv12
Posted

Sent mine back to HTC today in the UK, I will report back with the outcome. ( Sent with stock rom re-flashed etc. )

Guest Specialist79
Posted
Hey thanks for the mentions guys, but I don't really feel I'm contributing a lot. What I found is that the board_bravo.usb_h2w_sw parameter is used in the board_bravo kernel module to load some stuff:

static uint opt_usb_h2w_sw;

module_param_named(usb_h2w_sw, opt_usb_h2w_sw, uint, 0);
and
	if (!opt_usb_h2w_sw) {

		msm_register_usb_phy_init_seq(bravo_phy_init_seq);

		msm_add_usb_id_pin_gpio(BRAVO_GPIO_USB_ID_PIN);

		msm_add_usb_id_pin_function(config_bravo_usb_id_gpios);

		config_bravo_usb_id_gpios(0);

		msm_enable_car_kit_detect(1);

		msm_hsusb_set_product(bravo_usb_products,

			ARRAY_SIZE(bravo_usb_products));

		msm_add_usb_devices(bravo_usb_phy_reset, NULL);

	}

What is causing the parameter to be set and how to unset it I really don't know (except for an engineering SPL)

Well, I think, you solved the mystery, congratulations! While removing the if-statement won't fix the configuration breakage, it will at least enable the device to initialize USB when the regular OS is running (kernel recompile and replacement needed, though). :-)

Guest MIYU-G
Posted

yesterday I was be a bricked-desire man,too.After my r3 modaco rom with tun.ko patch & oc_uv7 patch flash a jitenable zip files,then the sdcard disappeared,now it was resolved with command here,but stiull no usb,bt and fm

Guest mardox
Posted

how long would it take to get the usb working if it is indeed solvable by the above? is it an easy fix or does it require a lot of coding?

Guest xTc is loVe
Posted

I have a anoying problem: when my screen turns off my connection like 3g and umts shuts down short! so even if i take calls with proximity -.- any solution?

Hboot 0.80 newest generic rom - - - - - bricked -.-

only answer is sending back to my customer? But my phone is software branded before...... will they repair it?

Guest DougieB
Posted
I have a anoying problem: when my screen turns off my connection like 3g and umts shuts down short! so even if i take calls with proximity -.- any solution?

Hboot 0.80 newest generic rom - - - - - bricked -.-

only answer is sending back to my customer? But my phone is software branded before...... will they repair it?

Yeah I have this problem, I can barely use my phone as a phone. Back to TMO stock ROM again, considering taking it back for repair tomorrow...

Guest MIYU-G
Posted (edited)

I really hope someone could fix it oneday and give us a surprise

Edited by MIYU-G

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.