[25.01.2011] WARNING! Do not flash JM*,KA*... README! [Patch released, L/N supported]

Search This thread

rmanaudio

Senior Member
Aug 27, 2010
210
11
GTA
We need to fix this issue as this is the main reason why most of us cannot flash any CWM or custome Kernals.

Why would samsung do this? Unless they are introducing this into all future ROM's so nobody can flash custome kernals or Roms!?!?!?!?
 

Chainfire

Moderator Emeritus / Senior Recognized Developer
Oct 2, 2007
11,452
87,862
www.chainfire.eu
We need to fix this issue as this is the main reason why most of us cannot flash any CWM or custome Kernals.

Why would samsung do this? Unless they are introducing this into all future ROM's so nobody can flash custome kernals or Roms!?!?!?!?

Or maybe it's to mess with us leak-users? Maybe its only a test? We really don't know. But indeed it had crossed my mind that they may be trying to limit our custom ROM/kernel use.
 

roan67

Senior Member
Jan 19, 2009
226
19
Thanks for infos and sorry for your Tab.

For me, it's too late. Unable to Downgrade


Tab/JMC :(
 

kromosto

Senior Member
Jul 11, 2010
335
31
Ankara
Or maybe it's to mess with us leak-users? Maybe its only a test? We really don't know. But indeed it had crossed my mind that they may be trying to limit our custom ROM/kernel use.

i think they will going to do this change to all their roms. everybody says in JMx M means nothing but maybe this is the reason.
 

infamouskid

Senior Member
Sep 23, 2010
134
7
toronto
greeeaaatttt no one said this in the JMD thread.
i can now confirm i have this flashed with jmd and that has it.
is there anyway around this people? cuz now i have no camera in JMD.
 
Apr 27, 2010
30
1
I'm a bit confused about this. I have flashed to JM6, JMA and JMC. JM6 with pit and repartition (CODE, MODEM & CSC, and boot.bin/sbl.bin not inside) and JMA & JMC with no repartition and no pit (from samfirmwares). Also, I never cheked "Phone bootloader update" in Odin v1.7.

The question is: if I have never used "phone bootloader update ", and both times I've flashed JMA and JMC have been updates (no pit, no repartition, although boot.bin sbl.bin were present), it is possible to modify the bootloader?

Sorry for my english. Hope you understand the post (a bit, :))

Edit: I forgot to comment: After flashing JM6-JMA-JMC as I said, I re-flashed JM6 (which has no sbl.bin boot.bin or inside) with .pit and repartition without any problem.

PD.: Thanks for the warning, at least it will serve for new users... if they read the post ... :rolleyes:
 
Last edited:

kromosto

Senior Member
Jul 11, 2010
335
31
Ankara
I'm a bit confused about this. I have flashed to JM6, JMA and JMC. JM6 with pit and repartition (CODE, MODEM & CSC, and boot.bin/sbl.bin not inside) and JMA & JMC with no repartition and no pit (from samfirmwares). Also, I never cheked "Phone bootloader update" in Odin v1.7.

The question is: if I have never used "phone bootloader update ", and both times I've flashed JMA and JMC have been updates (no pit, no repartition, although boot.bin sbl.bin were present), it is possible to modify the bootloader?

Sorry for my english. Hope you understand the post (a bit, :))

Edit: I forgot to comment: After flashing JM6-JMA-JMC as I said, I re-flashed JM6 (which has no sbl.bin boot.bin or inside) with .pit and repartition without any problem.

PD.: Thanks for the warning, at least it will serve for new users... if they read the post ... :rolleyes:

dont worry you are ok
 

Chainfire

Moderator Emeritus / Senior Recognized Developer
Oct 2, 2007
11,452
87,862
www.chainfire.eu
i think they will going to do this change to all their roms. everybody says in JMx M means nothing but maybe this is the reason.

The exact meaning of M and P are by now lost, as Samsung seems to use them all over the place - in contrast to A through L which are used on a month bases. It won't be specifically for this bootloader though, it's just a branch :)

I'm a bit confused about this. I have flashed to JM6, JMA and JMC. JM6 with pit and repartition (CODE, MODEM & CSC, and boot.bin/sbl.bin not inside) and JMA & JMC with no repartition and no pit (from samfirmwares). Also, I never cheked "Phone bootloader update" in Odin v1.7.

The question is: if I have never used "phone bootloader update ", and both times I've flashed JMA and JMC have been updates (no pit, no repartition, although boot.bin sbl.bin were present), it is possible to modify the bootloader?

Sorry for my english. Hope you understand the post (a bit, :))

Edit: I forgot to comment: After flashing JM6-JMA-JMC as I said, I re-flashed JM6 (which has no sbl.bin boot.bin or inside) with .pit and repartition without any problem.

PD.: Thanks for the warning, at least it will serve for new users... if they read the post ... :rolleyes:

It doesn't appear this box needs to be checked for the bootloader to be actually updated. Not sure though. Besides, as stated in the first post, you can flash between all the JM6-JMA-JMC-JMD releases, they all include the right signatures.

whew.. ok i was able to downgrade using roto's JMA release.
everything ok.

Again, you can flash between the JMx releases. The problem comes when you want to flash outside the JMx set of ROMs.

@rotohammer: Is the kernel in your JMA release actually modified or just stock zImage ?
 

Chainfire

Moderator Emeritus / Senior Recognized Developer
Oct 2, 2007
11,452
87,862
www.chainfire.eu
Yes, but ... Why? Because I have not use "Phone update bootloader" in v1.7 odin? Or because I have not check "repartition" and I flash updates in the case of JM6 and JMC?

Or any of this?

None of those mean you are safe. You may still have the protected bootloader. You won't know for sure until you try to flash a non-Samsung-JMx-kernel. There is no easy way (yet) to find out. He's plain wrong in saying (for sure) that you are safe.

Stock from JMA zImage, I only modified the factoryfs.rfs to pre-root it.

Ah ok. And thus rotohammer's JMA being flashable doesn't mean anything one way or the other, regarding protected or unprotected bootloader.
 
  • Like
Reactions: sihayqueirseva
Apr 27, 2010
30
1
None of those mean you are safe. You may still have the protected bootloader. You won't know for sure until you try to flash a non-Samsung-JMx-kernel. There is no easy way (yet) to find out. He's plain wrong in saying (for sure) that you are safe.

Thank you for the answer. At least I can flash with repartition to JM6 if I had any problem or the tab not start. I hope there will be a solution soon and, above all, your Tab will be re-animated. Thanks again.
 

zeb crs

Senior Member
Jun 2, 2008
135
11
JTAG flasher

Wouldn't it be easy to fix using the RIFF JTAG programmer. It does support the P1000 now.
And it is quite cheap as well at about 150£.
You would probably be needed to open the cover to fix it then.
I was thinking about getting one before I throw myself into playing with flashing on this device. There is always good too have a safe and secure backdoor to get it up and running again as it is for sure that unit will get bricked playing with firmwares this early in the game.
 

Joao Oliveira

Senior Member
Oct 30, 2006
547
72
Question.

Does anyone know wher exactly in which version is exactly, the new bootloader? jm6 jma jmc what?

I only flashed the jm6 version updated version for odin from 29.11.2010 and then jmc and back to jm6. never used jma or jmd.

I really hope this can be solved soon, specially because we want gingerbreak when it's available. :p

Again thaks for the warning, none that flashed these JMx firmwares would have guessed that there as a stupid "protection".

I hope you can get you tab working soon chainfire.

All the best,

J.
 

Monrad

Senior Member
Nov 23, 2007
178
54
Thanks for the INFO chainfire, I'm modifying my JMC flashing guide in order to warn users.

Do you know when spl and boot are flashed? IE, if you flash only the PDA part, are you flashing boot and spl too?

Is it possible to ckeck kernel version from the phone info? Mine's is 2.6.32.9.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 226
    DO NOT USE THIS ON THE GINGERBREAD RELEASES ! THE SAMSUNG GINGERBREAD RELEASES DO HAVE SIGNED BOOTLOADERS, BUT THEY ARE NOT LOCKED. In other words, you can still flash custom kernels and such, and the bootloader patch will only break things, not fix them.

    To read the history of this problem, see the 2nd post of this thread (scroll down).

    A number of new firmwares for the Samsung Galaxy Tab come with "signed / protected" bootloaders. These new bootloaders prevent you from flashing custom or otherwise unsigned kernels on the device. Trying to do so anyway will result in errors and usually requires you to reflash your ROM completely.

    I hope everybody here has learned the lesson not to just flash anything that SamFirmware releases ;)

    The patch
    After a great many hours of researching, testing and coding, myself (Chainfire) and Rotohammer have come up with a patch that works on most devices (currently all known GSM Tab variants), and flashes back unprotected JJ4 (T-Mobile ?) bootloaders, or the original P1000N bootloaders for the Latin models. The app only patches when it finds protected bootloaders, and you have to press a button for that, so the app can also be used to look at your current status.

    The patch has been tested repeatedly and with success on (0 bricks so far):

    - GT-P1000 Euro/International/Unbranded Galaxy Tab
    - SGH-I987 AT&T Galaxy Tab
    - SGH-I987 Rogers Galaxy Tab
    - SGH-T849 T-Mobile Galaxy Tab

    - GT-P1000L Latin Galaxy Tab (use LATIN version!)
    - GT-P1000N Latin Galaxy Tab (use LATIN version!)

    Additional thanks to: koush, neldar, richardtrip, AColwill, farahbolsey, deezid, wgery, tmaurice, rmanaudio, crisvillani, alterbridge86, ivannw, themartinohana, luisfer691 (in no particular order!)

    Please note that even though there have not been any bricks so far, replacing bootloaders is a very dangerous operation that may BRICK your device, and you should think twice before using the patch. Using the patch is completely AT YOUR OWN RISK!

    Instructions
    Download the attached APK, install it on your device, and run it. It will show you a status screen, and if your device is compatible and you have protected bootloaders, the bottom entry "Patch bootloaders" will become available. Tapping it will start the patch procedure.

    Note that the patch requires root !

    Mini-FAQ

    --- After the fix, my "zImage" still shows signed ! Is this a problem ?

    No, this is perfectly fine! What matters is that "PBL", "SBL" and "SBL_Backup" are not signed. If "zImage" is signed, it means this ROM can be flashed onto a device that has signed bootloaders. UNsigned "zImage"s can NOT be flashed on signed bootloaders. This is the origin of the problem, because custom kernels are always UNsigned "zImage"s !

    --- Can I now flash any ROM and just use this application to fix the bootloaders ?

    Technically yes. But it would be stupid to do so. Flashing bootloaders (what this app does) is VERY dangerous, it is the only way to really brick a Tab. If you want to flash a new ROM, make sure it DOES NOT contain bootloaders. Remove them yourself, or wait for somebody else (like Rotohammer) to remove the bootloaders and post the "safe" ROM. Even though this patch is available, if at all possible, you should always try to avoid having to use it.

    CDMA tabs
    There is currently no support for CDMA Galaxy Tabs, nor do we know if support is needed at this time.

    LINKING
    You are expressly forbidden to repost the APK elsewhere. If you post about this, post a link to this thread, not to the download (or a repost of the download).

    Download
    Don't forget to donate and/or press the thanks button!

    For non-XDA members who cannot access the attachment, here are multiupload links:
    Euro / International / Unbranded / AT&T / Rogers / T-Mo: http://www.multiupload.com/EMOCU1S0V2
    Latin (P1000L and P1000N): http://www.multiupload.com/3TJ3YWMWJR

    MAKE SURE TO SELECT THE RIGHT DOWNLOAD!
    17
    WARNING! Do not flash JM6/9/A/C/D/E/F... Before reading this !

    THIS POST, #2 OF THIS THREAD, IS HISTORICAL AND LEFT HERE "FOR THE RECORD". SEE THE FIRST POST FOR WHAT IS CURRENT!








    BREAKING NEWS / JAN 15: A fix has been found ! See this post. Also see the bounty thread: http://xdaforums.com/showthread.php?t=906464.

    This really applies to other ROMs as well, but the "new" JM6/9/A/C/D/E/F ROMs specifically.

    Some of these ROMs include new bootloaders. These bootloaders check checksums/signatures in various parts of the firmwares. The "normal" Samsung ROMs, nor custom ROMs and kernels, have these checksums.

    The result is that once flashed, you cannot revert to older/official/custom Samsung ROMs, and you are pretty much stuck using one of these four ROMs, as they are the only ones containing the right checksums.

    At least TRIPLE CHECK if you want to flash one of these ROMs, that what you are flashing DOES NOT include the new bootloaders ( boot.bin and sbl.bin ). I know from the CF-Root thread that a fair number of you are already too late, but I thought to warn new users anyways. Some modders (like rotohammer) already usually remove these parts, but still triple check everything to make sure.

    There is no known fix. I know, I've tried all of them some people suggested in other threads. None of them really works. Sure, with some effort, you can get a different firmware to somewhat run, but you'll still be using the "checksum" bootloaders and the kernel will not be modified. You will still be running the kernel from the "checksum" firmware you loaded earlier. You will not be able to do full flashes, nor will KIES updates work.

    Hopefully somebody will find a real solution for this issue for those already affected. If so, please post it in this thread.

    Are you affected ?

    NEW DEC 28: See SGTBootloaderCheck script below!

    It is hard to say for sure without actually trying to flash a non-JM6/A/C/D kernel without the correct checksum. Here's a screenshot of the error you'll get:
    zimage.jpg


    If you still have the original files for the ROM you flashed, but do not want to try flashing a non-Samsung-stock kernel, there are some indicators:
    - Rename all .tar.md5 files to .tar
    - Extract all the .tar files with WinRAR

    - Look at the resulting files:
    --- Includes "boot.bin" (primary bootloader)
    --- Includes "sbl.bin" (secondary bootloader)
    If one or both are present, this indicates new bootloaders are being flashed. That does not make it certain if they are "protected" or not, though. But if a large zImage is also present (see the next item), it is very likely they are.

    - Look at the resulting files:
    --- "zImage" (kernel)
    If zImage is about 7800 kb (as opposed to 4000 - 5500 kb that is normal), it is very likely this kernel includes a checksum. If you want to be 100% sure, open zImage in a hex editor, and go all the way to the end. There will be a few mb of 0's, followed by 128 bytes checksum - the very last 128 bytes in the file.

    Such a zImage can be flashed both on "original" and the new "protected" bootloaders. The "protected" bootloaders can only flash these zImage, not the smaller variants.

    If you have boot.bin, sbl.bin and a 7800 kb zImage, it is 99% likely flashing this ROM will give you a "protected" bootloader.

    Some tech

    Once these ROMs are flashed, it is required updates to "boot", "sbl", "zImage" have a 128-byte checksum/signature. In boot.bin and sbl.bin these are near the end, in zImage (7800 kb files) they are the very last 128 bytes. Only firmwares with a zImage that have this signature will be flashable (which at the time of this writing are only JM6/A/C/D).

    I have no idea how this signature is generated as of yet, so "faking it" is also not an option. If somebody figures that out, please post it in this thread. Then we could just insert the signatures in the older bootloaders and flash them back (still a dangerous effort by itself).

    I think, and possible others will correct me on this, the verification goes as follows, on a running device:

    - PBL ( boot.bin ) checks SBL ( sbl.bin ) signature
    - SBL checks kernel ( zImage ) signature

    While flashing, I think it's the SBL that verifies the PBL/SBL/kernel flash, and refuses to write if the signature isn't correct.

    Possible solutions

    Flashing back "unprotected" bootloaders from older ROMs through either Odin or Heimdall does not work. These older bootloaders do not have the required signatures/checksums and thus the flash will fail.

    A possible solution would be rooting the device, using Koush' bmlunlock, and dd'ing back bml1 and bml4 from backups, complete bypassing the flash checks. This is a very very dangerous to be trying out though, and unless you really know what you are doing, I wouldn't attempt it. Maybe someone has Samsung repair center contacts or a JTAG unit close by ? :)

    Personal note

    I have tried to flash back older bootloaders and kernels several times and in several ways (from for example JJ4) but this fails. Odin said it succeeded the very last time I tried, however it really didn't, as my device is now a full (user-wise) brick. It doesn't even turn on to show me the "phone --- | --- pc" error screen. So I guess I need to make a trip to the nearest Samsung repair center (200 miles away). Too bad my car also broke down today :D Guess it'll be some time (and money) before I have a working Tab again. Note that the brick was a problem with Odin, probably, not directly caused by the protected bootloaders themselves.

    Update: Tab is back and working :) Replaced mobo, so I no longer have the signed bootloaders myself.

    NEW DEC. 28: SGTBootloaderCheck

    Attached is also SGTBootloaderCheck. This is a script run on your Windows PC through ADB to check your bootloaders. It requires root, SuperUser, and a working ADB connection.

    Just unzip the archive to a new folder, and double-click "check.bat". That should dump your bootloaders and kernel, copy them to your computer, check the content for signatures, and let you know the result.

    I can't guarantee it works, but it should :)

    Attached

    An archive with some relevant files for those who want to do some research. DON'T FLASH THESE FILES !!!

    ( 467, 909 )
    16
    Ok, I have spoken to Rotohammer, and he has sent me the files for the fix.

    It is a sensitive fix, and thus we are not just releasing it. We will be making an APK that does the unlocking for you, so there's no chance you mess up the commands and brick your device. That is, at least, if we don't mess up the APK ;)

    Expect the APK to go into (closed!) testing early next week, with hopefully a public release early the week after that.
    10
    rotohammer, you're the man! did u already figure out the steps u are going to do, or are they still the same u posted here some time ago?

    I flashed a protected bootloader, then tried flashing a stock at&t kernel as well as CF-Root, both failed to flash. Then I flashed the recovery bootloaders using the jtag box, and I now Its unprotected.

    Next step: force a new sbl via redbend!