
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://armadeus.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BrunoLe</id>
		<title>ArmadeusWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://armadeus.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BrunoLe"/>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=Special:Contributions/BrunoLe"/>
		<updated>2026-04-07T09:52:24Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>http://armadeus.org/wiki/index.php?title=MultiMediaCard&amp;diff=7163</id>
		<title>MultiMediaCard</title>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=MultiMediaCard&amp;diff=7163"/>
				<updated>2009-08-03T14:04:26Z</updated>
		
		<summary type="html">&lt;p&gt;BrunoLe: /* Card insertion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Instructions to use the MultiMediaCard (MMC/SD) on your Armadeus board&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
You can use standard MMC/SD/miniSD/microSD cards with your Armadeus board:&lt;br /&gt;
* with a DevLight V1, you must have [[MMC/SD | the corresponding connector attached to your development board.]] and use an adaptor for miniSD and microSD&lt;br /&gt;
* with a DevLight V2, you can use the onboard microSD connector&lt;br /&gt;
* with an [[APF9328DevFull]], you can use the MMC/SD onboard connector and an adaptor for miniSD and microSD&lt;br /&gt;
* with an [[APF27Dev]], you can use the onboard microSD connector&lt;br /&gt;
&lt;br /&gt;
All needed drivers are included in the standard Armadeus Linux image.&lt;br /&gt;
&lt;br /&gt;
==Card insertion==&lt;br /&gt;
You should something like that on the Linux console:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 # imx-mmc imx-mmc.0: card inserted&lt;br /&gt;
 mmc0: host does not support reading read-only switch. assuming write-enable.&lt;br /&gt;
 mmc0: new SD card at address 01b0&lt;br /&gt;
 mmcblk0: mmc0:01b0 SD512 500224KiB&lt;br /&gt;
  mmcblk0: p1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note :&lt;br /&gt;
If the special files /dev/mmcblk0, /dev/mmcblk0p1 /dev/mmcblk0p2 ... /dev/mmcblk0p7 are NOT present on your filesystem,&lt;br /&gt;
create them by hand :&lt;br /&gt;
 # mknod /dev/mmcblk0 b 179 0&lt;br /&gt;
 # mknod /dev/mmcblk0p1 b 179 1&lt;br /&gt;
 # mknod /dev/mmcblk0p2 b 179 2&lt;br /&gt;
 ...&lt;br /&gt;
 # mknod /dev/mmcblk0p7 b 179 7&lt;br /&gt;
&lt;br /&gt;
(It happened to me after upgrading an APF9328+DevLight from version 2.3 to 3.1)&lt;br /&gt;
&lt;br /&gt;
==Mounting the MMC/SD==&lt;br /&gt;
&lt;br /&gt;
* Just mount the MMC like you will do on your PC, for example (FAT32 formatted card):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 # mount -t vfat /dev/mmcblk0p1 /mnt/mmc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then, you can access the MMC's files from the ''/mnt/mmc'' directory&lt;br /&gt;
&lt;br /&gt;
If you have problems with vfat code page [http://www.armadeus.com/wiki/index.php?title=MultiMediaCard#VFAT_Code_Page click here]&lt;br /&gt;
&lt;br /&gt;
==Booting from MMC/SD==&lt;br /&gt;
When your rootfs is too big to be put on the APF Flash, you can always use a MMC/SD like a Hard Drive and boot from it (this is possible because standard Armadeus kernel is compiled with the MMC driver built in).&lt;br /&gt;
&lt;br /&gt;
===Prepare your card===&lt;br /&gt;
* On your APF board (to avoid to crash your Host HD), create a good partition table:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 # /sbin/fdisk /dev/mmcblk0&lt;br /&gt;
 Delete all existing partion with 'd'&lt;br /&gt;
 Create a primary partion: 'n' then 'p' then '1'&lt;br /&gt;
 Change bootflag to Linux: 't' then '83'&lt;br /&gt;
 Save partition table: 'w'&lt;br /&gt;
 (To quit without saving: 'm')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then, on your PC, format your MMC with Ext2 filesystem (booting on FAT is bad :-) ):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ sudo mkfs.ext2 /dev/sdX1   (replace X with your MMC reader drive letter, if your Laptop has an integrated&lt;br /&gt;
                                           MMC reader then use mmcblk0p1 instead of sdX1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If not automatically detected/mounted by your distribution, mount your MMC/SD on your Host filesystem (for example in ''/media/mmc''):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ sudo mkdir -p /media/mmc&lt;br /&gt;
 $ sudo mount /dev/sdX1 /media/mmc    (replace X with your MMC reader drive letter, if your Laptop has an integrated&lt;br /&gt;
                                                   MMC reader then use mmcblk0p1 instead of sdX1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Put your rootfs on the MMC/SD===&lt;br /&gt;
* Buildroot should be configured to generate a tar-ed rootfs '''(now done by default)'''.&lt;br /&gt;
 [armadeus] $ make menuconfig&lt;br /&gt;
&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;&lt;br /&gt;
Target filesystem options  ---&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Image:Menuconfig_tar_rootfs.png]]&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 [armadeus] $ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* and then uncompress the rootfs to the SD card:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ make shell_env&lt;br /&gt;
 $ source armadeus_env.sh&lt;br /&gt;
 $ sudo tar xvf $ARMADEUS_ROOTFS_TAR -C /media/mmc&lt;br /&gt;
 $ sudo umount /media/mmc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Boot===&lt;br /&gt;
* Insert the MMC/SD/microSD in the corresponding slot of your Armadeus board and then under U-Boot do:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 BIOS&amp;gt; run mmcboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* if you want to automatically boot from SD at each startup, modify the ''bootcmd'' U-Boot macro:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 BIOS&amp;gt; setenv bootcmd run mmcboot&lt;br /&gt;
 BIOS&amp;gt; saveenv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
(default bootcmd when you receive your board is ''run jffsboot'' = boot from FLASH)&lt;br /&gt;
&lt;br /&gt;
==Performances==&lt;br /&gt;
* [[MMC/SD#Supported_Cards| Show tested cards performances]]&lt;br /&gt;
&lt;br /&gt;
==Troubleshots==&lt;br /&gt;
===VFAT Code Page===&lt;br /&gt;
If you encounter this message (or something similar):&lt;br /&gt;
 Unable to load NLS charset cp437&lt;br /&gt;
 FAT: codepage cp437 not found&lt;br /&gt;
you have to add the charset to the supported kernel ones:&lt;br /&gt;
 $ make linux26-menuconfig&lt;br /&gt;
&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;&lt;br /&gt;
File systems  ---&amp;gt; &lt;br /&gt;
    -*- Native language support  ---&amp;gt;&lt;br /&gt;
        &amp;lt;*&amp;gt;   Codepage 437 (United States, Canada)&lt;br /&gt;
        ...&lt;br /&gt;
        &amp;lt;*&amp;gt;   NLS ISO 8859-1  (Latin 1; Western European Languages)&lt;br /&gt;
        ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
* http://en.wikipedia.org/wiki/MultiMedia_Card&lt;br /&gt;
&lt;br /&gt;
{{LanguageBar|MultiMediaCard|MultiMediaCard|MultiMediaCard}}&lt;br /&gt;
&lt;br /&gt;
[[Category:MassStorage]]&lt;/div&gt;</summary>
		<author><name>BrunoLe</name></author>	</entry>

	</feed>