[G1 Android Development] BLKro:
Hello all,

I have a bricked Magic 32A. It loops at the Vodafone logo, and it got in this loop after flashing some clocworkmod recovery which wasn't compatible with the radio in the phone. I tried entering recovery from the rommanager. I think something got set in the boot process and the phone keeps trying to enter recovery, and keeps reseting because it can't.

I made myself a wiggler clone from this thread, using the scholbert schematic (using 74LVC245). I used an LM317 powered by USB to get 2.6-2.61V. I did not use SRST because I did not see this on the Magic pinout. I also made an RS-232 converter using max3232, also tried a usb to rs-232 converter I had lying around.

I installed Ubuntu 11.04 on an old machine with parallel and serial ports. I then installed openocd, screen, because I did not have them by default. I am not a linux user so if I need something else installed, please help me. Does openocd and screen need anything else installed for communicating with the phone?

I have some problems/questions that I hope to find help here for:

1) TCK pin on the wiggler sits high at the beginning, because of this, I believe, the phone acts strange. If I first connect the phone to the wiggler without entering blue-light mode, the backlight of the screen turns on, is this normal?

2) I've read here about +5V on the serial cable, are you talking about pin 5 on the extUSB connector? If yes, then how can I connect 5V to that pin using the headset extUSB connector I am using? I can't find a wire to that pin.

3) When trying to connect to serial port, I just get an empty terminal with a blinking cursor, trying to enter "?" does nothing. I entered "screen /dev/ttyS0 115200", tried also ttyS1 (I have 2 serial port on the motherboard). After that the terminal window is blank with the cursor in the top left corner.

4) "openocd -f magic.cfg" says device not found. Should I modify something in the text file I downloaded from pastebin?

5) Pin 7 on the extUSB is GND, 8 is TX of the phone, and 9 is RX of the phone. So I need to connect pin 8 to pin 2 of RS-232 through max3232 and pin 9 to pin 3? Is this right? I tried both ways and got the same blank terminal screen.

I am an electronics engineer, I solder alot, the soldering is solid, all seems OK, but nothing seems to be working. I am starting to believe the PC may be malfunctioning, but still, neither serial port, nor parallel are working.

I do not have an ARM-USC-OCD, nor need it, so buying one would be too expensive. I could get the phone repaired (for like 20-30$ here), but I like doing my own repairing. It was sitting in the drawer for a year, just now had some time to open it.

Thanks in advance,

Alex

EDIT 1: Solved the RS-232 problem. Now I am getting "Invalid command: ?". I had a bad MAX3232 (or blew it while testing). Hacked the extUSB headset completely, now got access to +5V USB pin, although, the serial connection worked without the voltage connected. Going to the next one, got also an USB to parallel port adapter, so I can see what's wrong. Still awaiting thoughts, if someone has time to spare. Thanks!

EDIT 2: After using "rmmod lp" and parport_port 0x0 suggested here and running openocd as root I am getting stuck here:

I checked all the testpoints to ground and I have about 1Meg. N-TRST sits high, at 2.6V. Tried putting 5V on the serial, still the same, tried with no serial connection, still the same. My wires are less than 10cm, what could be my problem?

EDIT 3: Could it be a bad OpenOCD installation (no ./configure --enable-parport --enable-parport_ppdev)? I just used "sudo apt-get install openocd" as Ubuntu suggested when I tried to run openocd from terminal and it did not find it installed. Should I compile it myself, could this be the problem? Is there any way to find out if it is installed and configured correctly? Could the 500kHz speed be too fast for my old PC?

Rechecked the soldering under 10x magnifier and all looks nice and shiny (I used flux and good soldering wire). Am using 30AWG multifilar wire (the type sold for modding videogame consoles, I used to mod consoles, so soldering thin wires in tight places is second nature).

Also read this thread from the beginning 2 times now, no hint :(

I could really use a hint, hope this thread is not dead...