[Galaxy S II Q&A, Help & Troubleshooting] Uvaavu:
Thanks for the post Phistachio, I've tried this and its not working, infact I'm in the exact same situation as this guy : http://xdaforums.com/showthread.php?p=21430756 , however mine was caused by a series of ICS/CWM Recovery Backup/Restore screw ups.

I can only enter Download mode, via Jig or [Home]+[Vol Down]+[Power] both are fine, no other function currently works (no recovery).

Odin allows me to flash a bootloader, but not a kernel/modem/code etc - it stops at 'NAND Write Start!' and the blue bar never appears on the phone screen.

After attempting to flash a kernel above, but failing, it DOES however increment the 'CUSTOM BINARY DOWNLOAD' counter.

I did get Heimdall to work, and extracted the current PIT (see end for Heimdall's pit output), at which point I tried to flash a kernel in Heimdall, giving the following:

Any ideas? Note I have not tried re-partitioning at all yet - wanted to save that as a last resort.

Heimdall Kernel flash:

Initialising connection...
Detecting device...
Manufacturer: "SAMSUNG"
Product: "Gadget Serial"

length: 18
device class: 2
S/N: 0
VID:PID: 04E8:685D
bcdDevice: 021B
iMan:iProd:iSer: 1:2:0
nb confs: 1

interface[0].altsetting[0]: num endpoints = 1
Class.SubClass.Protocol: 02.02.01
endpoint[0].address: 83
max packet size: 0010
polling interval: 09

interface[1].altsetting[0]: num endpoints = 2
Class.SubClass.Protocol: 0A.00.00
endpoint[0].address: 81
max packet size: 0200
polling interval: 00
endpoint[1].address: 02
max packet size: 0200
polling interval: 00
Claiming interface...
Setting up interface...

Checking if protocol is initialised...
Protocol is not initialised.
Initialising protocol...
Handshaking with Loke...

Beginning session...
Session begun with device of type: 131072

Downloading device's PIT file...
PIT file download sucessful

Uploading KERNEL
0%
File Part #0... Response: 0 0 0 0 0 0 0 0

1%

File Part #1... Response: 0 0 0 0 1 0 0 0

3%

File Part #2... Response: 0 0 0 0 2 0 0 0

4%

File Part #3... Response: 0 0 0 0 3 0 0 0

6%

File Part #4... Response: 0 0 0 0 4 0 0 0

7%

File Part #5... Response: 0 0 0 0 5 0 0 0

9%

File Part #6... Response: 0 0 0 0 6 0 0 0

10%

File Part #7... Response: 0 0 0 0 7 0 0 0

12%

File Part #8... Response: 0 0 0 0 8 0 0 0

14%

File Part #9... Response: 0 0 0 0 9 0 0 0

15%

File Part #10... Response: 0 0 0 0 A 0 0 0

17%

File Part #11... Response: 0 0 0 0 B 0 0 0

18%

File Part #12... Response: 0 0 0 0 C 0 0 0

20%

File Part #13... Response: 0 0 0 0 D 0 0 0

21%

File Part #14... Response: 0 0 0 0 E 0 0 0

23%

File Part #15... Response: 0 0 0 0 F 0 0 0

24%

File Part #16... Response: 0 0 0 0 10 0 0 0

26%

File Part #17... Response: 0 0 0 0 11 0 0 0

28%

File Part #18... Response: 0 0 0 0 12 0 0 0

29%

File Part #19... Response: 0 0 0 0 13 0 0 0

31%

File Part #20... Response: 0 0 0 0 14 0 0 0

32%

File Part #21... Response: 0 0 0 0 15 0 0 0

34%

File Part #22... Response: 0 0 0 0 16 0 0 0

35%

File Part #23... Response: 0 0 0 0 17 0 0 0

37%

File Part #24... Response: 0 0 0 0 18 0 0 0

39%

File Part #25... Response: 0 0 0 0 19 0 0 0

40%

File Part #26... Response: 0 0 0 0 1A 0 0 0

42%

File Part #27... Response: 0 0 0 0 1B 0 0 0

43%

File Part #28... Response: 0 0 0 0 1C 0 0 0

45%

File Part #29... Response: 0 0 0 0 1D 0 0 0

46%

File Part #30... Response: 0 0 0 0 1E 0 0 0

48%

File Part #31... Response: 0 0 0 0 1F 0 0 0

49%

File Part #32... Response: 0 0 0 0 20 0 0 0

51%

File Part #33... Response: 0 0 0 0 21 0 0 0

53%

File Part #34... Response: 0 0 0 0 22 0 0 0

54%

File Part #35... Response: 0 0 0 0 23 0 0 0

56%

File Part #36... Response: 0 0 0 0 24 0 0 0

57%

File Part #37... Response: 0 0 0 0 25 0 0 0

59%

File Part #38... Response: 0 0 0 0 26 0 0 0

60%

File Part #39... Response: 0 0 0 0 27 0 0 0

62%

File Part #40... Response: 0 0 0 0 28 0 0 0

64%

File Part #41... Response: 0 0 0 0 29 0 0 0

65%

File Part #42... Response: 0 0 0 0 2A 0 0 0

67%

File Part #43... Response: 0 0 0 0 2B 0 0 0

68%

File Part #44... Response: 0 0 0 0 2C 0 0 0

70%

File Part #45... Response: 0 0 0 0 2D 0 0 0

71%

File Part #46... Response: 0 0 0 0 2E 0 0 0

73%

File Part #47... Response: 0 0 0 0 2F 0 0 0

74%

File Part #48... Response: 0 0 0 0 30 0 0 0

76%

File Part #49... Response: 0 0 0 0 31 0 0 0

78%

File Part #50... Response: 0 0 0 0 32 0 0 0

79%

File Part #51... Response: 0 0 0 0 33 0 0 0

81%

File Part #52... Response: 0 0 0 0 34 0 0 0

82%

File Part #53... Response: 0 0 0 0 35 0 0 0

84%

File Part #54... Response: 0 0 0 0 36 0 0 0

85%

File Part #55... Response: 0 0 0 0 37 0 0 0

87%

File Part #56... Response: 0 0 0 0 38 0 0 0

89%

File Part #57... Response: 0 0 0 0 39 0 0 0

90%

File Part #58... Response: 0 0 0 0 3A 0 0 0

92%

File Part #59... Response: 0 0 0 0 3B 0 0 0

93%

File Part #60... Response: 0 0 0 0 3C 0 0 0

95%

File Part #61... Response: 0 0 0 0 3D 0 0 0

96%

File Part #62... Response: 0 0 0 0 3E 0 0 0

98%

File Part #63... Response: 0 0 0 0 3F 0 0 0

99%

File Part #64... Response: 0 0 0 0 40 0 0 0

100%

ERROR: libusb error -7 whilst receiving packet. Retrying...
ERROR: libusb error -7 whilst receiving packet. Retrying...
ERROR: libusb error -7 whilst receiving packet. Retrying...
ERROR: libusb error -7 whilst receiving packet. Retrying...
ERROR: libusb error -7 whilst receiving packet. Retrying...
ERROR: libusb error -7 whilst receiving packet.

ERROR: Failed to confirm end of file transfer sequence!
KERNEL upload failed!
Ending session...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet.
ERROR: Failed to send end session packet!

Heimdall pit list:

Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...

Checking if protocol is initialised...
Protocol is not initialised.
Initialising protocol...
Handshaking with Loke...

Beginning session...
Session begun with device of type: 131072

Downloading device's PIT file...
PIT file download sucessful

Entry Count: 15
Unknown 1: 0
Unknown 2: 0
Unknown 3: 0
Unknown 4: 0
Unknown 5: 0
Unknown 6: 0
Unknown 7: 0
Unknown 8: 0

--- Entry #0 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 0
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 0
Partition Block Count: 0
Unknown 2: 0
Unknown 3: 0
Partition Name: GANG
Filename: emmc.img

--- Entry #1 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 1
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 0
Partition Block Count: 0
Unknown 2: 0
Unknown 3: 0
Partition Name: BOOT
Filename: boot.bin

--- Entry #2 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 4
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 8192
Partition Block Count: 40960
Unknown 2: 0
Unknown 3: 0
Partition Name: EFS
Filename: efs.img

--- Entry #3 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 2
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 49152
Partition Block Count: 2560
Unknown 2: 0
Unknown 3: 0
Partition Name: SBL1
Filename: Sbl.bin

--- Entry #4 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 3
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 53248
Partition Block Count: 2560
Unknown 2: 0
Unknown 3: 0
Partition Name: SBL2
Filename:

--- Entry #5 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 5
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 57344
Partition Block Count: 16384
Unknown 2: 0
Unknown 3: 0
Partition Name: PARAM
Filename: param.lfs

--- Entry #6 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 6
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 73728
Partition Block Count: 16384
Unknown 2: 0
Unknown 3: 0
Partition Name: KERNEL
Filename: zImage

--- Entry #7 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 7
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 90112
Partition Block Count: 16384
Unknown 2: 0
Unknown 3: 0
Partition Name: RECOVERY
Filename:

--- Entry #8 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 8
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 106496
Partition Block Count: 204800
Unknown 2: 0
Unknown 3: 0
Partition Name: CACHE
Filename: cache.img

--- Entry #9 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 9
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 311296
Partition Block Count: 32768
Unknown 2: 0
Unknown 3: 0
Partition Name: MODEM
Filename: modem.bin

--- Entry #10 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 10
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 344064
Partition Block Count: 1048576
Unknown 2: 0
Unknown 3: 0
Partition Name: FACTORYFS
Filename: factoryfs.img

--- Entry #11 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 11
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 1392640
Partition Block Count: 4194304
Unknown 2: 0
Unknown 3: 0
Partition Name: DATAFS
Filename: data.img

--- Entry #12 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 12
Partition Flags: 2 (R/W)
Unknown 1: 0
Partition Block Size: 5586944
Partition Block Count: 24133632
Unknown 2: 0
Unknown 3: 0
Partition Name: UMS
Filename:

--- Entry #13 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 13
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 29720576
Partition Block Count: 1048576
Unknown 2: 0
Unknown 3: 0
Partition Name: HIDDEN
Filename: hidden.img

--- Entry #14 ---
Unused: Yes
Partition Type: 1 (Unknown)
Partition Identifier: 9
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 0
Partition Block Count: 0
Unknown 2: 0
Unknown 3: 0
Partition Name:
Filename:

Ending session...
Rebooting device...