[Q] USB jig

bella92108

Senior Member
Feb 15, 2011
1,844
62
0
California
The first thing here is to know what you have flashed already and what kernel you want to be running (putting the kernel you want on will be the last step and only part that may need adb depending on which kernel - will cover those steps in another post or via pm)
Nice!!! (I'm on stock rooted with entropy's I believe). I'm running errands but will try this tonight and advise... thanks again!
 

dayv

Senior Member
Sep 7, 2010
685
135
0
Glad it worked for you. By the way I should mention entropy512 showed me how to do this in one of his threads.

Sent from my SAMSUNG-SGH-I777 using XDA App
 
  • Like
Reactions: bella92108

bella92108

Senior Member
Feb 15, 2011
1,844
62
0
California
out of curiosity, when the phone boots and shows the triangle "!" screen, why does it say GT-9100? Isn't it a I777? Is that because of the kernel or has it always done that and I'm just blind?
 

dayv

Senior Member
Sep 7, 2010
685
135
0
out of curiosity, when the phone boots and shows the triangle "!" screen, why does it say GT-9100? Isn't it a I777? Is that because of the kernel or has it always done that and I'm just blind?
That goes along with the triangle warning and came from codeworkx kernel you flashed to get cwm so you could root, and that will go away when you get rid of the triangle warning.



Sent from my SAMSUNG-SGH-I777 using XDA App
 

bella92108

Senior Member
Feb 15, 2011
1,844
62
0
California
The first thing here is to know what you have flashed already and what kernel you want to be running (putting the kernel you want on will be the last step and only part that may need adb depending on which kernel - will cover those steps in another post or via pm)

Bella92108 i just re-read your posts and looks like you are stock plus rooted kernel. Abacon15 it will work for you as long as you are similar or on one of the att sgs2 based rom's such as dg's cognition or gtg's unamed. If you are on cm7 or some varient, it can still be done as well, but you may have to reflash cm7 by the time all is said and done, and if this is the case just pm me instead of going forward with this and I help with that if i can.

1st step. Go to entropy512's Return/Unbrick to stock here http://forum.xda-developers.com/showthread.php?t=1286432 and download his kernel + rooted system package - while there click his thanks button for putting these packages together for us.

2. Once downloaded we need to extract the contents of the package - if osx is like linux here you can just double click the package and your archive software will popup with the option to extract the contents, if so just do that. Once you have this extracted you should have a PDA.tar file.

3. Now we need to extract the contents of PDA.tar, just like the step above open with your archive software and extract the contents. Once extracted you should now have a zImage file and a factroyfs.img file. For the rest of the way we only need the zImage file - flashing the factoryfs.img would reset you to the factory app package that came with the phone and remove all your installed apps, could be useful to you in the future, but not what we want here.

4. Open your terminal and navigate to the same directory/folder where we have extracted the above zImage file (zImage is the kernel by the way if you did not know). If you don't know how to navigate in terminal one option is to just move the above zImage file to your home folder with you gui file manager (if osx is like linux) because when you first open terminal in linux it automatically opens to your home folder. To make sure we are at the right place in terminal where the zImage file is enter terminal command
Code:
ls
The output of this command will list all the files and sub-folders that are directly in the current folder and if we are in the right place here you should see our zImage file in the list.

5. At this point put your phone into download mode and connect to your computer.

6. enter into terminal the following commad
Code:
heimdall detect
Heimdall should detect your device here and if it does then move on to the next step, if you get a warning like "heimdall failed to detect compatible download-mode device" then we have a connection problem to fix first.

7. To flash the kernel enter command
Code:
heimdall flash --kernel zImage
If you get a good flash and your phone reboots you should now be rid of the triangle exclamation point warning on the initial boot splash. If you get a permission error then we need you go back and run your terminal as admin, or use the sudo command in terminal if that works in osx just like it does in linux as follows
Code:
sudo heimdall flash --kernel zImage
it should as for your login password here again if it is like linux

At this point if all has went according to plan we will be ready to flash what ever kernel you would like to be running. Just pm me here and let me know what you would like to be running and I will help you through the steps for this as well, it may or may now require adb, if it does that is not any harder than what we have done so far.
I'm getting DEVICE DETECTED, but then when I run the command:

Initialising connection...
Detecting device...
Claiming interface...
ERROR: Claiming interface failed!
 

bella92108

Senior Member
Feb 15, 2011
1,844
62
0
California
Did you try
Sudo heimdall flash --kernel zImage



Sent from my SAMSUNG-SGH-I777 using XDA App
Yep, entered admin credentials then it did the same thing, same message,

---------- Post added at 03:09 PM ---------- Previous post was at 03:07 PM ----------

Oh for [email protected]#s sake. It's the iMac again. LOL.

I did it on my MacBook Air and it worked fine. Silly apple uses an internal powered USB hub inside the iMac, and it doesn't have proper communications capability for flashing. I bricked 2 Infuses before I learned this.

So lesson for everyone, DONT USE IMAC, use Macbook Pro or Macbook Air... or Mac Mini....

It worked, counter 0'd, triangle\"!" gone, and back to beautifulness!

THANK YOU THANK YOU THANK YOU!!!!
 

dayv

Senior Member
Sep 7, 2010
685
135
0
Glad it worked. And now I know what is causing you Mac guys that error message, I know I've seen it posted by someone else in they last couple days somewhere.

Also just so you know you are running the stock kernel that came with the phone but you are still rooted. Also if you flash a new kernel and/or ROM via cwm or adb the triangle will not come back, it is only triggered when flashing a custom kernel and/or ROM via download mode with heimdall or Odin

Sent from my SAMSUNG-SGH-I777 using XDA App
 

bella92108

Senior Member
Feb 15, 2011
1,844
62
0
California
Glad it worked. And now I know what is causing you Mac guys that error message, I know I've seen it posted by someone else in they last couple days somewhere.

Also just so you know you are running the stock kernel that came with the phone but you are still rooted. Also if you flash a new kernel and/or ROM via cwm or adb the triangle will not come back, it is only triggered when flashing a custom kernel and/or ROM via download mode with heimdall or Odin

Sent from my SAMSUNG-SGH-I777 using XDA App
Oh so this undid the kernel I had on it in order to root it?

Would it be advisable to re-kernalize (hehe right?) that one that I had flashed to root it? It was giving me amazing battery life, tho that may just be the phone in general. Please advise.

EDIT - The kernel I'd used to root was the one from codeworkx
 

dayv

Senior Member
Sep 7, 2010
685
135
0
Oh so this undid the kernel I had on it in order to root it?

Would it be advisable to re-kernalize (hehe right?) rust one that I had flashed to root it? It was giving me amazing battery life, tho that may just be the phone in general. Please advise.

EDIT - The kernel I'd used to root was the one from codeworkx
To you first question, yes you removed codeworkx kernel and swapped in the stock one entropy512 posted.

To you second, I couldn't say for sure which kernel is better, though codeworkx does have a good rep as a dev and has done some power saving mods in kernels for other phones, so it may of been his kernel that gave you good battery life. I'll post the steps you need to do it without getting the triangle warning back here in a few minutes and you can decide whether you want to do it or not. It is not any harder than what you have already done to this point. Plus you can use these steps to flash any kernel you choose.

Sent from my SAMSUNG-SGH-I777 using XDA App
 

bella92108

Senior Member
Feb 15, 2011
1,844
62
0
California
To you first question, yes you removed codeworkx kernel and swapped in the stock one entropy512 posted.

To you second, I couldn't say for sure which kernel is better, though codeworkx does have a good rep as a dev and has done some power saving mods in kernels for other phones, so it may of been his kernel that gave you good battery life. I'll post the steps you need to do it without getting the triangle warning back here in a few minutes and you can decide whether you want to do it or not. It is not any harder than what you have already done to this point. Plus you can use these steps to flash any kernel you choose.

Sent from my SAMSUNG-SGH-I777 using XDA App
I downloaded and extracted his kernel. Can't I just flash it in heimdall just like I just did with the other zImage?
 

abacon15

Senior Member
Aug 15, 2010
201
9
0
Jacksonville
You can, but you'll get the triangle back. Btw, the counter hasn't been reset, you just have the stock kernel back and therefore the phone is "happy" again and isn't showing the exclamation point stating the kernel isn't stock.
 

bella92108

Senior Member
Feb 15, 2011
1,844
62
0
California
You can, but you'll get the triangle back. Btw, the counter hasn't been reset, you just have the stock kernel back and therefore the phone is "happy" again and isn't showing the exclamation point stating the kernel isn't stock.
Oh, I thought if I flashed any other kernel using heimdall it won't give me the triangle back, I thought that was only when using CWM to flash it. ???
 

dayv

Senior Member
Sep 7, 2010
685
135
0
Bella92108 sent you a pm.

Here are the steps using adb.

You can get adb from here
http://developer.android.com/sdk/index.html
adb is part of the sdk package that you can download from there.

Here is a guide to getting adb up and running on a mac, since that seems to be the main thing we are working with today.
http://forum.xda-developers.com/showthread.php?p=9842005
I know this may seem like a bit of a pain, but once you get through it and get adb up and running you wont have to do it again. And adb is a very useful tool if you are going to be flashing much. Now on to how to flash a clockworkx kernel with adb

1. Go to clockworkx thread and download his cwm kernel from here
http://forum.xda-developers.com/showthread.php?t=1285823
While there hit his thanks button for putting his kernel out

2. Extract the contents of the tar file you downloaded from codeworkx thread, it will be a zImage (kernel)

3. Turn your phone on normal boot up and connect to your computer, do not select usb storage mode, leave it on normal connected and untouched from there (no it won't work in download mode - it will work from recovery, this makes adb very useful if you get stuck in a bootloop and cant boot normally, you can boot into recovery and use adb to push any needed files to your phone)

4. Open terminal and navigate to the folder/directory where you have the extracted zImage

5. Enter command into terminal
Code:
adb push zImage /sdcard/zImage
This command is putting a copy of the kernel on your sdcard

6. Enter command into termianl
Code:
adb shell su dd if=/sdcard/zImage of=/dev/block/mmcblk0p5
This "dd if/of" command is reading the contents of the zImage that we put on your sdcard and printing those comments to the partition block where the kernel resides on our phone

7. Once the above command has completed - make sure you wait till it finishes - disconnect your phone from your computer and reboot your phone. When it boots up it will boot up with codeworkx kernel, and since we did not flash via heimdall or odin we will not get the triangle warning.

Obviously you can flash any kernel via this method, just make sure the kernel you flash is compatible with your phone and the rom (system image) you are running.
 

bella92108

Senior Member
Feb 15, 2011
1,844
62
0
California
Bella92108 sent you a pm.

Here are the steps using adb.

You can get adb from here
http://developer.android.com/sdk/index.html
adb is part of the sdk package that you can download from there.

Here is a guide to getting adb up and running on a mac, since that seems to be the main thing we are working with today.
http://forum.xda-developers.com/showthread.php?p=9842005
I know this may seem like a bit of a pain, but once you get through it and get adb up and running you wont have to do it again. And adb is a very useful tool if you are going to be flashing much. Now on to how to flash a clockworkx kernel with adb

1. Go to clockworkx thread and download his cwm kernel from here
http://forum.xda-developers.com/showthread.php?t=1285823
While there hit his thanks button for putting his kernel out

2. Extract the contents of the tar file you downloaded from codeworkx thread, it will be a zImage (kernel)

3. Turn your phone on normal boot up and connect to your computer, do not select usb storage mode, leave it on normal connected and untouched from there (no it won't work in download mode - it will work from recovery, this makes adb very useful if you get stuck in a bootloop and cant boot normally, you can boot into recovery and use adb to push any needed files to your phone)

4. Open terminal and navigate to the folder/directory where you have the extracted zImage

5. Enter command into terminal
Code:
adb push zImage /sdcard/zImage
This command is putting a copy of the kernel on your sdcard

6. Enter command into termianl
Code:
adb shell su dd if=/sdcard/zImage of=/dev/block/mmcblk0p5
This "dd if/of" command is reading the contents of the zImage that we put on your sdcard and printing those comments to the partition block where the kernel resides on our phone

7. Once the above command has completed - make sure you wait till it finishes - disconnect your phone from your computer and reboot your phone. When it boots up it will boot up with codeworkx kernel, and since we did not flash via heimdall or odin we will not get the triangle warning.

Obviously you can flash any kernel via this method, just make sure the kernel you flash is compatible with your phone and the rom (system image) you are running.
Holey crapoli! LOL. Would it be easier to do this on a PC? I have windows on my mac too if it's more simple, lol.
 

dayv

Senior Member
Sep 7, 2010
685
135
0
Oh, I thought if I flashed any other kernel using heimdall it won't give me the triangle back, I thought that was only when using CWM to flash it. ???
It is flashing a custom rom or kernel via heimdall or odin that triggers the warning. Flashing via cwm or adb will not trigger the warning.
 

bella92108

Senior Member
Feb 15, 2011
1,844
62
0
California
5. Enter command into terminal
Code:
adb push zImage /sdcard/zImage
This command is putting a copy of the kernel on your sdcard

6. Enter command into termianl
Code:
adb shell su dd if=/sdcard/zImage of=/dev/block/mmcblk0p5
This "dd if/of" command is reading the contents of the zImage that we put on your sdcard and printing those comments to the partition block where the kernel resides on our phone
Step 6 is copying it to the device just fine, but then Step 7 I think has something awry because it just brings up the adb shell usage instructions.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone