TI/Linux gurus,
I've created two SD Boot cards with two different types of SDs (Generic 4GB & HP 8GB) for the first time with minor glitches. Rebuilding the same SDs for the 2nd time has been a nightmare.
Command:
$ sudo ${EZSDK}/bin/mksdboot.sh --device /dev/sdX --sdk ${EZSDK}
Where
sdX = sdc
............. Start of session ...........................
************************************************************
* THIS WILL DELETE ALL THE DATA ON /dev/sdc *
* *
* WARNING! Make sure your computer does not go *
* in to idle mode while this script is *
* running. The script will complete, *
* but your SD card may be corrupted. *
* *
* Press <ENTER> to confirm.... *
************************************************************
ls: cannot access /dev/sdc?: No such file or directory
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.00287755 s, 364 MB/s
Disk /dev/sdc doesn't contain a valid partition table
Checking that no-one is using this disk right now ...
BLKRRPART: Invalid argument
OK
Disk /dev/sdc: 486 cylinders, 255 heads, 63 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sdc: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdc1 * 0+ 4 5- 40131 c W95 FAT32 (LBA)
/dev/sdc2 5 114 110 883575 83 Linux
/dev/sdc3 115 485 371 2980057+ 83 Linux
/dev/sdc4 0 - 0 0 0 Empty
Successfully wrote the new partition table
Re-reading the partition table ...
BLKRRPART: Success
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
Formating /dev/sdc1 ...
/dev/sdc1: No such file or directory
ERROR: executing mkfs.vfat -F 32 -n BOOT /dev/sdc1
-------------- End of session --------------------
The above error is similar to this issue as reported by another Linux user:
http://askubuntu.com/questions/124565/mkfs-vfat-unable-to-open-dev-sdg1-device-or-resource-busy
I had to use many disk tools (GPARTED, HDDLLF similar to fdisk) to reformat the SD card to FAT32 many tried before I could successfully rebuild the same SD Boot card.
Is there a simpler procedure?
Regards,
g
ps. I've used different SD & MMC readers