Ying Zhang | 9ff7026 | 2013-08-16 15:16:11 +0800 | [diff] [blame] | 1 | ---------------------------------------- |
| 2 | Booting from On-Chip ROM (eSDHC or eSPI) |
| 3 | ---------------------------------------- |
| 4 | |
| 5 | boot_format is a tool to write SD bootable images to a filesystem and build |
| 6 | SD/SPI images to a binary file for writing later. |
| 7 | |
| 8 | When booting from an SD card/MMC, boot_format puts the configuration file and |
| 9 | the RAM-based U-Boot image on the card. |
| 10 | When booting from an EEPROM, boot_format generates a binary image that is used |
| 11 | to boot from this EEPROM. |
| 12 | |
| 13 | Where to get boot_format: |
| 14 | ======================== |
| 15 | |
| 16 | you can browse it online at: |
Fabio Estevam | ba23e76 | 2023-01-12 22:04:46 -0300 | [diff] [blame] | 17 | https://github.com/nxp-qoriq-yocto-sdk/boot-format |
Ying Zhang | 9ff7026 | 2013-08-16 15:16:11 +0800 | [diff] [blame] | 18 | |
| 19 | Building |
| 20 | ======== |
| 21 | |
| 22 | Run the following to build this project |
| 23 | |
| 24 | $ make |
| 25 | |
| 26 | Execution |
| 27 | ========= |
| 28 | |
| 29 | boot_format runs under a regular Linux machine and requires a super user mode |
| 30 | to run. Execute boot_format as follows. |
| 31 | |
| 32 | For building SD images by writing directly to a file system on SD media: |
| 33 | |
| 34 | $ boot_format $config u-boot.bin -sd $device |
| 35 | |
| 36 | Where $config is the included config.dat file for your platform and $device |
| 37 | is the target block device for the SD media on your computer. |
| 38 | |
| 39 | For build binary images directly a local file: |
| 40 | |
| 41 | $ boot_format $config u-boot.bin -spi $file |
| 42 | |
| 43 | Where $file is the target file. Also keep in mind the u-boot.bin file needs |
| 44 | to be the u-boot built for your particular platform and target media. |
| 45 | |
| 46 | Example: To generate a u-boot.bin for a P1022DS booting from SD, run the |
| 47 | following in the u-boot repository: |
| 48 | |
| 49 | $ make P1022DS_SDCARD |
| 50 | |
| 51 | Configuration Files |
| 52 | =================== |
| 53 | |
| 54 | Below are the configuration files to be used with a particular platform. Keep |
| 55 | in mind that some of these config files are tied to the platforms DDR speed. |
| 56 | Please see the SoC reference manual for more documentation. |
| 57 | |
| 58 | P1022DS config_sram_p1022ds.dat |
| 59 | P2020DS config_sram_p2020ds.dat |
Ying Zhang | 9ff7026 | 2013-08-16 15:16:11 +0800 | [diff] [blame] | 60 | P1020RDB config_ddr2_1g_p1020rdb_533M.dat |
| 61 | P1020RDB config_ddr2_1g_p1020rdb_667M.dat |
| 62 | P2020RDB config_ddr2_1g_p2020rdb_800M.dat |
| 63 | P2020RDB config_ddr2_1g_p2020rdb_667M.dat |
| 64 | P2020RDB config_ddr3_1gb_64bit_p2020rdb_pc.dat |
Ying Zhang | 9ff7026 | 2013-08-16 15:16:11 +0800 | [diff] [blame] | 65 | P1020RDB config_ddr3_1gb_p1_p2_rdb_pc_800M.dat |
| 66 | P1011RDB config_ddr3_1gb_p1_p2_rdb_pc_800M.dat |
| 67 | P1010RDB config_ddr3_1gb_p1010rdb_800M.dat |
Ying Zhang | 9ff7026 | 2013-08-16 15:16:11 +0800 | [diff] [blame] | 68 | P1021RDB config_ddr3_1gb_p1_p2_rdb_pc_800M.dat |
Ying Zhang | 9ff7026 | 2013-08-16 15:16:11 +0800 | [diff] [blame] | 69 | P1022DS config_ddr3_2gb_p1022ds.dat |
Ying Zhang | 9ff7026 | 2013-08-16 15:16:11 +0800 | [diff] [blame] | 70 | P1024RDB config_ddr3_1gb_p1_p2_rdb_pc_667M.dat |
Ying Zhang | 9ff7026 | 2013-08-16 15:16:11 +0800 | [diff] [blame] | 71 | P1025RDB config_ddr3_1gb_p1_p2_rdb_pc_667M.dat |
| 72 | P1016RDB config_ddr3_1gb_p1_p2_rdb_pc_667M.dat |
| 73 | P1020UTM config_ddr3_1gb_p1_p2_rdb_pc_800M.dat |
| 74 | P1020MBG config_ddr3_1gb_p1_p2_rdb_pc_800M.dat |
| 75 | MPC8536DS config_ddr2_512m_mpc8536ds_667M.dat |