add xilinx ml507 machine
PATCH 1/1 add xilinx ml507 machine
From: aalonso <[email protected]>
--- conf/machine/include/tune-ppc440.inc | 2 +- conf/machine/xilinx-ml507.conf | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletions(-) create mode 100644 conf/machine/xilinx-ml507.conf
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"
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
PATCH 1/1 device tree for xilinx ml507
From: 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 ml507 xilinx bsp update
From: 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
Can you make the commit log examples look like this:
http://wiki.openembedded.net/index.php/Commit_log_example
Do you know of any guides that could help me test this on my ml403? I would love to test this stuff!
Philip
Quoted 57 lines · Adrian Alonso
From: aalonso<[email protected]>
--- conf/machine/include/tune-ppc440.inc | 2 +- conf/machine/xilinx-ml507.conf | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletions(-)create mode 100644
conf/machine/xilinx-ml507.confconf/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"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" + +
Oops didn't know about the commit guide lines.
Actually I haven't found a guideline my self but some of the things that are needed to
support xilinx dev board are:
Linux kernel recipe with the ability to specify to build a simpleImage so we can program the fpga with a Jtag
u-boot recipe to preserve the u-boot elf image this also in early developing stage for programing the fpga.
All hardware changes performed in the fpga must generate a new device tree descriptor using Xilinx XPS tool and should be replaced in the Linux kernel and u-boot (actually some peripheral address in xparameters.h) to match with the fpga hardware model.
I'm also going to crate a repository with my hardware project to make available the hardware model (bitstream) used as target reference; and post on my blog how I'm trying to use OE with the ml507 target platform.
Quoted 79 lines · Philip Balister
Can you make the commit log examples look like this:
http://wiki.openembedded.net/index.php/Commit_log_example
Do you know of any guides that could help me test this on my ml403? I would love to test this stuff!
Philip
Quoted 51 lines · Adrian Alonso
From: aalonso<[email protected]>
--- conf/machine/include/tune-ppc440.inc | 2 +- conf/machine/xilinx-ml507.conf | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletions(-) create mode 100644 conf/machine/xilinx-ml507.confconf/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"conf/machine/xilinx-ml507.conf new file +23
-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" +conf/machine/xilinx-ml507.conf line 33
Quoted 10 lines
conf/machine/xilinx-ml507.conf new file +10
-0+# 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" + +_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 3 lines
Saludos Adrian Alonso http://aalonso.wordpress.com