[FE training-materials-updates] Explain how to automate the boot process

Michael Opdenacker michael.opdenacker at free-electrons.com
Wed Oct 10 06:43:33 CEST 2012


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

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

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

commit 9afc94b8fbb3f8538a98bd228fcbfcf5e205826f
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Tue Oct 9 12:14:47 2012 +0200

    Explain how to automate the boot process


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

9afc94b8fbb3f8538a98bd228fcbfcf5e205826f
 .../kernel-module-environment.tex                  |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/labs/kernel-module-environment/kernel-module-environment.tex b/labs/kernel-module-environment/kernel-module-environment.tex
index aa8fad3..37f1990 100644
--- a/labs/kernel-module-environment/kernel-module-environment.tex
+++ b/labs/kernel-module-environment/kernel-module-environment.tex
@@ -290,3 +290,23 @@ check your setup or ask your instructor for details.
 If the kernel fails to mount the NFS filesystem, look carefully at the
 error messages in the console. If this doesn't give any clue, you can
 also have a look at the NFS server logs in \code{/var/log/syslog}.
+
+\section{Automate the boot process}
+
+To avoid typing the same U-boot commands over and over again each time
+you power on or reset your board, here's a way to automatically call the
+above commands at boot time:
+
+\begin{verbatim}
+setenv bootcmd 'tftp 0x21000000 uImage; bootm 0x21000000'
+saveenv
+\end{verbatim}
+
+\code{bootcmd} will automatically be run after the U-boot timeout
+expires. Don't hesitate to change it according to your exact needs.
+
+We could also copy the \code{uImage} file to NAND flash and avoid
+downloading it over and over again. However, handling NAND flash is
+outside of the scope of this course. See our
+\href{http://free-electrons.com/training/embedded-linux/}{Embedded
+Linux system development course} and its on-line materials for details.



More information about the training-materials-updates mailing list