summaryrefslogtreecommitdiff
path: root/recipes-devtools/imx-loader/imx-loader
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2018-01-17 19:18:11 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-03-23 16:50:06 +0100
commit960369345d92b189b4d1af0701da75c9b8d3767a (patch)
tree12f8521715fa8458e00c0fe1b227c90862eeef23 /recipes-devtools/imx-loader/imx-loader
parent53fdf58e0a31c94ef446fe7c9e20585dad763099 (diff)
imx-loader: move to a spl/u-boot download chain
Move from a recovery u-boot.imx to download first the SPL which immediately goes into SDP download mode again and then downloads u-boot.img. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-devtools/imx-loader/imx-loader')
-rw-r--r--recipes-devtools/imx-loader/imx-loader/imx_usb.conf6
-rw-r--r--recipes-devtools/imx-loader/imx-loader/mx6_usb_rom.conf5
-rw-r--r--recipes-devtools/imx-loader/imx-loader/mx6_usb_sdp_spl.conf5
-rw-r--r--recipes-devtools/imx-loader/imx-loader/mx6_usb_sdp_uboot.conf7
-rw-r--r--recipes-devtools/imx-loader/imx-loader/mx6ull_usb_rom.conf5
-rw-r--r--recipes-devtools/imx-loader/imx-loader/mx6ull_usb_sdp_uboot.conf7
-rw-r--r--recipes-devtools/imx-loader/imx-loader/mx7_usb_rom.conf5
-rw-r--r--recipes-devtools/imx-loader/imx-loader/mx7_usb_sdp_uboot.conf7
-rw-r--r--recipes-devtools/imx-loader/imx-loader/vybrid_usb_rom.conf16
9 files changed, 63 insertions, 0 deletions
diff --git a/recipes-devtools/imx-loader/imx-loader/imx_usb.conf b/recipes-devtools/imx-loader/imx-loader/imx_usb.conf
new file mode 100644
index 0000000..7157c7e
--- /dev/null
+++ b/recipes-devtools/imx-loader/imx-loader/imx_usb.conf
@@ -0,0 +1,6 @@
+#vid:pid, config_file
+0x15a2:0x0054, mx6_usb_rom.conf, 0x1b67:0x4fff, mx6_usb_sdp_spl.conf
+0x15a2:0x0061, mx6_usb_rom.conf, 0x1b67:0x4fff, mx6_usb_sdp_spl.conf
+0x15a2:0x0076, mx7_usb_rom.conf
+0x15a2:0x0080, mx6ull_usb_rom.conf
+0x15a2:0x006a, vybrid_usb_rom.conf \ No newline at end of file
diff --git a/recipes-devtools/imx-loader/imx-loader/mx6_usb_rom.conf b/recipes-devtools/imx-loader/imx-loader/mx6_usb_rom.conf
new file mode 100644
index 0000000..d6dd660
--- /dev/null
+++ b/recipes-devtools/imx-loader/imx-loader/mx6_usb_rom.conf
@@ -0,0 +1,5 @@
+mx6_qsb
+#hid/bulk,[old_header,]max packet size, {ram start, ram size}(repeat valid ram areas)
+hid,1024,0x910000,0x10000000,1G,0x00900000,0x40000
+#[specify file with valid IVT]
+SPL:jump header2
diff --git a/recipes-devtools/imx-loader/imx-loader/mx6_usb_sdp_spl.conf b/recipes-devtools/imx-loader/imx-loader/mx6_usb_sdp_spl.conf
new file mode 100644
index 0000000..f6a768f
--- /dev/null
+++ b/recipes-devtools/imx-loader/imx-loader/mx6_usb_sdp_spl.conf
@@ -0,0 +1,5 @@
+mx6_spl_sdp
+#hid/bulk,[old_header,]max packet size, {ram start, ram size}(repeat valid ram areas)
+#In SPL, we typically load u-boot.img which has a U-boot header...
+hid,uboot_header,1024,0x10000000,1G,0x00907000,0x31000
+u-boot.img:jump header2
diff --git a/recipes-devtools/imx-loader/imx-loader/mx6_usb_sdp_uboot.conf b/recipes-devtools/imx-loader/imx-loader/mx6_usb_sdp_uboot.conf
new file mode 100644
index 0000000..db39e48
--- /dev/null
+++ b/recipes-devtools/imx-loader/imx-loader/mx6_usb_sdp_uboot.conf
@@ -0,0 +1,7 @@
+mx6_usb_sdp_uboot
+#hid/bulk,[old_header,]max packet size, {ram start, ram size}(repeat valid ram areas)
+hid,1024,0x10000000,1G,0x00907000,0x31000
+#Load complete FIT image to $ramdisk_addr_r
+tezi.itb:load 0x12100000
+#Load script to $loadaddr and jump to it
+boot-sdp.scr:load 0x12000000,jump 0x12000000
diff --git a/recipes-devtools/imx-loader/imx-loader/mx6ull_usb_rom.conf b/recipes-devtools/imx-loader/imx-loader/mx6ull_usb_rom.conf
new file mode 100644
index 0000000..1a1829f
--- /dev/null
+++ b/recipes-devtools/imx-loader/imx-loader/mx6ull_usb_rom.conf
@@ -0,0 +1,5 @@
+mx6ull
+#hid/bulk,[old_header,]max packet size, {ram start, ram size}(repeat valid ram areas)
+hid,1024,0x910000,0x80000000,1G,0x00900000,0x20000
+#[specify file with valid IVT]
+u-boot-nand.imx:dcd,jump header2
diff --git a/recipes-devtools/imx-loader/imx-loader/mx6ull_usb_sdp_uboot.conf b/recipes-devtools/imx-loader/imx-loader/mx6ull_usb_sdp_uboot.conf
new file mode 100644
index 0000000..73ec74c
--- /dev/null
+++ b/recipes-devtools/imx-loader/imx-loader/mx6ull_usb_sdp_uboot.conf
@@ -0,0 +1,7 @@
+mx6ull_usb_sdp_uboot
+#hid/bulk,[old_header,]max packet size,dcd_addr,{ram start, ram size}(repeat valid ram areas)
+hid,1024,0x910000,0x80000000,1G,0x00900000,0x20000
+#Load complete FIT image to $ramdisk_addr_r
+tezi.itb:load 0x82100000
+#Load script to $loadaddr and jump to it
+boot-sdp.scr:load 0x82000000,jump 0x82000000
diff --git a/recipes-devtools/imx-loader/imx-loader/mx7_usb_rom.conf b/recipes-devtools/imx-loader/imx-loader/mx7_usb_rom.conf
new file mode 100644
index 0000000..9e42215
--- /dev/null
+++ b/recipes-devtools/imx-loader/imx-loader/mx7_usb_rom.conf
@@ -0,0 +1,5 @@
+mx7
+#hid/bulk,[old_header,]max packet size, {ram start, ram size}(repeat valid ram areas)
+hid,1024,0x910000,0x80000000,1G,0x00900000,0x20000
+#[specify file with valid IVT]
+u-boot.imx:dcd,jump header2
diff --git a/recipes-devtools/imx-loader/imx-loader/mx7_usb_sdp_uboot.conf b/recipes-devtools/imx-loader/imx-loader/mx7_usb_sdp_uboot.conf
new file mode 100644
index 0000000..0f3a59c
--- /dev/null
+++ b/recipes-devtools/imx-loader/imx-loader/mx7_usb_sdp_uboot.conf
@@ -0,0 +1,7 @@
+mx7_usb_sdp_uboot
+#hid/bulk,[old_header,]max packet size,dcd_addr,{ram start, ram size}(repeat valid ram areas)
+hid,1024,0x910000,0x80000000,1G,0x00900000,0x20000
+#Load complete FIT image to $ramdisk_addr_r
+tezi.itb:load 0x82100000
+#Load script to $loadaddr and jump to it
+boot-sdp.scr:load 0x82000000,jump 0x82000000
diff --git a/recipes-devtools/imx-loader/imx-loader/vybrid_usb_rom.conf b/recipes-devtools/imx-loader/imx-loader/vybrid_usb_rom.conf
new file mode 100644
index 0000000..2a28feb
--- /dev/null
+++ b/recipes-devtools/imx-loader/imx-loader/vybrid_usb_rom.conf
@@ -0,0 +1,16 @@
+vybrid
+#hid/bulk,[old_header,]max packet size,dcd_addr,{ram start, ram size}(repeat valid ram areas)
+#SysRAM0
+#hid,1024,0x3f007000,0x10000000,1G,0x3f007000,0x31000
+#gfxRAM
+hid,1024,0x3f400000,0x10000000,1G,0x3f400000,0x80000
+#file:dcd,plug,load nnn,jump [nnn/header/header2]
+#jump nnn - header is after last downloaded word
+# entire file is loaded before jump, needs load nnn as well
+# i.e. file:load nnn,jump nnn
+#jump header - only length parameter is downloaded
+#header - uses existing header(error if none), but clears plug and dcd values unless plug also specified
+#header2 - uses 2nd header found(error if none)
+#plug - without jump uses header but clears plug flag to stop after plug execution
+#load nnn - load entire file to address
+#../u-boot/u-boot.imx:jump header