life ideas

May 12, 2007

刷ROM知識 –

Filed under: Uncategorized — manoftoday @ 11:07 pm
  • SIM Lock和CID Lock

每隻牌子的PDA Phone 都會有SIM Lock 和 CID Lock。
SIM Lock
如果你用開手提電話,你對SIM Lock這個英文應該會認識。SIM Lock 是一個限制方法 – 去某間電話服務供應商購買一部PDA Phone但要用指定的該電話服務供應商提供既服務月費計劃。這個限制方法是用來給引客户用一個很便宜價錢去買一部PDA Phone,但要用一個指定月費和選用一個特定時期,用合約形式限制,才可以用享受這個服務。
由於有合約限制,解除 SIM Lock 限制有可能觸犯當地法律或違反當地電訊服務供應商的合約。SIM Unlock will allow you to use any SIM card from any operator, not locked to the operator who sold you the Phone.

 

 

CID Lock 又叫做 Vendor Lock。CID Lock是PDA Phone製造商/電訊商/銷售商用來保議自己公司所推出既產品不會被其它公司的ROM所取代。例如O2 Atom 和HP rw6828 係同一間製造商(Quanta)的代工(OEM)產品,如果你想用HP rw6828的ROM 去取代 O2 Atom的ROM係唔得。O2 和 HP 都有 CID Lock 去保議自己公司所做既ROM。
解除 CID Lock 不會觸犯當地法律,但可能使PDA Phone保養失效。

不同OEM製造商的PDA,就算解除CID Lock都不能夠取代對方的ROM。例如你解除O2 Atom CID Lock,但不能夠用Dopod 818pro 的ROM 去取代 O2 Atom的ROM。

 

解除 CID Lock這個方法只能用係同一款OEM製造商的PDA上,不同的電訊商,銷售商或其它公司會用自己的名字或品牌推出產品。以HTC Prophet為例,Dopod 818pro, O2 xda neo, JAMin 或Qtek S200 全部都是由HTC製造商出產的Prophet PDA Phone。
PDA Phone解除 CID Lock 後,你可隨意進行系統升級/降級,不同語言的ROM,也可刷同一系列內其它品牌的 ROM。CID Unlock will make your device “SuperCID“, which means you will be allowed to flash ANY same OEM PDA in ANY language ROM.

 

The CID is a string that identifies carrier and language of your device, it is contained also on ROM upgrade files and is used to check that you’re flashing your device with the right ROM.

  • VODAP for Vodafone, O2 for O2, CDL for i-mate, QTEK for HTC, ORANG for Orange, etc…
  • WWE (English) = 001 , German = 102, Spanish = 304 , italian = 405, french = 203, etc…

Some examples:

Vodafone UK: VODAP001
Orange UK: ORANG001
Vodafone Germany: VODAP102
O2 Germany: 02___001
HTC ITaly: QTEK_405
HTC Spain: QTEK_304

 

The CID string has 2 parts: first 5 bytes identify the Operator, next 3 bytes identify the country. I’ve put some some examples in the next table:

Code:

 +---------------+----------+----------+----------+----------+----------+----------+
 |               |   HTC    | Vodafone |  I-mate  |  Orange  | o2       | T-Mobile |
 +---------------+----------+----------+----------+----------+----------+----------+
 | English (WWE) | QTEK_001 | VODAP001 | CDL__001 | ORANG001 | O2___001 | T-MOB001 |
 | Germany (GER) | QTEK_102 | VODAP102 | CDL__102 | ORANG102 | O2___102 | T-MOB102 |
 | Spain   (ESN) | QTEK_304 | VODAP304 | CDL__304 | ORANG304 | O2___304 | T-MOB304 |
 | Italy   (ITA) | QTEK_405 | VODAP405 | CDL__405 | ORANG405 | O2___405 | T-MOB405 |
 | France  (FRA) | QTEK_203 | VODAP203 | CDL__203 | ORANG203 | O2___203 | T-MOB203 |
 +---------------+----------+----------+----------+----------+----------+----------+

When you flash a ROM on your device the bootloader checks that the CID on your device matches the CID on the ROM you are trying to flash, before actually flashing it. If both CIDs do not match you get the “Invalid vender ID” error.

 

If you want to know which CID your device has, you have to issue bootloader command ‘info 2’, check the bootloader page for more info. You can also see your device’s CID  GetDeviceData.exe

this command will return [HTCS] + 8byte CID + 4byte CRC + [HTCE]

For more info on the CID see this comment.

  • Hard-SPL

Hard-SPL bootloader 允许你在没有SuperCID的时候在手机上安装任何ROM, 也允许你刷没有签名的ROM(比如Cook ROM)并且防止一旦刷新失败对手机造成不可挽回的损害.
具有Hard-SPL的手机一旦需要保修时,总是可以刷回出场时的ROM,但是当你刷一个完整的ROM(包含IPL,SPL)时,一定不要用另一个SPL覆盖Hard-SPL.
如下指导你如何修改一个完整的ROM(包含IPL,SPL),从里面删除bootloader.从而在你的手机上保持Hard-SPL.

 

 

  • IPL: Initial program load – usually paired with Secondary Program Load (SPL), is the boot loader of your phone, much like the BIOS is the boot loader for your PC. Note: IPL/SPL are highly hardware dependent, flashing the wrong IPL/SPL is much more serious than a flashing the wrong ROM. It may be noted that, sometimes a ROM package also contains the IPL/SPL which will be flashed into your phone. Hence be extra careful what you are flashing. Note: although a ROM may also contains the IPL/SPL, `ROM` usually refers just to the OS (eg. the Windows Mobile 5, not the IPL/SPL) and the ExtRom.
  • SPL: Refer to `IPL`
  • ROM: Read Only Memory – commonly used in the form of `ROM upgrade`. The ROM is the firmware/software, which controls everything on your phone. ROM itself usually comes in a package, with IPL/SPL, OS, Radio, and ExtRom. However, in most cases, `upgrading a ROM` usually means just the OS and the ExtRom, as these are the obvious/visible part of an ROM upgrade.
  •  

    When upgrading a ROM from a different vendor (with a different CID), you will get a Vendor ID error, because you are supposed to flash only ROMs from your vendor on your device. However, all breeze ROMs can be flashed on all breeze branded devices and there are several methods to bypass this protection

    • SSPL here  (allow to flash your ROM bypassing CID and signature(*) check., use SSPL to flash any ROM without really making your device SuperCID, if you want to keep your original CID for warranty reasons.)
    • CID Unlock (SuperCID)
    • Maybe Hard-SPL from Hermes  A core part of the HardSPL project is ensuring a safe flash of ANY rom, this has lead to the ‘OS Bad Block Checker’ which checks a rom image BEFORE flashing to ensure it is ‘safe’,

    You can have some minor troubles if you flash another vendor’s ROM

     

     

  • How can I then fall back to original ROM (if I would need it for warranty reasons) ?

    If your vendor has released you original rom as a shipped upgrade, you just need to flash it.

    If your vendor has not released any ROM upgrade yet, you cannot fall back to original ROM easily. You’ll have to reconstruct the ROM out of a dumped ROM.

  •  

    The bootloader is the place where you can change the low-level software parameters, some hardware parameters of the Trinity, change and read the ROM as well as providing information about it.

    The bootloader is invoked by pressing down both the POWER button and SIDE Camera together and using the stylus at the same time to press the RESET button at the bottom.

    The Trinity bootloader is very similar to other HTC devices bootloaders, but it lacks some important things:

    1. There is no help available.
    2. Commands to dump the ROM to miniSD card or restore a ROM from it have been removed

    You can connect to the bootloader over USB using the program mtty under Windows or minicom / cu under Linux.

    NOTE: If you use mtty you can’t copy-paste, you MUST type the commands yourself.

    Make sure you have disabled the USB connection in ActiveSync, before trying to connect to the bootloader:
    File –> Connection settings –> uncheck “allow USB connections”

    Please note that some commands are locked if you do not authenticate with the proper password: The password command takes a predefined password which has been reverse engineered. The Trinity Bootloader password is static: BsaD5SeoA

    Once you are authenticated it removes protection on some commands like wdata which would otherwise return Command is Locked!.

     

    Backup:

    http://forum.xda-developers.com/showthread.php?t=278037

    Term FAQ:

    http://wiki.xda-developers.com/index.php?pagename=FAQ

    Link to 刷ROM知識 – 什麽是SIM Lock和CID Lock(zt) – Windows Mobile ROM刷机专区 – 口袋数码论坛 GPS PocketPC Palm Symbian PDA发烧友 pdafans.com – Powered by Discuz!

    Advertisements

    6 Comments »

    1. Oh wait. Yes, I have. I’m sorry, but I just don’t have it in me right now to type it all out again. Besides, it was just ramblings anyway. You didn’t want to hear me go on and on about this, right?

      Comment by Boy George — June 4, 2007 @ 12:03 pm

    2. Hi, do you know how can I flash the WWE WM6 rom to my O2 Zinc with Chinese WM6? Please advice. Thank you.

      Comment by Danny — September 14, 2007 @ 7:21 am

    3. Good idea!
      P.S. A U realy girl?

      Comment by Memmorium — April 11, 2008 @ 2:32 pm

    4. my pics

      Comment by mypicst — April 12, 2008 @ 11:55 am

    5. my girl crazy, man!

      Comment by crack — May 26, 2008 @ 10:53 pm

    6. HMDs also require body-mounted power for free-ranging viewers to wear them. ,

      Comment by Arnold12 — October 23, 2009 @ 1:32 am


    RSS feed for comments on this post. TrackBack URI

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    Create a free website or blog at WordPress.com.

    %d bloggers like this: