linux.inc: add device tree for xilinx ml507 Signed-off-by: aalonso <[email protected]>
PATCH 1/1 linux.inc: add device tree for xilinx ml507 Signed-off-by: aalonso <[email protected]>
--- recipes/linux/linux.inc | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
recipes/linux/linux.inc +1 -0
@@ -38,6 +38,7 @@ KERNEL_DEVICETREE_mpc8313e-rdb = "arch/${ARCH}/boot/dts/mpc8313erdb.dts" KERNEL_DEVICETREE_mpc8315e-rdb = "arch/${ARCH}/boot/dts/mpc8315erdb.dts" KERNEL_DEVICETREE_mpc8323e-rdb = "arch/${ARCH}/boot/dts/mpc832x_rdb.dts" KERNEL_DEVICETREE_sequoia = "arch/${ARCH}/boot/dts/sequoia.dts" +KERNEL_DEVICETREE_xilinx-ml507 = "arch/${ARCH}/boot/dts/virtex440-ml507.dts" KERNEL_DEVICETREE_FLAGS = "-R 8 -S 0x3000"
Signature · 1 line
1.6.6
PATCH 1/1 tune-ppc440.inc: add ppc440 to PACKAGE_EXTRA_ARCHS Signed-off-by: aalonso <[email protected]>
--- conf/machine/include/tune-ppc440.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
conf/machine/include/tune-ppc440.inc +1 -1
@@ -1,4 +1,4 @@ TARGET_CC_ARCH = "-mcpu=440" BASE_PACKAGE_ARCH = "ppc440" FEED_ARCH = "ppc440" -PACKAGE_EXTRA_ARCHS += "ppc440e" +PACKAGE_EXTRA_ARCHS += "ppc440 ppc440e"
Signature · 1 line
1.6.6
PATCH 1/1 xilinx-bsp.bbclass: add support for xilinx ml507 Signed-off-by: aalonso <[email protected]>
--- classes/xilinx-bsp.bbclass | 56 +++++++++++++++++++++---------------------- 1 files changed, 27 insertions(+), 29 deletions(-)
classes/xilinx-bsp.bbclass +27 -29
@@ -3,7 +3,7 @@ # #This class handles all the intricasies of getting the required files from the #ISE/EDK/project to the kernel and prepare the kernel for compilation. -#The Xilinx EDK supports 2 different architectures : PowerPC (ppc 405) and Microblaze +#The Xilinx EDK supports 2 different architectures : PowerPC (ppc 405,440) and Microblaze #Only the PowerPC BSP has been tested so far #For this to work correctly you need to add XILINX_BSP_PATH and XILINX_BOARD to your #local.conf
@@ -12,42 +12,40 @@ # #Currently supported boards #Xilinx ML403 +#Xilinx ML507 #More to come soon ;) do_configure_prepend() { - #first check that the XILINX_BSP_PATH and XILINX_BOARD have been defined in local.conf -if [ -z "${XILINX_BSP_PATH}" ]; then - oefatal "XILINX_BSP_PATH not defined ! Exiting..." - exit 1 - -else - if [ -z "${XILINX_BOARD}" ]; then - oefatal "XILINX_BOARD not defined ! Exiting" - exit 1 - fi - -fi #now depending on the board type and arch do what is nessesary -case "${XILINX_BOARD}" in - ML403) - oenote "ML403 board setup" - cp -pPR ${XILINX_BSP_PATH}/ppc405_0/libsrc/linux_2_6_v1_00_a/linux/arch/ppc/platforms/4xx/xparameters/xparameters_ml40x.h \ +if [ -n "${XILINX_BSP_PATH}" ]; then + case "${XILINX_BOARD}" in + ml403 | ML403) + oenote "ML403 board setup" + cp -pPR ${XILINX_BSP_PATH}/ppc405_0/libsrc/linux_2_6_v1_00_a/linux/arch/ppc/platforms/4xx/xparameters/xparameters_ml40x.h \ ${S}/arch/ppc/platforms/4xx/xparameters/xparameters_ml403.h - ;; - - * ) - oefatal "! Unknow Xilinx board ! Exiting..." - exit 1 - ;; -esac - + ;; + ml507 | ML507) + oenote "Xilinx ML507 board setup" + dts=`find "${XILINX_BSP_PATH}" -name *.dts -print` + if [ -n "$dts" ]; then + oenote "Replacing device tree with ${dts}" + cp -pP ${dts} ${S}/arch/powerpc/boot/dts/virtex440-ml507.dts + else + oenote "Device tree not found in project dir" + fi + ;; + *) + oefatal "! Unknow Xilinx board ! Exit ..." + exit 1 + ;; + esac +else + oefatal "XILINX_BSP_PATH not defined ! Exit" + exit 1 +fi } - - - -
Signature · 1 line
1.6.6
PATCH 1/1 xilinx-ml507.conf: New config for xilinx ml507 devboard Signed-off-by: aalonso <[email protected]>
--- conf/machine/xilinx-ml507.conf | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 conf/machine/xilinx-ml507.conf
conf/machine/xilinx-ml507.conf new file +33 -0
@@ -0,0 +1,33 @@ +# Copyright (C) 2010, Adrian Alonso <[email protected]> +# Released under the MIT license (see packages/COPYING) +#@TYPE: Machine +#@Name: Xilinx ML507 FPGA Development Platform +#@DESCRIPTION: Machine configuration for Xilinx ML507 + +TARGET_ARCH = "powerpc" +TARGET_CPU = "440" +TARGET_FPU = "soft" +#tune for the 440 cpu +require conf/machine/include/tune-ppc440.inc + +#ASSUME_PROVIDED += "virtual/kernel" +PREFERRED_PROVIDER_virtual/kernel = "linux" + +KERNEL_IMAGETYPE = "uImage" + +MACHINE_FEATURES = "kernel26 ext2 usbhost udev" +MACHINE_EXTRA_RECOMMENDS = "kernel-modules" + +UBOOT_ARCH = "ppc" +UBOOT_MACHINE = "ml507_defconfig" + +# Xilinx EDK override paramater definitions for xilinx-bsp +# Include in your local.conf +# XILINX_BSP_PATH = "complete path for Xilinx EDK project" +# XILINX_BOARD = "ml507" + +# Don't use tty1 +USE_VT = "0" +SERIAL_CONSOLE = "115200 ttyS0" + +
Signature · 1 line
1.6.6
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
It seems you fell victim to the "git needs blank line between summarry and body" maffia and git put everything in the subject line. Could you regenerate and resend please?
regards,
Koen
Quoted 9 lines · aalonso
--- recipes/linux/linux.inc | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)recipes/linux/linux.inc +0
-0
recipes/linux/linux.inc KERNEL_DEVICETREE_mpc8313e-rdb = "arch/${ARCH}/boot/dts/mpc8313erdb.dts" · line 44
Quoted 7 lines
recipes/linux/linux.inc +1
-0@@ -38,6 +38,7 @@ KERNEL_DEVICETREE_mpc8313e-rdb = "arch/${ARCH}/boot/dts/mpc8313erdb.dts" KERNEL_DEVICETREE_mpc8315e-rdb = "arch/${ARCH}/boot/dts/mpc8315erdb.dts" KERNEL_DEVICETREE_mpc8323e-rdb = "arch/${ARCH}/boot/dts/mpc832x_rdb.dts" KERNEL_DEVICETREE_sequoia = "arch/${ARCH}/boot/dts/sequoia.dts" +KERNEL_DEVICETREE_xilinx-ml507 = "arch/${ARCH}/boot/dts/virtex440-ml507.dts" KERNEL_DEVICETREE_FLAGS = "-R 8 -S 0x3000"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFLea1FMkyGM64RGpERArh3AKCLPoXbnPAhfNAVo+RFo0ybG906IACfeuaP 4Raof8c0plbGFLXVlU1jTxs=
=TIcr
-----END PGP SIGNATURE-----