All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] add xilinx ml507 machine
@ 2010-02-15 17:42 Adrian Alonso
  2010-02-15 17:42 ` [PATCH] device tree for xilinx ml507 Adrian Alonso
  2010-02-15 18:14 ` [PATCH] add xilinx ml507 machine Philip Balister
  0 siblings, 2 replies; 5+ messages in thread
From: Adrian Alonso @ 2010-02-15 17:42 UTC (permalink / raw)
  To: openembedded-devel

From: aalonso <aalonso00@gmail.com>

---
 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

diff --git a/conf/machine/include/tune-ppc440.inc b/conf/machine/include/tune-ppc440.inc
index feca186..6a56bfa 100644
--- a/conf/machine/include/tune-ppc440.inc
+++ b/conf/machine/include/tune-ppc440.inc
@@ -1,4 +1,4 @@
 TARGET_CC_ARCH = "-mcpu=440"
 BASE_PACKAGE_ARCH = "ppc440"
 FEED_ARCH = "ppc440"
-PACKAGE_EXTRA_ARCHS += "ppc440e"
+PACKAGE_EXTRA_ARCHS += "ppc440"
diff --git a/conf/machine/xilinx-ml507.conf b/conf/machine/xilinx-ml507.conf
new file mode 100644
index 0000000..c376cfe
--- /dev/null
+++ b/conf/machine/xilinx-ml507.conf
@@ -0,0 +1,33 @@
+# Copyright (C) 2010, Adrian Alonso <aalonso00@gmail.com>
+# 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"
+
+
-- 
1.6.6




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] device tree for xilinx ml507
  2010-02-15 17:42 [PATCH] add xilinx ml507 machine Adrian Alonso
@ 2010-02-15 17:42 ` Adrian Alonso
  2010-02-15 17:42   ` [PATCH] ml507 xilinx bsp update Adrian Alonso
  2010-02-15 18:14 ` [PATCH] add xilinx ml507 machine Philip Balister
  1 sibling, 1 reply; 5+ messages in thread
From: Adrian Alonso @ 2010-02-15 17:42 UTC (permalink / raw)
  To: openembedded-devel

From: aalonso <aalonso00@gmail.com>

---
 recipes/linux/linux.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc
index 7405c08..b562657 100644
--- a/recipes/linux/linux.inc
+++ b/recipes/linux/linux.inc
@@ -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"
 
-- 
1.6.6




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] ml507 xilinx bsp update
  2010-02-15 17:42 ` [PATCH] device tree for xilinx ml507 Adrian Alonso
@ 2010-02-15 17:42   ` Adrian Alonso
  0 siblings, 0 replies; 5+ messages in thread
From: Adrian Alonso @ 2010-02-15 17:42 UTC (permalink / raw)
  To: openembedded-devel

From: aalonso <aalonso00@gmail.com>

---
 classes/xilinx-bsp.bbclass |   56 +++++++++++++++++++++----------------------
 1 files changed, 27 insertions(+), 29 deletions(-)

diff --git a/classes/xilinx-bsp.bbclass b/classes/xilinx-bsp.bbclass
index f657e5b..c719b3b 100644
--- a/classes/xilinx-bsp.bbclass
+++ b/classes/xilinx-bsp.bbclass
@@ -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
 
 }
 
-
-
-
-
-- 
1.6.6




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] add xilinx ml507 machine
  2010-02-15 17:42 [PATCH] add xilinx ml507 machine Adrian Alonso
  2010-02-15 17:42 ` [PATCH] device tree for xilinx ml507 Adrian Alonso
@ 2010-02-15 18:14 ` Philip Balister
  2010-02-15 18:54   ` Adrian Alonso
  1 sibling, 1 reply; 5+ messages in thread
From: Philip Balister @ 2010-02-15 18:14 UTC (permalink / raw)
  To: openembedded-devel

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

On 02/15/2010 09:42 AM, Adrian Alonso wrote:
> From: aalonso<aalonso00@gmail.com>
>
> ---
>   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
>
> diff --git a/conf/machine/include/tune-ppc440.inc b/conf/machine/include/tune-ppc440.inc
> index feca186..6a56bfa 100644
> --- a/conf/machine/include/tune-ppc440.inc
> +++ b/conf/machine/include/tune-ppc440.inc
> @@ -1,4 +1,4 @@
>   TARGET_CC_ARCH = "-mcpu=440"
>   BASE_PACKAGE_ARCH = "ppc440"
>   FEED_ARCH = "ppc440"
> -PACKAGE_EXTRA_ARCHS += "ppc440e"
> +PACKAGE_EXTRA_ARCHS += "ppc440"
> diff --git a/conf/machine/xilinx-ml507.conf b/conf/machine/xilinx-ml507.conf
> new file mode 100644
> index 0000000..c376cfe
> --- /dev/null
> +++ b/conf/machine/xilinx-ml507.conf
> @@ -0,0 +1,33 @@
> +# Copyright (C) 2010, Adrian Alonso<aalonso00@gmail.com>
> +# 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"
> +
> +



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] add xilinx ml507 machine
  2010-02-15 18:14 ` [PATCH] add xilinx ml507 machine Philip Balister
@ 2010-02-15 18:54   ` Adrian Alonso
  0 siblings, 0 replies; 5+ messages in thread
From: Adrian Alonso @ 2010-02-15 18:54 UTC (permalink / raw)
  To: openembedded-devel

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.







On Mon, Feb 15, 2010 at 12:14 PM, Philip Balister <philip@balister.org>wrote:

> 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
>
>
> On 02/15/2010 09:42 AM, Adrian Alonso wrote:
>
>> From: aalonso<aalonso00@gmail.com>
>>
>> ---
>>  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
>>
>> diff --git a/conf/machine/include/tune-ppc440.inc
>> b/conf/machine/include/tune-ppc440.inc
>> index feca186..6a56bfa 100644
>> --- a/conf/machine/include/tune-ppc440.inc
>> +++ b/conf/machine/include/tune-ppc440.inc
>> @@ -1,4 +1,4 @@
>>  TARGET_CC_ARCH = "-mcpu=440"
>>  BASE_PACKAGE_ARCH = "ppc440"
>>  FEED_ARCH = "ppc440"
>> -PACKAGE_EXTRA_ARCHS += "ppc440e"
>> +PACKAGE_EXTRA_ARCHS += "ppc440"
>> diff --git a/conf/machine/xilinx-ml507.conf
>> b/conf/machine/xilinx-ml507.conf
>> new file mode 100644
>> index 0000000..c376cfe
>> --- /dev/null
>> +++ b/conf/machine/xilinx-ml507.conf
>> @@ -0,0 +1,33 @@
>> +# Copyright (C) 2010, Adrian Alonso<aalonso00@gmail.com>
>> +# 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"
>> +
>> +
>>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



-- 
Saludos
Adrian Alonso
http://aalonso.wordpress.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-15 18:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-15 17:42 [PATCH] add xilinx ml507 machine Adrian Alonso
2010-02-15 17:42 ` [PATCH] device tree for xilinx ml507 Adrian Alonso
2010-02-15 17:42   ` [PATCH] ml507 xilinx bsp update Adrian Alonso
2010-02-15 18:14 ` [PATCH] add xilinx ml507 machine Philip Balister
2010-02-15 18:54   ` Adrian Alonso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.