From fd115de50b2ee41449a362c464ac59d1489dde70 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob.mottram@codethink.co.uk>
Date: Thu, 28 Jan 2016 11:33:31 +0000
Subject: [PATCH] Document the mirror option for image builds

---
 README.md                    |   4 ++++
 doc/EN/installation.org      |   6 ++++++
 man/freedombone-image.1.gz   | Bin 2342 -> 2451 bytes
 website/EN/installation.html |  12 +++++++++++-
 4 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 44f456a1d..3aa799fef 100644
--- a/README.md
+++ b/README.md
@@ -53,6 +53,10 @@ To build a 64bit Qemu image:
 
 Other supported boards are cubieboard2, cubietruck, olinuxino-lime, olinuxino-lime2 and olinuxino-micro.
 
+If the image build fails with an error such as "/Error reading from server. Remote end closed connection/" then you can specify a debian package mirror repository manually with:
+
+    freedombone-image -t beaglebone -s 8G -m http://ftp.de.debian.org/debian
+
 Checklist
 =========
 Before installing Freedombone you will need a few things.
diff --git a/doc/EN/installation.org b/doc/EN/installation.org
index 443f1c106..e8c2f6a3b 100644
--- a/doc/EN/installation.org
+++ b/doc/EN/installation.org
@@ -72,6 +72,12 @@ freedombone-image -t qemu-x86_64 -s 8G
 
 Other supported boards are cubieboard2, cubietruck, olinuxino-lime, olinuxino-lime2 and olinuxino-micro.
 
+If the image build fails with an error such as "/Error reading from server. Remote end closed connection/" then you can specify a debian package mirror repository manually with:
+
+#+BEGIN_SRC bash
+freedombone-image -t beaglebone -s 8G -m http://ftp.de.debian.org/debian
+#+END_SRC
+
 * Checklist
 Before installing Freedombone you will need a few things.
 
diff --git a/man/freedombone-image.1.gz b/man/freedombone-image.1.gz
index 2ee33e74eba5434a76d6ed1c8afbd73ba698a32b..08816383c1ece801600320e022df0411b279f3aa 100644
GIT binary patch
literal 2451
zcmV;E32gQsiwFRj`>9p{1GQN1Z`-;R{jR^_!e6=pk=*3H7JbD!JSR<4<264JJMB7e
z7$}Ldxk#c)Qchg#kKehZB&$i=<;#Miuqle<z4x4R51l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
zSu8Qpw0iMqj_EXDFv-+X^UT!PerVfQ7#wXyI<%y2y%la*SqQ2PW#jlb)2)8{IZ+uN
z4Up2Wno-{ZyQF>91+6|j&lj!WJ4A@My<!CIW06Qg!%fv{#qF&Rn0q6Xvc!8(3qL-q
zwDDtMn?hwfJ6x2ddO%{jg6##6ra3NA7G`B%F^tePQV_6}N<Om?Uv`Ywrs5IZlrn_N
zk@}ppxKaDw48o#&4_h6KEe=THfxzzd>fS+F?>k>Fg;i*lq5Kf@4zOQSwC!p>mQclz
z^h&2XM-Z@UcqQn}S{HeME$$&!h91EVd^Pt02?&5~wdjwc$5X`rr;8w54t0dkW0_B$
zKR^DJPLJOfUy>vl9VnLP(}&s3;ud#@i|OgR+2t87_Q<+#y21}~AzeT6c`)vE)BVCX
zWKE`l1iJQRzb_=D-(J%3IkmHJ@;TG@n4CThM;9c3iO7Q`3sPN(i~-7P?S#3%GCZ54
zm<R)&nFxIxhc~w$HMsrW??-$%{SLz3*PdP6<|=C8CfZI7S>mjO8{pt1P%ALqkGTL?
zcefup&+`cKQer%bLEjjJia$5Xv4-;$;O~&#;KqzY215}8yK5tt5|{J5JGH+p$qFmF
zDy7#DkBo~m{C{(Gi>3lpa5}re;irB#f__Wzul+42+?r1I@IFB$HyFK4e$Q8$pX9{W
zAG*iLU_uTTByzi&C4_(IV2fUw{2<Yp@`Hrp-xMGeeC6|W@9z=eGJ?-bg}%wRONdm_
zKu>wt=yG#%dybskNI#0F%?gEaT=2DXwS6@nuTb75O)!j(Q(@O88xKMoD{C9s{h~I#
zUA()x8AT^Lr3>wx5heYW>hyOgwstDBNwZ0u{#%r!Cb~Yq9-m*IzoN70uP-NO&tCe~
z6XlQ=%gCmai+GZKY}Vz;_Cvlj@7C}2KNq>JPd9&;YN5@owDb4=t&cK&<sF8<U)zfQ
M1S<hz5{?uA0Fj28ApigX

diff --git a/website/EN/installation.html b/website/EN/installation.html
index e730bb6c5..868e420c6 100644
--- a/website/EN/installation.html
+++ b/website/EN/installation.html
@@ -3,7 +3,7 @@
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 <head>
-<!-- 2016-01-28 Thu 09:27 -->
+<!-- 2016-01-28 Thu 11:32 -->
 <meta  http-equiv="Content-Type" content="text/html;charset=utf-8" />
 <meta  name="viewport" content="width=device-width, initial-scale=1" />
 <title></title>
@@ -283,6 +283,16 @@ To build a 64bit Qemu image:
 <p>
 Other supported boards are cubieboard2, cubietruck, olinuxino-lime, olinuxino-lime2 and olinuxino-micro.
 </p>
+
+<p>
+If the image build fails with an error such as "<i>Error reading from server. Remote end closed connection</i>" then you can specify a debian package mirror repository manually with:
+</p>
+
+<div class="org-src-container">
+
+<pre class="src src-bash">freedombone-image -t beaglebone -s 8G -m http://ftp.de.debian.org/debian
+</pre>
+</div>
 </div>
 </div>
 
-- 
GitLab