[FE training-materials-updates] Update example for Nand partitions in DT
Michael Opdenacker
michael.opdenacker at free-electrons.com
Thu Jun 15 08:44:54 CEST 2017
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=fd874238b65541dea0a40e729113627855e9b3b5
>---------------------------------------------------------------
commit fd874238b65541dea0a40e729113627855e9b3b5
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date: Thu Jun 15 08:44:54 2017 +0200
Update example for Nand partitions in DT
- The previous example was no longer existing in the same
way in the latest kernel
Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>
>---------------------------------------------------------------
fd874238b65541dea0a40e729113627855e9b3b5
.../sysdev-flash-filesystems.tex | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
index 70afd4a..1dad18c 100644
--- a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
+++ b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
@@ -160,26 +160,29 @@
\begin{frame}[fragile]
\frametitle{Linux: definition of MTD partitions}
- The Device Tree is the standard place to define MTD partitions
+ \small
+ The Device Tree is the standard place to define {\em default} MTD partitions
for platforms with Device Tree support.\\
- Example from \kfile{arch/arm/boot/dts/omap3-igep.dtsi}:
+ Example from \kfile{arch/arm/boot/dts/omap3-overo-base.dtsi}:
\begin{minted}[fontsize=\scriptsize]{perl}
nand at 0,0 {
linux,mtd-name= "micron,mt29c4g96maz";
[...]
+ ti,nand-ecc-opt = "bch8"
+ [...]
partition at 0 {
label = "SPL";
- reg = <0 0x100000>;
+ reg = <0 0x80000>; /* 512KiB */
};
- partition at 0x80000 {
+ partition at 80000 {
label = "U-Boot";
- reg = <0x100000 0x180000>;
+ reg = <0x80000 0x1C0000>; /* 1792KiB */
};
- [...]
- partition at 0x780000 {
- label = "Filesystem";
- reg = <0x680000 0x1f980000>;
+ partition at 1c0000 {
+ label = "Environment";
+ reg = <0x240000 0x40000>; /* 256KiB */
};
+ [...]
\end{minted}
\end{frame}
More information about the training-materials-updates
mailing list