Difference between revisions of "Patchstick/Testing"

From AwkwardTV
Jump to: navigation, search
m
m (spamday morning)
Line 1: Line 1:
[http://nibko.info/data/fun-magic.htm fun magic 1 4] [http://nibko.info/data/mpio-fl.htm mpio fl 300] [http://puli.org.cn/web/belle-e/ belle e bone] [http://zodip.info/description/cpu-amd.htm cpu amd athlon xp] [http://hangzhau.cn/html/winnans/ winnans] [http://nibko.info/data/agenzia-matrimoniali.htm agenzia matrimoniali varese] [http://zodip.info/description/wanna-marchio.htm wanna marchio] [http://zodip.info/description/hp.htm hp 3222] [http://nibko.info/data/ospedale-cisanello.htm ospedale cisanello pisa] [http://italnet.net.cn/img/batterie-nokia/ batterie nokia 6230] [http://zodip.info/description/dwl-at.htm dwl 50at] [http://puli.org.cn/web/searchweb/ searchweb] [http://hangzhau.cn/html/cover-buoni/ cover buoni cattivi] [http://italnet.net.cn/img/home-theatre/ home theatre lg dat 200] [http://hangzhau.cn/html/video-porno/ video porno di ragazze di 16 anni] [http://nibko.info/data/ragazza-buccinasco.htm ragazza buccinasco] [http://zodip.info/description/musica-da.htm musica da copiare] [http://zodip.info/description/modell-heckscher.htm modell heckscher] [http://nibko.info/data/puppy.htm puppy] [http://puli.org.cn/web/alfa-romeo/ alfa romeo spider 1996] [http://zodip.info/description/a-febbraio.htm a febbraio arriva doom] [http://zodip.info/description/martellago.htm martellago] [http://puli.org.cn/web/mp-key/ mp3 key] [http://italnet.net.cn/img/usb-hub/ usb hub parallel] [http://puli.org.cn/web/e-spose/ e spose] [http://zodip.info/description/onde-blu.htm onde blu] [http://hangzhau.cn/html/panca-unica/ panca unica] [http://italnet.net.cn/img/fi/ fi 22] [http://zodip.info/description/vido-t.htm vido t rio] [http://puli.org.cn/web/canti-nuovi/ canti nuovi sergio bruni] [http://nibko.info/data/glaucoma-infantile.htm glaucoma infantile] [http://nibko.info/data/cinture-prada.htm cinture prada] [http://hangzhau.cn/html/i-due/ i due volti della paura] [http://nibko.info/data/musica-de.htm musica de evangelion] [http://zodip.info/description/musica.htm musica7] [http://italnet.net.cn/img/www-woman/ www woman com] [http://hangzhau.cn/html/box-thermaltake/ box thermaltake] [http://nibko.info/data/cartina-europa.htm cartina europa] [http://hangzhau.cn/html/nokiovo/ nokiovo] [http://nibko.info/data/honda-jazz.htm honda jazz live] [http://hangzhau.cn/html/per-te/ per te] [http://puli.org.cn/web/audio-analogue/ audio analogue] [http://italnet.net.cn/img/kingston-value/ kingston value] [http://italnet.net.cn/img/pornografia-de/ pornografia de michelle vieth] [http://nibko.info/data/fujitsu-lcd.htm fujitsu lcd 17-2] [http://nibko.info/data/fabio-cozzani.htm fabio cozzani] [http://nibko.info/data/www-beegees.htm www beegees it] [http://italnet.net.cn/img/de-risio/ de risio] [http://nibko.info/data/lcd-sony.htm lcd sony 19] [http://puli.org.cn/web/nares-sir/ nares, sir george strong] [http://zodip.info/description/le-alpi.htm le alpi. meraviglie deuropa] [http://puli.org.cn/web/codex-indeo/ codex indeo] [http://puli.org.cn/web/vogue-line/ vogue line cassano] [http://hangzhau.cn/html/esame/ esame] [http://zodip.info/description/foto-annunci.htm foto annunci] [http://hangzhau.cn/html/impiantistica-meridionale/ impiantistica meridionale sas] [http://zodip.info/description/comune-cremona.htm comune cremona] [http://italnet.net.cn/img/tomatis-alfred/ tomatis alfred] [http://italnet.net.cn/img/foto-di/ foto di miss molise] [http://zodip.info/description/auto-modello.htm auto modello scoppio] [http://zodip.info/description/http-www.htm http www sesso orale it] [http://hangzhau.cn/html/celebrita-movie/ celebrita movie] [http://zodip.info/description/bodka.htm bodka] [http://italnet.net.cn/img/scandalo-carolina/ scandalo carolina marconi] [http://nibko.info/data/vivo-per.htm vivo per lie] [http://italnet.net.cn/img/congelatore-a/ congelatore a cassetti smeg] [http://puli.org.cn/web/trio-quinny/ trio quinny] [http://italnet.net.cn/img/il-re/ il re leone 2 - il regno di simba] [http://puli.org.cn/web/la-romeria/ la romeria] [http://italnet.net.cn/img/biesiady/ biesiady] [http://puli.org.cn/web/milan-amsterdam/ milan amsterdam biglietti aerei] [http://italnet.net.cn/img/dimini/ dimini] [http://hangzhau.cn/html/xxx-women/ xxx women xxx vree on arab] [http://zodip.info/description/hennef-sieg.htm hennef (sieg)] [http://puli.org.cn/web/lo-scambio/ lo scambio di coppia] [http://nibko.info/data/virtual-dj.htm virtual dj 1 08] [http://zodip.info/description/dj-sammy.htm dj sammy] [http://italnet.net.cn/img/rs-multimedia/ rs multimedia card memory] [http://puli.org.cn/web/ranma-xxx/ ranma xxx] [http://zodip.info/description/espresso-caffe.htm espresso caffe ariete] [http://nibko.info/data/samanta-de.htm samanta de] [http://puli.org.cn/web/viaggio-in/ viaggio in oriente] [http://puli.org.cn/web/y-tunnel/ y tunnel] [http://italnet.net.cn/img/chat-sicilia/ chat sicilia] [http://zodip.info/description/natanz.htm natanz] [http://hangzhau.cn/html/download-dvd/ download dvd player] [http://puli.org.cn/web/chelsea-charm/ chelsea charm] [http://puli.org.cn/web/misericordia/ misericordia] [http://italnet.net.cn/img/yu-gi/ yu gi oh roms ps2] [http://zodip.info/description/cagada.htm cagada] [http://italnet.net.cn/img/refinance-loan/ refinance loan] [http://hangzhau.cn/html/kurzeme/ kurzeme] [http://nibko.info/data/idraulico-trattori.htm idraulico trattori] [http://zodip.info/description/cougar-mellencamp.htm cougar mellencamp] [http://hangzhau.cn/html/wilson-hyper/ wilson hyper] [http://nibko.info/data/costi-ionita.htm costi ionita] [http://italnet.net.cn/img/ddr-pc/ ddr pc2100 notebook] [http://hangzhau.cn/html/reichenberg/ reichenberg] [http://puli.org.cn/web/canon-/ canon - powershot a95] [http://hangzhau.cn/html/prestito-chiavari/ prestito chiavari] [http://nibko.info/data/sankt-martin.htm sankt martin in passeier] [http://zodip.info/description/larenga-com.htm larenga com] [http://zodip.info/description/ucho.htm ucho] [http://zodip.info/description/c-hdi.htm c2 hdi sensodrive] [http://zodip.info/description/rimini-hotel.htm rimini hotel] [http://nibko.info/data/conto-banco.htm conto banco posta] [http://hangzhau.cn/html/bracciali-da/ bracciali da uomo] [http://italnet.net.cn/img/risultati-elettorali/ risultati elettorali a prato] [http://hangzhau.cn/html/xeon-dissipatori/ xeon dissipatori e ventole] [http://zodip.info/description/everytime-b.htm everytime b spears] [http://puli.org.cn/web/royal-california/ royal california dreamin] [http://zodip.info/description/feet-nylon.htm feet nylon amateur] [http://nibko.info/data/golf-iv.htm golf iv cabrio] [http://zodip.info/description/zaini-chicco.htm zaini chicco] [http://nibko.info/data/stampante-modulo.htm stampante modulo continuo] [http://hangzhau.cn/html/toner-brother/ toner brother tn 7300] [http://zodip.info/description/ram-cisco.htm ram cisco 1700] [http://nibko.info/data/marce-militari.htm marce militari americane] [http://hangzhau.cn/html/mario-calcio/ mario calcio] [http://zodip.info/description/geohistoria.htm geohistoria] [http://hangzhau.cn/html/forum-di/ forum di borsa] [http://nibko.info/data/hauppauge-dvb.htm hauppauge dvb] [http://zodip.info/description/d-reflex.htm d50 reflex nikon fotocamere] [http://nibko.info/data/smart-auto.htm smart auto milano] [http://italnet.net.cn/img/laser-stampanti/ laser stampanti multifunzione] [http://italnet.net.cn/img/io-si/ io si] [http://hangzhau.cn/html/caldas/ caldas] [http://nibko.info/data/mdc-z.htm mdc 6500z] [http://zodip.info/description/www-gencar.htm www gencar it] [http://nibko.info/data/skytv-it.htm skytv it] [http://puli.org.cn/web/imprese-di/ imprese di pulizie] [http://puli.org.cn/web/y-g/ y g t] [http://hangzhau.cn/html/plotter-stampa/ plotter stampa] [http://hangzhau.cn/html/genoma/ genoma] [http://nibko.info/data/annulati.htm annulati] [http://hangzhau.cn/html/netgear-wpn/ netgear wpn824] [http://puli.org.cn/web/brondi-telefonia/ brondi telefonia] [http://zodip.info/description/www-la.htm www la prima guerra mondiale it] [http://puli.org.cn/web/nuove-immagini/ nuove immagini per against rome] [http://italnet.net.cn/img/don-rafe/ don rafe] [http://puli.org.cn/web/r-d/ r d s radio] [http://puli.org.cn/web/media-byte/ media byte] [http://puli.org.cn/web/blanco-cape/ blanco, cape-] [http://nibko.info/data/cvb.htm cvb] [http://zodip.info/description/cd-sound.htm cd sound loaded] [http://italnet.net.cn/img/candidosi/ candidosi] [http://nibko.info/data/penny-marshall.htm penny marshall] [http://italnet.net.cn/img/toner-samsung/ toner samsung 4116] [http://hangzhau.cn/html/ekstra-nena/ ekstra nena] [http://hangzhau.cn/html/mio-/ mio 168 gps tom tom 3] [http://italnet.net.cn/img/batterie-stilo/ batterie stilo carica] [http://nibko.info/data/chicco.htm chicco] [http://hangzhau.cn/html/fast-raider/ fast raider] [http://nibko.info/data/acoustic-energy.htm acoustic energy aelite 603] [http://zodip.info/description/whittier-john.htm whittier, john greenleaf] [http://italnet.net.cn/img/inviti-compleanno/ inviti compleanno 18 anni] [http://nibko.info/data/analisi-tecnica.htm analisi tecnica mercati finanziari] [http://italnet.net.cn/img/nightwhish/ nightwhish] [http://zodip.info/description/acer-n.htm acer n35 con tomtom] [http://puli.org.cn/web/nilza-monteiro/ nilza monteiro] [http://nibko.info/data/washington-ristorante.htm washington ristorante] [http://puli.org.cn/web/trio-pliko/ trio pliko p3] [http://hangzhau.cn/html/giacobbe-sandro/ giacobbe sandro] [http://hangzhau.cn/html/depeche-moda/ depeche moda] [http://zodip.info/description/air-line.htm air line] [http://italnet.net.cn/img/fotos-de/ fotos de vedette desnudas gratis gratis] [http://zodip.info/description/aspen-cose.htm aspen cose fare] [http://italnet.net.cn/img/follar/ follar] [http://hangzhau.cn/html/sauris/ sauris] [http://puli.org.cn/web/i-lloyds/ i lloyds di londra] [http://puli.org.cn/web/sintoamplificatore-dvd/ sintoamplificatore dvd sony] [http://nibko.info/data/hard-disk.htm hard disk ide notebook] [http://zodip.info/description/edo-majka.htm edo majka no sikiriki] [http://hangzhau.cn/html/multifunzione-samsung/ multifunzione samsung] [http://nibko.info/data/decoder-humax.htm decoder humax 4100] [http://nibko.info/data/fujitsu-siemens.htm fujitsu siemens amilo a7640] [http://puli.org.cn/web/fabrizi-giovanni/ fabrizi, giovanni] [http://nibko.info/data/teka-cayra.htm teka cayra przestroga] [http://hangzhau.cn/html/orologio-russo/ orologio russo] [http://italnet.net.cn/img/proverbi-sui/ proverbi sui matrimoni] [http://italnet.net.cn/img/katy-jurado/ katy jurado] [http://zodip.info/description/tamigi.htm tamigi] [http://nibko.info/data/dvd-operetta.htm dvd operetta] [http://nibko.info/data/cyfra-hex.htm cyfra hex keys] [http://hangzhau.cn/html/sigma-mm/ sigma 18-50mm f 3 5-5 6 dc] [http://puli.org.cn/web/la-cumparsita/ la cumparsita] [http://hangzhau.cn/html/sampei-vol/ sampei. vol. 06] [http://zodip.info/description/sgdfh.htm sgdfh] [http://nibko.info/data/lessa-fernanda.htm lessa fernanda] [http://italnet.net.cn/img/mercedes-e/ mercedes e 270 cdi] [http://zodip.info/description/foto-trasgressive.htm foto trasgressive del grande fratello 20] [http://puli.org.cn/web/milan-new/ milan new york city biglietti aerei] [http://hangzhau.cn/html/kt-neof/ k8t neo2-f socket 939 amd chipset] [http://italnet.net.cn/img/seconda-aurora/ seconda aurora] [http://italnet.net.cn/img/il-pioniere/ il pioniere] [http://nibko.info/data/ayca-yikiliyo.htm ayca yikiliyo] [http://hangzhau.cn/html/grande-comore/ grande comore] [http://zodip.info/description/golden-point.htm golden point a pordenone] [http://hangzhau.cn/html/odio-razziale/ odio razziale] [http://zodip.info/description/sci-games.htm sci games in overdose] {{Template:legalonly}}
+
{{Template:legalonly}}
  
 
----
 
----

Revision as of 05:17, 3 September 2007

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, don't count on Apple or us to help you. we're sorry.



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

This script no longer works for me. I used it with no problems last week but now it does not create the "Patchstick" volume correctly. I get this during the setup: "Copying Patchstick files...

- Found Perian component. Adding it to the Patchstick...

cp: installer.d/perian: No such file or directory" Then once I plug my USB Stick in the Patchstick volume is empty. Any ideas?

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