On Tue, 2010-12-07 at 09:10 -0600, Robert Nelson wrote:
Hi Guilherme,
I know you found a workaround with fdisk so you're probably no longer using parted, but I was wondering if you were able to use parted to change the geometry in the partition table to 255heads/63sectors as the boot rom seems to require?
Actually with current x-loader/u-boot the 255heads/63sectors isn't a hard requirement anymore for the boot partition, so i've dropped it..
I thought the 255h/63s requirement came from the boot ROM?
https://github.com/RobertCNelson/omap-image-builder/blob/master/tools/setup_...
I partitioned a card with the exact same commands you use in setup_sdcard.sh (fdisk to create the boot partition and parted for the root one), and then used our script to populate it (without changing the partitions), but it didn't boot. This is what I got on my xM.
Texas Instruments X-Loader 1.4.4ss (Sep 30 2010 - 14:44:32) Beagle xM Rev A Reading boot sector Error: reading boot sector u-boot.bin not found or blank nand contents - attempting serial boot . . . ## Ready for binary (kermit) download to 0x80008000 at 115200 bps...
Maybe I did something wrong when partitioning?
So far tested on:
Beagle B6 (oldest still booting beagle i have, any boards before that had serial-ic overheating problems and eventually die under warrente.) Beagle C2 & C4 Beagle xM A2
with angstrom's: MLO-beagleboard-1.44+r16 & u-boot-beagleboard-2010.03+r65
Panda A1
with mlo/u-boot from: http://gitorious.org/pandaboard
So right now i use parted to create the second partition. We could drop fdisk for the first, if we could figure out how to make parted create a partition starting at the first cylinder.
For example, I've tried this and it doesn't boot:
parted --script ${MMC} mkpart primary fat16 0 64
libparted (which I'm using indirectly via python-parted) allows you to specify the geometry of a partition in sectors, but it has an awful and undocumented API, so I couldn't get it to make a partition that my xM can boot. I guess we'll have to live with [s]fdisk for some time still, but I'll let you know if I manage to replace them with libparted/parted.
Cheers,