so i will give you the best way to do the partition for a mmc (2 go)
*the first partition (uImage(squashfs and ext3 enabled) ,MLO,uboot):
Type the mount command to check your currently mounted
partitions. If MMC/SD partitions are mounted, unmount them.
In a terminal open the block device with fdisk :
$ sudo fdisk /dev/mmvblk0
Print the current partition table typing p : you will see something
like this "Disk /dev/mmcblk0: 1967 MB, 1967128576 bytes"
and bellow you will see different partition in your card press "d"
Command (m for help): d ,to delete them and select the number for the
partition that will be deleted [1-4] delete them all.
Command (m for help): x
Expert command (m for help) : h
Number of heads (1256, default 4): 255
Expert command (m for help) : s
Number of sectors (163, default 62): 63
Warning : setting sector offset for DOS compatibility
Now for the number of cylinders, we consider the global size
(1967128576 bytes) then divide it by (255*63*512) which gives
around 239.16 cylinders. We must round it down to 239.
Expert command (m for help) : c
Number of cylinders (11048576, default 4): 239
After these geometry settings, exit expert mode ('r' command) then
print again the partition table to check geometry:
Command (m for help): p
Disk /dev/mmcblk0: 1967 MB, 1967128576 bytes
Now, let's create the boot partition :
Command (m for help): n
Command action
e extended
p primary partition (14)
p
Partition number (14): 1
First cylinder (1239, default 1): 1
Last cylinder, +cylinders or +size{K,M,G} (1239, default
239): +64M
Then we change its type to FAT32
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): c
Changed system type of partition 1 to c (W95 FAT32 (LBA))
Command (m for help): w
Now, format the first partition in your card:
sudo mkfs.vfat -n beagleboot -F 32 /dev/mmcblk0p1 this
partition will be fat32 named beagleboot
Then, remove and insert your card again. then copy (uImage(squashfs
and ext3 enabled) ,MLO,uboot in the card
*the second partition to hold the root filesystem. Its size can be as
small as 1MB for our use because we use the file system compressed bu
squashfs and this filesystem will be read only (you can make any
change) this type of root file system is made to protect the system
from any change :
sudo fdisk /dev/mmcblk0
Command (m for help): n
Command action
e extended
p primary partition (14)
p
Partition number (14): 2
First cylinder (35239, default 35): 35
Last cylinder, +cylinders or +size{K,M,G} (35239, default 239): +1M
Command (m for help): w
then your rootfile system called "rootdir" which contain
(etc,dev,bin,....) for example
$ mksquashfs rootdir rootdir.sqfs // to create your filesystem
image: called rootdir.sqfs
$ dd if=rootdir.sqfs of=/dev/mmcblk0p2 // this will copy all the
files(etc,dev,bin, ...) into the partition mmcblk0p2 probably you will
be not able to open this partition and see what she contains
*the third partition. Now, create another primary partition to hold
the general purpose
filesystem storing user and application data. Its size can fill the
remaining space on the card (accept the last cylinder proposed by
default):
Command (m for help): n
Command action
e extended
p primary partition (14)
p
Partition number (1-4): 3
First cylinder (36239, default 36): 36
Last cylinder, +cylinders or +size{K,M,G} (36239, default 239): 239
Use 'w' to write your changes. To reload the new partition table,
remove the MMC card and plug it in again.
umount /media/disk umount /media/disk-1 umount /media/
beagleboot
Now, format the third partition in your card:
sudo mkfs.ext3 -n journaled_fs -F /dev/mmcblk0p3 this partition
will be ext3 named journaled_fs
and copy the rootfilesystem in ext3
finally to boot from the second partition with squashfs and in that
case you will not be able to make any change to your filesystem
bootargs=rootwait root=/dev/mmcblk0p2 rootfstype=squashfs
console=ttyS2,115200n8
to boot from the third partition with ext3
bootargs=rootwait root=/dev/mmcblk0p3 rootfstype=ext3
console=ttyS2,115200n8
if the method of the partition look difficult you can use the gparted
apt-get install gparted
gksudo gparted /dev/mmcblk0
create the first partition fat32 64Mo
create the second partition 1 Mo
create the third partition ext3 2 go - 65 mo (looooooool)
goood luck