<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de-AT">
	<id>https://becomwiki.live.md-websolutions.com/index.php?action=history&amp;feed=atom&amp;title=NAND_flash_%28SBC-i.MX51%29</id>
	<title>NAND flash (SBC-i.MX51) - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://becomwiki.live.md-websolutions.com/index.php?action=history&amp;feed=atom&amp;title=NAND_flash_%28SBC-i.MX51%29"/>
	<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=NAND_flash_(SBC-i.MX51)&amp;action=history"/>
	<updated>2026-05-13T14:12:34Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in BECOM Systems Support</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://becomwiki.live.md-websolutions.com/index.php?title=NAND_flash_(SBC-i.MX51)&amp;diff=120&amp;oldid=prev</id>
		<title>Peter: 1 Version importiert</title>
		<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=NAND_flash_(SBC-i.MX51)&amp;diff=120&amp;oldid=prev"/>
		<updated>2023-10-31T08:03:06Z</updated>

		<summary type="html">&lt;p&gt;1 Version importiert&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de-AT&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 31. Oktober 2023, 10:03 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de-AT&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
	<entry>
		<id>https://becomwiki.live.md-websolutions.com/index.php?title=NAND_flash_(SBC-i.MX51)&amp;diff=119&amp;oldid=prev</id>
		<title>en&gt;Peter: 1 Version importiert</title>
		<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=NAND_flash_(SBC-i.MX51)&amp;diff=119&amp;oldid=prev"/>
		<updated>2023-08-22T19:35:48Z</updated>

		<summary type="html">&lt;p&gt;1 Version importiert&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The SBC-i.MX51 provides 2 GiB of NAND flash.&lt;br /&gt;
&lt;br /&gt;
== Linux kernel configuration ==&lt;br /&gt;
&lt;br /&gt;
 System Type  ---&amp;gt;&lt;br /&gt;
   Freescale MXC Implementations  ---&amp;gt;&lt;br /&gt;
     MX51 Options  ---&amp;gt;&lt;br /&gt;
       [*] MXC NFC Hardware Version 3&lt;br /&gt;
       [*]   MXC NFC Hardware Version 3.2&lt;br /&gt;
 Device Drivers  ---&amp;gt;&lt;br /&gt;
   &amp;lt;*&amp;gt; Memory Technology Device (MTD) support  ---&amp;gt;&lt;br /&gt;
     [*]   MTD partitioning support&lt;br /&gt;
     [*]     Command line partition table parsing&lt;br /&gt;
     &amp;lt;*&amp;gt;   Direct char device access to MTD devices&lt;br /&gt;
     -*-   Common interface to block layer for MTD &amp;#039;translation layers&amp;#039;&lt;br /&gt;
     &amp;lt;*&amp;gt;   Caching block device access to MTD devices&lt;br /&gt;
     &amp;lt;*&amp;gt;   NAND Device Support  ---&amp;gt;&lt;br /&gt;
       &amp;lt;*&amp;gt;   MXC NAND Version 3 support&lt;br /&gt;
&lt;br /&gt;
== Setting partitions on NAND flash ==&lt;br /&gt;
&lt;br /&gt;
The default partitions on the NAND flash are as follows:&lt;br /&gt;
&lt;br /&gt;
{| rules=&amp;quot;all&amp;quot; frame=&amp;quot;box&amp;quot; cellpadding=&amp;quot;3&amp;quot; style=&amp;quot;text-align:left&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name !! Size !! Offset&lt;br /&gt;
|-&lt;br /&gt;
| bootloader || 0x300000 (3 MiB) || 0x0&lt;br /&gt;
|-&lt;br /&gt;
| nand.kernel || 0x500000 (5 MiB) || 0x300000&lt;br /&gt;
|-&lt;br /&gt;
| nand.rootfs || 0x40000000 (1 GiB) || 0x800000&lt;br /&gt;
|-&lt;br /&gt;
| nand.userfs1 || 0x3E800000 (1000 MiB) || 0x40800000&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To customize this layout, follow the instructions below.&lt;br /&gt;
&lt;br /&gt;
* Open the file&lt;br /&gt;
 btmxc-linux/arch/arm/mach-mx5/mx51_3stack.c&lt;br /&gt;
(Linux 2.6.31) or&lt;br /&gt;
 btmxc-linux/arch/arm/mach-mx51/mx51_i.fly.c&lt;br /&gt;
(Linux 2.6.28) respectively.&lt;br /&gt;
* Search for the following struct and edit it according to your wishes. &amp;lt;br&amp;gt; &amp;#039;&amp;#039;&amp;#039;NOTE: Leave at least 2 MiB (0x200000) bytes unassigned at the end of the flash. This is the location where the bad block table (BBT) and its copy are usually stored by Linux and Redboot.&lt;br /&gt;
 static struct mtd_partition nand_flash_partitions[] = {&lt;br /&gt;
 	{&lt;br /&gt;
 		.name = &amp;quot;bootloader&amp;quot;,&lt;br /&gt;
 		.offset = 0,&lt;br /&gt;
 		.size = 3 * 1024 * 1024,&lt;br /&gt;
 	},&lt;br /&gt;
 	{&lt;br /&gt;
 		.name = &amp;quot;nand.kernel&amp;quot;,&lt;br /&gt;
 		.offset = MTDPART_OFS_APPEND,&lt;br /&gt;
 		.size = 5 * 1024 * 1024,&lt;br /&gt;
 	},&lt;br /&gt;
 	{&lt;br /&gt;
 		.name = &amp;quot;nand.rootfs&amp;quot;,&lt;br /&gt;
 		.offset = MTDPART_OFS_APPEND,&lt;br /&gt;
 		.size = 1024 * 1024 * 1024,&lt;br /&gt;
 	},&lt;br /&gt;
 	{&lt;br /&gt;
 		.name = &amp;quot;nand.userfs1&amp;quot;,&lt;br /&gt;
 		.offset = MTDPART_OFS_APPEND,&lt;br /&gt;
 		.size = 1000 * 1024 * 1024,&lt;br /&gt;
 	},&lt;br /&gt;
 };&lt;br /&gt;
&lt;br /&gt;
== Test in Linux ==&lt;br /&gt;
&lt;br /&gt;
We will copy some test file to the 4th partition (nand.userfs1).&lt;br /&gt;
&lt;br /&gt;
* Use some test file (e.g. 32 MiB large) and copy it to the SBC. &amp;quot;/randomfile&amp;quot; is assumed from now on.&lt;br /&gt;
&lt;br /&gt;
* Have a look at the available partitions:&lt;br /&gt;
 cat /proc/mtd&lt;br /&gt;
 cat /proc/partitions&lt;br /&gt;
&lt;br /&gt;
* Create a jffs2 file system by deleting the contents and simply mounting it:&lt;br /&gt;
 mkdir /mnt/nanduserfs&lt;br /&gt;
 flash_eraseall /dev/mtd3&lt;br /&gt;
 mount -t jffs2 /dev/mtdblock3 /mnt/nanduserfs&lt;br /&gt;
&lt;br /&gt;
* Copy the file to this partition 10 times:&lt;br /&gt;
 for i in `seq 1 10` ; do cp /randomfile /mnt/nanduserfs/file${i} ; done&lt;br /&gt;
&lt;br /&gt;
* Check files:&lt;br /&gt;
 for i in `seq 1 10` ; do diff /randomfile /mnt/nanduserfs/file${i} ; done&lt;br /&gt;
Diff must not output anything, which means the files are all identical.&lt;br /&gt;
&lt;br /&gt;
== Boot from NAND flash (default) ==&lt;br /&gt;
&lt;br /&gt;
The NAND boot mode and the NAND setup procedure are described on the [[Boot media (SBC-i.MX51)|Boot media]] page.&lt;br /&gt;
&lt;br /&gt;
[[Category:SBC-i.MX51]]&lt;br /&gt;
[[Category:i.MX]]&lt;/div&gt;</summary>
		<author><name>en&gt;Peter</name></author>
	</entry>
</feed>