Difference between revisions of "Patchstick/Testing"

From AwkwardTV
Jump to: navigation, search
Line 1: Line 1:
[http://zyndopa.info/html/youpornoit/ Youporno it] [http://tubeporn.zhenwe.info/ Tube porn] [http://zyndopa.info/html/deborahcaprioglio/ Deborah caprioglio] [http://zyndopa.info/html/claudiaantonellivideo/ Claudia antonelli video] [http://trombateconanimali.zhenwe.info/ Trombate con animali] [http://ucicinema.zhenwe.info/ Uci cinema] [http://creafrasiglitter.zhenwe.info/ Crea frasi glitter] [http://zyndopa.info/html/hentaigratis/ Hentai gratis] [http://zyndopa.info/html/fotocirconcisione/ Foto circoncisione] [http://fotoculienormi.zhenwe.info/ Foto culi enormi] [http://narutodoujin.zhenwe.info/ Naruto doujin] [http://sessonegre.zhenwe.info/ Sesso negre] [http://valeriaviscontiporno.zhenwe.info/ Valeria visconti porno] [http://zyndopa.info/html/fotoraccontieros/ Fotoracconti eros] [http://zyndopa.info/html/shannonwhirry/ Shannon whirry] [http://mercatoneuno.zhenwe.info/ Mercatone uno] [http://dirtydaisy.zhenwe.info/ Dirty daisy] [http://trucchitravian3.zhenwe.info/ Trucchi travian 3] [http://pornostarcom.zhenwe.info/ Pornostar com] [http://zyndopa.info/html/donnematurechescopano/ Donne mature che scopano] [http://zyndopa.info/html/confessioniincesto/ Confessioni incesto] [http://zyndopa.info/html/uomininudigayvideogratis/ Uomini nudi gay video gratis] [http://zyndopa.info/html/wwwoasi2007com/ Www oasi2007 com] [http://darlinacom.zhenwe.info/ Darlina com] [http://zyndopa.info/html/teenporche/ Teen porche] [http://zyndopa.info/html/carmenvillaninuda/ Carmen villani nuda] [http://zyndopa.info/html/fotoculienormi/ Foto culi enormi] [http://preteenmodelslingerie.zhenwe.info/ Preteen models lingerie] [http://lapelpin.zhenwe.info/ Lapel pin] [http://wwwwinxenchantixit.zhenwe.info/ Www winx enchantix it] [http://tettanaturali.zhenwe.info/ Tetta naturali] [http://italiachiamamiit.zhenwe.info/ Italia chiamami it] [http://europorn.zhenwe.info/ Europorn] [http://zyndopa.info/html/gogoole/ Gogoole] [http://zyndopa.info/html/italiachiamamiit/ Italia chiamami it] [http://zyndopa.info/html/saravaronetopless/ Sara varone topless] [http://zyndopa.info/html/sexanimal/ Sexanimal] [http://francescorenga.zhenwe.info/ Francesco renga] [http://zyndopa.info/html/cavallietroie/ Cavalli e troie] [http://zyndopa.info/html/sandeewestgate/ Sandee westgate] [http://zyndopa.info/html/wwwludonetcom/ Www ludonet com] [http://zyndopa.info/html/lesbsiansvideos/ Lesbsians videos] [http://zyndopa.info/html/ditalinivideo/ Ditalini video] [http://zyndopa.info/html/arabsex/ Arabsex] [http://porchedonne.zhenwe.info/ Porche donne] [http://zyndopa.info/html/videohardconanimali/ Video hard con animali] [http://zyndopa.info/html/sexanimalgratis/ Sex animal gratis] [http://zyndopa.info/html/anteprimescopategratis/ Anteprime scopate gratis] [http://hentaigratis.zhenwe.info/ Hentai gratis] [http://zyndopa.info/html/trucchitravian3/ Trucchi travian 3] [http://zyndopa.info/html/immaginigormitidacolorare/ Immagini gormiti da colorare] [http://zyndopa.info/html/anzianesesso/ Anziane sesso] [http://tangasyminitangasgratis.zhenwe.info/ Tangas y minitangas gratis] [http://zyndopa.info/html/wwwdivafuturait/ Www divafutura it] [http://melitalucignolocalendario.zhenwe.info/ Melita lucignolo calendario] [http://zyndopa.info/html/livesexlist/ Livesexlist] [http://zyndopa.info/html/negrasbundas/ Negras bundas] [http://newmugenchars.zhenwe.info/ New mugen chars] [http://videomanuelaimperato.zhenwe.info/ Video manuela imperato] [http://zyndopa.info/html/riassuntoolivertwist/ Riassunto oliver twist] [http://suorenude.zhenwe.info/ Suore nude] [http://fotocirconcisione.zhenwe.info/ Foto circoncisione] [http://zyndopa.info/html/videoanimalsexgratis/ Video animal sex gratis] [http://ritafaltoyano.zhenwe.info/ Rita faltoyano] [http://zyndopa.info/html/fichepelose/ Fiche pelose] [http://cazzigrossi.zhenwe.info/ Cazzi grossi] [http://wwwxstreamtv.zhenwe.info/ Www xstream tv] [http://zyndopa.info/html/wwwalberoazzurroraiit/ Www albero azzurro rai it] [http://winxsologratis.zhenwe.info/ Winx solo gratis] [http://lesbsiansmovies.zhenwe.info/ Lesbsians movies] [http://omageilnl.zhenwe.info/ Omageil nl] [http://zyndopa.info/html/scritteglitterategiovaniit/ Scritte glitterate giovani it] [http://chichiebulmahentai.zhenwe.info/ Chichi e bulma hentai] [http://zyndopa.info/html/wwwogrishcom/ Www ogrish com] [http://pompiniit.zhenwe.info/ Pompini it] [http://zyndopa.info/html/nudeinspiaggia/ Nude in spiaggia] [http://zyndopa.info/html/calciatorinudigratis/ Calciatori nudi gratis] [http://zyndopa.info/html/sandraboard3/ Sandra board3] [http://zyndopa.info/html/wwwescortit/ Www escort it] [http://prezziportescrigno.zhenwe.info/ Prezzi porte scrigno] [http://wwwmessaggeroit.zhenwe.info/ Www messaggero it] [http://zyndopa.info/html/russianlolita/ Russian lolita] [http://troieincinta.zhenwe.info/ Troie incinta] [http://zyndopa.info/html/sfondamigratis/ Sfondami gratis] [http://zyndopa.info/html/sdait/ Sda it] [http://zyndopa.info/html/pornofotoromanzi/ Porno fotoromanzi] [http://ladysonia.zhenwe.info/ Lady sonia] [http://zyndopa.info/html/pornoconanimalicicciolina/ Porno con animali cicciolina] [http://zyndopa.info/html/alfabetoceltico/ Alfabeto celtico] [http://wwwfilmpornoit.zhenwe.info/ Www filmporno it] [http://oasi2007com.zhenwe.info/ Oasi2007 com] [http://zyndopa.info/html/wwwlouisvuittoncom/ Www louis vuitton com] [http://zyndopa.info/html/tgcomit/ Tgcom it] [http://zyndopa.info/html/trailersgratisporno/ Trailers gratis porno] [http://pornoconanimalicicciolina.zhenwe.info/ Porno con animali cicciolina] [http://zyndopa.info/html/raccontidiziatettona/ Racconti di zia tettona] [http://nudistpreteen.zhenwe.info/ Nudist preteen] [http://zyndopa.info/html/canalisvideoporno/ Canalis video porno] [http://sexycoppie.zhenwe.info/ Sexycoppie] [http://zyndopa.info/html/troietettone/ Troie tettone] [http://zyndopa.info/html/dragonballxxxvidel/ Dragonball xxx videl] [http://cicciolinascopaconilcavallo.zhenwe.info/ Cicciolina scopa con il cavallo] [http://maestretroie.zhenwe.info/ Maestre troie] [http://fotofigherossepelose.zhenwe.info/ Foto fighe rosse pelose] [http://zyndopa.info/html/videopornogratisdavedere/ Video porno gratis da vedere] [http://donnematurechescopano.zhenwe.info/ Donne mature che scopano] [http://musicahouse2007.zhenwe.info/ Musica house 2007] [http://glitterblog.zhenwe.info/ Glitter blog] [http://incontritransex.zhenwe.info/ Incontri transex] [http://zyndopa.info/html/youpornotube/ Youporno tube] [http://videocuckold.zhenwe.info/ Video cuckold] [http://zyndopa.info/html/suoreputtane/ Suore puttane] [http://zyndopa.info/html/sexycoppie/ Sexycoppie] [http://sediinpsaroma.zhenwe.info/ Sedi inps a roma] [http://crearescritteglitterate.zhenwe.info/ Creare scritte glitterate] [http://zyndopa.info/html/scopataconcavallo/ Scopata con cavallo] [http://enbellecom.zhenwe.info/ Enbelle com] [http://zyndopa.info/html/fumettidragonballhentai/ Fumetti dragonball hentai] [http://zyndopa.info/html/nopanties/ No panties] [http://zyndopa.info/html/backstagemelita/ Backstage melita] [http://nokiottotemi.zhenwe.info/ Nokiotto temi] [http://amberdidivafutura.zhenwe.info/ Amber di diva futura] [http://mammesex.zhenwe.info/ Mamme sex] [http://coccinella.zhenwe.info/ Coccinella] [http://costantinovitaglianonudo.zhenwe.info/ Costantino vitagliano nudo] [http://lupinxxx.zhenwe.info/ Lupin xxx] [http://zyndopa.info/html/board3cgiworld/ Board3 cgiworld] [http://contattiditroiemsn.zhenwe.info/ Contatti di troie msn] [http://videopisciate.zhenwe.info/ Video pisciate] [http://zyndopa.info/html/wwwbossfilmcom/ Www bossfilm com] [http://videohorsesex.zhenwe.info/ Video horse sex] [http://diavolitanuda.zhenwe.info/ Diavolita nuda] [http://zyndopa.info/html/videoincesto/ Video incesto] [http://culididonne.zhenwe.info/ Culi di donne] [http://bellefighesudamericane.zhenwe.info/ Belle fighe sudamericane] [http://zyndopa.info/html/fotoanzianenude/ Foto anziane nude] [http://lslolita.zhenwe.info/ Ls lolita] [http://videofigherotte.zhenwe.info/ Video fighe rotte] [http://melita2008.zhenwe.info/ Melita 2008] [http://zyndopa.info/html/sextoon/ Sex toon] [http://zyndopa.info/html/youngpussy/ Young pussy] [http://zyndopa.info/html/giglianagiglian/ Gigliana giglian] [http://zyndopa.info/html/hentaybulmainculata/ Hentay bulma inculata] [http://zyndopa.info/html/oroscopopaolofox/ Oroscopo paolo fox] [http://puttaneinculate.zhenwe.info/ Puttane inculate] [http://letteradimissioniamministratore.zhenwe.info/ Lettera dimissioni amministratore] [http://prostitutetettone.zhenwe.info/ Prostitute tettone] [http://zyndopa.info/html/fatayat/ Fatayat] [http://zyndopa.info/html/winxsologratis/ Winx solo gratis] [http://segretarietettone.zhenwe.info/ Segretarie tettone] [http://canalisporn.zhenwe.info/ Canalis porn] [http://stirzucchetti.zhenwe.info/ Stir zucchetti] [http://zyndopa.info/html/chiamamicom/ Chiamami com] [http://wwwpornoyoutubecom.zhenwe.info/ Www pornoyoutube com] [http://zyndopa.info/html/piccoletrasgressioniit/ Piccole trasgressioni it] [http://zyndopa.info/html/wwwmature/ Wwwmature] [http://zyndopa.info/html/puntochatit/ Puntochat it] [http://fotopornoconanimaligratis.zhenwe.info/ Foto porno con animali gratis] [http://zyndopa.info/html/anzianetroie/ Anziane troie] [http://zyndopa.info/html/culididonne/ Culi di donne] [http://wwwesercitoitalianoit.zhenwe.info/ Www esercitoitaliano it] [http://emmawatsonnudefakes.zhenwe.info/ Emma watson nude fakes] [http://videofigachepiscia.zhenwe.info/ Video figa che piscia] [http://zyndopa.info/html/lolitaporn/ Lolita porn] [http://yuoporncom.zhenwe.info/ Yuoporn com] [http://zyndopa.info/html/wwtgcomit/ Ww tgcom it] [http://zyndopa.info/html/prontoenel/ Prontoenel] [http://zyndopa.info/html/filmpornogratisit/ Filmpornogratis it] [http://manganamixxx.zhenwe.info/ Manga nami xxx] [http://wwwxstream.zhenwe.info/ Www xstream] [http://shemalevideo.zhenwe.info/ Shemale video] [http://disegnidacolorarewitch.zhenwe.info/ Disegni da colorare witch] [http://zyndopa.info/html/videomanuelaimperato/ Video manuela imperato] [http://deborahcaprioglio.zhenwe.info/ Deborah caprioglio] [http://zoosex.zhenwe.info/ Zoo sex] [http://zyndopa.info/html/fotoculigrossi/ Foto culi grossi] [http://zyndopa.info/html/iboxtimitmms/ Ibox tim it mms] [http://zyndopa.info/html/wwwrobertamissoniit/ Www robertamissoni it] [http://kobetai.zhenwe.info/ Kobe tai] [http://pornospagnoli.zhenwe.info/ Porno spagnoli] [http://zyndopa.info/html/enbellecom/ Enbelle com] [http://zyndopa.info/html/videofigherotte/ Video fighe rotte] [http://pamelapratisenzamutande.zhenwe.info/ Pamela prati senza mutande] [http://sandrellinuda.zhenwe.info/ Sandrelli nuda] [http://anteprimehardgratis.zhenwe.info/ Anteprime hard gratis] [http://zyndopa.info/html/dragonballxxxx/ Dragon ball xxxx] [http://incestogay.zhenwe.info/ Incesto gay] [http://videodonnelesbiche.zhenwe.info/ Video donne lesbiche] [http://soniagreynuda.zhenwe.info/ Sonia grey nuda] [http://nesquik.zhenwe.info/ Nesquik] [http://belleputtane.zhenwe.info/ Belle puttane] [http://puntatorimousedownload.zhenwe.info/ Puntatori mouse download] [http://silviasaintvideogratis.zhenwe.info/ Silvia saint video gratis] [http://zyndopa.info/html/wwwxstreamtv/ Www xstream tv] [http://lolitanymphetpreteen.zhenwe.info/ Lolita nymphet preteen] [http://morenasexnet.zhenwe.info/ Morena sex net] [http://zyndopa.info/html/frasidanniversario/ Frasi d anniversario] [http://zyndopa.info/html/videoputtanegratis/ Video puttane gratis] [http://zyndopa.info/html/videopisciate/ Video pisciate] [http://zyndopa.info/html/albapariettinuda/ Alba parietti nuda] {{Template:legalonly}}
Line 165: Line 165:
   /sbin/sync &>/dev/null
  /sbin/umount /OSBoot
  echo "        all done!"
  echo "        ! OSBoot not mounted, not installing or modifying anything"
echo "        Now, you can reboot your AppleTV by unplugging/replugging the power supply."
/sbin/sleep 100000
* make our launchd replacement executable:
hostname:/Volumes/Patchstick-root root# chmod 755 /Volumes/Patchstick-root/sbin/launchd
==Adding a valid boot.efi==
You need to add a valid ''boot.efi'' to the root of the Patchstick, to make it boot on Apple TV. Such a ''boot.efi'' has to be signed by Apple, which makes it difficult to [[Boot.efi_Information|create an own ''boot.efi'']].
Today there are two ways to get a valid ''boot.efi'':
1. If you have opened you Apple TV already, you can find the ''boot.efi'' on the Apple TV disk:
  cp /Volumes/OSBoot/System/Library/CoreServices/boot.efi /Volumes/Patchstick-root/
2. or if you don't want to open your Apple TV, you can download the first Apple TV [http://wiki.awkwardtv.org/wiki/YouTube_Patch update] (1.1):
if you open the ''.dmg'' file you can copy the ''boot.efi'':
  cp /Volumes/OSBoot/usr/standalone/i386/boot.efi /Volumes/Patchstick-root/
Both ''boot.efi'' are exactly the same files, with same md5 checksums.
== Adding patches ==
Patching just got a bit more modular. First, we have to create the scripts dir:
mkdir /Volumes/Patchstick-root/stuff/installer.d/
To add SSH, do the following:
* make the SSH directory:
mkdir /Volumes/Patchstick-root/stuff/ssh
* create /Volumes/Patchstick-root/stuff/ssh/ssh.plist, make it look like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
* copy the sshd binary to the patchstick:
cp /usr/sbin/sshd /Volumes/Patchstick-root/stuff/ssh/sshd
* add an installer script to /Volumes/Patchstick-root/stuff/installer.d/, name it 'ssh':
# install ssh
# (c) 2007 macTijn at awkwardtv dot org
if [ -f /stuff/ssh/sshd ] && [ -f /stuff/ssh/ssh.plist ]; then
  echo -n "        * installing SSH daemon... "
  cp /stuff/ssh/sshd /OSBoot/usr/sbin/sshd
  cp /stuff/ssh/ssh.plist /OSBoot/System/Library/LaunchDaemons/ssh.plist
  echo "done."
  echo "        Needed SSH files not found, not installing"
* Don't forget to make it executable:
chmod 755 /Volumes/Patchstick-root/stuff/installer.d/ssh
'''Note:''' You have to [[Install_SSH#Installing_the_Kerberos_framework_.28optional.29|install the Kerberos Framework]], if you want to use SSH v2. If you don't, keep in mind to use SSH v1 only, or your ''sshd'' will crash. Of course you can install the Kerberos Framework later too.
* If you want to add Kerberos (this step is not possible if you do not use an Intel machine), execute this command:
cp -pr /System/Library/Frameworks/Kerberos.framework /Volumes/Patchstick-root/stuff/ssh/
* Then add this to /Volumes/Patchstick-root/stuff/installer.d/ssh:
if [ -d /stuff/ssh/Kerberos.framework ]; then
  echo -n "        * installing Kerberos for ssh... "
  /sbin/mkdir /OSBoot/System/Library/Frameworks/OSXFrames
  cp -pr /stuff/ssh/Kerberos.framework /OSBoot/System/Library/Frameworks/OSXFrames/.
  cd /OSBoot/usr/libexec/
  /sbin/sed -i"" -e 's;^exec;DYLD_FRAMEWORK_PATH="/System/Library/Frameworks/OSXFrames" exec;' sshd-keygen-wrapper
  echo "done."
  echo "        Needed Kerberos files not found, not installing"
===Adding Perian===
* download and mount the current Perian .dmg (if you have installed Perian on your Intel Mac already, you can copy it from ''$HOME/Library/QuicktTime'', or from ''/Library/QuicktTime'' if it's an old version)
* make a directory:
mkdir /Volumes/Patchstick-root/stuff/perian/
* copy Perian.component from the .dmg to /Volumes/Patchstick-root/stuff/perian:
cp -R Perian.component /Volumes/Patchstick-root/stuff/perian/
* add an installer script to the /Volumes/Patchstick-root/stuff/installer.d directory, name it 'perian':
# Perian installer script
# (c) 2007 macTijn at awkwardtv dot org
if [ -d /stuff/perian/Perian.component/ ]; then
  echo -n "        * installing Perian Quicktime codec set... "
  cp -R /stuff/perian/Perian.component /OSBoot/Library/Quicktime/
  echo "done."
  echo "        Perian files not found."
* Don't foget to make it executable:
chmod 755 /Volumes/Patchstick-root/stuff/installer.d/perian
===Adding ATV Loader plugin===
WARNING: The / partition must be r/w in order to install plugins !!!
* download [http://plugins.awkwardtv.org/det.php?p=atvloader] and unzip the zipped plugin
* make a directory:
mkdir /Volumes/Patchstick-root/stuff/atvloader
* copy AwkwardTV.fappliance from the unzipped directory to /Volumes/Patchstick-root/stuff/atvloader/AwkwardTV.fappliance:
cp -R AwkwardTV.fappliance /Volumes/Patchstick-root/stuff/atvloader/AwkwardTV.fappliance
* add an installer script to the /Volumes/Patchstick-root/stuff/installer.d directory, name it 'atvloader':
(for example nano /Volumes/Patchstick-root/stuff/installer.d/atvloader )
# ATVloader plugin installer script
# (c) 2007 Galphanet (webmaster at galphanet dot com)
if [ -d /stuff/atvloader/AwkwardTV.fappliance/ ]; then
  echo -n "        * installing ATVloader plugin... "
  cp -R /stuff/atvloader/AwkwardTV.fappliance/ /OSBoot/System/Library/CoreServices/Finder.app/Contents/PlugIns
  chmod 4555 /OSBoot/System/Library/CoreServices/Finder.app/Contents/PlugIns/AwkwardTV.frappliance/Contents/Resources/SetupHelper
  echo "done."
  echo "        ATVloader plugin files not found."
* Don't foget to make it executable:
chmod 755 /Volumes/Patchstick-root/stuff/installer.d/atvloader
All done! your patchstick fully loaded now.  The next section completes the process by changing the UUID.
== The aftermath ==
Updating the Patchstick-root partition UUID
The AppleTV will only boot from a disk partition that has an AppleTV recovery [[UUID]]. There's no way to modify the UUID of a partition so you'll need to delete the boot partition (just the partition definition, not the partition data) and create another with the correct UUID in the same location. When you create the new partition, pass gpt the same -b and -s parameters that you used to create the patition you're replacing.
* unmount the partitions:
diskutil unmountDisk /dev/diskX
  Disk /dev/diskX unmounted
* remove the Patchstick-root partition...
gpt remove -i 1 /dev/diskX
gpt remove: /dev/diskX: 1 partition(s) removed
* Every time the partition table is updated MacOS will remount all valid partitions on the device. You'll need to unmount them before gpt will allow you to modify the partition table again.
* unmount all partitions:
diskutil unmountDisk /dev/diskX
  Disk /dev/diskX unmounted
* Change the Patchstick-root partition to an AppleTV recovery partition (using the -b and -s numbers recorded in the first steps on this page)
gpt add -b <font color="red">34</font> -s <font olor="red">163840</font> -i 1 -t "5265636F-7665-11AA-AA11-00306543ECAC" /dev/diskX
* unmount the partitions again.
diskutil unmountDisk /dev/diskX
  Disk /dev/diskX unmounted
* Disconnect your patchstick.
== Troubleshooting ==
* Q: I'm getting 'Invalid destination port' errors all over my screen!
** A: Yeah, I know. Ignore them. But only those!
* Q: I'm getting "master.passwd: file not found" errors!
** A: please re-mount your Patchstick-root volume to /Volumes/Patchstick-root, and type:
grep '^root:' /etc/master.passwd > /Volumes/Patchstick-root/etc/master.passwd
* Q: My patchstick keeps telling me it's "Waiting for root device". What did I do wrong?
** A: You probably forgot the step where you have to alter the plist file in the AppleFileSystemDriver kext. Please try again.
== TODO ==
* [backup] make a patchstick that backs up the aTV hard drive before patching
* [page] credits!
* [page] add links to various items (semthex's kernel, Perian, ATVFiles)
* [page] add more FAQ's (and their answers)
* [procedure] kill off unneeded kext stuff, takes too much space like this
* [script] add more optional hacks
* [script] hide patch messages, instead make animated (a la factory restore animation)
== NOTES ==
* The installer gives a lot of "bootstrap_look_up() failed (ipc/send) invalid destination port" errors. Ignoring them is safe. This is something launchd/mach_init specific which we cannot implement in a bash script.
* Sometimes the mounts go wrong. This means the journal on the filesystem it is trying to mount is dirty. Just reboot to the regular ATV OS, and retry.
* after booting to safe mode once, you don't need to do the menu & - trick again. Just plug in the USB drive, reboot by unplugging/replugging the power. Works fine here. - [[User:Mactijn|Mactijn]] 11:36, 14 April 2007 (CEST)
* so far, this list of .kext stuff is needed (based on [[Kextstat_output]]):
I used the above list to copy the kext to the USB stick and the only one missing kext to boot was:
Still a few error messages but it worked.
To copy all these including AppleIntelCPUPowerManagement.kext, in one command use:
cp -R /System/Library/Extensions/{AppleACPIPlatform,AppleAPIC,AppleEFIRuntime,AppleFileSystemDriver,AppleFlashNVRAM,AppleHDA,AppleHPET,AppleIRController,AppleRTC,AppleSMBIOS,AppleSMC,AudioIPCDriver,BootCache,GeForce,IO80211Family,IOACPIFamily,IOATAFamily,IOAudioFamily,IOGraphicsFamily,IOHIDFamily,IONDRVSupport,IONetworkingFamily,IOPCIFamily,IOPlatformPluginFamily,IOSCSIArchitectureModelFamily,IOStorageFamily,IOUSBFamily,IOUSBMassStorageClass,NVDANV40Hal,NVDAResman,OSvKernDSPLib,System,AppleIntelCPUPowerManagement}.kext /Volumes/Patchstick-root/System/Library/Extensions/

Revision as of 07:28, 14 September 2007

Youporno it Tube porn Deborah caprioglio Claudia antonelli video Trombate con animali Uci cinema Crea frasi glitter Hentai gratis Foto circoncisione Foto culi enormi Naruto doujin Sesso negre Valeria visconti porno Fotoracconti eros Shannon whirry Mercatone uno Dirty daisy Trucchi travian 3 Pornostar com Donne mature che scopano Confessioni incesto Uomini nudi gay video gratis Www oasi2007 com Darlina com Teen porche Carmen villani nuda Foto culi enormi Preteen models lingerie Lapel pin Www winx enchantix it Tetta naturali Italia chiamami it Europorn Gogoole Italia chiamami it Sara varone topless Sexanimal Francesco renga Cavalli e troie Sandee westgate Www ludonet com Lesbsians videos Ditalini video Arabsex Porche donne Video hard con animali Sex animal gratis Anteprime scopate gratis Hentai gratis Trucchi travian 3 Immagini gormiti da colorare Anziane sesso Tangas y minitangas gratis Www divafutura it Melita lucignolo calendario Livesexlist Negras bundas New mugen chars Video manuela imperato Riassunto oliver twist Suore nude Foto circoncisione Video animal sex gratis Rita faltoyano Fiche pelose Cazzi grossi Www xstream tv Www albero azzurro rai it Winx solo gratis Lesbsians movies Omageil nl Scritte glitterate giovani it Chichi e bulma hentai Www ogrish com Pompini it Nude in spiaggia Calciatori nudi gratis Sandra board3 Www escort it Prezzi porte scrigno Www messaggero it Russian lolita Troie incinta Sfondami gratis Sda it Porno fotoromanzi Lady sonia Porno con animali cicciolina Alfabeto celtico Www filmporno it Oasi2007 com Www louis vuitton com Tgcom it Trailers gratis porno Porno con animali cicciolina Racconti di zia tettona Nudist preteen Canalis video porno Sexycoppie Troie tettone Dragonball xxx videl Cicciolina scopa con il cavallo Maestre troie Foto fighe rosse pelose Video porno gratis da vedere Donne mature che scopano Musica house 2007 Glitter blog Incontri transex Youporno tube Video cuckold Suore puttane Sexycoppie Sedi inps a roma Creare scritte glitterate Scopata con cavallo Enbelle com Fumetti dragonball hentai No panties Backstage melita Nokiotto temi Amber di diva futura Mamme sex Coccinella Costantino vitagliano nudo Lupin xxx Board3 cgiworld Contatti di troie msn Video pisciate Www bossfilm com Video horse sex Diavolita nuda Video incesto Culi di donne Belle fighe sudamericane Foto anziane nude Ls lolita Video fighe rotte Melita 2008 Sex toon Young pussy Gigliana giglian Hentay bulma inculata Oroscopo paolo fox Puttane inculate Lettera dimissioni amministratore Prostitute tettone Fatayat Winx solo gratis Segretarie tettone Canalis porn Stir zucchetti Chiamami com Www pornoyoutube com Piccole trasgressioni it Wwwmature Puntochat it Foto porno con animali gratis Anziane troie Culi di donne Www esercitoitaliano it Emma watson nude fakes Video figa che piscia Lolita porn Yuoporn com Ww tgcom it Prontoenel Filmpornogratis it Manga nami xxx Www xstream Shemale video Disegni da colorare witch Video manuela imperato Deborah caprioglio Zoo sex Foto culi grossi Ibox tim it mms Www robertamissoni it Kobe tai Porno spagnoli Enbelle com Video fighe rotte Pamela prati senza mutande Sandrelli nuda Anteprime hard gratis Dragon ball xxxx Incesto gay Video donne lesbiche Sonia grey nuda Nesquik Belle puttane Puntatori mouse download Silvia saint video gratis Www xstream tv Lolita nymphet preteen Morena sex net Frasi d anniversario Video puttane gratis Video pisciate Alba parietti nuda
Links to illegal warez, etc. will be removed, and your access will be blocked. (Details)

Apparently, there are some copies of patchstick images in the wild. Most likely, these will not work. Also, THEY ARE ILLEGAL! Also, some people report that the patchstick erased their AppleTV, resulting in a non-recoverable AppleTV. This is actually quite credible, since all Patchstick does is run some shell scripts as root. If this happened to you: GOOD FOR YOU!! Don't count on Apple to help you.

This page describes how to make a Patch stick using OSX/Intel binaries, and therefor is not legally distributable. Therefor, no support whatsoever is given to anyone.

However, I think this process is important enough to document, so we can see what steps are needed to build an open, free and 100% legal version of Patchstick. - Mactijn 23:56, 8 April 2007 (CEST)

Pre-requisites, All versions

  • USB flashdrive or disk (USB mass storage compatible) (for PatchStick.1.0.zip, a 512Meg stick is sufficient -- has anyone succeeded with a smaller stick?)
  • an Intel machine running Mac OS X 10.4.x (won't work on non-intel machines, kext files not compatible; have a look at Install SSH without an Intel Mac in this case)
  • boot.efi from OS.dmg, mount it from the latest software update

Pre-requisites, Manual way

Full Working Version

zip file mirrored here: Patchstick.zip

I (HenryLaxen) downloaded this on July 23, 2007, and found that this line in the createPatchstick file was commented out:

	cp /usr/sbin/sshd /Volumes/Patchstick/ssh/

which prevents sshd from working on the AppleTV. After uncommenting this line, I was able to log into my AppleTV with ssh -1 -v frontrow@xx.xx.xx.xx Also, I consistantly get a kernel panic when launchd executes /sbin/reboot, however by this time the ssh files have already been installed. Do not worry that the first time you log in via ssh that it takes a long time, as the AppleTV must generate its host keys. HenryLaxen July 25, 2007

Actually, there are three ssh-related lines commented in the createPatchstick script, and it worked well for me to uncomment all three. But the "sed" in the DYLD_FRAMEWORK_PATH mumble isn't found when booting from the stick, which is why I believe only "ssh -1" works so far. Also, I see no reason why the Perian lines are commented out, and restoring them allowed Perian to be installed, which is quite useful of course. clrelay 2007-08-06

I was able to use it free of any changes noted above. After installation, I used the Enable SSH Server item in the AwkwardTV frappliance to gain shell access. postman August 12, 2007

Manually: Partitioning and formatting the USB disk

based on Turbo's excellent guide here.

Update: Changed to use only one partition!

  • hook up the USB drive to your Mac
  • Re-partition it using DiskUtility: Format: Mac OS Extended (Journaled), Options: GUID table, Partition Name: Patchstick-root

If you only have one disk, your USB disk will be /dev/disk1, otherwise

  • check what disk it is:
hostname:~ user$ df -h
/dev/disk0s2               74G    72G   1.9G    97%    /
devfs                     100K   100K     0B   100%    /dev
fdesc                     1.0K   1.0K     0B   100%    /dev
<volfs>                   512K   512K     0B   100%    /.vol
automount -nsl [205]        0B     0B     0B   100%    /Network
automount -fstab [219]      0B     0B     0B   100%    /automount/Servers
automount -static [219]     0B     0B     0B   100%    /automount/static
/dev/diskX                499M    40K   499M     0%    /Volumes/NO NAME

NOTE: if you see something like /dev/disk1s1, /dev/diskX means /dev/disk1, not /dev/disk1s1!

  • Now get the partition information which is required later to change the GUID:
gpt -r show /dev/diskX

results in:

   start    size  index  contents
      0       1         PMBR
      1       1         Pri GPT header
      2      32         Pri GPT table
     34       6         
     40  511920      1  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
 511960       7         
 511967      32         Sec GPT table
 511999       1         Sec GPT header

Note the start and size of the partition - use this at the bottom of these instructions as the -b -s parameters (in this case -b 40 -s 511920)

Creating the patchstick boot-environment

this part is, for now, based on copying OSX binaries, and needs to be replaced ASAP

After performing the steps in the previous chapter, the USB drive's primary partition should have mounted itself as /Volumes/Patchstick-root. If you named it differently, please substitute all occurences of /Volumes/Patchstick-root with the correct one.

  • in a shell, as root, change the current directory to the patchstick root FS:
hostname:~ root# cd /Volumes/Patchstick-root
  • create the directory structure:
hostname:/Volumes/Patchstick-root root# mkdir -p sbin usr/lib/system System/Library/Extensions stuff etc dev OSBoot
hostname:/Volumes/Patchstick-root root# ln -s sbin bin
  • copy semthex's kernel (named mach_kernel) to /Volumes/Patchstick-root/
  • create /Volumes/Patchstick-root/com.apple.Boot.plist with your favourite text editor (vi/pico/joe/...) and make it look like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
        <key>Background Color</key>
        <key>Boot Fail Logo</key>
        <key>Boot Logo</key>
        <key>Kernel Flags</key>
  • copy over the following files:
hostname:/Volumes/Patchstick-root root# cp -R /System/Library/Extensions/{AppleACPIPlatform,AppleAPIC,AppleEFIRuntime,AppleFileSystemDriver,AppleFlashNVRAM,AppleHDA,AppleHPET,AppleIRController,AppleRTC,AppleSMBIOS,AppleSMC,AudioIPCDriver,BootCache,GeForce,IO80211Family,IOACPIFamily,IOATAFamily,IOAudioFamily,IOGraphicsFamily,IOHIDFamily,IONDRVSupport,IONetworkingFamily,IOPCIFamily,IOPlatformPluginFamily,IOSCSIArchitectureModelFamily,IOStorageFamily,IOUSBFamily,IOUSBMassStorageClass,NVDANV40Hal,NVDAResman,OSvKernDSPLib,System,AppleIntelCPUPowerManagement}.kext /Volumes/Patchstick-root/System/Library/Extensions/
hostname:/Volumes/Patchstick-root root# cp /bin/bash /bin/chmod /usr/sbin/chown /bin/cp /sbin/mount /sbin/mount_hfs /sbin/mount_devfs /bin/sleep /sbin/umount /bin/sync /bin/mkdir /usr/bin/sed /usr/sbin/installer /Volumes/Patchstick-root/sbin/
hostname:/Volumes/Patchstick-root root# cp /usr/lib/dyld /usr/lib/libSystem.B.dylib /usr/lib/libncurses.5.4.dylib /usr/lib/libgcc_s.1.dylib /Volumes/Patchstick-root/usr/lib/
hostname:/Volumes/Patchstick-root root# cp /usr/lib/system/libmathCommon.A.dylib /Volumes/Patchstick-root/usr/lib/system/
  • Patch the AppleFileSystemDriver and add the following section to the file /Volumes/Patchstick-root/System/Library/Extensions/AppleFileSystemDriver.kext/Contents/Info.plist in the IOPropertyMatch array:
                                                <key>Content Hint</key>
                                                <key>Content Hint</key>
                                                <key>Content Hint</key>

  • now, create /Volumes/Patchstick-root/sbin/launchd with your favourite text editor (vi/pico/joe/...) and make it look like this:

exec 2>/dev/console
exec 1>/dev/console

echo "        --- AppleTV Patchstick ---"
echo '        (please ignore the "invalid destination port\" errors)'

# echo "        * remounting / r/w"
# /sbin/mount -uw /

echo "        * mounting OSBoot partition r/o"
/sbin/mount -t hfs -r /dev/disk0s3 /OSBoot

echo "        * re-mounting OSBoot partition r/w"
/sbin/mount -uw /OSBoot

echo "        * mounting stuff partition r/o"
/sbin/mount -t hfs -r /dev/disk1s2 /stuff

echo "        * keeping the OSBoot partition r/w for plugins"
touch /OSBoot/.readwrite

if [ -d /OSBoot/dev/ ]; then

  for i in /stuff/installer.d/*; do
    echo "        --- ${i} ---"
    /sbin/bash "${i}"