From d4bbb7ef016eab4ab04c3e794dfe6f4276196c66 Mon Sep 17 00:00:00 2001 From: Dalon Westergreen Date: Fri, 25 Aug 2017 13:35:43 -0700 Subject: Add support for v2017.07 u-boot Signed-off-by: Dalon Westergreen --- recipes-bsp/u-boot/files/v2017.07/cyclone5-socdk.env | 11 +++++++++++ recipes-bsp/u-boot/files/v2017.07/de0-nano-soc.env | 11 +++++++++++ recipes-bsp/u-boot/u-boot-socfpga_v2017.07.bb | 17 +++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 recipes-bsp/u-boot/files/v2017.07/cyclone5-socdk.env create mode 100644 recipes-bsp/u-boot/files/v2017.07/de0-nano-soc.env create mode 100644 recipes-bsp/u-boot/u-boot-socfpga_v2017.07.bb diff --git a/recipes-bsp/u-boot/files/v2017.07/cyclone5-socdk.env b/recipes-bsp/u-boot/files/v2017.07/cyclone5-socdk.env new file mode 100644 index 0000000..983149f --- /dev/null +++ b/recipes-bsp/u-boot/files/v2017.07/cyclone5-socdk.env @@ -0,0 +1,11 @@ +baudrate=115200 +bootargs=console=ttyS0,115200 +bootcmd=run mmcload; run mmcboot +fdtimage=socfpga_cyclone5_socdk.dtb +bootimage=zImage +fdt_addr=100 +loadaddr=0x01000000 +mmcboot=setenv bootargs console=ttyS0,115200 root=${mmcroot} rw rootwait;bootz ${loadaddr} - ${fdt_addr} +mmcload=mmc rescan;load mmc 0:1 ${loadaddr} ${bootimage};load mmc 0:1 ${fdt_addr} ${fdtimage} +mmcroot=/dev/mmcblk0p2 +ramboot=setenv bootargs console=ttyS0,115200;bootm ${loadaddr} - ${fdt_addr} diff --git a/recipes-bsp/u-boot/files/v2017.07/de0-nano-soc.env b/recipes-bsp/u-boot/files/v2017.07/de0-nano-soc.env new file mode 100644 index 0000000..3c28f0f --- /dev/null +++ b/recipes-bsp/u-boot/files/v2017.07/de0-nano-soc.env @@ -0,0 +1,11 @@ +baudrate=115200 +bootargs=console=ttyS0,115200 +bootcmd=run mmcload; run mmcboot +fdtimage=socfpga_cyclone5_de0_sockit.dtb +bootimage=zImage +fdt_addr=100 +loadaddr=0x01000000 +mmcboot=setenv bootargs console=ttyS0,115200 root=${mmcroot} rw rootwait;bootz ${loadaddr} - ${fdt_addr} +mmcload=mmc rescan;load mmc 0:1 ${loadaddr} ${bootimage};load mmc 0:1 ${fdt_addr} ${fdtimage} +mmcroot=/dev/mmcblk0p2 +ramboot=setenv bootargs console=ttyS0,115200;bootm ${loadaddr} - ${fdt_addr} diff --git a/recipes-bsp/u-boot/u-boot-socfpga_v2017.07.bb b/recipes-bsp/u-boot/u-boot-socfpga_v2017.07.bb new file mode 100644 index 0000000..635acee --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-socfpga_v2017.07.bb @@ -0,0 +1,17 @@ +require u-boot-socfpga-common.inc +require u-boot-socfpga-env.inc +require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc + +FILESEXTRAPATHS =. "${THISDIR}/files/v2017.07:" + +# This revision corresponds to the tag "v2017.07" +# We use the revision in order to avoid having to fetch it from the +# repo during parse +SRCREV = "d85ca029f257b53a96da6c2fb421e78a003a9943" + +SRC_URI_append = "\ + file://de0-nano-soc.env \ + file://cyclone5-socdk.env \ + " + +DEPENDS += "dtc-native bc-native u-boot-mkimage-native" -- cgit v1.2.3-54-g00ecf