0c67e9cfcee25e4641022cd62eac4ce88d6b9297
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / boot / mxs-bootlets / barebox_ivt.bd
1 // STMP378x ROM command script to load and run U-Boot
2
3 sources {
4         power_prep="./power_prep/power_prep";
5         sdram_prep="./boot_prep/boot_prep";
6         barebox="./barebox";
7 }
8
9 section (0) {
10
11         //----------------------------------------------------------
12         // Power Supply initialization
13         //----------------------------------------------------------
14
15         load power_prep;
16         load ivt (entry = power_prep:_start) > 0x8000;
17         hab call 0x8000;
18
19         //----------------------------------------------------------
20         // SDRAM initialization
21         //----------------------------------------------------------
22
23         load sdram_prep;
24         load ivt (entry = sdram_prep:_start) > 0x8000;
25         hab call 0x8000;
26         //----------------------------------------------------------
27         //  Load and call u_boot - ELF ARM image
28         //----------------------------------------------------------
29
30         load barebox;
31         load ivt (entry = barebox:start) > 0x8000;
32         hab call 0x8000;
33
34 }