<?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=SD-Card_%28i.MX31%29</id>
	<title>SD-Card (i.MX31) - 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=SD-Card_%28i.MX31%29"/>
	<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=SD-Card_(i.MX31)&amp;action=history"/>
	<updated>2026-05-13T14:12:36Z</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=SD-Card_(i.MX31)&amp;diff=546&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=SD-Card_(i.MX31)&amp;diff=546&amp;oldid=prev"/>
		<updated>2023-10-31T08:03:12Z</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=SD-Card_(i.MX31)&amp;diff=545&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=SD-Card_(i.MX31)&amp;diff=545&amp;oldid=prev"/>
		<updated>2023-08-22T19:35:55Z</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;==== Kernel configuration ====&lt;br /&gt;
You can find all MMC/SD card related options in the kernel configuration at Device Drivers -&amp;gt; MMC/SD Card Support. The following options need to be checked:&lt;br /&gt;
   * MMC/SD Card Support&lt;br /&gt;
   * MMC Block device driver&lt;br /&gt;
      * Use bounce buffer for simple hosts&lt;br /&gt;
   * Freescale MXC Multimedia Card Interface support&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Using the card ====&lt;br /&gt;
After the device finishes booting, insert an SD Card into the appropriate slot located at the bottom side of the dev board.&lt;br /&gt;
You should immediately see messages telling you information about the card:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mmcblk0: mmc1:b368 SDC   975360KiB&lt;br /&gt;
 mmcblk0: p1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check if the devnode /dev/mmcblk0 exists:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /dev/mmcblk0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will now partition and format the card. Make sure no important data is stored on the card, since it will be deleted. Run the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dd if=/dev/zero of=/dev/mmcblk0 bs=1024 count=512     // clear the first 512 kb&lt;br /&gt;
&lt;br /&gt;
fdisk /dev/mmcblk0                                    // run fdisk&lt;br /&gt;
   // use &amp;quot;o&amp;quot; to delete existing partitions&lt;br /&gt;
   // use &amp;quot;n&amp;quot; to create a new partition&lt;br /&gt;
   // use &amp;quot;w&amp;quot; to write the partition table and exit&lt;br /&gt;
mkfs.ext2 /dev/mmcblk0p1                              // create an ext2 filesystem&lt;br /&gt;
&lt;br /&gt;
mkdir /mnt/mmc1                                       // create a mountpoint&lt;br /&gt;
mount -t ext2 /dev/mmcblk0p1 /mnt/mmc1                // Mount the partition&lt;br /&gt;
ls /mnt/mmc1                                          // view the contents (empty except for lost+found)&lt;br /&gt;
umount /mnt/mmc1                                      // Unmount mmc before ejecting it&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Automount using udev ====&lt;br /&gt;
&lt;br /&gt;
(Make sure that AutoFS is being compiled as a module (Kernel Configuration -&amp;gt; File Systems -&amp;gt; Kernel Automounter Version 4 Support).)&lt;br /&gt;
&lt;br /&gt;
Create the directory /mnt/mmc1.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /mnt/mmc1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a file named 09-mmc.rules in /etc/udev/rules.d. Paste the following line(s).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
KERNEL==&amp;quot;mmcblk0p1&amp;quot;, ACTION==&amp;quot;add&amp;quot;, RUN+=&amp;quot;/etc/udev/scripts/mmc_mount.sh&amp;quot;&lt;br /&gt;
KERNEL==&amp;quot;mmcblk0p1&amp;quot;, ACTION==&amp;quot;remove&amp;quot;, RUN+=&amp;quot;/etc/udev/scripts/mmc_umount.sh&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a new file named mmc_mount.sh in /etc/udev/scripts and paste the following lines. Make sure it is executable (chmod) by the user who will run it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
mount -t ext2 /dev/mmcblk0p1 /mnt/mmc1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a new file named mmc_umount.sh in /etc/udev/scripts and paste the following lines. Make sure it is executable (chmod) by the user who will run it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
umount /mnt/mmc1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Done. Boot your device without the card inserted and on the first insert, it will mount the device automatically. A umount is not really useful, since it will only be run when the card has already been ejected which renders it useless.&lt;br /&gt;
&lt;br /&gt;
[[Category:i.MX31]]&lt;/div&gt;</summary>
		<author><name>en&gt;Peter</name></author>
	</entry>
</feed>