Hello Yiping,
1) after # fdisk /dev/sdb and #mkfs.vfat /dev/sdb1
freescale@freescale-sdk:~$ sudo fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c5c0c
Device Boot Start End Blocks Id System
/dev/sda1 1 244 1951744 82 Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 244 5222 39989248 83 Linux
Disk /dev/sdb: 1023 MB, 1023934464 bytes
32 heads, 63 sectors/track, 992 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 2 1984+ 83 Linux
/dev/sdb2 3 992 997920 83 Linux
2) The boot_format aiso operation is successful!
freescale@freescale-sdk:~$ sudo /home/freescale/SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tmp/sysroots/i686-linux/usr/bin/boot_format /home/freescale/SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tmp/sysroots/i686-linux/usr/share/config_ddr3_1gb_64bit_p2020rdb_pc.dat u-boot-sd-P2020RDB-PC_SDCARD-git-r17.bin -sd /dev/sdb
It is a little endian machine.
Read MBR from SDCard:
0x0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0040: 42 4f 4f 54 00 00 00 00 00 08 00 00 00 00 00 00
0x0050: 00 0f c0 00 00 00 00 00 11 00 00 00 00 00 00 00
0x0060: 11 07 f0 00 00 00 00 00 00 00 00 16 00 00 00 00
0x0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0080: ff 70 21 10 47 00 00 08 ff 70 20 00 00 00 00 3f
0x0090: ff 70 20 80 80 01 42 02 ff 70 21 00 00 03 00 00
0x00a0: ff 70 21 04 00 11 01 04 ff 70 21 08 6f 6b 88 46
0x00b0: ff 70 21 0c 0f a8 c8 cc ff 70 21 14 24 40 10 40
0x00c0: ff 70 21 18 00 44 14 21 ff 70 21 1c 00 00 00 00
0x00d0: ff 70 21 24 0c 30 01 00 ff 70 21 28 de ad be ef
0x00e0: ff 70 21 30 03 00 00 00 ff 70 21 60 00 22 00 01
0x00f0: ff 70 21 64 02 40 14 00 ff 70 21 70 89 08 06 00
0x0100: ff 70 21 74 86 75 f6 08 ff 70 21 48 00 00 00 00
0x0110: ff 70 21 10 c7 00 00 08 ff 70 0d 68 00 00 00 00
0x0120: ff 70 0d 70 80 f0 00 1d ef ef ef ef 02 00 00 00
0x0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
0x01c0: 01 00 83 1f 3f 01 3f 00 00 00 81 0f 00 00 00 00
0x01d0: 01 02 83 1f ff df c0 0f 00 00 40 74 1e 00 00 00
0x01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
================== MBR ==================
boot_ind = 0x0
start_head = 0x1
start_cylesec = 0x1
part_type = 0x83
end_head = 0x1f
end_cylsec = 0x13f
rel_sectors = 0x3f
total_sectors = 0xf81
=========================================
It is a valid MBR
Read DBR from SDCard:
0x0000: eb 3c 90 6d 6b 64 6f 73 66 73 00 00 02 04 01 00
0x0010: 02 00 02 80 0f f8 03 00 3f 00 20 00 00 00 00 00
0x0020: 00 00 00 00 00 00 29 90 87 ce 66 20 20 20 20 20
0x0030: 20 20 20 20 20 20 46 41 54 31 32 20 20 20 0e 1f
0x0040: be 5b 7c ac 22 c0 74 0b 56 b4 0e bb 07 00 cd 10
0x0050: 5e eb f0 32 e4 cd 16 cd 19 eb fe 54 68 69 73 20
0x0060: 69 73 20 6e 6f 74 20 61 20 62 6f 6f 74 61 62 6c
0x0070: 65 20 64 69 73 6b 2e 20 20 50 6c 65 61 73 65 20
0x0080: 69 6e 73 65 72 74 20 61 20 62 6f 6f 74 61 62 6c
0x0090: 65 20 66 6c 6f 70 70 79 20 61 6e 64 0d 0a 70 72
0x00a0: 65 73 73 20 61 6e 79 20 6b 65 79 20 74 6f 20 74
0x00b0: 72 79 20 61 67 61 69 6e 20 2e 2e 2e 20 0d 0a 00
0x00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
================== DBR ==================
jmp_code[0] = 0xeb
sector_size = 0x200
root_entries = 0x200
small_sector = 0xf80
sectors_p_fat = 0x3
=========================================
Writing image to SDCard...OK.
Writing config words to MBR's buffer first...OK.
Writing MBR to SDCard...
================== MBR ==================
boot_ind = 0x0
start_head = 0x1
start_cylesec = 0x1
part_type = 0x83
end_head = 0x1f
end_cylsec = 0x13f
rel_sectors = 0x3f
total_sectors = 0xf81
=========================================
0x0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0040: 42 4f 4f 54 00 00 00 00 00 00 00 00 00 00 00 00
0x0050: 00 0f c0 00 00 00 00 00 11 00 00 00 00 00 00 00
0x0060: 11 07 f0 00 00 00 00 00 00 00 00 16 00 00 00 00
0x0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0080: ff 70 21 10 47 00 00 08 ff 70 20 00 00 00 00 3f
0x0090: ff 70 20 80 80 01 42 02 ff 70 21 00 00 03 00 00
0x00a0: ff 70 21 04 00 11 01 04 ff 70 21 08 6f 6b 88 46
0x00b0: ff 70 21 0c 0f a8 c8 cc ff 70 21 14 24 40 10 40
0x00c0: ff 70 21 18 00 44 14 21 ff 70 21 1c 00 00 00 00
0x00d0: ff 70 21 24 0c 30 01 00 ff 70 21 28 de ad be ef
0x00e0: ff 70 21 30 03 00 00 00 ff 70 21 60 00 22 00 01
0x00f0: ff 70 21 64 02 40 14 00 ff 70 21 70 89 08 06 00
0x0100: ff 70 21 74 86 75 f6 08 ff 70 21 48 00 00 00 00
0x0110: ff 70 21 10 c7 00 00 08 ff 70 0d 68 00 00 00 00
0x0120: ff 70 0d 70 80 f0 00 1d ef ef ef ef 02 00 00 00
0x0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
0x01c0: 01 00 83 1f 3f 01 3f 00 00 00 81 0f 00 00 00 00
0x01d0: 01 02 83 1f ff df c0 0f 00 00 40 74 1e 00 00 00
0x01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
OK.
Writing DBR to SDCard...
================== DBR ==================
jmp_code[0] = 0xeb
sector_size = 0x200
root_entries = 0x200
small_sector = 0xf80
sectors_p_fat = 0x3
=========================================
0x0000: eb 3c 90 6d 6b 64 6f 73 66 73 00 00 02 04 01 00
0x0010: 02 00 02 80 0f f8 03 00 3f 00 20 00 00 00 00 00
0x0020: 00 00 00 00 00 00 29 90 87 ce 66 20 20 20 20 20
0x0030: 20 20 20 20 20 20 46 41 54 31 32 20 20 20 0e 1f
0x0040: be 5b 7c ac 22 c0 74 0b 56 b4 0e bb 07 00 cd 10
0x0050: 5e eb f0 32 e4 cd 16 cd 19 eb fe 54 68 69 73 20
0x0060: 69 73 20 6e 6f 74 20 61 20 62 6f 6f 74 61 62 6c
0x0070: 65 20 64 69 73 6b 2e 20 20 50 6c 65 61 73 65 20
0x0080: 69 6e 73 65 72 74 20 61 20 62 6f 6f 74 61 62 6c
0x0090: 65 20 66 6c 6f 70 70 79 20 61 6e 64 0d 0a 70 72
0x00a0: 65 73 73 20 61 6e 79 20 6b 65 79 20 74 6f 20 74
0x00b0: 72 79 20 61 67 61 69 6e 20 2e 2e 2e 20 0d 0a 00
0x00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
OK.
Congratulations! It is done successfully.
The boot_format tool seems to report a successful write to the SD card, after which I unmount from my Linux machine. I then ensure that the P2020RDB attempts to pull u-boot from the SD card , plug the SD card into my P2020RDB, and power up. Based on all the documents I've read this should be enough, but the only response I receive from the P2020RDB is asleep-led light. The serial console I have connected to the P2020RDB via UART0 does not produce any output that I could use to help diagnose the problem.
My question to the community is: Is the board completely bricked? Or is there something I'm doing wrong in the SD card formatting.
Pertinent configuration details:
Workstation: Ubuntu 14.04
QorIQ SDK: 1.2
SD Card: 1GB SDHC
Many thanks for your assistance.