Boot from MMC

From Gumstix User Wiki
Revision as of 23:25, 11 February 2009 by Geometrikal (Talk | contribs) (New page: This section describes how to boot off an MMC memory card == Format the card == Place the card into your reader, and unmount it if it is mounted. Assuming it is the only mmc card, run ...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This section describes how to boot off an MMC memory card

Format the card

Place the card into your reader, and unmount it if it is mounted.

Assuming it is the only mmc card, run fdisk:

sudo fdisk /dev/mmcblk0

Delete any partitions on the disk, in this case there were two:

Command (m for help): d
Partition number (1-4): 1

Command (m for help): d
Selected partition 2

Create the kernel partition:

Command (m for help): d
Partition number (1-4): 1

Command (m for help): d
Selected partition 2

Set it to FAT16 file system:

<code>
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 6
Changed system type of partition 1 to 6 (FAT16)
</code>

Create the root fs partition:

<code>
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (22-984, default 22): 22
Last cylinder, +cylinders or +size{K,M,G} (22-984, default 984): 984
</code>

Save the partition table:

<code>
Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 13: Permission denied.
The kernel still uses the old table.
The new table will be used at the next reboot.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
</code>