Author Topic: Installing Multitouch firmware to OpeniBoot  (Read 1991 times)

Offline nickp666

  • Administrator
  • Member
  • *****
  • Posts: 595
  • Karma: +41/-1
    • View Profile
    • http://www.nickpack.com
  • iDevice: iPhone 3G
  • iDroid Version: Bleeding Edge
  • Jailbreak: redsn0w
Installing Multitouch firmware to OpeniBoot
« on: October 27, 2010, 10:57:01 AM »
NOTE: This is an advanced topic, and is therefore not recommended for novice users.

A. iPhone 3G user:

Convert zephyr2.bin
Go to "openiboot/mk8900image"
From "openiboot/mk8900image" execute this command (please adjust path to your firmware location):

Code: [Select]
mk8900image zephyr2.bin zephyr2.img3 template-3g.img3
Using your favorite hex editor, edit "zephyr2.img3" change data at offset 0x10 to 0x13 from cebi to 2ztm and save it.

Installing zephyr2.img3

Run oibc executable
From oibc prompt send "zephyr2.img3" to your iphone (default address is 0x09000000):

Code: [Select]
!zephyr2.img3
It will return this: file received (XXXXX bytes).

Install the firmware from the address and with the size the upload command returned:

Code: [Select]
multitouch_fw_install 0x09000000 XXXXX
B. iPhone 2G user:

Convert zephyr_aspeed.bin and zephyr_main.bin
Go to "openiboot/mk8900image"
From "openiboot/mk8900image" execute this command (please adjust path to your firmware location):

Code: [Select]
mk8900image zephyr_aspeed.bin to zephyr_aspeed.img3 template.img3
Using your favorite hex editor, edit "zephyr_aspeed.img3" change data at offset 0x10 to 0x13 from cebi to aztm and save it.

From "openiboot/mk8900image" execute this command (please adjust path to your firmware location):

Code: [Select]
mk8900image zephyr_main.bin to zephyr_main.img3 template.img3
Using your favorite hex editor, edit "zephyr_main.img3" change data at offset 0x10 to 0x13 from cebi to mztm and save it.

Installing firmwares

Run oibc executable
From oibc prompt send "zephyr_aspeed.img3" to your iphone (default address is 0x09000000):

Code: [Select]
!zephyr_aspeed.img3
It will return this: file received (XXXXX bytes).

From oibc prompt send "zephyr_main.img3" to your iphone, in this case we will copy to memory location next to zephyr_aspeed.img:

Code: [Select]
!zephyr_main.img3@0x09000000+XXXXX
It will return this: file received (YYYYY bytes).

Install the firmware from the address and with the size the upload command returned:

Code: [Select]
multitouch_fw_install 0x09000000 XXXXX 0x09000000+XXXX YYYYY
http://dev.idroidproject.org - iDroid Project Community Issue Tracker

http://idroid.nickpack.com - My iDroid File Dump

http://github.com/iDroid-Project - Repos

Offline Zeta0134

  • Member
  • Posts: 24
  • Karma: +10/-0
    • View Profile
  • iDevice: iPhone 3G
  • iDroid Version: Mojo 1.0.5
  • Jailbreak: I've slept since then. Probably sn0wbreeze, on 3.1.2.
Re: Installing Multitouch firmware to OpeniBoot
« Reply #1 on: October 31, 2010, 07:29:37 AM »
What effect will this have if successful? If done incorrectly, is it possible to brick the phone beyond recovery, or can I still restore from my NOR backup?

-Zeta

Offline nickp666

  • Administrator
  • Member
  • *****
  • Posts: 595
  • Karma: +41/-1
    • View Profile
    • http://www.nickpack.com
  • iDevice: iPhone 3G
  • iDroid Version: Bleeding Edge
  • Jailbreak: redsn0w
Re: Installing Multitouch firmware to OpeniBoot
« Reply #2 on: October 31, 2010, 11:37:55 AM »
When it is installed, openiboot itself is touch sensitive, and the kernel side zephyr driver will load the firmware from your NOR directly rather than having to read it from a file (the firmware also persists in the NOR after a restore - excluding DFU obviously)

This doesnt write to any important areas of the NOR so it shouldnt fuck anything up (but you can always restore your NOR backup should there be a problem)
http://dev.idroidproject.org - iDroid Project Community Issue Tracker

http://idroid.nickpack.com - My iDroid File Dump

http://github.com/iDroid-Project - Repos

Offline Zeta0134

  • Member
  • Posts: 24
  • Karma: +10/-0
    • View Profile
  • iDevice: iPhone 3G
  • iDroid Version: Mojo 1.0.5
  • Jailbreak: I've slept since then. Probably sn0wbreeze, on 3.1.2.
Re: Installing Multitouch firmware to OpeniBoot
« Reply #3 on: November 02, 2010, 05:59:55 AM »
I get:
Code: [Select]
**ABORTED** Image of size 57600 at ef380 would overflow NOR!
What is the range of 'safe' addresses I can upload things to? Or, is 0x09000000 in RAM, and being copied to the NOR? Is there some way to clear space out of the NOR in that case? (I don't have any weird boot mods that I know of, but there might be stuff lingering around, it's been jailbroken more than once by various tools.)

-Zeta

Offline nickp666

  • Administrator
  • Member
  • *****
  • Posts: 595
  • Karma: +41/-1
    • View Profile
    • http://www.nickpack.com
  • iDevice: iPhone 3G
  • iDroid Version: Bleeding Edge
  • Jailbreak: redsn0w
Re: Installing Multitouch firmware to OpeniBoot
« Reply #4 on: November 02, 2010, 08:20:19 AM »
That address is in the NOR, I'm not 100% sure on the list of safe addresses, I'll have to get back to you on that one.

As for the overflow, do you have any custom boot/recovery logos? - these are normally what prevents it
http://dev.idroidproject.org - iDroid Project Community Issue Tracker

http://idroid.nickpack.com - My iDroid File Dump

http://github.com/iDroid-Project - Repos

Offline frame

  • Member
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Installing Multitouch firmware to OpeniBoot
« Reply #5 on: November 07, 2010, 02:43:47 PM »
can someone upload at least mk8900image to make this easier? please ? :)

Offline Neonkoala

  • Global Moderator
  • Member
  • *****
  • Posts: 294
  • Karma: +3/-0
    • View Profile
    • Neonkoala.co.uk
Re: Installing Multitouch firmware to OpeniBoot
« Reply #6 on: November 07, 2010, 05:34:52 PM »
can someone upload at least mk8900image to make this easier? please ? :)

mk8900image is available as part of the OpeniBoot sourcecode on GitHub.
iPhone 3G | iPhone 4

Offline frame

  • Member
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Installing Multitouch firmware to OpeniBoot
« Reply #7 on: November 07, 2010, 08:21:15 PM »
if only I knew how to compile it on mac ;-) the hex edition part sounds easy though

edit: thank you neonkoala for the tutorial on wiki :)
« Last Edit: November 08, 2010, 09:06:19 PM by frame »

Offline frame

  • Member
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Installing Multitouch firmware to OpeniBoot
« Reply #8 on: November 09, 2010, 05:13:04 PM »
ok so i did all the steps, and now im having the same issue as Zeta0134

Code: [Select]

!zephyr2.img3
file received (57600 bytes).
multitouch_fw_install 0x9000000 57600
**ABORTED** Image of size 57600 at efec0 would overflow NOR!

i do not have any custom boot logo nor restore logo. i reflashed my iphone 3g with official 4.1 yesterday, jailbreaked using redsn0w (b1) installed openiboot and iandroid with bootlace.
« Last Edit: November 09, 2010, 05:15:22 PM by frame »

Offline nickp666

  • Administrator
  • Member
  • *****
  • Posts: 595
  • Karma: +41/-1
    • View Profile
    • http://www.nickpack.com
  • iDevice: iPhone 3G
  • iDroid Version: Bleeding Edge
  • Jailbreak: redsn0w
Re: Installing Multitouch firmware to OpeniBoot
« Reply #9 on: November 09, 2010, 06:21:15 PM »
It looks like we've got some openiboot dieting to do in which case, it may be a little while though as there are some quite significant changes happening at the moment
http://dev.idroidproject.org - iDroid Project Community Issue Tracker

http://idroid.nickpack.com - My iDroid File Dump

http://github.com/iDroid-Project - Repos

Offline frame

  • Member
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Installing Multitouch firmware to OpeniBoot
« Reply #10 on: November 24, 2010, 11:14:19 PM »
im still having the same issue with openiboot 0.2

Code: [Select]
ACH: Starting: multitouch_fw_install 0x09000000 57600

***ABORTED*** Image of size 57600 at f2840 would overflow NOR!

is there any way to fix it?

Offline nickp666

  • Administrator
  • Member
  • *****
  • Posts: 595
  • Karma: +41/-1
    • View Profile
    • http://www.nickpack.com
  • iDevice: iPhone 3G
  • iDroid Version: Bleeding Edge
  • Jailbreak: redsn0w
Re: Installing Multitouch firmware to OpeniBoot
« Reply #11 on: November 24, 2010, 11:18:27 PM »
falling short of taking functionality out of openiboot not really, openiboot is getting a major overhaul pretty soon so we'll take a look at it then ;)
http://dev.idroidproject.org - iDroid Project Community Issue Tracker

http://idroid.nickpack.com - My iDroid File Dump

http://github.com/iDroid-Project - Repos