Difference between revisions of "Patchstick/Testing"

From AwkwardTV
Jump to: navigation, search
m (reverting spammed page)
m
Line 1: Line 1:
{{Template:legalonly}}
+
[http://stbillin.angelfire.com/web/villagio-rocca.htm villagio rocca di vadaro] [http://offleeewild1.50webs.com/library/sampei-vol/ sampei vol 18] [http://stbillin.angelfire.com/web/acquistare-libro.htm acquistare libro online] [http://rathchavady.freehostia.com/description/hard-disk767/ hard disk esterno 300] [http://eaes7.freehostia.com/lib/tv-tuner26.htm tv tuner magik box] [http://queenbabypie.freehostia.com/html/te-am/ te am visat] [http://pticaja-ptica.freehostia.com/directory/cina-viaggio.htm cina viaggio] [http://blind9justice.50webs.com/temi-per/ temi per cellulari] [http://commodore-guff.freehostia.com/styles/b-e4.htm b e b lingotto] [http://offleeewild1.50webs.com/library/hp/ hp 635] [http://midwestman.50webs.com/view/blue/ blue3] [http://krasniioktyabr.50webs.com/creative-zen/ creative zen micro 5] [http://celare.freehostia.com/description/lo-nuevo/ lo nuevo de zion y lennox] [http://queenbabypie.freehostia.com/html/ricetta-torta23/ ricetta torta americane compleanno] [http://eaes7.freehostia.com/library/www-telecapri.htm www telecapri it] [http://celare.freehostia.com/description/pannolini-pampers/ pannolini pampers] [http://celare.freehostia.com/description/racconti-erotici63/ racconti erotici al cinema] [http://queenbabypie.freehostia.com/html/nena-kim/ nena kim wild] [http://eaes7.freehostia.com/lib/chicco-trio13.htm chicco trio ct] [http://celare.freehostia.com/description/vento-nuda/ vento nuda] [http://heartlessfriend.freehostia.com/library/melhor-assim/ melhor assim netinho de paula] [http://pticaja-ptica.freehostia.com/directory/midi-kar6.htm midi kar liscio] [http://blind9justice.50webs.com/hp/ hp 9130] [http://blind9justice.50webs.com/siac/ siac] [http://keokepa.50webs.com/library/il-maestro/ il maestro di musica] [http://danikrv.50webs.com/small/primi-passi/ primi passi bambino] [http://eaes7.freehostia.com/lib/due-vigili.htm due vigili] [http://njoka.freehostia.com/small/bonovox.htm bonovox] [http://njoka.freehostia.com/small/gianna-beretta.htm gianna beretta molla amare la vita] [http://celare.freehostia.com/description/divx-rds/ divx rds] [http://danikrv.50webs.com/small/cartuccia-inchiostro/ cartuccia inchiostro epson] [http://keokepa.50webs.com/library/asus-av/ asus a8v edeluxe] [http://rathchavady.freehostia.com/description/rilegatrice-opera/ rilegatrice opera 37] [http://someoddgalaxy.freehostia.com/articles/testo-della96/ testo della canzone superstar] [http://anubis8.50webs.com/library/la-cruna/ la cruna dellago] [http://pothomse.angelfire.com/sparti-maroon/ sparti maroon 5] [http://krasniioktyabr.50webs.com/rilevatore-metalli/ rilevatore metalli] [http://pticaja-ptica.freehostia.com/directory/claud-age.htm claud age symphony testo] [http://eaes7.freehostia.com/lib/sennheiser-senza.htm sennheiser senza filo] [http://pticaja-ptica.freehostia.com/directory/disegnare-animali.htm disegnare animali] [http://blind9justice.50webs.com/esercizio-per/ esercizio per schiena] [http://blind9justice.50webs.com/model/ model] [http://blind9justice.50webs.com/momo-logitech/ momo logitech joystick] [http://deharte.angelfire.com/data/armani-rosa/ armani rosa] [http://blind9justice.50webs.com/ibm-/ ibm 80 gb] [http://keokepa.50webs.com/library/fantastic-four/ fantastic four] [http://someoddgalaxy.freehostia.com/articles/acrobat-11/ acrobat 6 std] [http://blind9justice.50webs.com/stresa-cartina/ stresa cartina] [http://anubis8.50webs.com/library/velvet-gold/ velvet gold mine] [http://eaes7.freehostia.com/lib/fuck-that.htm fuck that] [http://danikrv.50webs.com/small/gambe-rossella/ gambe rossella brescia] [http://vlano.50webs.com/styles/language-adobe/ language adobe acrobat] [http://blind9justice.50webs.com/zu-and/ zu and company] [http://stbillin.angelfire.com/web/canon-10.htm canon  ef 2485 3 54 5 usm] [http://heartlessfriend.freehostia.com/library/congelatore-classe1/ congelatore classe a] [http://superhank.freehostia.com/content/lisbona-alberghi/ lisbona alberghi e hotel] [http://superhank.freehostia.com/content/hp222/ hp 2510] [http://superhank.freehostia.com/content/arcanoid/ arcanoid] [http://vlano.50webs.com/styles/calcio-sul/ calcio sul tavolo] [http://commodore-guff.freehostia.com/styles/foto-vecchie4.htm foto vecchie] [http://anubis8.50webs.com/library/x-xt/ x850 xt] [http://vlano.50webs.com/styles/warlords/ warlords] [http://danikrv.50webs.com/small/datel-action/ datel action replay xbox] [http://superhank.freehostia.com/content/km-tt/ km0 tt auto km 0] [http://raguerla.angelfire.com/articles/comune-di17/ comune di silvi] [http://smfarrowik.angelfire.com/small/metalmark/ metalmark] [http://wosligersy.angelfire.com/proteine-soya/ proteine soya] [http://rathchavady.freehostia.com/description/v-rossi/ v rossi] [http://ag666.50webs.com/view/espresso/ espresso] [http://eaes7.freehostia.com/library/classe-a16.htm classe a frigoriferi] [http://commodore-guff.freehostia.com/styles/chat-.htm chat  rom] [http://commodore-guff.freehostia.com/styles/realejos-los.htm realejos los] [http://raguerla.angelfire.com/articles/jewell/ jewell] [http://vlano.50webs.com/styles/hub-usb/ hub usb mini mac] [http://danikrv.50webs.com/small/emme-tu/ emme tu y yo] [http://danikrv.50webs.com/small/telecomunicacion/ telecomunicacion] [http://superhank.freehostia.com/content/orciano-pisano/ orciano pisano] [http://deharte.angelfire.com/data/bagnino/ bagnino] [http://superhank.freehostia.com/content/chimbote/ chimbote] [http://leshji.50webs.com/data/www-cerco/ www cerco] [http://superhank.freehostia.com/content/skoda-octavia9/ skoda octavia slx] [http://keokepa.50webs.com/library/lg-televisore/ lg televisore lcd 26] [http://njoka.freehostia.com/small/amstrad15.htm amstrad 28] [http://danikrv.50webs.com/small/cofanetto-the/ cofanetto the blues] [http://eaes7.freehostia.com/lib/hp-laserjet114.htm hp laserjet 3015 allinone] [http://eaes7.freehostia.com/library/fiera-di13.htm fiera di mediteraneo palermo] [http://eaes7.freehostia.com/library/honda-hrv2.htm honda hrv] [http://queenbabypie.freehostia.com/html/pagine-bianca/ pagine bianca] [http://wosligersy.angelfire.com/canon-8/ canon 28105 usm] [http://offleeewild1.50webs.com/library/www-estradas/ www estradas com caminhoes] [http://commodore-guff.freehostia.com/styles/ferrari14.htm ferrari 308] [http://leshji.50webs.com/data/fesse-rotte/ fesse rotte] [http://queenbabypie.freehostia.com/html/delonghi-termoventilatore/ delonghi termoventilatore] [http://leshji.50webs.com/data/cuando-volveras/ cuando volveras testo] [http://rathchavady.freehostia.com/description/claudio-villa8/ claudio villa vorrei vorrei] [http://blind9justice.50webs.com/ventole-silenziose/ ventole silenziose] [http://celare.freehostia.com/description/tutto-telefonini/ tutto telefonini] [http://superhank.freehostia.com/content/asus-geforce16/ asus geforce 7800 gtx] [http://anubis8.50webs.com/library/paola-turci/ paola turci cd musicali] [http://danikrv.50webs.com/small/decolorazione/ decolorazione] [http://midwestman.50webs.com/view/nikon-afs/ nikon afs dx 1870] [http://heartlessfriend.freehostia.com/library/the-classroom/ the classroom 2] [http://njoka.freehostia.com/small/grandbourg.htm grandbourg] [http://njoka.freehostia.com/small/le-francesi.htm le francesi si confessano] [http://pticaja-ptica.freehostia.com/directory/dancel-pump.htm dancel pump it up] [http://superhank.freehostia.com/content/elisabetta-tudor/ elisabetta tudor] [http://commodore-guff.freehostia.com/styles/emila-romagna.htm emila romagna] [http://superhank.freehostia.com/content/bratisla-boys/ bratisla boys] [http://celare.freehostia.com/description/stazione-muratella/ stazione muratella roma] [http://heartlessfriend.freehostia.com/library/karnafuli/ karnafuli] [http://midwestman.50webs.com/view/tecno-team/ tecno team] [http://rathchavady.freehostia.com/description/opel-astra74/ opel astra 1995] [http://superhank.freehostia.com/content/riscaldamento-cuccia/ riscaldamento cuccia cani] [http://danikrv.50webs.com/small/volkswagen-new/ volkswagen new beetle bianco] [http://someoddgalaxy.freehostia.com/articles/incint/ incint] [http://someoddgalaxy.freehostia.com/articles/itinerario-lombardia/ itinerario lombardia] [http://ag666.50webs.com/view/clandestina/ clandestina] [http://ag666.50webs.com/view/jazz-pawnshop/ jazz pawnshop] [http://ag666.50webs.com/view/pulcinella/ pulcinella] [http://njoka.freehostia.com/small/dvd-con22.htm dvd con hd] [http://ag666.50webs.com/view/porno-shock/ porno shock] [http://eaes7.freehostia.com/library/baresi.htm baresi] [http://rathchavady.freehostia.com/description/elster-bianco/ elster bianco] [http://commodore-guff.freehostia.com/styles/ragazzo-giussano.htm ragazzo giussano] [http://pticaja-ptica.freehostia.com/directory/lo-zio.htm lo zio di brooklyn] [http://stbillin.angelfire.com/web/red-ronni.htm red ronni] [http://commodore-guff.freehostia.com/styles/cam-travel.htm cam travel] [http://stbillin.angelfire.com/web/murder.htm murder] [http://eaes7.freehostia.com/lib/le-altre3.htm le altre droghe] [http://commodore-guff.freehostia.com/styles/brondi-dect1.htm brondi dect gap] [http://eaes7.freehostia.com/library/hotel-a106.htm hotel a savona] [http://blind9justice.50webs.com/secondo-casadei/ secondo casadei] [http://heartlessfriend.freehostia.com/library/desert-storm2/ desert storm 2] [http://eaes7.freehostia.com/lib/wwwgazzetta-it.htm wwwgazzetta it] [http://rathchavady.freehostia.com/description/james-taylor7/ james taylor mexico] [http://offleeewild1.50webs.com/library/mercedes-metano/ mercedes metano] [http://runnyn.freehostia.com/library/jayz-in/ jayz in fade to black] [http://krasniioktyabr.50webs.com/hong-nhung/ hong nhung nude] [http://ag666.50webs.com/view/graal/ graal] [http://superhank.freehostia.com/content/psicologia-di2/ psicologia di roma] [http://njoka.freehostia.com/small/matrox-3.htm matrox 256 parhelia pci] [http://commodore-guff.freehostia.com/styles/occhiale-vista.htm occhiale vista] [http://leshji.50webs.com/data/hd-usb/ hd usb esterno 2 5] [http://anubis8.50webs.com/library/san-juan/ san juan hotel] [http://njoka.freehostia.com/small/clubprive.htm clubprive] [http://eaes7.freehostia.com/library/alessandra-panaro.htm alessandra panaro] [http://leshji.50webs.com/data/espanolas-sex/ espanolas sex] [http://blind9justice.50webs.com/scacchi-regole/ scacchi regole di gioco] [http://commodore-guff.freehostia.com/styles/nina-morich.htm nina morich lingerie] [http://runnyn.freehostia.com/library/henry-o/ henry o libri] [http://njoka.freehostia.com/small/gallery-capodanno.htm gallery capodanno 2006] [http://njoka.freehostia.com/small/phuket-isola.htm phuket (isola)] [http://vlano.50webs.com/styles/delitto-di/ delitto di fede] [http://queenbabypie.freehostia.com/html/giovanni-ii/ giovanni ii (zar di bulgaria)] [http://leshji.50webs.com/data/videocamera-digitale/ videocamera digitale panasonic] [http://vlano.50webs.com/styles/i-don/ i don t wanna know p diddy enya] [http://rathchavady.freehostia.com/description/lg-rzlz13/ lg rz26lz55] [http://eaes7.freehostia.com/library/diffusori-genelec.htm diffusori genelec] [http://offleeewild1.50webs.com/library/canon-/ canon  eos1ds mark ii] [http://heartlessfriend.freehostia.com/library/personale-tecnico/ personale tecnico amministrativo] [http://leshji.50webs.com/data/power-translator/ power translator] [http://offleeewild1.50webs.com/library/un-eroe/ un eroe borghese] [http://celare.freehostia.com/description/piedi-sudati1/ piedi sudati in faccia] [http://eaes7.freehostia.com/lib/infinit.htm infinit] [http://commodore-guff.freehostia.com/styles/canzoni-anni4.htm canzoni anni 80 gratis da scaricare] [http://heartlessfriend.freehostia.com/library/antivirus-virus/ antivirus virus via macro o script] [http://anubis8.50webs.com/library/hir-aj/ hir aj cam] [http://ag666.50webs.com/view/lcd-tv/ lcd tv sharp] [http://anubis8.50webs.com/library/venevision-net/ venevision net] [http://pticaja-ptica.freehostia.com/directory/millewin.htm millewin] [http://deharte.angelfire.com/data/ddr-6/ ddr 184 pin 256mb] [http://eaes7.freehostia.com/library/clonedvd.htm clonedvd] [http://pticaja-ptica.freehostia.com/directory/olympus-camedia57.htm olympus camedia c765 ultra zoom] [http://krasniioktyabr.50webs.com/rs-mmc/ rs mmc card dual 512] [http://eaes7.freehostia.com/lib/monitor-panasonic.htm monitor panasonic] [http://eaes7.freehostia.com/library/cassette-deck.htm cassette deck] [http://eaes7.freehostia.com/lib/icword.htm icword] [http://keokepa.50webs.com/library/indesit-wil/ indesit wil 166] [http://pticaja-ptica.freehostia.com/directory/roma-16.htm roma  asmara] [http://blind9justice.50webs.com/foto-donne/ foto donne giapponesi gratis] [http://midwestman.50webs.com/view/epson-emp/ epson emp twd1] [http://ag666.50webs.com/view/acqua-di/ acqua di colonia] [http://eaes7.freehostia.com/lib/lg-dvd38.htm lg dvd rw 16x] [http://danikrv.50webs.com/small/aspirapolvere-a/ aspirapolvere a traino] [http://midwestman.50webs.com/view/informatore-agrario/ informatore agrario campi mais] [http://anubis8.50webs.com/library/www-kurt/ www kurt cobain it] [http://superhank.freehostia.com/content/supercar-k/ supercar k i t t] [http://keokepa.50webs.com/library/videoproiettore-canon/ videoproiettore canon] [http://rathchavady.freehostia.com/description/matura-blond/ matura blond] [http://keokepa.50webs.com/library/sony-cyber/ sony cyber shot dscw12] [http://leshji.50webs.com/data/harry-potter/ harry potter 31] [http://heartlessfriend.freehostia.com/library/lenngren-anna/ lenngren anna maria] [http://ag666.50webs.com/view/lettore-dvd/ lettore dvd hard disk lg] [http://celare.freehostia.com/description/black-sex2/ black sex com] [http://vlano.50webs.com/styles/italia-toscana/ italia toscana agriturismi] [http://danikrv.50webs.com/small/covers-dvd/ covers dvd] [http://ag666.50webs.com/view/moto-d/ moto d epoca guzzi v7] [http://leshji.50webs.com/data/inventory-management/ inventory management software] [http://maheinze.angelfire.com/maxtor-ata.htm maxtor ata controller] [http://blind9justice.50webs.com/riva-del/ riva del garda] {{Template:legalonly}}
  
 
----
 
----
Line 165: Line 165:
 
   done
 
   done
 
   
 
   
   /sbin/sync &>/dev/null
+
   /sbin/sync
  /sbin/umount /OSBoot
 
  echo "        all done!"
 
 
else
 
  echo "        ! OSBoot not mounted, not installing or modifying anything"
 
fi
 
 
 
echo
 
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):
 
http://mesu.apple.com/data/OS/061-2988.20070620.bHy75/2Z694-5248-45.dmg
 
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/
 
 
 
===SSHD===
 
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">
 
<dict>
 
        <key>Disabled</key>
 
        <false/>
 
        <key>Label</key>
 
        <string>com.openssh.sshd</string>
 
        <key>Program</key>
 
        <string>/usr/libexec/sshd-keygen-wrapper</string>
 
        <key>ProgramArguments</key>
 
        <array>
 
                <string>/usr/sbin/sshd</string>
 
                <string>-i</string>
 
        </array>
 
        <key>SessionCreate</key>
 
        <true/>
 
        <key>Sockets</key>
 
        <dict>
 
                <key>Listeners</key>
 
                <dict>
 
                        <key>Bonjour</key>
 
                        <array>
 
                                <string>ssh</string>
 
                                <string>sftp-ssh</string>
 
                        </array>
 
                        <key>SockServiceName</key>
 
                        <string>ssh</string>
 
                </dict>
 
        </dict>
 
        <key>StandardErrorPath</key>
 
        <string>/dev/null</string>
 
        <key>inetdCompatibility</key>
 
        <dict>
 
                <key>Wait</key>
 
                <false/>
 
        </dict>
 
</dict>
 
</plist>
 
* 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':
 
#!/sbin/bash
 
 
# 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."
 
else
 
  echo "        Needed SSH files not found, not installing"
 
fi
 
 
 
* 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."
 
else
 
  echo "        Needed Kerberos files not found, not installing"
 
fi
 
 
 
===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':
 
#!/sbin/bash
 
 
# 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."
 
else
 
  echo "        Perian files not found."
 
fi
 
 
 
* 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.frappliance from the unzipped directory to /Volumes/Patchstick-root/stuff/atvloader/AwkwardTV.frappliance:
 
cp -R AwkwardTV.frappliance /Volumes/Patchstick-root/stuff/atvloader/AwkwardTV.frappliance
 
 
 
* 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 )
 
 
 
#!/sbin/bash
 
 
# ATVloader plugin installer script
 
# (c) 2007 Galphanet (webmaster at galphanet dot com)
 
 
if [ -d /stuff/atvloader/AwkwardTV.frappliance/ ]; then
 
  echo -n "        * installing ATVloader plugin... "
 
  cp -R /stuff/atvloader/AwkwardTV.frappliance/ /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."
 
else
 
  echo "        ATVloader plugin files not found."
 
fi
 
 
 
* 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]]):
 
AppleACPIPlatform.kext
 
AppleAPIC.kext
 
AppleEFIRuntime.kext
 
AppleFileSystemDriver.kext
 
AppleFlashNVRAM.kext
 
AppleHDA.kext
 
AppleHPET.kext
 
AppleIRController.kext
 
AppleRTC.kext
 
AppleSMBIOS.kext
 
AppleSMC.kext
 
AudioIPCDriver.kext
 
BootCache.kext
 
GeForce.kext
 
IO80211Family.kext
 
IOACPIFamily.kext
 
IOATAFamily.kext
 
IOAudioFamily.kext
 
IOGraphicsFamily.kext
 
IOHIDFamily.kext
 
IONDRVSupport.kext
 
IONetworkingFamily.kext
 
IOPCIFamily.kext
 
IOPlatformPluginFamily.kext
 
IOSCSIArchitectureModelFamily.kext
 
IOStorageFamily.kext
 
IOUSBFamily.kext
 
IOUSBMassStorageClass.kext
 
NVDANV40Hal.kext
 
NVDAResman.kext
 
OSvKernDSPLib.kext
 
System.kext
 
 
 
I used the above list to copy the kext to the USB stick and the only one missing kext to boot was:
 
AppleIntelCPUPowerManagement.kext
 
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/
 
 
 
[[Category:Software]][[Category:How-to]][[Category:Patchstick]]
 

Revision as of 19:48, 22 September 2007

villagio rocca di vadaro sampei vol 18 acquistare libro online hard disk esterno 300 tv tuner magik box te am visat cina viaggio temi per cellulari b e b lingotto hp 635 blue3 creative zen micro 5 lo nuevo de zion y lennox ricetta torta americane compleanno www telecapri it pannolini pampers racconti erotici al cinema nena kim wild chicco trio ct vento nuda melhor assim netinho de paula midi kar liscio hp 9130 siac il maestro di musica primi passi bambino due vigili bonovox gianna beretta molla amare la vita divx rds cartuccia inchiostro epson asus a8v edeluxe rilegatrice opera 37 testo della canzone superstar la cruna dellago sparti maroon 5 rilevatore metalli claud age symphony testo sennheiser senza filo disegnare animali esercizio per schiena model momo logitech joystick armani rosa ibm 80 gb fantastic four acrobat 6 std stresa cartina velvet gold mine fuck that gambe rossella brescia language adobe acrobat zu and company canon ef 2485 3 54 5 usm congelatore classe a lisbona alberghi e hotel hp 2510 arcanoid calcio sul tavolo foto vecchie x850 xt warlords datel action replay xbox km0 tt auto km 0 comune di silvi metalmark proteine soya v rossi espresso classe a frigoriferi chat rom realejos los jewell hub usb mini mac emme tu y yo telecomunicacion orciano pisano bagnino chimbote www cerco skoda octavia slx lg televisore lcd 26 amstrad 28 cofanetto the blues hp laserjet 3015 allinone fiera di mediteraneo palermo honda hrv pagine bianca canon 28105 usm www estradas com caminhoes ferrari 308 fesse rotte delonghi termoventilatore cuando volveras testo claudio villa vorrei vorrei ventole silenziose tutto telefonini asus geforce 7800 gtx paola turci cd musicali decolorazione nikon afs dx 1870 the classroom 2 grandbourg le francesi si confessano dancel pump it up elisabetta tudor emila romagna bratisla boys stazione muratella roma karnafuli tecno team opel astra 1995 riscaldamento cuccia cani volkswagen new beetle bianco incint itinerario lombardia clandestina jazz pawnshop pulcinella dvd con hd porno shock baresi elster bianco ragazzo giussano lo zio di brooklyn red ronni cam travel murder le altre droghe brondi dect gap hotel a savona secondo casadei desert storm 2 wwwgazzetta it james taylor mexico mercedes metano jayz in fade to black hong nhung nude graal psicologia di roma matrox 256 parhelia pci occhiale vista hd usb esterno 2 5 san juan hotel clubprive alessandra panaro espanolas sex scacchi regole di gioco nina morich lingerie henry o libri gallery capodanno 2006 phuket (isola) delitto di fede giovanni ii (zar di bulgaria) videocamera digitale panasonic i don t wanna know p diddy enya lg rz26lz55 diffusori genelec canon eos1ds mark ii personale tecnico amministrativo power translator un eroe borghese piedi sudati in faccia infinit canzoni anni 80 gratis da scaricare antivirus virus via macro o script hir aj cam lcd tv sharp venevision net millewin ddr 184 pin 256mb clonedvd olympus camedia c765 ultra zoom rs mmc card dual 512 monitor panasonic cassette deck icword indesit wil 166 roma asmara foto donne giapponesi gratis epson emp twd1 acqua di colonia lg dvd rw 16x aspirapolvere a traino informatore agrario campi mais www kurt cobain it supercar k i t t videoproiettore canon matura blond sony cyber shot dscw12 harry potter 31 lenngren anna maria lettore dvd hard disk lg black sex com italia toscana agriturismi covers dvd moto d epoca guzzi v7 inventory management software maxtor ata controller riva del garda
KEEP THINGS ABSOLUTELY LEGITIMATE, PLEASE
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">
<dict>
        <key>Background Color</key>
        <integer>0</integer>
        <key>Boot Fail Logo</key>
        <string></string>
        <key>Boot Logo</key>
        <string>BootLogo.png</string>
        <key>Kernel</key>
        <string>mach_kernel</string>
        <key>Kernel Flags</key>
        <string>-v</string>
</dict>
</plist>
  • 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>media-match</key>
                        <dict>
                                <key>IOPropertyMatch</key>
                                <array>
                                        <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>
                                        <dict>
                                                <key>Content Hint</key>
                                                <string>48465300-0000-11AA-AA11-00306543ECAC</string>
                                                <key>Leaf</key>
                                                <true/>
                                        </dict> 


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

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

echo
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}"
  done

  /sbin/sync