I downloaded the script you mentioned and it is using sfdisk. I don't
believe it is using sfdisk correctly.
Robert Nelson has built a really great script for partitioning sd cards
that you might be able to add to the omap3-mkcard.sh script. To explain
a bit:
The version of fdisk that your host system has might be from the
util-linux-ng-2.18 package. In the 2.18 version, fdisk doesn't default
to DOS-style partitioning. It needs to. You have to specify DOS-style
partitioning as a command line option, and you must also specify the
units required for the partitioning action, because you need units of
cylinders and the default is units of sectors.
Mr. Nelson's script is util-linux-ng version 2.18 aware, and uses fdisk
rather than sfdisk and with the right parameters. You can get his script
from his git repository. The only problem here is, his script is focused
on installing a Ubuntu image on the SD card, and you want an angstrom
image. But you can hack out just the code needed to partition and format
the sdcard, and transplant it to the omap3-mkcard.sh script.
You can get his script by doing a git clone of his git repository:
git clone https://github.com/RobertCNelson/omap-image-builder.git
Look inside the omap-image-builder directory that results, and search
for the setup_sdcard.sh script.
If I have time in the next couple of weeks I will be happy to sort of
merge these two scripts together and test the result. Right now,
however, I'm hot on the trail of turning my Beagleboard xM into a media
server for my wife. (And writing this email is a bit of yak shaving.)
Good luck
Bob Cochran