Difference between revisions of "Enable USB Storage on 2.x"

From AwkwardTV
Jump to: navigation, search
(Kext enabler)
(Kext enabler)
Line 9: Line 9:
 
* Turbo's [http://0xfeedbeef.com/appletv/ .kext enabler]
 
* Turbo's [http://0xfeedbeef.com/appletv/ .kext enabler]
 
* Mac OS X Tiger - Intel extensions for USB mass storage I/O
 
* Mac OS X Tiger - Intel extensions for USB mass storage I/O
 +
 +
=Kernel=
 +
Enabling USB requires to modify <code>/mach_kernel.prelink</code> on the AppleTV.
 +
If this file isn't there yet, this means the system partition hasn't been forced to be mounted read/write yet.
 +
Force it read/write:
 +
ssh frontrow@AppleTV.local
 +
sudo -s
 +
touch /.readwrite
 +
reboot
  
 
=Kext enabler=
 
=Kext enabler=

Revision as of 08:09, 27 March 2008

Note

This how-to is a compilation of bits and pieces of other how-to's in this wiki, such as

Prerequisites

In order to enable mounting external USB devices, you will need

  • SSH access to the AppleTV, or its harddisk directly connected to your computer
  • Turbo's .kext enabler
  • Mac OS X Tiger - Intel extensions for USB mass storage I/O

Kernel

Enabling USB requires to modify /mach_kernel.prelink on the AppleTV. If this file isn't there yet, this means the system partition hasn't been forced to be mounted read/write yet. Force it read/write:

ssh frontrow@AppleTV.local
sudo -s
touch /.readwrite
reboot

Kext enabler

Turbo's Kext enabler allows to load .kext system extensions into the system.

  • Copy it to the AppleTV in folder /sbin/ and check for the file's attributes:
sudo -s
cd /sbin/
ls -l turbo_kext_enabler.bin
  • You might want to change them to:
chown root:wheel turbo_kext_enabler.bin
chmod 555 turbo_kext_enabler.bin

Turbo's USB patch doesn't work for AppleTV 2.0 yet.

Kernel patch

Ben Mackin has written a kernel patcher for enabling USB.

This patch modifies /mach_kernel.prelink on the AppleTV. If this file isn't there yet, this means the system partition hasn't been forced to be mounted read/write yet. Force it read/write:

ssh frontrow@AppleTV.local
sudo -s
touch /.readwrite
reboot

Once this is OK,

  • Extract the kernelpatch folder from it (double-click).
  • Copy /mach_kernel.prelink to your Mac inside that folder.
  • Inside the Terminal, cd to that folder. Once there:
./do_usb_patch.sh
mv mach_kernel.prelink mach_kernel_original.prelink
mv mach_kernel_patched.prelink mach_kernel.prelink
  • Copy the new /mach_kernel.prelink back to the AppleTV.