The steps that we did after inserting a blank 4GB SD card into the Linux Host are as follow:
# fdisk /dev/mmcblk0 (This command is used to divide the card into two partitions, one for fat16 file system(1GB) and another for ext4 file system(3GB))
The current partitions that are configured on the host are as follow:
Disk /dev/mmcblk0: 4026 MB, 4026531840 bytes
4 heads, 16 sectors/track, 122880 cylinders, total 7864320 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x08836c9a
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2048 2099199 1048576 e W95 FAT16 (LBA)
/dev/mmcblk0p2 2099200 7864319 2882560 83 Linux
After this partitioning the following command need to be executed I suppose:
<path>/boot_format <config_file> <image> -sd <dev>
The above command expands as follow:
# <install_path>/build_p1020rdb_release/tmp/sysroots/x86_64-linux/usr/bin/boot_format <install_path>/build_p1020rdb_release/ tmp/sysroots/x86_64-linux/share/boot_format/config_sram_p2020rdb.dat u-boot-sd-P2020RDB-PC_SDCARD.bin -sd /dev/mmcblk0
The above command seem to be copying config file and bin file to sd/mmc card.
But this command is not working.