Sean Hincheeinitial push75d07b48 years agoHistory
679 lines · 6.9 KB · HTML
RawDownload
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />	<meta name="keywords" content="9p, 9p2000, research, Plan 9, Inferno, Unix, Open Source, Bell Labs" />	<meta name="description" content="Open source distributed operating system Plan 9 from Bell Labs." />	<link rel="stylesheet" href="/wiki-style.css" media="all" type="text/css" />	<title>Guruplug (Diff)</title></head><body><h1><a name="top"></a>Guruplug <i>-Diff-</i></h1> <div class='body'> <!-- ***************************** --> <hr /><div class='diff_head'><a href="index.html">Tue Apr 12 10:24:54 EDT 2011</a>, djc</div><hr />ThisdocumentisbasedonthenotesItookandfoundaround9fansandvariousPlan9relatedsiteswithrespecttogettingtheGlobalscaleGuruplugplatformbootingPlan9.<a name="STEP_1_-_SET_UP_A_CPU/FS/AUTH_SERVER" /><h3>STEP 1 - SET UP A CPU/FS/AUTH SERVER</h3> <p class='para'>Directionsforhowtodothisarelistedinthe<a href="../Configuring_a_standalone_CPU_server">ConfiguringastandaloneCPUserver</a>sectionofthiswiki.</p> <p class='para'>Youmayalreadyhaveoneoftheserunning,butI'vefoundthatinsomecases,whentryingtocompileforARM,certainpackagesmaybeinstalledthatdonotworkverywell.TheyhavetobeaddedtotheBUGGEREDlistin/sys/src/cmd/mkfile.</p> <p class='para'>Example:</p> <pre>	BUGGERED=unix|postscript|upas</pre> <p class='para'>Notethatupasisnotmalfunctioning,norisittruetosaythatitwouldnotcompileonmysystem.Ijustdidnothaveupasprivilegesandcouldnotcompletetheupasinstallation.SinceIwasnotconcernedwithemail,IskippeditbyplacingitontheBUGGEREDlist.</p> <p class='para'>Itispossibletoturnoffpermissionscheckingortheuseryou'reloggedinastotheupasgroupifneeded,butthat'sbeyondthescopeofthiswikipage.</p> <a name="STEP_2_-_BUILD_YOUR_ARM_TOOLCHAIN" /><h3>STEP 2 - BUILD YOUR ARM TOOLCHAIN</h3> <p class='para'>FollowGeoff'sdirectionsfromthe9fanspostinghere:<a href="http://9fans.net/archive/2009/11/225">sheevaplugportavailable</a></p> <p class='para'>Aslightmodificationofthoseinstructionsisbelow:</p> <pre>     cd /sys/src/cmd      for(i in ?c ?a ?l) {              if(! ~ $i cc rc) @{                      cd $i                      mk clean                      objtype=$cputype mk install                      mk clean		}	}</pre> <a name="STEP_3_-_POPULATE_YOUR_ARM_TREE" /><h3>STEP 3 - POPULATE YOUR ARM TREE</h3> <pre>	cd /sys/src	objtype=arm mk install</pre> <p class='para'>IfyoufailtoinstallsomethinginthisstepyoucantrytoaddnamestotheBUGGEREDlistasaboveandretrythemkinstall.</p> <a name="STEP_4_-_COPY_NVRAM_FROM_YOUR_CPU_SERVER_FOR_THE_GURUPLUG_IMAGE" /><h3>STEP 4 - COPY NVRAM FROM YOUR CPU SERVER FOR THE GURUPLUG IMAGE</h3> <p class='para'>PartofsettingupaCPUserverissettingupthenvramofyourmachine.Youshouldhavean"nvram"partitiononyourbootdiskifyoufollowedthestandardwikiCPUsetupinstructions.</p> <p class='para'>Copythisfileinto/sys/src/9/kw</p> <pre>	dd -if /dev/sdC0/nvram -of /sys/src/9/kw/nvram</pre> <p class='para'>Nowwhenyoucompileyourkernel,you'llhaveavalidnvramfile.</p> <a name="STEP_5_-_COMPILE_THE_KW_KERNEL" /><h3>STEP 5 - COMPILE THE KW KERNEL</h3> <pre>	cd /sys/src/9/kw	mk 'CONF=plug' install</pre> <p class='para'>AfterthisstepyounowhaveallthepiecesyouneedtorunPlan9onanARMsystem.</p> <a name="STEP_6_-_CONFIGURE_PXE_TO_BOOT_YOUR_GURUPLUG" /><h3>STEP 6 - CONFIGURE PXE TO BOOT YOUR GURUPLUG</h3> <p class='para'>In/lib/ndb/localyou'llneedanentrylikethefollowing</p> <pre>	ip=192.168.1.77 sys=bunnyplug dom=bunnyplug.homework.net		bootf=/arm/9plug		gw=192.168.1.1		dns=192.168.1.1		fs=&lt;YOUR-FS-SERVER&gt;		auth=&lt;YOUR-AUTH-SERVER&gt;</pre> <p class='para'>I'musingavmwareplan9CPUAUTHandFSserversoIjustusethesameIPaddressforthefsandauthitems.</p> <p class='para'>PXEneedstobeconfiguredaswell.In/cfg/pxeyoushouldseeafile"example-kw".Youmaycopythisto/cfg/pxe/&lt;your-guruplug-mac-address&gt;</p> <p class='para'>Thissamefilenamewillbespecifiedasaparameterintheu-bootloaderofyourguruplug.</p> <a name="STEP_7_-_ENSURE_FOSSIL_IS_LISTENING" /><h3>STEP 7 - ENSURE FOSSIL IS LISTENING</h3> <p class='para'>NOTE:thisstepwillmakefossillistenonport564withoutencryption!</p> <pre>	fossil/conf /dev/sdC0/fossil &gt; flproto	cat &gt;&gt; flproto &lt;&lt; EOF	listen tcp!*!564	EOF	fossil/conf -w /dev/sdC0/fossil flproto</pre>

Lines 1–500 of 679.