diff options
Diffstat (limited to 'recipes-bsp/imx-bootlets/imx-bootlets/add-command-script-for-barebox.patch')
-rw-r--r-- | recipes-bsp/imx-bootlets/imx-bootlets/add-command-script-for-barebox.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes-bsp/imx-bootlets/imx-bootlets/add-command-script-for-barebox.patch b/recipes-bsp/imx-bootlets/imx-bootlets/add-command-script-for-barebox.patch new file mode 100644 index 00000000..1deca1cb --- /dev/null +++ b/recipes-bsp/imx-bootlets/imx-bootlets/add-command-script-for-barebox.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | imx-bootlets: Add command script for barebox | ||
2 | |||
3 | Upstream-Status: Inappropriate [configuration] | ||
4 | |||
5 | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> | ||
6 | |||
7 | diff --git a/barebox_ivt.bd b/barebox_ivt.bd | ||
8 | new file mode 100644 | ||
9 | index 0000000..79cbccf | ||
10 | --- /dev/null | ||
11 | +++ b/barebox_ivt.bd | ||
12 | @@ -0,0 +1,34 @@ | ||
13 | +// STMP378x ROM command script to load and run barebox | ||
14 | + | ||
15 | +sources { | ||
16 | + power_prep="imx-bootlets-power_prep-@MACHINE@"; | ||
17 | + sdram_prep="imx-bootlets-boot_prep-@MACHINE@"; | ||
18 | + barebox="barebox-@MACHINE@.bin"; | ||
19 | +} | ||
20 | + | ||
21 | +section (0) { | ||
22 | + | ||
23 | + //---------------------------------------------------------- | ||
24 | + // Power Supply initialization | ||
25 | + //---------------------------------------------------------- | ||
26 | + | ||
27 | + load power_prep; | ||
28 | + load ivt (entry = power_prep:_start) > 0x8000; | ||
29 | + hab call 0x8000; | ||
30 | + | ||
31 | + //---------------------------------------------------------- | ||
32 | + // SDRAM initialization | ||
33 | + //---------------------------------------------------------- | ||
34 | + | ||
35 | + load sdram_prep; | ||
36 | + load ivt (entry = sdram_prep:_start) > 0x8000; | ||
37 | + hab call 0x8000; | ||
38 | + //---------------------------------------------------------- | ||
39 | + // Load and call barebox - ELF ARM image | ||
40 | + //---------------------------------------------------------- | ||
41 | + | ||
42 | + load barebox; | ||
43 | + load ivt (entry = barebox:start) > 0x8000; | ||
44 | + hab call 0x8000; | ||
45 | + | ||
46 | +} | ||