-jordn-
Mar 26 2007, 07:44 AM
is it possible to specify boot flags on boot? -v, -f, -s?
also, has anybody tried installling any kexts such as natit? (according to wikipedia, apple tv has a 7300 chip inside)
i personally think that the reason its not booting is due to the graphics card. it seems to be more heavily reliant on quartz. if there are any graphics card kexts in the package(s), try adding your device IDs to them.
sorry if ive hijacked the post with crap.
jordn
Dragon
Mar 26 2007, 08:02 AM
QUOTE
Ok, i've found the problem.
/System/Library/CoreServices/Setup Assistant.app
/System/Library/CoreServices/Finder.app
Both apps are checking the hardware name and won't start until we found a hack.
I've been able to boot the AppleTV OSX system on my Mac mini with a 10.4.8 Finder.
XianLi posted this on the green demon
Artistan
Mar 26 2007, 09:03 AM
What is the hardware name of aTV?
Kiko
Mar 26 2007, 09:16 AM
AppleTV1,1
Artistan
Mar 26 2007, 01:26 PM
So far all I get trying to run Finder.app or Setup Assistant.app is a system hanging.
Urbz
Mar 26 2007, 02:13 PM
thats due to two things:
1- it's looking for watchdog
2- checking device id.
mess with finder and setup assistant first, otherwise the rest it futile.
hex time!
Sabr
Mar 26 2007, 03:09 PM
Good work guys. This is coming along pretty fast

Good luck!
Paranoid Marvin
Mar 26 2007, 03:12 PM
So what do you all think the best route to take would be?
Sticking a hackintosh kernel + kexts into a native aTV image and then trying to boot.
OR
Making a full OSx86 install and trying to bring in all the aTV stuff.
I better get OSx86 working first before I can even try anything off the image....
Artistan
Mar 26 2007, 04:00 PM
CODE
Mar 26 10:59:15 chaos FrontRow[445]: ******** Application Startup ********
Mar 26 10:59:15 chaos FrontRow[445]: No matching IR micro server found.
Mar 26 10:59:15 chaos FrontRow[445]: VERS: failed to get ImageVersion for display
Mar 26 10:59:15 chaos FrontRow[445]: VERS: failed to get BootImageVersion for display
Mar 26 10:59:15 chaos FrontRow[445]: *** OS 8L2127, IR F.F.F, EFI (null), SI F.F.F/F.F.F, Software 175 ***
Mar 26 10:59:15 chaos FrontRow[445]: Unsupported hardware - Exiting
Just to clarify, "chaos" is the name of my computer.
When starting Finder.app this is the log entry. This error is cause by by watchdog, i think.
DiaboliK
Mar 26 2007, 04:35 PM
something of interest in finder.app :
Click to view attachmentand did anyone find the fake finder?
Click to view attachmentthers also a fake system in there also.
Artistan
Mar 26 2007, 05:08 PM
Disable Launch?
checking if having watchdog(patched) makes any difference.
CODE
kernel extension AppleTCOWatchdog.kext/ has problems:
Missing dependencies:
{
"com.apple.kpi.unsupported" =
"A valid compatible version of this dependency cannot be found"
}
BlackShadowWolf
Mar 26 2007, 05:49 PM
QUOTE(DiaboliK @ Mar 26 2007, 12:35 PM)

something of interest in finder.app :
Click to view attachmentand did anyone find the fake finder?
Click to view attachmentthers also a fake system in there also.
The fake Finder is in all Mac OS X systems, Ive seen it on my iMac G5 and my MacBook Pro. I think its probably for Classic compatibility or something. If you do show hidden files and folders, its there Under /System/Library/CoreServices
XofVerlis
Mar 26 2007, 07:19 PM
Come on, this system isn't that difficult to get working. It's really simple when it all comes down to it.
@Artisan: You won't get it working unless you start digging a little bit deeper and increase your knowledge of Mach-O files.
DiaboliK
Mar 26 2007, 07:29 PM
QUOTE(XofVerlis @ Mar 26 2007, 12:19 PM)

Come on, this system isn't that difficult to get working. It's really simple when it all comes down to it.
@Artisan: You won't get it working unless you start digging a little bit deeper and increase your knowledge of Mach-O files.
lets see some results from you, seeing how you say its so simple.....
Mr. Bond
Mar 26 2007, 07:39 PM
He does have a point...you're going to have to do some dissasembling to remove some of those checks, in addition to who knows what else we haven't found yet. Also...Stoth (sp?) on IRC said he had a kext to disable watchdog he was testing...that might be of some help as well.
EDIT: spoke too soon...it's on the AkwardTV site. A patch to "sedate" it.
Artistan
Mar 26 2007, 08:41 PM
QUOTE(XofVerlis @ Mar 26 2007, 02:19 PM)

Come on, this system isn't that difficult to get working. It's really simple when it all comes down to it.
@Artisan: You won't get it working unless you start digging a little bit deeper and increase your knowledge of Mach-O files.
I'm pretty sure that WatchDog will be no significance trying to get this working on the full OS. Ofcourse this is just and assumption.
But I'm digging the further to figure out anything how this hardware check is working.
My impression so far, and this has no solid proof but "Finder.app" seems to be a modified or even actually FrontRow 2.0.
So in theory it must be performing something similar to what the "FrontRowPass.kext" is bypassing.
Except it seems that it check it at EFI level.
Injection might be the answer?
glassJAw
Mar 26 2007, 08:46 PM
What would happen if you tried to install OSX on the AppleTV thing?
Maybe that could get some answers?
Artistan
Mar 26 2007, 08:49 PM
QUOTE(thricemike @ Mar 26 2007, 03:46 PM)

What would happen if you tried to install OSX on the AppleTV thing?
Maybe that could get some answers?
Won't work. Apple TV only has SSE2 and a full OSX requires SSE3 for certain component.
The appleTV OS is a special version of 10.4.7 that runs on SSE2.
EDIT: Ok, I guess it's not impossible but, that not what where trying to do on this thread.
XofVerlis
Mar 27 2007, 12:20 AM
Well, my good friend bikedude880 got it working with some help from the other developers. Doesn't get past the intro movie, but it's there in all it's glory.
http://digg.com/apple/AppleTV_booting_on_a_PC/
Peter Schneider
Mar 27 2007, 01:18 AM
You'll get Finder.app working like this:
first, decrypt the code segment whichever way.
Then use otx to dump the code segment.
Find this part:
CODE
+301 00005804 750a jne 0x00005810
+303 00005806 c7442404a4d04500 movl $0x0045d0a4,0x04(%esp,1) No Remote Present - Exiting
+311 0000580e eb22 jmp 0x00005832
+313 00005810 a1f8fc6b00 movl 0x006bfcf8,%eax isEmbeddedHardwareDevice
+318 00005815 89442404 movl %eax,0x04(%esp,1)
+322 00005819 a15c046c00 movl 0x006c045c,%eax BRXHardwareUtility
+327 0000581e 890424 movl %eax,(%esp,1)
+330 00005821 e87b7c6b00 calll 0x006bd4a1 +[BRXHardwareUtility isEmbeddedHardwareDevice]
+335 00005826 84c0 testb %al,%al
+337 00005828 7519 jne 0x00005843
+339 0000582a c7442404c0d04500 movl $0x0045d0c0,0x04(%esp,1) Unsupported hardware - Exiting
isEmbeddedHardwareDevice returns false, so the jne jumps out. Change it to 7419. Voilá, it runs on a normal Mac (not on AppleTV anymore, though

)
Have fun!
Artistan
Mar 27 2007, 01:27 AM
now if only otx would stop crashing on me....
hazkid
Mar 27 2007, 01:36 AM
QUOTE(Peter Schneider @ Mar 26 2007, 08:18 PM)

You'll get Finder.app working like this:
first, decrypt the code segment whichever way.
Then use otx to dump the code segment.
Find this part:
[...]
isEmbeddedHardwareDevice returns false, so the jne jumps out. Change it to 7419. Voilá, it runs on a normal Mac (not on AppleTV anymore, though

)
Have fun!
Could you describe how to do this?
Peter Schneider
Mar 27 2007, 01:47 AM
Apple Binary Protection is described in
http://osxbook.com/book/bonus/chapter7/binaryprotection/ . I'll leave it to you to find out how to reverse this. It's a fun excercise.
otx will crash on the encrypted binary since it cannot parse the encrypted data.
Artistan
Mar 27 2007, 01:50 AM
Thanks for the info. That makes sense now.
A Wang
Mar 27 2007, 01:26 PM
So basically is it possible to build a PC box to run Apple TV OS now?
aberracus
Mar 27 2007, 04:05 PM
its gona be extremely honerus, is much better in an economic point of view to just buy Apple TV
this is the true goal
http://macgeek.freeflux.net/blog/archive/2...-a-macbook.htmlReplacing Frontrow from OSX with the new Front Row from apple TV
Also making apple TV more powerful
DsurioN
Mar 27 2007, 11:09 PM
Yeah I think there's no point in trying to patch the kernel and trying to make the apple tv image work directly on a partition. I think we're much better off having an os x install and then copying the patched finder.app over and those extra frameworks you need (instructions at
http://appletvhacks.net) The patched finder can be found...... well let's just say its green... and it's devilish... I'm gonna try this tonight on my imac. Here is a screenshot of it running on an iMac (notice the hard drive capacity and the resolution):

(if image goes down, it was found here:
http://www.flickr.com/photos/alexisalex/43...pool-macintosh/
XofVerlis
Mar 28 2007, 05:02 AM
At 7:45PM PST today, the AppleTV OS successfully booted on a PC. There are still a couple setbacks (controlling it, ethernet, etc.) but it does in fact boot.
Stripped down 10.4.8 install (Intel optimized)
Boot time after BIOS: 15 seconds
http://www.youtube.com/watch?v=7Mt9B0GsSak
DsurioN
Mar 28 2007, 05:12 AM
You might want to try my tutorial here:
http://forum.insanelymac.com/index.php?showtopic=46680No need to do anything to the kernel or the O/S. It's just Finder.app...
rathalos
Mar 28 2007, 07:55 AM
i tried it on my hackintosh, but it just doesnt work out at all... frontrow refuses to start.... 1.3 does start though, when i replace it back..... seem like the patched binary works only on real macbooks
lord_muad_dib
Mar 28 2007, 08:27 AM
sorry for my lack of knowledge about AppleTv but..., wouldn't be easier to run the appletv app on an already hacked macosX? what's the point on run an older macos(10.4.7) just to use a single app?
deamobile
Mar 28 2007, 11:38 AM
QUOTE(lord_muad_dib @ Mar 28 2007, 08:27 AM)

sorry for my lack of knowledge about AppleTv but..., wouldn't be easier to run the appletv app on an already hacked macosX? what's the point on run an older macos(10.4.7) just to use a single app?
Tried Dsurion's method, can't get past the intro movie....
Log attached.
PascalW
Mar 28 2007, 01:23 PM
Hm I replaced Front Row 1.3 with appletv in my current 10.4.8 installation.And infact it starts, I get the intro movie and then it just sits there or just crashes back to the desktop.
I'm using a AMD processor btw, would the appletv finder need some cpuid patches?
FierceDeityLink1
Mar 28 2007, 05:09 PM
QUOTE(deamobile @ Mar 28 2007, 07:38 AM)

Tried Dsurion's method, can't get past the intro movie....
Log attached.
Same here, maybe it's because we don't have a /dev/disk0s4 ?
XofVerlis
Mar 28 2007, 05:17 PM
There is an easy 2 byte patch to have BackRow look elsewhere other than disk0s4
DsurioN
Mar 28 2007, 05:34 PM
Really? Where could I find this?
PascalW
Mar 28 2007, 10:40 PM
I got a little further on AMD:
I patched the cpuid checks in backrow framework and now the AppleTV GUI starts, I can see the screen where it gives you the password code for Itunes. But ofcourse I can't pass that screen because I have no remote. So we'll have to wait until there is some kind of an emulation for a remote.
rathalos
Mar 29 2007, 04:26 AM
ok, we're working on the emulation of the IR remote in the IRC channel....
Artistan
Mar 29 2007, 02:33 PM
Seems that I can't get the patch Finder.app to even to anything yet.
Still crashes.
Anybody got it to work with their hackintosh so far?
kennyGS13
Mar 29 2007, 06:18 PM
QUOTE(PascalW @ Mar 28 2007, 06:40 PM)

I got a little further on AMD:
I patched the cpuid checks in backrow framework and now the AppleTV GUI starts, I can see the screen where it gives you the password code for Itunes. But ofcourse I can't pass that screen because I have no remote. So we'll have to wait until there is some kind of an emulation for a remote.
how would I go about patching the cpuid checks in the backrow framework? because I still can't get past the intro vid too
kennyGS13
Mar 30 2007, 03:13 AM
I ended up getting it to stop crashing after the intro movie with awesome help from DiaboliK in the hackintosh irc channel, thank you btw. He told me to change the media drive number from disk0s4 in the backrow executable to my own hard drive that has osx on it using hexedit (the number is found when you click info on your hard drive in disc utility). There are 3 BackRow executables in "System/Library/Privateframeworks/BackRow.framework" that you need to change being "System/Library/Privateframeworks/BackRow.framework/", "System/Library/Privateframeworks/BackRow.framework/Versions/Current/", and "System/Library/Privateframeworks/BackRow.framework/Versions/A/". Then after this I copied everything from the media drive that mounts with the appletv.dmg to the root of my drive so it now uses those folders for media in Apple TV. Then it launches perfectly with the intro movie then the connect to iTunes screen. That's as far as I can get today because i'm still waiting on my apple remote IR receiver I should get it tomorrow hopefully. I hope this helps some of you. Thanks again DiaboliK!
xfsasx
Mar 30 2007, 03:42 AM
just grapped the image and restored to external usb drive and booted from it on my c2d macbook and works 100%. I only fooled with it for a couple minutes since im really tired and want to go to bed but the keyboard shortcut for screenshots worked so i snapped a few
Artistan
Mar 30 2007, 04:58 AM
OK. I'm stuck. I don't know what I'm doing wrong but I can't even get to the intro movie. Changed the media path, have all the framework. and patched Finer.app... Is therea specific requirements for video card?
DiaboliK
Mar 30 2007, 05:07 AM
QUOTE(Artistan @ Mar 29 2007, 09:58 PM)

OK. I'm stuck. I don't know what I'm doing wrong but I can't even get to the intro movie. Changed the media path, have all the framework. and patched Finer.app... Is therea specific requirements for video card?
how are you going about it?
as long as you have your intital 10.4.8/9 install correct before you install aTV its should work correctly if you patched it right.
zAo
Mar 30 2007, 11:12 AM
Since the old XBOX has hardware (USB, GF VGA, HDD, Intel CPU) like the aTV, can we expect aTVOS running on an old XBOX?
xfsasx
Mar 30 2007, 11:28 AM
anything is possible if someone is dedicated enough to do it
Kiko
Mar 30 2007, 11:30 AM
but not practical
Sherry Haibara
Mar 30 2007, 01:28 PM
QUOTE(zAo @ Mar 30 2007, 01:12 PM)

Since the old XBOX has hardware (USB, GF VGA, HDD, Intel CPU) like the aTV, can we expect aTVOS running on an old XBOX?
Nope. As I know, XBOX is powered by an old Intel Celeron CPU that hasn't got SSE2. Mac OS X (even the aTVOS) requires them, so...
Sherry Haibara
Artistan
Mar 30 2007, 03:33 PM
K, got it to work. as it turned out I got careless and entered the wrong device id for the disk I wanted to use.
Anyway, one issue I'm having is when exiting "Frontrow 2.0" my mouse cursor get's garbled, and I have to either change the resolution or re-login/restart to fix it.
Otherwise my iTunes from my PowerBook sees it... all aprox. 200 GB space I assigned to it.
Weird thing is though, for some reason I must have broke my prior Frontrow installation since the menu item in the Mouse&Keyboard section does't show up and apple+esc doesn't do anything anymore.
I did try putting the old Frontrow.app back see if it will fix it but no luck. Do you think it's my Frontrowpass.kext?
Can't control it yet though. How's the progress on the IR emulation? What channel can I find you all in the IRC?
kennyGS13
Mar 30 2007, 03:49 PM
QUOTE(Artistan @ Mar 30 2007, 11:33 AM)

K, got it to work. as it turned out I got careless and entered the wrong device id for the disk I wanted to use.
Anyway, one issue I'm having is when exiting "Frontrow 2.0" my mouse cursor get's garbled, and I have to either change the resolution or re-login/restart to fix it.
yep i'm having the same problem with my mouse when I exit apple tv, it's like a row of 10 different cursors and i don't know which is the real one.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.