[bootlin/training-materials updates] master: NFS: switch to TCP as distributions are removing UDP support (be0a0b35)
Alexandre Belloni
alexandre.belloni at bootlin.com
Fri Jun 26 21:41:22 CEST 2020
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/be0a0b35452395499412c3dc6193680d85708226
>---------------------------------------------------------------
commit be0a0b35452395499412c3dc6193680d85708226
Author: Alexandre Belloni <alexandre.belloni at bootlin.com>
Date: Fri Jun 26 21:40:42 2020 +0200
NFS: switch to TCP as distributions are removing UDP support
Signed-off-by: Alexandre Belloni <alexandre.belloni at bootlin.com>
>---------------------------------------------------------------
be0a0b35452395499412c3dc6193680d85708226
.../kernel-compiling-and-nfs-booting.tex | 2 +-
labs/sysdev-tinysystem/sysdev-tinysystem.tex | 2 +-
labs/yocto-advanced-configuration/yocto-advanced-configuration.tex | 2 +-
.../sysdev-root-filesystem-principles.tex | 6 +++---
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex b/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex
index 3a3e7981..5269bf88 100644
--- a/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex
+++ b/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex
@@ -142,7 +142,7 @@ just one line):
\begin{verbatim}
setenv bootargs root=/dev/nfs rw ip=192.168.0.100:::::usb0 console=ttyS0,115200n8
g_ether.dev_addr=f8:dc:7a:00:00:02 g_ether.host_addr=f8:dc:7a:00:00:01
- nfsroot=192.168.0.1:/home/<user>/linux-kernel-labs/modules/nfsroot,nfsvers=3
+ nfsroot=192.168.0.1:/home/<user>/linux-kernel-labs/modules/nfsroot,nfsvers=3,tcp
\end{verbatim}
Once again, replace \code{<user>} by your actual user name.
diff --git a/labs/sysdev-tinysystem/sysdev-tinysystem.tex b/labs/sysdev-tinysystem/sysdev-tinysystem.tex
index f8477818..2e1367ed 100644
--- a/labs/sysdev-tinysystem/sysdev-tinysystem.tex
+++ b/labs/sysdev-tinysystem/sysdev-tinysystem.tex
@@ -86,7 +86,7 @@ Use the following U-Boot command to do so, {\bf in just 1 line}
\begin{verbatim}
setenv bootargs root=/dev/nfs ip=192.168.0.100:::::eth0
- nfsroot=192.168.0.1:/home/<user>/__SESSION_NAME__-labs/tinysystem/nfsroot,nfsvers=3 rw
+ nfsroot=192.168.0.1:/home/<user>/__SESSION_NAME__-labs/tinysystem/nfsroot,nfsvers=3,tcp rw
\end{verbatim}
Once again, replace \code{<user>} by your actual user name.
diff --git a/labs/yocto-advanced-configuration/yocto-advanced-configuration.tex b/labs/yocto-advanced-configuration/yocto-advanced-configuration.tex
index 7ce62375..8af76fc3 100644
--- a/labs/yocto-advanced-configuration/yocto-advanced-configuration.tex
+++ b/labs/yocto-advanced-configuration/yocto-advanced-configuration.tex
@@ -18,7 +18,7 @@ First we need to set the kernel boot arguments U-Boot will pass to the
Linux kernel at boot time:
\begin{verbatim}
setenv bootargs 'console=ttyS0,115200 root=/dev/nfs rw
- nfsroot=192.168.0.1:/nfs,nfsvers=3
+ nfsroot=192.168.0.1:/nfs,nfsvers=3,tcp
ip=192.168.0.100:::::usb0 g_ether.dev_addr=11:22:33:44:55:02
g_ether.host_addr=11:22:33:44:55:01'
saveenv
diff --git a/slides/sysdev-root-filesystem-principles/sysdev-root-filesystem-principles.tex b/slides/sysdev-root-filesystem-principles/sysdev-root-filesystem-principles.tex
index 1d682b5f..06dab423 100644
--- a/slides/sysdev-root-filesystem-principles/sysdev-root-filesystem-principles.tex
+++ b/slides/sysdev-root-filesystem-principles/sysdev-root-filesystem-principles.tex
@@ -197,9 +197,9 @@ Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(0,0)
\item \code{root=/dev/nfs} (we want rootfs over NFS)
\item \code{ip=192.168.1.111} (target IP address)
\item \code{nfsroot=192.168.1.110:/home/tux/rootfs/} (NFS server details)
- \item You may need to add "\code{,nfsvers=3}" to the \code{nfsroot} setting,
- as an NFS version 2 client may be rejected by the NFS server
- in recent GNU/Linux distributions.
+ \item You may need to add "\code{,nfsvers=3,tcp}" to the
+ \code{nfsroot} setting, as an NFS version 2 client and UDP may
+ be rejected by the NFS server in recent GNU/Linux distributions.
\end{itemize}
\end{itemize}
\end{frame}
More information about the training-materials-updates
mailing list