[FE training-materials-updates] Document a new tftpd-hpa workaround

Michael Opdenacker michael.opdenacker at free-electrons.com
Tue Mar 10 16:49:32 CET 2015


Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=5b5577c2d8a90f12a9302db9ce8ca9a42ba48ccf

>---------------------------------------------------------------

commit 5b5577c2d8a90f12a9302db9ce8ca9a42ba48ccf
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Tue Mar 10 16:48:18 2015 +0100

    Document a new tftpd-hpa workaround
    
    - Corresponding to an issue found in several training sessions
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


>---------------------------------------------------------------

5b5577c2d8a90f12a9302db9ce8ca9a42ba48ccf
 errata/tftpd-hpa.tex                           | 27 ++++++++++++++++++++++++++
 labs/kernel-board-setup/kernel-board-setup.tex |  8 +-------
 labs/sysdev-u-boot/sysdev-u-boot.tex           |  9 +--------
 3 files changed, 29 insertions(+), 15 deletions(-)

diff --git a/errata/tftpd-hpa.tex b/errata/tftpd-hpa.tex
new file mode 100644
index 0000000..f7ccf3e
--- /dev/null
+++ b/errata/tftpd-hpa.tex
@@ -0,0 +1,27 @@
+\fbox{
+\begin{minipage}{\textwidth}
+{\bf Caution: known issue in Ubuntu 12.04 and later (still present
+in Ubuntu 14.04)}: if download through tftp doesn't work,
+you may have to stop the \code{tftpd-hpa} server and start it
+again every time you boot your workstation:
+
+\code{
+sudo service tftpd-hpa restart
+}
+
+The problem is Ubuntu starts this server too early, before the
+preconditions it needs are met. When you restart the service
+long after the machine has booted, this issue is no longer
+present.
+
+If it still doesn't work, another (radical!) workaround is to
+reinstall the \code{tftpd-hpa} server!
+
+\code{
+sudo apt-get install --reinstall tftpd-hpa
+}
+
+So far, we haven't had the time yet to investigate the root
+cause of the issue that is addressed by this last workaround.
+\end{minipage}
+}
diff --git a/labs/kernel-board-setup/kernel-board-setup.tex b/labs/kernel-board-setup/kernel-board-setup.tex
index 00041c4..b70040e 100644
--- a/labs/kernel-board-setup/kernel-board-setup.tex
+++ b/labs/kernel-board-setup/kernel-board-setup.tex
@@ -203,13 +203,7 @@ file in \code{/var/lib/tftpboot}. Then, from U-Boot, do:
 tftp 0x81000000 textfile.txt
 \end{verbatim}
 
-{\bf Caution: known issue in Ubuntu 12.04 and later}: if this command
-doesn't work, you may have to stop the server and start it
-again every time you boot your workstation:
-
-\begin{verbatim}
-sudo service tftpd-hpa restart
-\end{verbatim}
+\input{../errata/tftpd-hpa.tex}
 
 The \code{tftp} command should have downloaded the
 \code{textfile.txt} file from your development workstation into the
diff --git a/labs/sysdev-u-boot/sysdev-u-boot.tex b/labs/sysdev-u-boot/sysdev-u-boot.tex
index 4767e25..40ace1a 100644
--- a/labs/sysdev-u-boot/sysdev-u-boot.tex
+++ b/labs/sysdev-u-boot/sysdev-u-boot.tex
@@ -356,14 +356,7 @@ workstation. Then, from U-Boot, do:
 tftp 0x22000000 textfile.txt
 \end{verbatim}
 
-{\bf Caution: known issue in Ubuntu 12.04 and later (still present
-in Ubuntu 14.04)}: if this command doesn't work, you may have to
-stop the server and start it again every time you boot your
-workstation:
-
-\begin{verbatim}
-sudo service tftpd-hpa restart
-\end{verbatim}
+\input{../errata/tftpd-hpa.tex}
 
 The \code{tftp} command should have downloaded
 the \code{textfile.txt} file from your development



More information about the training-materials-updates mailing list