Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > iPhone 3G (Rev. 2) > iPhone OS 3.x

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 07-01-2009, 08:34 PM
kwoodall
Status: Offline
Junior Member
 
Join Date: Jun 2009
Posts: 7
Rep Power: 0
kwoodall is on a distinguished road
Default

Quote:
Originally Posted by netkas View Post
As you all know, 3gs has new cpu.
the main difference for us is that new cpu support thumb2 instructions set, and 2g/3g cpu doesnt support it

<edit>

that's why no need expect voice control on 2g/3g anytime soon.
So you're saying you've checked the binaries for the Voice Control app and it's it's compiled for the new CPU/3GS?

K
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12 (permalink)  
Old 07-01-2009, 09:45 PM
posixninja
Status: Offline
Trial Member
 
Join Date: May 2009
Posts: 1
Rep Power: 0
posixninja is on a distinguished road
Default

f41qu3 is absolutely right. let me try to explain this. Apple programs the stuff in C/ObjC then they run the code through a compiler which takes the C code and turns it into assembly code (the raw machine instructions passed the the processor). The processor in 3Gs is a completely different family then the processor in iPhone 2G/3G, or iTouch1G/2G. The code injection method wouldn't work because it's not just one single part of the code that changed, but just about all the code. The only way to possiable get 3G to fun 3Gs binaries would be to have the source code and recompile all binaries for the older processor, or to meticulously go through and replace all thumb2 opcodes with normal thumb opcodes (which there are literally hundreds of millions), or program some kind of cortex emulator, which would be stupid and probably too slow to even run the programs decently.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13 (permalink)  
Old 07-02-2009, 01:07 PM
aviegas's Avatar
aviegas
Status: Offline
The Man
 
Join Date: Sep 2007
Posts: 1,077
Rep Power: 66
aviegas has a spectacular aura aboutaviegas has a spectacular aura aboutaviegas has a spectacular aura about
Default

Quote:
Originally Posted by netkas View Post
cmp then branch is two instructions, 4 bytes in thumb mode
cb/cbnz is just 2 bytes

u cant fit it

Turbo made an userspace sse3 emu for osx86(cathing unknown opcode interrupt and etc), i think it can be ported to iphone to emulate those instr
If that can be done (if used Turbo's stuff on a few machines) and indeed Voice Controls ends up working on the 3G/2G iPhones, that will render Apple's claim, that Voice Control is not available on the 3G/2G iPhones due to processor performance limitation, mute. Specially with the emulation involved.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #14 (permalink)  
Old 07-02-2009, 02:07 PM
f41qu3's Avatar
f41qu3
Status: Offline
IRC Netadmin
Team of Hackint0sh
 
Join Date: Nov 2006
Posts: 1,520
Rep Power: 10
f41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud of
Default

think is possible made a hacked kernel for iphone 3g (based on 3gs sources(?) including processor emu like old osx86 kernels. this is a only way to run some new 3gs apps on 3g hardware.

i think too, is possible get a source code of apps in xcode proj and recompile using build configs for 3g hardware. bad idea lol
__________________
"the truth is out there"

hack1 = Mac OS X Snow Leopard 10.6.2 Build 10C531
hack2 = Mac OS X Server Snow Leopard 10.6.1 Build 10C504
iBook G3 DualUSB = Mac OS X Jaguar 10.2.8 Build 6R73
MacBook 403LL/A = Mac OS X Snow Leopard 10.6.2 Build 10C531
iPhone 3G = iPhone OS 3.1.2 Build 7D11 Baseband 05.11.07 Bootloader 05.09 [G2M3S2] ClaroBR 5.0
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15 (permalink)  
Old 07-02-2009, 02:28 PM
iWhacko
Status: Offline
Junior Member
 
Join Date: Jun 2009
Posts: 6
Rep Power: 0
iWhacko is on a distinguished road
Default

Quote:
Originally Posted by posixninja View Post
f41qu3 is absolutely right. let me try to explain this. Apple programs the stuff in C/ObjC then they run the code through a compiler which takes the C code and turns it into assembly code (the raw machine instructions passed the the processor). The processor in 3Gs is a completely different family then the processor in iPhone 2G/3G, or iTouch1G/2G. The code injection method wouldn't work because it's not just one single part of the code that changed, but just about all the code. The only way to possiable get 3G to fun 3Gs binaries would be to have the source code and recompile all binaries for the older processor, or to meticulously go through and replace all thumb2 opcodes with normal thumb opcodes (which there are literally hundreds of millions), or program some kind of cortex emulator, which would be stupid and probably too slow to even run the programs decently.
That makes sense, I didn't realize it was so extensive. I thought there were only a few new instructions that the old processors couldn't handle. But if that's not the case then I guess we're out of luck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16 (permalink)  
Old 07-02-2009, 02:31 PM
f41qu3's Avatar
f41qu3
Status: Offline
IRC Netadmin
Team of Hackint0sh
 
Join Date: Nov 2006
Posts: 1,520
Rep Power: 10
f41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud of
Default

Quote:
Originally Posted by iWhacko View Post
That makes sense, I didn't realize it was so extensive. I thought there were only a few new instructions that the old processors couldn't handle. But if that's not the case then I guess we're out of luck
this work would be easy if we had source code for 10.0.0d3 kernel "1357.2.89~4".
__________________
"the truth is out there"

hack1 = Mac OS X Snow Leopard 10.6.2 Build 10C531
hack2 = Mac OS X Server Snow Leopard 10.6.1 Build 10C504
iBook G3 DualUSB = Mac OS X Jaguar 10.2.8 Build 6R73
MacBook 403LL/A = Mac OS X Snow Leopard 10.6.2 Build 10C531
iPhone 3G = iPhone OS 3.1.2 Build 7D11 Baseband 05.11.07 Bootloader 05.09 [G2M3S2] ClaroBR 5.0
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #17 (permalink)  
Old 07-15-2009, 02:27 PM
iWhacko
Status: Offline
Junior Member
 
Join Date: Jun 2009
Posts: 6
Rep Power: 0
iWhacko is on a distinguished road
Default

I was wondering... has anyone checked the 3.0 beta 1 (and up) firmwares to see if any of the 3GS specific apps are in there? if they are, we could maybe get those to run on the 3g
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18 (permalink)  
Old 07-26-2009, 07:15 AM
macfan406
Status: Offline
Trial Member
 
Join Date: Jul 2009
Posts: 2
Rep Power: 0
macfan406 is on a distinguished road
Default

i have hte but i cannot edit the cpu subtypes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +2. The time now is 05:48 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105