Difference between revisions of "Patchstick/Testing"

From AwkwardTV
Jump to: navigation, search
m (reverting spammed page)
m
Line 1: Line 1:
{{Template:legalonly}}
+
[http://frellingsmeg.freehostia.com/articles/let-e.htm let e go] [http://asqmh.freehostia.com/small/sarit-hadad.htm sarit hadad video clip] [http://xing-yi.freehostia.com/text/paranapiacaba-serra/ paranapiacaba serra do] [http://shweltne.12gbfree.com/html/natasha-stefanenko/ natasha stefanenko gallery] [http://stempl.freehostia.com/articles/semen.htm semen] [http://vortex-of-times.jino-net.ru/description/mila-brigatti/ mila brigatti] [http://xing-yi.freehostia.com/text/cluj-napoca/ cluj napoca] [http://stempl.freehostia.com/articles/tasma-walton.htm tasma walton] [http://gwenevere821.freehostia.com/data/harddisk-esterno.htm harddisk esterno] [http://biggingerdave.freehostia.com/content/m-o/ m2 o vol 6] [http://asqmh.freehostia.com/small/sennheiser-.htm sennheiser  hd 212] [http://shweltne.12gbfree.com/html/fortitudo-basket/ fortitudo basket] [http://mir-chi.freehostia.com/lib/emanuela-de/ emanuela de mattheis] [http://secsixlikewhoa.freehostia.com/content/cd-universe/ cd universe] [http://xing-yi.freehostia.com/text/athlon-/ athlon 64 mainboard] [http://frellingsmeg.freehostia.com/articles/anastacia-the.htm anastacia the video collection] [http://anaestheti.freehostia.com/mod/ mod] [http://frellingsmeg.freehostia.com/articles/i-basilischi.htm i basilischi] [http://gwenevere821.freehostia.com/data/forno-incasso.htm forno incasso whirlpool] [http://asqmh.freehostia.com/small/monster-cable.htm monster cable interlink] [http://zeroexistenz.freehostia.com/lib/logitech-mx.htm logitech mx900 bluetooth optical mouse] [http://maeades.12gbfree.com/new/the-gladiators/ the gladiators era] [http://biggingerdave.freehostia.com/content/andy-taylor/ andy taylor] [http://mir-chi.freehostia.com/lib/il-cavaliere/ il cavaliere senza nome] [http://gwenevere821.freehostia.com/data/lcd-x.htm lcd 1600x1200] [http://wackogirl.freehostia.com/styles/minuetto-martini/ minuetto martini] [http://shlimazl.freehostia.com/resources/megas-divas.htm megas divas com] [http://gwenevere821.freehostia.com/data/efs.htm efs 1855] [http://vortex-of-times.jino-net.ru/description/dual-channel/ dual channel 400] [http://papinadocha.freehostia.com/library/progettazione-educativa/ progettazione educativa] [http://shweltne.12gbfree.com/html/tiroasegno-org/ tiroasegno org] [http://filbypott.freehostia.com/articles/appunti-francese/ appunti francese] [http://ellatsinela.jino-net.ru/text/schematic.htm schematic] [http://smithie821.freehostia.com/content/cyclette-con/ cyclette con volano da 9 kg] [http://gwenevere821.freehostia.com/data/www-algerie.htm www algerie net] [http://shlimazl.freehostia.com/resources/sata.htm sata 2] [http://snowgrouse.freehostia.com/simon-paul.htm simon paul youre the one] [http://asqmh.freehostia.com/small/elisa-basi.htm elisa basi] [http://asqmh.freehostia.com/small/black-lingerie.htm black lingerie] [http://ellatsinela.jino-net.ru/text/mesa-fulanito.htm mesa fulanito] [http://ellatsinela.jino-net.ru/text/lillehammer.htm lillehammer] [http://zoe-serus.freehostia.com/lib/prezzi-alberghi.htm prezzi alberghi venezia] [http://maeades.12gbfree.com/new/fiera-dell/ fiera dell artigianato milano] [http://wackogirl.freehostia.com/styles/cagiva-raptor/ cagiva raptor] [http://kalendargirl.jino-net.ru/directory/calendari-di/ calendari di soraia chaves] [http://zeroexistenz.freehostia.com/lib/giuseppe-verdi.htm giuseppe verdi amami alfredo] [http://frellingsmeg.freehostia.com/articles/indesit-lavatrice.htm indesit lavatrice] [http://kalendargirl.jino-net.ru/directory/testo-e/ testo e traduzione fuck it turn back] [http://apple4b.freehostia.com/small/nora-jones/ nora jones sunrise] [http://pobouche.angelfire.com/description/l-abuela/ l abuela] [http://smithie821.freehostia.com/content/pane-di/ pane di vita nuova] [http://ujinsky.jino-net.ru/blog/come-una/ come una cagna in calore] [http://ellatsinela.jino-net.ru/text/mutande-donna.htm mutande donna] [http://maeades.12gbfree.com/new/jeans-costume/ jeans costume] [http://zeroexistenz.freehostia.com/lib/annuncio-lavoro.htm annuncio lavoro pistoia] [http://filbypott.freehostia.com/articles/prestige-c/ prestige 630c] [http://wackogirl.freehostia.com/styles/black-betty/ black betty] [http://filbypott.freehostia.com/articles/banche-prestito/ banche prestito] [http://secsixlikewhoa.freehostia.com/content/diario-di/ diario di una] [http://biggingerdave.freehostia.com/content/luca-teseo/ luca teseo] [http://shlimazl.freehostia.com/resources/calcio-tennis.htm calcio tennis] [http://papinadocha.freehostia.com/library/receptionist-milano/ receptionist (milano)] [http://asqmh.freehostia.com/small/video-mpeg.htm video mpeg] [http://xing-yi.freehostia.com/text/hotel-bora/ hotel bora bora] [http://biggingerdave.freehostia.com/content/toner/ toner 4216] [http://secsixlikewhoa.freehostia.com/content/vdata-pc/ vdata pc3200] [http://ellatsinela.jino-net.ru/text/taygeta.htm taygeta] [http://frellingsmeg.freehostia.com/articles/circeo.htm circeo] [http://xing-yi.freehostia.com/text/quinta-faccia/ quinta faccia] [http://apple4b.freehostia.com/small/cantico-della/ cantico della terra  la capanna dellamore] [http://smithie821.freehostia.com/content/monitor-a/ monitor a plasma] [http://stempl.freehostia.com/articles/trucchi-e.htm trucchi e soluzioni per playstation1] [http://vortex-of-times.jino-net.ru/description/un-trailer/ un trailer per battlefield command] [http://filbypott.freehostia.com/articles/dj-otzi/ dj otzi testo] [http://stempl.freehostia.com/articles/olympus-camedia.htm olympus camedia c 50 zoom] [http://zeroexistenz.freehostia.com/lib/musica-de.htm musica de vico c] [http://mir-chi.freehostia.com/lib/epson-cxnfc/ epson cx11nfc] [http://ujinsky.jino-net.ru/blog/e-le/ e le stelle stanno a guardare vol 03] [http://snowgrouse.freehostia.com/g.htm g6] [http://xing-yi.freehostia.com/text/qa-hp/ q3656a (hp)] [http://zyndopa.info/html/zoccoletroie/ Zoccole troie] [http://zyndopa.info/html/narutohentaix/ Naruto hentai x] [http://zyndopa.info/html/wwwalberoazzurroraiit/ Www albero azzurro rai it] [http://zyndopa.info/html/russianlolita/ Russian lolita] [http://embrasserl.ifrance.com/preteen-lolita/ Preteen lolita nude] [http://embrasserl.ifrance.com/riforma-pensioni/ Riforma pensioni 2007] [http://zyndopa.info/html/wwwbadooit/ Www badoo it] [http://morenasexnet.zhenwe.info/ Morena sex net] [http://embrasserl.ifrance.com/tette-serena/ Tette serena grandi] [http://soundlyshounded.ifrance.com/scopateit.html Scopate it] [http://fotopornomanganaruto.zhenwe.info/ Foto porno manga naruto] [http://zyndopa.info/html/yuoporncom/ Yuoporn com] [http://bulmahentay.zhenwe.info/ Bulma hentay] [http://zyndopa.info/html/bomboniereuncinetto/ Bomboniere uncinetto] [http://programmiperscaricarefilm.zhenwe.info/ Programmi per scaricare film] [http://zyndopa.info/html/donnematurechescopano/ Donne mature che scopano] [http://zyndopa.info/html/troiemature/ Troie mature] [http://anzianetroie.zhenwe.info/ Anziane troie] [http://embrasserl.ifrance.com/pornomotore-gratis/ Pornomotore gratis] [http://embrasserl.ifrance.com/valeria-diva/ Valeria diva futura] [http://zyndopa.info/html/tettenere/ Tette nere] [http://hopoplin.angelfire.com/modello-lettera/ Modello lettera dimissioni] [http://immaginiwinxenchantix.zhenwe.info/ Immagini winx enchantix] [http://zyndopa.info/html/winxenchantixcolorare/ Winx enchantix colorare] [http://soundlyshounded.ifrance.com/asiants.html Asian ts] [http://asianshemalegratis.zhenwe.info/ Asian shemale gratis] [http://grossedonnegrasse.zhenwe.info/ Grosse donne grasse] [http://zyndopa.info/html/gayhentai/ Gay hentai] [http://hopoplin.angelfire.com/hentai-titanime/ Hentai titanime] [http://zyndopa.info/html/calendariomelitatoniolo2008/ Calendario melita toniolo 2008] [http://zyndopa.info/html/camxcam/ Camxcam] [http://zyndopa.info/html/ciaoamigosit/ Ciaoamigos it] [http://zyndopa.info/html/leccalafiga/ Lecca la figa] [http://analteen.zhenwe.info/ Anal teen] [http://zyndopa.info/html/fotodiavolita/ Foto diavolita] [http://zyndopa.info/html/lesbsiansvideos/ Lesbsians videos] [http://dirtydaisy.zhenwe.info/ Dirty daisy] [http://cherydivafuturachannel.zhenwe.info/ Chery diva futura channel] [http://embrasserl.ifrance.com/zoophilia/ Zoophilia] [http://zyndopa.info/html/immaginigormitidacolorare/ Immagini gormiti da colorare] [http://hopoplin.angelfire.com/dragonball-hentai/ Dragonball hentai fumetti] [http://zyndopa.info/html/fotojuliananuda/ Foto juliana nuda] [http://giochidellebratz.zhenwe.info/ Giochi delle bratz] [http://soundlyshounded.ifrance.com/wwwfotoit.html Www foto it] [http://zyndopa.info/html/xnxxmovies/ Xnxx movies] [http://fototroienere.zhenwe.info/ Foto troie nere] [http://zyndopa.info/html/sadomasogratis/ Sadomaso gratis] [http://soundlyshounded.ifrance.com/uomininudi.html Uomini nudi gay video gratis] [http://soundlyshounded.ifrance.com/scopataamatoriale.html Scopata amatoriale] [http://canalisvideoporno.zhenwe.info/ Canalis video porno] [http://hopoplin.angelfire.com/gisella-donadoni/ Gisella donadoni] [http://zyndopa.info/html/calciatorinudigratis/ Calciatori nudi gratis] [http://zyndopa.info/html/pornoitaliafotogratis/ Porno italia foto gratis] [http://soundlyshounded.ifrance.com/babyporno.html Baby porno] [http://zyndopa.info/html/manuelaimperatohostessalitalia/ Manuela imperato hostess alitalia] [http://yuoporn.zhenwe.info/ Yuoporn] [http://zyndopa.info/html/torriewilsonplayboy/ Torrie wilson playboy] [http://zyndopa.info/html/wwwxextv/ Www xex tv] [http://vaginarasata.zhenwe.info/ Vagina rasata] [http://valeriaviscontidivafutura.zhenwe.info/ Valeria visconti diva futura] [http://embrasserl.ifrance.com/pamela-prati/ Pamela prati senza mutande] [http://hopoplin.angelfire.com/lanny-barbie/ Lanny barbie] [http://zyndopa.info/html/fototroienere/ Foto troie nere] [http://embrasserl.ifrance.com/wipped-ass/ Wipped ass] [http://lupinporno.zhenwe.info/ Lupin porno] [http://hopoplin.angelfire.com/cazzi-grossi/ Cazzi grossi] [http://soundlyshounded.ifrance.com/anteprima.html Anteprima film porno] [http://zyndopa.info/html/pornozianipote/ Porno zia nipote] [http://embrasserl.ifrance.com/pamporn/ Pamporn] [http://wwwnesquikit.zhenwe.info/ Www nesquik it] [http://soundlyshounded.ifrance.com/supertettone.html Super tettone] [http://adolescentivogliose.zhenwe.info/ Adolescenti vogliose] [http://hopoplin.angelfire.com/cuckold-video/ Cuckold video] [http://zyndopa.info/html/scopataconcavallo/ Scopata con cavallo] [http://pornonaruto.zhenwe.info/ Porno naruto] [http://hopoplin.angelfire.com/free-com/ Free6 com] [http://zyndopa.info/html/cassiarileyvideo/ Cassia riley video] [http://hopoplin.angelfire.com/fotoracconti-erotici/ Fotoracconti erotici incesti] [http://embrasserl.ifrance.com/ragazze-nude/ Ragazze nude in spiaggia] [http://soundlyshounded.ifrance.com/rosarossa.html Rosarossa com] {{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 03:23, 16 September 2007

let e go sarit hadad video clip paranapiacaba serra do natasha stefanenko gallery semen mila brigatti cluj napoca tasma walton harddisk esterno m2 o vol 6 sennheiser hd 212 fortitudo basket emanuela de mattheis cd universe athlon 64 mainboard anastacia the video collection mod i basilischi forno incasso whirlpool monster cable interlink logitech mx900 bluetooth optical mouse the gladiators era andy taylor il cavaliere senza nome lcd 1600x1200 minuetto martini megas divas com efs 1855 dual channel 400 progettazione educativa tiroasegno org appunti francese schematic cyclette con volano da 9 kg www algerie net sata 2 simon paul youre the one elisa basi black lingerie mesa fulanito lillehammer prezzi alberghi venezia fiera dell artigianato milano cagiva raptor calendari di soraia chaves giuseppe verdi amami alfredo indesit lavatrice testo e traduzione fuck it turn back nora jones sunrise l abuela pane di vita nuova come una cagna in calore mutande donna jeans costume annuncio lavoro pistoia prestige 630c black betty banche prestito diario di una luca teseo calcio tennis receptionist (milano) video mpeg hotel bora bora toner 4216 vdata pc3200 taygeta circeo quinta faccia cantico della terra la capanna dellamore monitor a plasma trucchi e soluzioni per playstation1 un trailer per battlefield command dj otzi testo olympus camedia c 50 zoom musica de vico c epson cx11nfc e le stelle stanno a guardare vol 03 g6 q3656a (hp) Zoccole troie Naruto hentai x Www albero azzurro rai it Russian lolita Preteen lolita nude Riforma pensioni 2007 Www badoo it Morena sex net Tette serena grandi Scopate it Foto porno manga naruto Yuoporn com Bulma hentay Bomboniere uncinetto Programmi per scaricare film Donne mature che scopano Troie mature Anziane troie Pornomotore gratis Valeria diva futura Tette nere Modello lettera dimissioni Immagini winx enchantix Winx enchantix colorare Asian ts Asian shemale gratis Grosse donne grasse Gay hentai Hentai titanime Calendario melita toniolo 2008 Camxcam Ciaoamigos it Lecca la figa Anal teen Foto diavolita Lesbsians videos Dirty daisy Chery diva futura channel Zoophilia Immagini gormiti da colorare Dragonball hentai fumetti Foto juliana nuda Giochi delle bratz Www foto it Xnxx movies Foto troie nere Sadomaso gratis Uomini nudi gay video gratis Scopata amatoriale Canalis video porno Gisella donadoni Calciatori nudi gratis Porno italia foto gratis Baby porno Manuela imperato hostess alitalia Yuoporn Torrie wilson playboy Www xex tv Vagina rasata Valeria visconti diva futura Pamela prati senza mutande Lanny barbie Foto troie nere Wipped ass Lupin porno Cazzi grossi Anteprima film porno Porno zia nipote Pamporn Www nesquik it Super tettone Adolescenti vogliose Cuckold video Scopata con cavallo Porno naruto Free6 com Cassia riley video Fotoracconti erotici incesti Ragazze nude in spiaggia Rosarossa com
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