under the ubuntu : how to make a bootable SD card with u-boot on the P2020RDB ?
Hello Wei Xia,
For Non-PBL platforms, you need to use boot-format application to write u-boot to SD card.
Please refer to the document System Boot from SD/MMC Card with SDK 1.6 images created by me.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Yiping,
Below is my according to document the operation results,but without success.
Would you please look at where the improper operation.
Thank you very much!
freescale@freescale-sdk:~$ cd SDK
freescale@freescale-sdk:~/SDK$ ls
QorIQ-SDK-V1.2-20120614-yocto Target_Images
freescale@freescale-sdk:~/SDK$ cd Target_Images/
freescale@freescale-sdk:~/SDK/Target_Images$ ls
E500V2_Images
freescale@freescale-sdk:~/SDK/Target_Images$ cd E500V2_Images/
freescale@freescale-sdk:~/SDK/Target_Images/E500V2_Images$ ls
flash_images MPC8544DS MPC8572DS P1020MBG P1020UTM P1022DS P1024RDB P2020RDB
MPC8536DS MPC8548CDS P1010RDB P1020RDB P1021RDB P1023RDS P1025RDB QorIQ_SDK_V1.2_E500V2_20120614_ROOTFS_Image.tar.gz
freescale@freescale-sdk:~/SDK/Target_Images/E500V2_Images$ cd P2020RDB/
freescale@freescale-sdk:~/SDK/Target_Images/E500V2_Images/P2020RDB$ ls
boot u-boot-P2020RDB-PC-git-r17.bin
config_scram.dat u-boot-sd-P2020RDB-PC_36BIT_SDCARD-git-r17.bin
fsl-image-core-p2020rdb-20120615125422.rootfs.ext2.gz u-boot-sd-P2020RDB-PC_SDCARD-git-r17.bin
fsl-image-core-p2020rdb-20120615125422.rootfs.ext2.gz.u-boot u-boot-spi-P2020RDB-PC_36BIT_SPIFLASH-git-r17.bin
u-boot-nand-P2020RDB-PC_36BIT_NAND-git-r17.bin u-boot-spi-P2020RDB-PC_SPIFLASH-git-r17.bin
u-boot-nand-P2020RDB-PC_NAND-git-r17.bin uImage-git-r2-p2020rdb-20120615053948.bin
u-boot-P2020RDB-PC_36BIT-git-r17.bin uImage-git-r2-p2020rdb-pc_32b-20120615053948.dtb
freescale@freescale-sdk:~/SDK/Target_Images/E500V2_Images/P2020RDB$ sudo /home/freescale/SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tmp/sysroots/i686-linux/usr/bin/boot_format \config_scram.dat u-boot-sd-P2020RDB-PC_SDCARD-git-r17.bin -sd/dev/sdb1
Usage: /home/freescale/SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tmp/sysroots/i686-linux/usr/bin/boot_format config_file image -sd dev | -spi spiimage
config_file : includes boot signature and config words
image : the U-Boot image for booting from eSDHC/eSPI
dev : SDCard's device node(e.g. /dev/sdb, /dev/mmcblk0)
spiimage : boot image for SPI mode
out_config : modified config file for SD mode
freescale@freescale-sdk:~/SDK/Target_Images/E500V2_Images/P2020RDB$
freescale@freescale-sdk:~/SDK/Target_Images/E500V2_Images/P2020RDB$
Hello Wei xia,
This document is for SDK 1.6, for SDK 1.2 the boot format configuration file is different, it should be config_ddr3_1gb_64bit_p2020rdb_pc.dat according to README file in boot_format source.
Please use ~/SDK/Target_Images/E500V2_Images/P2020RDB$ /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/share/boot_format/config_ddr3_1gb_64bit_p2020rdb_pc.dat u-boot-sd-P2020RDB-PC_SDCARD-git-r17.bin -sd /dev/sdb
Please note -sd should be specified a device name not a partition name.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Yiping,
Problems still !
freescale@freescale-sdk:~/SDK/Target_Images/E500V2_Images/P2020RDB$ /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/boot_format/config_ddr3_1gb_64bit_p2020rdb_pc.dat u-boot-sd-P2020RDB-PC_SDCARD-git-r17.bin -sd/dev/sdb
Usage: /home/freescale/SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tmp/sysroots/i686-linux/usr/bin/boot_format config_file image -sd dev | -spi spiimage
config_file : includes boot signature and config words
image : the U-Boot image for booting from eSDHC/eSPI
dev : SDCard's device node(e.g. /dev/sdb, /dev/mmcblk0)
spiimage : boot image for SPI mode
out_config : modified config file for SD mode
freescale@freescale-sdk:~/SDK/Target_Images/E500V2_Images/P2020RDB$ /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/boot_format/config_ddr3_1gb_64bit_p2020rdb_pc.dat u-boot-sd-P2020RDB-PC_SDCARD-git-r17.bin -sd/dev/sdb
Usage: /home/freescale/SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tmp/sysroots/i686-linux/usr/bin/boot_format config_file image -sd dev | -spi spiimage
config_file : includes boot signature and config words
image : the U-Boot image for booting from eSDHC/eSPI
dev : SDCard's device node(e.g. /dev/sdb, /dev/mmcblk0)
spiimage : boot image for SPI mode
out_config : modified config file for SD mode
freescale@freescale-sdk:~/SDK/Target_Images/E500V2_Images/P2020RDB$ 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/boot_format/config_ddr3_1gb_64bit_p2020rdb_pc.dat u-boot-sd-P2020RDB-PC_SDCARD-git-r17.bin -sd/dev/sdb
Usage: /home/freescale/SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tmp/sysroots/i686-linux/usr/bin/boot_format config_file image -sd dev | -spi spiimage
config_file : includes boot signature and config words
image : the U-Boot image for booting from eSDHC/eSPI
dev : SDCard's device node(e.g. /dev/sdb, /dev/mmcblk0)
spiimage : boot image for SPI mode
out_config : modified config file for SD mode
freescale@freescale-sdk:~/SDK/Target_Images/E500V2_Images/P2020RDB$
Hello Wei Xia,
Please note there is a space between "-sd" and "/dev/sdb", you omitted it in your command line.
In addition, I don't have SDK 1.2 source code, please check whether "/home/freescale/SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tmp/sysroots/i686-linux/usr/share/boot_format/config_ddr3_1gb_64bit_p2020rdb_pc.dat" exist.
If it doesn't exist , please use the following method to get the config date file information.
Please refer to README in build_p2020rdb_release/tmp/work/ppce500v2-fsl-linux-gnuspe/boot-format/git-r0/git folder to get configuration file name for P2020RDB-PC.
Please note there should be no "." before "/home/freescale/SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tmp/sysroots/i686-linux/usr/share/boot_format/config_ddr3_1gb_64bit_p2020rdb_pc.dat" in your command line.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Yiping Wang,
Here are the results. What is the mattert?
freescale@freescale-sdk:~/SDK/Target_Images/E500V2_Images/P2020RDB$ 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/boot_format/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: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 03
0x01c0: 39 00 0b 1f ff df f5 00 00 00 0b 83 1e 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
================== MBR ==================
boot_ind = 0x0
start_head = 0x3
start_cylesec = 0x39
part_type = 0xb
end_head = 0x1f
end_cylsec = 0xdfff
rel_sectors = 0xf5
total_sectors = 0x1e830b
=========================================
It is a valid MBR
Read DBR from SDCard:
0x0000: eb 58 90 4d 53 44 4f 53 35 2e 30 00 02 08 ce 10
0x0010: 02 00 00 00 00 f8 00 00 3f 00 ff 00 f5 00 00 00
0x0020: 0b 83 1e 00 99 07 00 00 00 00 00 00 02 00 00 00
0x0030: 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0040: 80 00 29 36 9b 2d 90 4e 4f 20 4e 41 4d 45 20 20
0x0050: 20 20 46 41 54 33 32 20 20 20 33 c9 8e d1 bc f4
0x0060: 7b 8e c1 8e d9 bd 00 7c 88 4e 02 8a 56 40 b4 41
0x0070: bb aa 55 cd 13 72 10 81 fb 55 aa 75 0a f6 c1 01
0x0080: 74 05 fe 46 02 eb 2d 8a 56 40 b4 08 cd 13 73 05
0x0090: b9 ff ff 8a f1 66 0f b6 c6 40 66 0f b6 d1 80 e2
0x00a0: 3f f7 e2 86 cd c0 ed 06 41 66 0f b7 c9 66 f7 e1
0x00b0: 66 89 46 f8 83 7e 16 00 75 38 83 7e 2a 00 77 32
0x00c0: 66 8b 46 1c 66 83 c0 0c bb 00 80 b9 01 00 e8 2b
0x00d0: 00 e9 2c 03 a0 fa 7d b4 7d 8b f0 ac 84 c0 74 17
0x00e0: 3c ff 74 09 b4 0e bb 07 00 cd 10 eb ee a0 fb 7d
0x00f0: eb e5 a0 f9 7d eb e0 98 cd 16 cd 19 66 60 80 7e
0x0100: 02 00 0f 84 20 00 66 6a 00 66 50 06 53 66 68 10
0x0110: 00 01 00 b4 42 8a 56 40 8b f4 cd 13 66 58 66 58
0x0120: 66 58 66 58 eb 33 66 3b 46 f8 72 03 f9 eb 2a 66
0x0130: 33 d2 66 0f b7 4e 18 66 f7 f1 fe c2 8a ca 66 8b
0x0140: d0 66 c1 ea 10 f7 76 1a 86 d6 8a 56 40 8a e8 c0
0x0150: e4 06 0a cc b8 01 02 cd 13 66 61 0f 82 75 ff 81
0x0160: c3 00 02 66 40 49 75 94 c3 42 4f 4f 54 4d 47 52
0x0170: 20 20 20 20 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 0d 0a 52 65
0x01b0: 6d 6f 76 65 20 64 69 73 6b 73 20 6f 72 20 6f 74
0x01c0: 68 65 72 20 6d 65 64 69 61 2e ff 0d 0a 44 69 73
0x01d0: 6b 20 65 72 72 6f 72 ff 0d 0a 50 72 65 73 73 20
0x01e0: 61 6e 79 20 6b 65 79 20 74 6f 20 72 65 73 74 61
0x01f0: 72 74 0d 0a 00 00 00 00 00 ac cb d8 00 00 55 aa
================== DBR ==================
jmp_code[0] = 0xeb
sector_size = 0x200
root_entries = 0x0
small_sector = 0x0
sectors_p_fat = 0x0
=========================================
Hello Wei Xia,
The application boot_format should print this kind of information.
In the log, have you got the following information.
"Congratulations! Completed successfully."
As I mentioned previously, please make sure the configuration data file is the same as address in README file.
If your problem remains, please provide the whole boot-format log to me.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Yiping Wang,
The boot_format is ok. but the SD card is empty. nothing in the SD card.
freescale@freescale-sdk:~/SDK/Target_Images/E500V2_Images/P2020RDB$ 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 00 00 00 00 00 00 00
0x0050: 3c ca f8 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 03
0x01c0: 39 00 0b 1f ff df f5 00 00 00 0b 83 1e 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
================== MBR ==================
boot_ind = 0x0
start_head = 0x3
start_cylesec = 0x39
part_type = 0xb
end_head = 0x1f
end_cylsec = 0xdfff
rel_sectors = 0xf5
total_sectors = 0x1e830b
=========================================
It is a valid MBR
Read DBR from SDCard:
0x0000: eb 58 90 4d 53 44 4f 53 35 2e 30 00 02 08 26 00
0x0010: 02 00 00 00 00 f8 00 00 3f 00 ff 00 f5 00 00 00
0x0020: 0b 83 1e 00 9d 07 00 00 00 00 00 00 02 00 00 00
0x0030: 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0040: 00 00 29 6d ef bd c4 4e 4f 20 4e 41 4d 45 20 20
0x0050: 20 20 46 41 54 33 32 20 20 20 33 c9 8e d1 bc f4
0x0060: 7b 8e c1 8e d9 bd 00 7c 88 4e 02 8a 56 40 b4 08
0x0070: cd 13 73 05 b9 ff ff 8a f1 66 0f b6 c6 40 66 0f
0x0080: b6 d1 80 e2 3f f7 e2 86 cd c0 ed 06 41 66 0f b7
0x0090: c9 66 f7 e1 66 89 46 f8 83 7e 16 00 75 38 83 7e
0x00a0: 2a 00 77 32 66 8b 46 1c 66 83 c0 0c bb 00 80 b9
0x00b0: 01 00 e8 2b 00 e9 48 03 a0 fa 7d b4 7d 8b f0 ac
0x00c0: 84 c0 74 17 3c ff 74 09 b4 0e bb 07 00 cd 10 eb
0x00d0: ee a0 fb 7d eb e5 a0 f9 7d eb e0 98 cd 16 cd 19
0x00e0: 66 60 66 3b 46 f8 0f 82 4a 00 66 6a 00 66 50 06
0x00f0: 53 66 68 10 00 01 00 80 7e 02 00 0f 85 20 00 b4
0x0100: 41 bb aa 55 8a 56 40 cd 13 0f 82 1c 00 81 fb 55
0x0110: aa 0f 85 14 00 f6 c1 01 0f 84 0d 00 fe 46 02 b4
0x0120: 42 8a 56 40 8b f4 cd 13 b0 f9 66 58 66 58 66 58
0x0130: 66 58 eb 2a 66 33 d2 66 0f b7 4e 18 66 f7 f1 fe
0x0140: c2 8a ca 66 8b d0 66 c1 ea 10 f7 76 1a 86 d6 8a
0x0150: 56 40 8a e8 c0 e4 06 0a cc b8 01 02 cd 13 66 61
0x0160: 0f 82 54 ff 81 c3 00 02 66 40 49 0f 85 71 ff c3
0x0170: 4e 54 4c 44 52 20 20 20 20 20 20 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 0d 0a 52 65
0x01b0: 6d 6f 76 65 20 64 69 73 6b 73 20 6f 72 20 6f 74
0x01c0: 68 65 72 20 6d 65 64 69 61 2e ff 0d 0a 44 69 73
0x01d0: 6b 20 65 72 72 6f 72 ff 0d 0a 50 72 65 73 73 20
0x01e0: 61 6e 79 20 6b 65 79 20 74 6f 20 72 65 73 74 61
0x01f0: 72 74 0d 0a 00 00 00 00 00 ac cb d8 00 00 55 aa
================== DBR ==================
jmp_code[0] = 0xeb
sector_size = 0x200
root_entries = 0x0
small_sector = 0x0
sectors_p_fat = 0x0
=========================================
Writing image to SDCard...OK.
Writing config words to MBR's buffer first...OK.
Writing MBR to SDCard...
================== MBR ==================
boot_ind = 0x0
start_head = 0x3
start_cylesec = 0x39
part_type = 0xb
end_head = 0x1f
end_cylsec = 0xdfff
rel_sectors = 0xf5
total_sectors = 0x1e830b
=========================================
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: 3c ca f8 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 03
0x01c0: 39 00 0b 1f ff df f5 00 00 00 0b 83 1e 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.
Writing DBR to SDCard...
================== DBR ==================
jmp_code[0] = 0xeb
sector_size = 0x200
root_entries = 0x0
small_sector = 0x0
sectors_p_fat = 0x0
=========================================
0x0000: eb 58 90 4d 53 44 4f 53 35 2e 30 00 02 08 26 00
0x0010: 02 00 00 00 00 f8 00 00 3f 00 ff 00 f5 00 00 00
0x0020: 0b 83 1e 00 9d 07 00 00 00 00 00 00 02 00 00 00
0x0030: 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0040: 00 00 29 6d ef bd c4 4e 4f 20 4e 41 4d 45 20 20
0x0050: 20 20 46 41 54 33 32 20 20 20 33 c9 8e d1 bc f4
0x0060: 7b 8e c1 8e d9 bd 00 7c 88 4e 02 8a 56 40 b4 08
0x0070: cd 13 73 05 b9 ff ff 8a f1 66 0f b6 c6 40 66 0f
0x0080: b6 d1 80 e2 3f f7 e2 86 cd c0 ed 06 41 66 0f b7
0x0090: c9 66 f7 e1 66 89 46 f8 83 7e 16 00 75 38 83 7e
0x00a0: 2a 00 77 32 66 8b 46 1c 66 83 c0 0c bb 00 80 b9
0x00b0: 01 00 e8 2b 00 e9 48 03 a0 fa 7d b4 7d 8b f0 ac
0x00c0: 84 c0 74 17 3c ff 74 09 b4 0e bb 07 00 cd 10 eb
0x00d0: ee a0 fb 7d eb e5 a0 f9 7d eb e0 98 cd 16 cd 19
0x00e0: 66 60 66 3b 46 f8 0f 82 4a 00 66 6a 00 66 50 06
0x00f0: 53 66 68 10 00 01 00 80 7e 02 00 0f 85 20 00 b4
0x0100: 41 bb aa 55 8a 56 40 cd 13 0f 82 1c 00 81 fb 55
0x0110: aa 0f 85 14 00 f6 c1 01 0f 84 0d 00 fe 46 02 b4
0x0120: 42 8a 56 40 8b f4 cd 13 b0 f9 66 58 66 58 66 58
0x0130: 66 58 eb 2a 66 33 d2 66 0f b7 4e 18 66 f7 f1 fe
0x0140: c2 8a ca 66 8b d0 66 c1 ea 10 f7 76 1a 86 d6 8a
0x0150: 56 40 8a e8 c0 e4 06 0a cc b8 01 02 cd 13 66 61
0x0160: 0f 82 54 ff 81 c3 00 02 66 40 49 0f 85 71 ff c3
0x0170: 4e 54 4c 44 52 20 20 20 20 20 20 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 0d 0a 52 65
0x01b0: 6d 6f 76 65 20 64 69 73 6b 73 20 6f 72 20 6f 74
0x01c0: 68 65 72 20 6d 65 64 69 61 2e ff 0d 0a 44 69 73
0x01d0: 6b 20 65 72 72 6f 72 ff 0d 0a 50 72 65 73 73 20
0x01e0: 61 6e 79 20 6b 65 79 20 74 6f 20 72 65 73 74 61
0x01f0: 72 74 0d 0a 00 00 00 00 00 ac cb d8 00 00 55 aa
OK.
Congratulations! It is done successfully.
Hello Wei Xia,
Before using boot-format to write u-boot to SD, it's better to format the first partition to accommodate u-boot.
# mkfs.vfat /dev/sdb1
How do you know the SD is empty? Would you please provide SD raw data of the beginning section?
Your SD device is named /dev/sdb, right? It 's difficult to guess the probable cause.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
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.
Hello Wei Xia,
About your P2020RDB board, is it P2020RDB-PC or P2020RDB-PCA? Would you please help to take a photo to help me to make confirmation if necessary?
In addition, have you changed the switch setting to SD boot? You could refer to the SDK document in the ISO.
Thanks,
Yiping
Hello Wei Xia,
Please note the boot format data file config_ddr3_1gb_64bit_p2020rdb_pc.dat is for P2020RDB-PC demo board, if you are designing new board with new DDR, you need to modify the DDR controller configuration parameters in the configuration file.
Boot format application writes the header to SD according the .dat file, after the board setup, the DDR controller will be configured according to the header in SD, then u-boot could be copied to DDR.
so you need to do:
1. Calculate DDR controller configuration parameters according to your DDR data sheet. Freescale provide QCS tool could assists you to do this.
2. Modify DDR controller parameters section in the .dat file, you could refer to P2020 reference manual for detailed information about SD header.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Yipng,
Can you send me QCS tool of the latest version of the dowload link?
Thanks!
Hello Wei Xia,
I provide another method probably you could try to use boot u-boot in SRAM instead of DDR, if you feel difficult to configure the DDR controller, you could refer to P2020DS for an example.
1. Modify include/configs/P1_P2_RDB.h as include/configs/P2020DS.h.
#ifdef CONFIG_SDCARD
#define CONFIG_SYS_RAMBOOT
#define CONFIG_SYS_EXTRA_ENV_RELOC
#define CONFIG_SYS_TEXT_BASE 0xf8f80000
#define CONFIG_RESET_VECTOR_ADDRESS 0xf8fffffc
#endif
2. Modify boot-format configure file based on config_sram_p2020ds.dat.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Yiping,
"Ensure that cfg_rom_loc[0:3] (Boot_Rom_Loc) are driven with a value of 0b0111." ——
In jump line configuration under the condition of startup for SD card,the meaning of this
sentence is to keep for a while after the local reset this value or keep this value?
Now our development board waveform output SD_CLK no clock.
Thanks!
Hello Wei Xia,
Please refer to note 16 of "Table 1. P2020 Pinout Listing" in P2020 hardware specification https://cache.freescale.com/secured/32bit/doc/data_sheet/P2020EC.pdf?__gda__=1414138473_1231b1263b3c...
If your problem remains, it's better to submit a service request with your hardware design schemes provided.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Wei Xia,
You could download standalone QCS from http://www.freescale.com/webapp/sps/download/mod_download.jsp?colCode=QCVS_4-0-1_WINDOWS-INSTALLER&l...=
Download QCS for CodeWarrior from Processor Expert Software: QorIQ Configuratio|Freescale.
Thanks,
Yiping
Hello Yiping Wang,
freescale@freescale-sdk:~$ fdisk /dev/sdb
Unable to open /dev/sdb
freescale@freescale-sdk:~$ cat /proc/partitions
major minor #blocks name
8 0 41943040 sda
8 1 1951744 sda1
8 2 39989248 sda2
8 16 999936 sdb
8 17 999813 sdb1
freescale@freescale-sdk:~$ mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.7 (24 Dec 2009)
/dev/sdb1: Permission denied
freescale@freescale-sdk:~$ sudo mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.7 (24 Dec 2009)
mkfs.vfat: /dev/sdb1 contains a mounted file system.