xref: /OK3568_Linux_fs/u-boot/doc/README.mpc85xx-sd-spi-boot (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun----------------------------------------
2*4882a593SmuzhiyunBooting from On-Chip ROM (eSDHC or eSPI)
3*4882a593Smuzhiyun----------------------------------------
4*4882a593Smuzhiyun
5*4882a593Smuzhiyunboot_format is a tool to write SD bootable images to a filesystem and build
6*4882a593SmuzhiyunSD/SPI images to a binary file for writing later.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunWhen booting from an SD card/MMC, boot_format puts the configuration file and
9*4882a593Smuzhiyunthe RAM-based U-Boot image on the card.
10*4882a593SmuzhiyunWhen booting from an EEPROM, boot_format generates a binary image that is used
11*4882a593Smuzhiyunto boot from this EEPROM.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunWhere to get boot_format:
14*4882a593Smuzhiyun========================
15*4882a593Smuzhiyun
16*4882a593Smuzhiyunyou can browse it online at:
17*4882a593Smuzhiyunhttp://git.freescale.com/git/cgit.cgi/ppc/sdk/boot-format.git/
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunBuilding
20*4882a593Smuzhiyun========
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunRun the following to build this project
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun	$ make
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunExecution
27*4882a593Smuzhiyun=========
28*4882a593Smuzhiyun
29*4882a593Smuzhiyunboot_format runs under a regular Linux machine and requires a super user mode
30*4882a593Smuzhiyunto run. Execute boot_format as follows.
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunFor building SD images by writing directly to a file system on SD media:
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun	$ boot_format $config u-boot.bin -sd $device
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunWhere $config is the included config.dat file for your platform and $device
37*4882a593Smuzhiyunis the target block device for the SD media on your computer.
38*4882a593Smuzhiyun
39*4882a593SmuzhiyunFor build binary images directly a local file:
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun	$ boot_format $config u-boot.bin -spi $file
42*4882a593Smuzhiyun
43*4882a593SmuzhiyunWhere $file is the target file. Also keep in mind the u-boot.bin file needs
44*4882a593Smuzhiyunto be the u-boot built for your particular platform and target media.
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunExample: To generate a u-boot.bin for a P1022DS booting from SD, run the
47*4882a593Smuzhiyunfollowing in the u-boot repository:
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun	$ make P1022DS_SDCARD
50*4882a593Smuzhiyun
51*4882a593SmuzhiyunConfiguration Files
52*4882a593Smuzhiyun===================
53*4882a593Smuzhiyun
54*4882a593SmuzhiyunBelow are the configuration files to be used with a particular platform. Keep
55*4882a593Smuzhiyunin mind that some of these config files are tied to the platforms DDR speed.
56*4882a593SmuzhiyunPlease see the SoC reference manual for more documentation.
57*4882a593Smuzhiyun
58*4882a593SmuzhiyunP1022DS		config_sram_p1022ds.dat
59*4882a593SmuzhiyunP2020DS		config_sram_p2020ds.dat
60*4882a593SmuzhiyunP1020RDB	config_ddr2_1g_p1020rdb_533M.dat
61*4882a593SmuzhiyunP1020RDB	config_ddr2_1g_p1020rdb_667M.dat
62*4882a593SmuzhiyunP2020RDB	config_ddr2_1g_p2020rdb_800M.dat
63*4882a593SmuzhiyunP2020RDB	config_ddr2_1g_p2020rdb_667M.dat
64*4882a593SmuzhiyunP2020RDB	config_ddr3_1gb_64bit_p2020rdb_pc.dat
65*4882a593SmuzhiyunP1020RDB	config_ddr3_1gb_p1_p2_rdb_pc_800M.dat
66*4882a593SmuzhiyunP1011RDB	config_ddr3_1gb_p1_p2_rdb_pc_800M.dat
67*4882a593SmuzhiyunP1010RDB	config_ddr3_1gb_p1010rdb_800M.dat
68*4882a593SmuzhiyunP1021RDB	config_ddr3_1gb_p1_p2_rdb_pc_800M.dat
69*4882a593SmuzhiyunP1022DS		config_ddr3_2gb_p1022ds.dat
70*4882a593SmuzhiyunP1024RDB	config_ddr3_1gb_p1_p2_rdb_pc_667M.dat
71*4882a593SmuzhiyunP1025RDB	config_ddr3_1gb_p1_p2_rdb_pc_667M.dat
72*4882a593SmuzhiyunP1016RDB	config_ddr3_1gb_p1_p2_rdb_pc_667M.dat
73*4882a593SmuzhiyunP1020UTM	config_ddr3_1gb_p1_p2_rdb_pc_800M.dat
74*4882a593SmuzhiyunP1020MBG	config_ddr3_1gb_p1_p2_rdb_pc_800M.dat
75*4882a593SmuzhiyunMPC8536DS	config_ddr2_512m_mpc8536ds_667M.dat
76