Fabio,
Ok my NFS-mounting issue is resolved, so as I mentioned, my current goal is to create a rootfs on my eMMC.
Here is my current state:
u-boot:
eMMC (using SD3_XXX pins on iMX6) works fine. I am able to put kernel and ramdisk images there and boot from them.
linux:
I am able to successfully set up a partition using "fdisk /dev/mmcblk0". I start the partition at blk#49152 (16K*3) to give me space for other stuff at the base of the device. Output from "fdisk -l" shows:
# fdisk -l
Disk /dev/mmcblk0: 7801 MB, 7801405440 bytes
4 heads, 16 sectors/track, 238080 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 769 238080 7593984 83 Linux
So, as far as I can tell, this is good. The partition is set.
Then I do mkfs.ext3 /dev/mmcblk0p1, and that succeeds.
Then things go south...
The next step should be to mount /dev/mmcblk0p1 so that I can then copy rootfs to it (right?); however this fails...
# mkdir /tmp/mountpoint
# mount -t ext3 /dev/mmcblk0p1 /tmp/mountpoint
mount: mounting /dev/mmcblk0p1 on /tmp/mountpoint failed: No such device
Obviously the /dev/mmcblk0p1 device does exist (refer to output of fdisk -l above).
Any idea why this would be failing? I'm currently digging into busybox's mount.c, but not making much progress.
Ed