1*bb0dc108SYing Zhang---------------------------------------- 2*bb0dc108SYing ZhangBooting from On-Chip ROM (eSDHC or eSPI) 3*bb0dc108SYing Zhang---------------------------------------- 4*bb0dc108SYing Zhang 5*bb0dc108SYing Zhangboot_format is a tool to write SD bootable images to a filesystem and build 6*bb0dc108SYing ZhangSD/SPI images to a binary file for writing later. 7*bb0dc108SYing Zhang 8*bb0dc108SYing ZhangWhen booting from an SD card/MMC, boot_format puts the configuration file and 9*bb0dc108SYing Zhangthe RAM-based U-Boot image on the card. 10*bb0dc108SYing ZhangWhen booting from an EEPROM, boot_format generates a binary image that is used 11*bb0dc108SYing Zhangto boot from this EEPROM. 12*bb0dc108SYing Zhang 13*bb0dc108SYing ZhangWhere to get boot_format: 14*bb0dc108SYing Zhang======================== 15*bb0dc108SYing Zhang 16*bb0dc108SYing Zhangyou can browse it online at: 17*bb0dc108SYing Zhanghttp://git.freescale.com/git/cgit.cgi/ppc/sdk/boot-format.git/ 18*bb0dc108SYing Zhang 19*bb0dc108SYing ZhangBuilding 20*bb0dc108SYing Zhang======== 21*bb0dc108SYing Zhang 22*bb0dc108SYing ZhangRun the following to build this project 23*bb0dc108SYing Zhang 24*bb0dc108SYing Zhang $ make 25*bb0dc108SYing Zhang 26*bb0dc108SYing ZhangExecution 27*bb0dc108SYing Zhang========= 28*bb0dc108SYing Zhang 29*bb0dc108SYing Zhangboot_format runs under a regular Linux machine and requires a super user mode 30*bb0dc108SYing Zhangto run. Execute boot_format as follows. 31*bb0dc108SYing Zhang 32*bb0dc108SYing ZhangFor building SD images by writing directly to a file system on SD media: 33*bb0dc108SYing Zhang 34*bb0dc108SYing Zhang $ boot_format $config u-boot.bin -sd $device 35*bb0dc108SYing Zhang 36*bb0dc108SYing ZhangWhere $config is the included config.dat file for your platform and $device 37*bb0dc108SYing Zhangis the target block device for the SD media on your computer. 38*bb0dc108SYing Zhang 39*bb0dc108SYing ZhangFor build binary images directly a local file: 40*bb0dc108SYing Zhang 41*bb0dc108SYing Zhang $ boot_format $config u-boot.bin -spi $file 42*bb0dc108SYing Zhang 43*bb0dc108SYing ZhangWhere $file is the target file. Also keep in mind the u-boot.bin file needs 44*bb0dc108SYing Zhangto be the u-boot built for your particular platform and target media. 45*bb0dc108SYing Zhang 46*bb0dc108SYing ZhangExample: To generate a u-boot.bin for a P1022DS booting from SD, run the 47*bb0dc108SYing Zhangfollowing in the u-boot repository: 48*bb0dc108SYing Zhang 49*bb0dc108SYing Zhang $ make P1022DS_SDCARD 50*bb0dc108SYing Zhang 51*bb0dc108SYing ZhangConfiguration Files 52*bb0dc108SYing Zhang=================== 53*bb0dc108SYing Zhang 54*bb0dc108SYing ZhangBelow are the configuration files to be used with a particular platform. Keep 55*bb0dc108SYing Zhangin mind that some of these config files are tied to the platforms DDR speed. 56*bb0dc108SYing ZhangPlease see the SoC reference manual for more documentation. 57*bb0dc108SYing Zhang 58*bb0dc108SYing ZhangP1022DS config_sram_p1022ds.dat 59*bb0dc108SYing ZhangP2020DS config_sram_p2020ds.dat 60*bb0dc108SYing ZhangP1020RDB config_ddr2_1g_p1020rdb_533M.dat 61*bb0dc108SYing ZhangP1020RDB config_ddr2_1g_p1020rdb_667M.dat 62*bb0dc108SYing ZhangP2020RDB config_ddr2_1g_p2020rdb_800M.dat 63*bb0dc108SYing ZhangP2020RDB config_ddr2_1g_p2020rdb_667M.dat 64*bb0dc108SYing ZhangP2020RDB config_ddr3_1gb_64bit_p2020rdb_pc.dat 65*bb0dc108SYing ZhangP1020RDB config_ddr3_1gb_p1_p2_rdb_pc_800M.dat 66*bb0dc108SYing ZhangP1011RDB config_ddr3_1gb_p1_p2_rdb_pc_800M.dat 67*bb0dc108SYing ZhangP1010RDB config_ddr3_1gb_p1010rdb_800M.dat 68*bb0dc108SYing ZhangP1021RDB config_ddr3_1gb_p1_p2_rdb_pc_800M.dat 69*bb0dc108SYing ZhangP1022DS config_ddr3_2gb_p1022ds.dat 70*bb0dc108SYing ZhangP1024RDB config_ddr3_1gb_p1_p2_rdb_pc_667M.dat 71*bb0dc108SYing ZhangP1025RDB config_ddr3_1gb_p1_p2_rdb_pc_667M.dat 72*bb0dc108SYing ZhangP1016RDB config_ddr3_1gb_p1_p2_rdb_pc_667M.dat 73*bb0dc108SYing ZhangP1020UTM config_ddr3_1gb_p1_p2_rdb_pc_800M.dat 74*bb0dc108SYing ZhangP1020MBG config_ddr3_1gb_p1_p2_rdb_pc_800M.dat 75*bb0dc108SYing ZhangMPC8536DS config_ddr2_512m_mpc8536ds_667M.dat 76