aboutsummaryrefslogtreecommitdiff
path: root/boot/mxs-bootlets/barebox_ivt.bd
diff options
context:
space:
mode:
authorGravatar Maxime Ripard <maxime.ripard@free-electrons.com>2012-07-18 18:02:43 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-07-21 00:34:57 +0200
commit2a636d15217cd326b4546e7017538c7a9e9d399c (patch)
tree9d3b0b6a493caeb62ab5f2e23c0b56635bee6afc /boot/mxs-bootlets/barebox_ivt.bd
parentcc160a941ee2de5aa9bd4624dd56fd6b38bb29c9 (diff)
downloadbuildroot-2a636d15217cd326b4546e7017538c7a9e9d399c.tar.gz
buildroot-2a636d15217cd326b4546e7017538c7a9e9d399c.tar.bz2
Add MXS bootlets package
MXS platforms (imx23 and imx28) are relying on bootlets as their first stage bootloaders, that can then either start a regular second stage bootloader or directly a Linux kernel. However, the Makefile allows only to build u-boot and linux images at the same time, which is not very convenient as we will more likely use only one of them, so we need to duplicate a bit what is already done so that we are able to choose what we want to generate. thomas.petazzoni@free-electrons.com: * Remove incorrect dependency on BR2_PACKAGE_ELFTOSB * Each board configuration option is for one board, not multiple boards, so use singular. * The i.MX28 support is for i.MX28 EVK only, reflect that in the option prompt and the option name. * Use 'generic-package' instead of GENTARGETS Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'boot/mxs-bootlets/barebox_ivt.bd')
-rw-r--r--boot/mxs-bootlets/barebox_ivt.bd34
1 files changed, 34 insertions, 0 deletions
diff --git a/boot/mxs-bootlets/barebox_ivt.bd b/boot/mxs-bootlets/barebox_ivt.bd
new file mode 100644
index 0000000000..e02ddd68f6
--- /dev/null
+++ b/boot/mxs-bootlets/barebox_ivt.bd
@@ -0,0 +1,34 @@
+// STMP378x ROM command script to load and run U-Boot
+
+sources {
+ power_prep="./power_prep/power_prep";
+ sdram_prep="./boot_prep/boot_prep";
+ barebox="./barebox";
+}
+
+section (0) {
+
+ //----------------------------------------------------------
+ // Power Supply initialization
+ //----------------------------------------------------------
+
+ load power_prep;
+ load ivt (entry = power_prep:_start) > 0x8000;
+ hab call 0x8000;
+
+ //----------------------------------------------------------
+ // SDRAM initialization
+ //----------------------------------------------------------
+
+ load sdram_prep;
+ load ivt (entry = sdram_prep:_start) > 0x8000;
+ hab call 0x8000;
+ //----------------------------------------------------------
+ // Load and call u_boot - ELF ARM image
+ //----------------------------------------------------------
+
+ load barebox;
+ load ivt (entry = barebox:exception_vectors) > 0x8000;
+ hab call 0x8000;
+
+}