Tool/software: Linux
Hello,
I have a need to program mmc from target.
I first thought of using u-boot for that, but u-boot has no capability to create a partition table for sd/mmc.
So, trying to do it from linux target, I encountered another problem.
I am trying to understand the requirements for a valid sd card.
Is it that I just need to different partitions or do they need to be in a specific offset ?
There is no sfdisk in filesystem, so is it possible to acheive it with fdisk ? What parameters should be gived to fdisk ?
I see the following commands in TI's sciprt for SD, but I am not sure how to achieve in target filesystem:
CYLINDERS=`echo $SIZE/255/63/512 | bc`
sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE << EOF
,9,0x0C,*
10,114,,,
EOF
mkfs.vfat -F 32 -n "boot" ${DRIVE}1
umount ${DRIVE}1
mkfs.ext3 -L "rootfs" ${DRIVE}2
Thank you,
Ran