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


Go Back   Hackint0sh > Projects and Hacks > AppleTV

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-05-2007, 05:28 AM
ptaylor874
Status: Offline
Junior Member
 
Join Date: Mar 2007
Posts: 29
Rep Power: 0
ptaylor874 is on a distinguished road
Default [Guide] Boot OS X from External USB drive - Complete HOWTO

HOWTO: Boot Mac OS 10.4.8 on an AppleTV without opening the case

Goal: Boot up Mac OS X on an AppleTV from a USB drive without voiding warranty. This is done to allow the user to install hacks on the AppleTV internal drive itself.

Credits:
Modified Kernel by semthex [http://www.semthex.com/]
Partitioning portions taken from Turbo's "Creating a disk to boot from USB" notes [http://0xfeedbeef.com/appletv/]
Portions of this guide taken from semthex's "Mac OS X running on Apple TV" howto
Small portions written by Paul Taylor [http://www.addressplus.net]

Required materials:
An AppleTV
A boot.efi file from an AppleTV (don't ask me where to find this)
Intel Mac
Tiger Install CD
External USB 2.0 hard drive

Set up your USB drive
1. In Mac OS, open Disk Utility
2. In the left pane of Disk Utility, select the USB drive
3. Hit the Options button at the bottom of the screen.
4. On the resultant screen, select GUID Partition Table. This is required to be able to install Mac OS X.
5. Lay out your partitions the way you want.. (One big, two, whatever) and format them with Mac OS Extended (Journaled)
6. Let the format finish. When done, you should be able to mount the drive.

Install Mac OS X
1. Pop in your install disk with the external drive attached
2. Reboot, holding down the Option key on your keyboard
3. Select the CD icon to boot from your install CD
4. Run through the complete installation process, selecting your USB drive as the destination.

Customize your USB installation
1. Run through the normal 1st boot stuff (Add user, etc.)
2. Download this: http://www.apple.com/support/downloa...dateintel.html
3. Install the 10.4.8 combo update
4. Reboot. Go to software update and get all the updates EXCEPT 10.4.9
5. System Prefs > Sharing
6. Check Remote Login here (this enables SSH)
7. Check Apple Remote Desktop
8. Click "Access Privileges", check the "VNC viewers" box, and put in a password here. This will let you remote control your AppleTV after you boot it with this installation.
9. Do any other customization you desire, except update to a newer version of Tiger

Get ethernet working with PCGenRTL8139Ethernet 1.2.0
1. Download http://www.sendspace.com/file/4i62j1
2. Install per the instructions in the file
(Note: This is needed to get either the built-in Ethernet to work or the Airport. This doesn't break Ethernet support for an Intel Core Duo iMac - not sure about others.)

Install proper kernel
1. Boot back up to your internal hard drive
2. Download the kernel from one of the mirrors listed here:
http://www.hackint0sh.org/forum/showthread.php?t=541
3. Mount your external drive
4. From a Terminal window, do this: ls -la /Volumes/YourExternalDisk
5. You will see a file called mach_kernel there.
6. Delete this file (may have to sudo rm /Volumes/YourExternalDisk/mach_kernel). Be careful here NOT to delete the kernel on your Internal Boot disk!
7. Copy the unzipped kernel you downloaded in step 2 to /Volumes/YourExternalDisk

Install boot.efi
1. Replace /System/Library/CoreServices/boot.efi with the boot.efi file from the AppleTV boot drive (it is in the same path)
2. To do the above, you may have to do a "Get Info" on the boot.efi file on your external drive and uncheck the "Locked" checkbox.
3. Bless the installation from a Terminal:
sudo bless --folder=/Volumes/YourExternalDisk/System/Library/CoreServices --file=/Volumes/YourExternalDisk/System/Library/CoreServices/boot.efi --setBoot

Cleanup
1. Delete the Nvidia kexts (all begining with NVD, there are 5) from /Volumes/YourExternalDisk/System/Library/Extensions
2. Delete /Volumes/YourExternalDisk/System/Library/Extensions.mkext and Extensions.kextcache if they exist

Patch AppleFileSystemDriver
NOTE: Perform these steps with a command line text editor or with TextWrangler (http://www.barebones.com/products/te...ownload.shtml). DO NOT USE TEXTEDIT!
1. Edit /Volumes/YourExternalDisk/System/Library/Extensions/AppleFileSystemDriver.kext/Contents/Info.plist
2. Search for "IOPropertyMatch". It will be found similar to this:
PHP Code:
            <key>media-match</key>
            <
dict>
                <
key>IOPropertyMatch</key>
                <array>
                    <
dict>
                        <
key>Content Hint</key>
                        <
string>48465300-0000-11AA-AA11-00306543ECAC</string>
                        <
key>Leaf</key>
                        <
true/>
                    </
dict
3. Just after the line with <array>, copy/paste this in:
PHP Code:
                    <dict>
                        <
key>Content Hint</key>
                        <
string>5265636F-7665-11AA-AA11-00306543ECAC</string>
                        <
key>Leaf</key>
                        <
true/>
                    </
dict>
                    <
dict>
                        <
key>Content Hint</key>
                        <
string>Apple_Recovery</string>
                        <
key>Leaf</key>
                        <
true/>
                    </
dict
Change Partition Type
NOTE: Once you do this, you can't mount the disk on your Intel Mac anymore without reversing the change. If you mess up here, you'll need to start over.
1. Open Disk Utility
2. Select the external disk from the left pane. Right click and select "Information"
3. Take note of the "Disk Indentifier". In my case, it is "disk3". For safety reasons, the rest of this guide is written with "diskX". Replace the X with the number of your drive.
4. From Terminal:
gpt -r show /dev/diskX
5. You'll get something similar to this back:
PHP Code:
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6         
         40     409600      1  GPT part 
C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640   77757488      2  GPT part 
48465300-0000-11AA-AA11-00306543ECAC
   78167128     262144         
   78429272   77610032      3  GPT part 
48465300-0000-11AA-AA11-00306543ECAC
  156039304     262151         
  156301455         32         Sec GPT table
  156301487          1         Sec GPT header 
6. A little explanation here is in order. The first real partition is on the line beginning with 40. In this case, it runs from 40 through 409600. (I'm guessing these are bytes) Next to the size is the index, 1. The very next line is the one we are interested in. This is the partition that contains your bootable install. It is index 2. You may or may not have and index 3)

7. Unmount the disk:
disktool -u diskX

8. Now, we remove the entry in the table for the 2nd partition
gpt remove -i 2 /dev/diskX

I got this back:
gpt remove: /dev/disk3: 1 partition(s) removed

9. Mac OS will remount any remaining partitions. Unmount them:
disktool -u diskX

10. Now, we add a new entry to the table. For index 2, take note of the start, and the size, as you'll need them here. Replace the START and SIZE strings with your values.

gpt add -b START -s SIZE -i 2 -t "5265636F-7665-11AA-AA11-00306543ECAC" /dev/diskX

Note that it doesn't tell you anything back.. You just get a prompt.

11. Performing step 5's command again gets me this:
PHP Code:
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6         
         40     409600      1  GPT part 
C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640   77757488      2  GPT part 
5265636F-7665-11AA-AA11-00306543ECAC
   78167128     262144         
   78429272   77610032      3  GPT part 
48465300-0000-11AA-AA11-00306543ECAC
  156039304     262151         
  156301455         32         Sec GPT table
  156301487          1         Sec GPT header 
Note that the index 2 partition type is now the required type for AppleTV to boot to.

Boot your AppleTV with OS X
1. Attach your external drive to the USB port
2. If already booted up, hit MENU and "-" on your remote and hold it until a reboot start
3. If your AppleTV isn't on, plug it in to power. No remote finagling required.
4. Watch in AWE as your AppleTV boots up OS X.

Last edited by ptaylor874; 04-07-2007 at 11:44 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 04-05-2007, 06:01 AM
guestlurker
Status: Offline
Junior Member
 
Join Date: Apr 2007
Posts: 2
Rep Power: 0
guestlurker is on a distinguished road
Default

Thanks, ptaylor874. I followed the instructions exactly except for one step: I did not replace boot.efi from the appleTV, because to do so would require me to open the case and void the warranty.

Of course, the appleTV did not boot from external HD without this step. So, this boot.efi is really the missing piece in all of this -- everything else is freely available and understandable.

I know that you said not to ask where to get boot.efi. I just want to clarify that this boot.efi file looks to be critical for success with these instructions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 04-05-2007, 06:32 AM
ptaylor874
Status: Offline
Junior Member
 
Join Date: Mar 2007
Posts: 29
Rep Power: 0
ptaylor874 is on a distinguished road
Default

Yes - That file is absolutely critical to get it to work.

You may be able to convince a friend to buy an AppleTV and borrow it for an evening, extracting the boot.efi file from his... That way your warranty would be completely in tact..
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

  #4 (permalink)  
Old 04-05-2007, 09:31 AM
semthex's Avatar
semthex
Status: Offline
Old Wood
 
Join Date: Oct 2006
Location: Vatican City :-P
Posts: 150
Rep Power: 11
semthex is on a distinguished road
Default

Thanks for this guide :-D Realoly great work.
__________________
For support and more infos go to irc.osx86.hu
Your happy hackint0sh IRC network.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 04-05-2007, 01:51 PM
barbro66
Status: Offline
Junior Member
 
Join Date: Mar 2007
Posts: 9
Rep Power: 0
barbro66 is on a distinguished road
Default

Works beautifully....

http://www.flickr.com/gp/51035591025@N01/X40Bt4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 04-05-2007, 10:07 PM
GoodOmens
Status: Offline
Junior Member
 
Join Date: Mar 2007
Posts: 21
Rep Power: 0
GoodOmens is on a distinguished road
Default

Hmm that means booting from a USB thumb drive might be possible.
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

  #7 (permalink)  
Old 04-06-2007, 07:43 AM
DxQ
Status: Offline
Member
 
Join Date: Apr 2007
Posts: 30
Rep Power: 0
DxQ is on a distinguished road
Default

I attempted this with an install from my brand new (two weeks old, 10.4.8) MacBook Pro restore DVD, and when I tried to boot up, I was presented with the grey apple, then with the "invalid" sign (circle with a line through it), and the drive failed to boot. I tried the install again with the same results.

Am I doing something wrong, is my DVD too new?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 04-06-2007, 09:18 AM
yujean
Status: Offline
Junior Member
 
Join Date: Apr 2007
Posts: 1
Rep Power: 0
yujean is on a distinguished road
Default

Quote:
Originally Posted by DxQ View Post
I attempted this with an install from my brand new (two weeks old, 10.4.8) MacBook Pro restore DVD, and when I tried to boot up, I was presented with the grey apple, then with the "invalid" sign (circle with a line through it), and the drive failed to boot. I tried the install again with the same results.

Am I doing something wrong, is my DVD too new?
This happened to me too. I just rebooted it again... and then it showed me the Apple Logo... then it rebooted automatically *again* ... and then booted up to the Mac OS just fine thereafter...

So just keep rebooting it I guess... let it grind away~

*****

Question about boot.efi

I don't want to void my warrentee either with my Apple TV... Is a boot.efi file unique to each ATV? If it's not, then what's keeping people from providing it online...? Or should I not be asking that question...?

Thanks,

Eugene
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 04-06-2007, 01:34 PM
ptaylor874
Status: Offline
Junior Member
 
Join Date: Mar 2007
Posts: 29
Rep Power: 0
ptaylor874 is on a distinguished road
Default

DxQ,
I don't know what the problem could be. If you are replacing the kernel with the semthex kernel, deleting the specified files, and handling the boot.efi as directed, it should work as long as you don't run into an issue with the partitioning.

Yujean,
The boot.efi file is not unique to an individual AppleTV, as far as I know.

With that in mind, I guess that it, or perhaps even a copy of the AppleTV OS that you could pull it from, may be somewhere on the Internet.

Whether it would be legal to download it is another question... I'm almost of the opinion that you could get away with it legally since you own an AppleTV box, but what do I know? I'm not a lawyer.

One good bit of news that I read last night was that Apple wasn't planning to do anything to stop people from hacking their AppleTVs.
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

  #10 (permalink)  
Old 04-06-2007, 01:43 PM
DxQ
Status: Offline
Member
 
Join Date: Apr 2007
Posts: 30
Rep Power: 0
DxQ is on a distinguished road
Default

I am following the given instructions EXACTLY, and I've done it twice.

I am not using the boot.efi from my image, as I haven't opened my case (I got one somewhere else, if you understand what I'm saying). Would a bad boot.efi give me this problem?
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot Camp on External Drive jashsayani Genuine Mac Support 6 08-27-2008 05:28 PM
[iATKOS] Boot from external drive george_6666 Archiv (Leopard) 2 07-10-2008 10:00 PM
How to boot from an external drive!!! WORKS! ptaylor874 AppleTV 1 04-05-2007 03:26 AM



All times are GMT +2. The time now is 07:39 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, 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 106 107