All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration
@ 2011-01-17 20:29 Adrian Alonso
  2011-01-17 20:29 ` [PATCH 02/25] xilinx-boot: bbclass to handle u-boot " Adrian Alonso
                   ` (23 more replies)
  0 siblings, 24 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* This class handles the Xilinx hardware project
  introinspection for exporting the device-tree blob
  to match hardware/software co-design in Xilinx FPGA's
* xilinx-bsp class delated to split the kernel/u-boot
  hw/sw introinspection in two separate classes for easier
  maintenance

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 classes/xilinx-bsp.bbclass    |  118 -----------------------------------------
 classes/xilinx-kernel.bbclass |   57 ++++++++++++++++++++
 2 files changed, 57 insertions(+), 118 deletions(-)
 delete mode 100644 classes/xilinx-bsp.bbclass
 create mode 100644 classes/xilinx-kernel.bbclass

diff --git a/classes/xilinx-bsp.bbclass b/classes/xilinx-bsp.bbclass
deleted file mode 100644
index ea8e0bf..0000000
--- a/classes/xilinx-bsp.bbclass
+++ /dev/null
@@ -1,118 +0,0 @@
-# Copyright (C) 2007, Stelios Koroneos - Digital OPSiS, All Rights Reserved
-# Copyright (C) 2010, Adrian Alonso <aalonso00@gmail.com>
-# Released under the MIT license (see packages/COPYING)
-#
-#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,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
-#XILINX_BSP_PATH should have the complete path to your project dir
-#XILINX_BOARD should have the board type i.e ML403
-#
-#Currently tested on
-#Xilinx ML405
-#Xilinx ML507
-#More to come soon ;)
-
-def map_target(a, d):
-	import re
-	board = bb.data.getVar('XILINX_BOARD', d, 1)
-	cpu = bb.data.getVar('TARGET_CPU', d, 1)
-
-	if re.match('powerpc', a):
-		return 'ppc' + cpu + '-' + board
-	else:
-		return 'system'
-
-def uboot_machine(a, d):
-    import re
-
-    board = bb.data.getVar('XILINX_BOARD', d, 1)
-    if board in ['ml300', 'ml401', 'ml403', 'ml405', 'ml507', 'ml510']:
-        if re.match('powerpc', a):
-            if board == 'ml403':
-                return 'ml401_config'
-            elif board == 'ml510':
-                return 'ml507_config'
-            else:
-                return board + '_config'
-        else:
-            return 'microblaze-generic_config'
-
-def uboot_target(a, d):
-    import re
-
-    board = bb.data.getVar('XILINX_BOARD', d, 1)
-    target = bb.data.getVar('TARGET_CPU', d, 1) + '-generic'
-    if board in ['ml300', 'ml401', 'ml403', 'ml405', 'ml507', 'ml510']:
-        if re.match('powerpc', a):
-            if board == 'ml403':
-                return 'ml401'
-            elif board == 'ml510':
-                return 'ml507'
-            else:
-                return board
-        else:
-            return target
-
-do_configure_prepend() {
-#first check that the XILINX_BSP_PATH and XILINX_BOARD have been defined in local.conf
-#now depending on the board type and arch do what is nessesary
-if [ -n "${XILINX_BSP_PATH}" ]; then
-	if [ -n "${XILINX_BOARD}" ]; then
-		if [ -d "${S}/arch/${TARGET_ARCH}/boot" ]; then
-			dts=`find "${XILINX_BSP_PATH}" -name *.dts -print`
-			if [ -e "$dts" ]; then
-				oenote "Replacing device tree to match hardware model"
-				if [ "${TARGET_ARCH}" == "powerpc" ]; then
-					cp -pP ${dts} ${S}/arch/powerpc/boot/dts/virtex${TARGET_BOARD}.dts
-				else
-					cp -pP ${dts} ${S}/arch/microblaze/platform/generic/${TARGET_BOARD}.dts
-				fi
-			else
-				oefatal "No device tree found, missing hardware ref design?"
-				exit 1
-			fi
-		elif [ -d "${S}/board/xilinx" ]; then
-			oenote "Replacing xparameters header to match hardware model"
-			if [ "${TARGET_ARCH}" == "powerpc" ]; then
-				xparam="${XILINX_BSP_PATH}/ppc${TARGET_CPU}_0/include/xparameters.h"
-				cpu="PPC`echo ${TARGET_CPU} | tr '[:lower:]' '[:upper:]'`"
-			else
-				xparam="${XILINX_BSP_PATH}/${TARGET_CPU}_0/include/xparameters.h"
-				cpu=`echo ${TARGET_CPU} | tr '[:lower:]' '[:upper:]'`
-			fi
-			if [ -e "$xparam" ]; then
-				cp ${xparam} ${S}/board/xilinx/${UBOOT_TARGET}
-				echo "/*** Cannonical definitions ***/
-#define XPAR_PLB_CLOCK_FREQ_HZ XPAR_PROC_BUS_0_FREQ_HZ
-#define XPAR_CORE_CLOCK_FREQ_HZ XPAR_CPU_${cpu}_CORE_CLOCK_FREQ_HZ
-#ifndef XPAR_DDR2_SDRAM_MEM_BASEADDR
-# define XPAR_DDR2_SDRAM_MEM_BASEADDR XPAR_DDR_SDRAM_MPMC_BASEADDR
-#endif
-#define XPAR_PCI_0_CLOCK_FREQ_HZ    0" >> ${S}/board/xilinx/${UBOOT_TARGET}/xparameters.h
-			else
-				oefatal "No xparameters header file found, missing hardware ref design?"
-                exit 1
-			fi
-		fi
-	else
-		oefatal "XILINX_BOARD not defined ! Exit"
-		exit 1
-	fi
-else
-	oefatal "XILINX_BSP_PATH not defined ! Exit"
-	exit 1
-fi
-}
-
-do_deploy_prepend() {
-# Install u-boot elf image
-if [ -d "${XILINX_BSP_PATH}" ]; then
-	if [ -e "${S}/u-boot" ]; then
-		install ${S}/u-boot ${XILINX_BSP_PATH}
-	fi
-fi
-}
diff --git a/classes/xilinx-kernel.bbclass b/classes/xilinx-kernel.bbclass
new file mode 100644
index 0000000..decf570
--- /dev/null
+++ b/classes/xilinx-kernel.bbclass
@@ -0,0 +1,57 @@
+# Copyright (C) 2007, Stelios Koroneos - Digital OPSiS, All Rights Reserved
+# Copyright (C) 2010, Adrian Alonso <aalonso00@gmail.com>
+# Released under the MIT license (see packages/COPYING)
+#
+#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,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
+#XILINX_BSP_PATH should have the complete path to your project dir
+#XILINX_BOARD should have the board type i.e ML403
+#
+#Currently tested on
+#Xilinx ML405
+#Xilinx ML507
+#More to come soon ;)
+
+def map_target(a, d):
+	import re
+	board = bb.data.getVar('XILINX_BOARD', d, 1)
+	cpu = bb.data.getVar('TARGET_CPU', d, 1)
+
+	if re.match('powerpc', a):
+		return cpu + '-' + board
+	else:
+		return 'system'
+
+
+do_configure_prepend() {
+#first check that the XILINX_BSP_PATH and XILINX_BOARD have been defined in local.conf
+#now depending on the board type and arch do what is nessesary
+if [ -n "${XILINX_BSP_PATH}" ]; then
+	if [ -n "${XILINX_BOARD}" ]; then
+		if [ -d "${S}/arch/${TARGET_ARCH}/boot" ]; then
+			dts=`find "${XILINX_BSP_PATH}" -name *.dts -print`
+			if [ -e "$dts" ]; then
+				oenote "Replacing device tree to match hardware model"
+				if [ "${TARGET_ARCH}" == "powerpc" ]; then
+					cp -pP ${dts} ${S}/arch/powerpc/boot/dts/virtex${TARGET_BOARD}.dts
+				else
+					cp -pP ${dts} ${S}/arch/microblaze/platform/generic/${TARGET_BOARD}.dts
+				fi
+			else
+				oefatal "No device tree found, missing hardware ref design?"
+				exit 1
+			fi
+		fi
+	else
+		oefatal "XILINX_BOARD not defined ! Exit"
+		exit 1
+	fi
+else
+	oefatal "XILINX_BSP_PATH not defined ! Exit"
+	exit 1
+fi
+}
-- 
1.7.3.4



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

* [PATCH 02/25] xilinx-boot: bbclass to handle u-boot hw/sw integration
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 03/25] gcc: crosssdk unset TARGET_FPU Adrian Alonso
                   ` (22 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* xilinx-boot handles the hw/sw codesign integration
  from Xilinx XPS hardware project importing from hw
  project the 'xparameters' header; file used in u-boot
  to find platform attributes
* Simplify the configure target options for several
  Xilinx target boards using u-boot generic support
  for similar targets
* Only tested on ml405, ml507 targets

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 classes/xilinx-boot.bbclass |   90 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 90 insertions(+), 0 deletions(-)
 create mode 100644 classes/xilinx-boot.bbclass

diff --git a/classes/xilinx-boot.bbclass b/classes/xilinx-boot.bbclass
new file mode 100644
index 0000000..03b4512
--- /dev/null
+++ b/classes/xilinx-boot.bbclass
@@ -0,0 +1,90 @@
+# Copyright (C) 2007, Stelios Koroneos - Digital OPSiS, All Rights Reserved
+# Copyright (C) 2010, Adrian Alonso <aalonso00@gmail.com>
+# Released under the MIT license (see packages/COPYING)
+#
+#This class handles all the intricasies of getting the required files from the
+#ISE/EDK/project to the kernel and prepare u-boot bootloader for compilation.
+#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
+#XILINX_BSP_PATH should have the complete path to your project dir
+#XILINX_BOARD should have the board type i.e ML403
+#
+#Currently tested on
+#Xilinx ML405
+#Xilinx ML507
+#More to come soon ;)
+
+def uboot_machine(a, d):
+    import re
+
+    board = bb.data.getVar('XILINX_BOARD', d, 1)
+    target = bb.data.getVar('TARGET_CPU', d, 1)
+    if re.match('powerpc', a):
+        if board == 'ml507':
+            return 'ml507_config'
+        else:
+            return 'xilinx-ppc' + target + '-generic_config'
+    else:
+        return 'microblaze-generic_config'
+
+def uboot_target(a, d):
+    import re
+
+    board = bb.data.getVar('XILINX_BOARD', d, 1)
+    target = bb.data.getVar('TARGET_CPU', d, 1) + '-generic'
+    if re.match('powerpc', a):
+        if board == 'ml507':
+            return 'ml507'
+        else:
+            return 'ppc' + target
+    else:
+        return target
+
+do_configure_prepend() {
+#first check that the XILINX_BSP_PATH and XILINX_BOARD have been defined in local.conf
+#now depending on the board type and arch do what is nessesary
+if [ -n "${XILINX_BSP_PATH}" ]; then
+	if [ -n "${XILINX_BOARD}" ]; then
+		if [ -d "${S}/board/xilinx" ]; then
+			oenote "Replacing xparameters header to match hardware model"
+			if [ "${TARGET_ARCH}" == "powerpc" ]; then
+				xparam="${XILINX_BSP_PATH}/ppc${TARGET_CPU}_0/include/xparameters.h"
+				cpu="PPC`echo ${TARGET_CPU} | tr '[:lower:]' '[:upper:]'`"
+			else
+				xparam="${XILINX_BSP_PATH}/${TARGET_CPU}_0/include/xparameters.h"
+				cpu=`echo ${TARGET_CPU} | tr '[:lower:]' '[:upper:]'`
+			fi
+			if [ -e "$xparam" ]; then
+				cp ${xparam} ${S}/board/xilinx/${UBOOT_TARGET}
+				echo "/*** Cannonical definitions ***/
+#define XPAR_PLB_CLOCK_FREQ_HZ XPAR_PROC_BUS_0_FREQ_HZ
+#define XPAR_CORE_CLOCK_FREQ_HZ XPAR_CPU_${cpu}_CORE_CLOCK_FREQ_HZ
+#ifndef XPAR_DDR2_SDRAM_MEM_BASEADDR
+# define XPAR_DDR2_SDRAM_MEM_BASEADDR XPAR_DDR_SDRAM_MPMC_BASEADDR
+#endif
+#define XPAR_PCI_0_CLOCK_FREQ_HZ    0" >> ${S}/board/xilinx/${UBOOT_TARGET}/xparameters.h
+			else
+				oefatal "No xparameters header file found, missing hardware ref design?"
+                exit 1
+			fi
+		fi
+	else
+		oefatal "XILINX_BOARD not defined ! Exit"
+		exit 1
+	fi
+else
+	oefatal "XILINX_BSP_PATH not defined ! Exit"
+	exit 1
+fi
+}
+
+do_deploy_prepend() {
+# Install u-boot elf image
+if [ -d "${XILINX_BSP_PATH}" ]; then
+	if [ -e "${S}/u-boot" ]; then
+		install ${S}/u-boot ${XILINX_BSP_PATH}
+	fi
+fi
+}
-- 
1.7.3.4



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

* [PATCH 03/25] gcc: crosssdk unset TARGET_FPU
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
  2011-01-17 20:29 ` [PATCH 02/25] xilinx-boot: bbclass to handle u-boot " Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 23:55   ` Ilya Yanok
  2011-01-17 20:29 ` [PATCH 04/25] u-boot: update version use xilinx-boot bbclass Adrian Alonso
                   ` (21 subsequent siblings)
  23 siblings, 1 reply; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Configure fails due that --with-float=soft
  flag isn't supportted by powerpc arch
* Unsetting TARGET_FPU this flag to not try to use
  this flag
* crosssdk disable decimal point support

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 .../gcc/gcc-crosssdk-initial_4.5.1.bbappend        |    7 +++++++
 .../gcc/gcc-crosssdk-intermediate_4.5.1.bbappend   |    7 +++++++
 recipes-devtools/gcc/gcc-crosssdk_4.5.1.bbappend   |    8 ++++++++
 3 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100644 recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bbappend
 create mode 100644 recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bbappend
 create mode 100644 recipes-devtools/gcc/gcc-crosssdk_4.5.1.bbappend

diff --git a/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bbappend b/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bbappend
new file mode 100644
index 0000000..9bb8f77
--- /dev/null
+++ b/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bbappend
@@ -0,0 +1,7 @@
+# Unset TARGET_FPU --with-float=soft flag not supported for powerpc targets
+# --with-float=soft
+
+THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
+FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
+
+TARGET_FPU=""
diff --git a/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bbappend b/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bbappend
new file mode 100644
index 0000000..9bb8f77
--- /dev/null
+++ b/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bbappend
@@ -0,0 +1,7 @@
+# Unset TARGET_FPU --with-float=soft flag not supported for powerpc targets
+# --with-float=soft
+
+THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
+FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
+
+TARGET_FPU=""
diff --git a/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bbappend b/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bbappend
new file mode 100644
index 0000000..35eab60
--- /dev/null
+++ b/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bbappend
@@ -0,0 +1,8 @@
+# Unset TARGET_FPU --with-float=soft flag not supported for powerpc targets
+# --with-float=soft
+
+THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
+FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
+
+TARGET_FPU=""
+EXTRA_OECONF += " --disable-decimal-float"
-- 
1.7.3.4



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

* [PATCH 04/25] u-boot: update version use xilinx-boot bbclass
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
  2011-01-17 20:29 ` [PATCH 02/25] xilinx-boot: bbclass to handle u-boot " Adrian Alonso
  2011-01-17 20:29 ` [PATCH 03/25] gcc: crosssdk unset TARGET_FPU Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 05/25] u-boot: disable -Os option not supported by gcc Adrian Alonso
                   ` (20 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Update u-boot version for Xilinx Powerpc targets
* Use xilinx-boot bbclass for sh/hw integration
* Bump PR

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 recipes-bsp/uboot/u-boot-xilinx_git.bb |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/recipes-bsp/uboot/u-boot-xilinx_git.bb b/recipes-bsp/uboot/u-boot-xilinx_git.bb
index f345096..50d99e3 100644
--- a/recipes-bsp/uboot/u-boot-xilinx_git.bb
+++ b/recipes-bsp/uboot/u-boot-xilinx_git.bb
@@ -1,12 +1,12 @@
 require ../meta/recipes-bsp/uboot/u-boot.inc
-PR = "r1"
+PR = "r2"
 
-# Prefered u-boot from mainstream since has generic support for
-# ppc405, ppc440
-SRC_URI = "git://git.xilinx.com/u-boot-xlnx.git;protocol=git"
-SRCREV = "26e999650cf77c16f33c580abaadab2532f5e8b2"
+BRANCH="master"
+TAG="e094f2479ea339d7f48b6826f06f0be4984d9a98"
+SRC_URI = "git://git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git"
+SRCREV = "${TAG}"
 
-inherit xilinx-bsp
+inherit xilinx-boot
 
 TARGET_BOARD = "${@map_target(bb.data.getVar('TARGET_ARCH', d, 1), d)}"
 UBOOT_TARGET = "${@uboot_target(bb.data.getVar('TARGET_ARCH', d, 1), d)}"
-- 
1.7.3.4



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

* [PATCH 05/25] u-boot: disable -Os option not supported by gcc
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (2 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 04/25] u-boot: update version use xilinx-boot bbclass Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-20 18:53   ` Darren Hart
  2011-01-17 20:29 ` [PATCH 06/25] virtex4: fix machine name in u-boot preferred version Adrian Alonso
                   ` (19 subsequent siblings)
  23 siblings, 1 reply; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Disable -Os optspace option not supported by gcc use insted
  -O2
* Bump PR

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 .../uboot/files/uboot-do-not-use-Os-option.patch   |   30 ++++++++++++++++++++
 recipes-bsp/uboot/u-boot-xilinx_git.bb             |    8 ++++-
 2 files changed, 36 insertions(+), 2 deletions(-)
 create mode 100644 recipes-bsp/uboot/files/uboot-do-not-use-Os-option.patch

diff --git a/recipes-bsp/uboot/files/uboot-do-not-use-Os-option.patch b/recipes-bsp/uboot/files/uboot-do-not-use-Os-option.patch
new file mode 100644
index 0000000..c4153e4
--- /dev/null
+++ b/recipes-bsp/uboot/files/uboot-do-not-use-Os-option.patch
@@ -0,0 +1,30 @@
+From 8a4e1e92becc3994907f18919e9ee8b51b0f377a Mon Sep 17 00:00:00 2001
+From: Adrian Alonso <aalonso@secretlab.ca>
+Date: Mon, 6 Dec 2010 22:59:20 -0600
+Subject: [PATCH 1/2] uboot: do not use Os option
+
+* Fix error: Do not use -Os option if --enable-target-optspace
+  is not set.
+* Gcc optospace options is disabled for powerpc machines
+* Use -O2 optimization level instead
+
+Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
+---
+ config.mk |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index a63e9cd..ba629d1 100644
+--- a/config.mk
++++ b/config.mk
+@@ -138,7 +138,7 @@ ARFLAGS = crv
+ endif
+ RELFLAGS= $(PLATFORM_RELFLAGS)
+ DBGFLAGS= -g # -DDEBUG
+-OPTFLAGS= -Os #-fomit-frame-pointer
++OPTFLAGS= -O2 #-fomit-frame-pointer
+ ifndef LDSCRIPT
+ #LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds.debug
+ ifeq ($(CONFIG_NAND_U_BOOT),y)
+--
+1.7.2.3
diff --git a/recipes-bsp/uboot/u-boot-xilinx_git.bb b/recipes-bsp/uboot/u-boot-xilinx_git.bb
index 50d99e3..3b35ae5 100644
--- a/recipes-bsp/uboot/u-boot-xilinx_git.bb
+++ b/recipes-bsp/uboot/u-boot-xilinx_git.bb
@@ -1,9 +1,13 @@
 require ../meta/recipes-bsp/uboot/u-boot.inc
-PR = "r2"
+PR = "r3"
+THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
+FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
 
 BRANCH="master"
 TAG="e094f2479ea339d7f48b6826f06f0be4984d9a98"
-SRC_URI = "git://git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git"
+SRC_URI = "git://git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git \
+           file://uboot-do-not-use-Os-option.patch \
+          "
 SRCREV = "${TAG}"
 
 inherit xilinx-boot
-- 
1.7.3.4



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

* [PATCH 06/25] virtex4: fix machine name in u-boot preferred version
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (3 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 05/25] u-boot: disable -Os option not supported by gcc Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 07/25] virtex5: " Adrian Alonso
                   ` (18 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Fix machine name in preferred version for u-boot,
  u-boot recipe was not been built for incorren machine name
  resolution

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 conf/machine/virtex4.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/conf/machine/virtex4.conf b/conf/machine/virtex4.conf
index a29f414..e395d1f 100644
--- a/conf/machine/virtex4.conf
+++ b/conf/machine/virtex4.conf
@@ -12,7 +12,7 @@ TARGET_FPU  = "soft"
 require conf/machine/include/tune-ppc405.inc
 
 PREFERRED_PROVIDER_virtual/kernel = "linux-xilinx"
-PREFERRED_VERSION_u-boot_xilinx-virtex4 = "u-boot-xilinx"
+PREFERRED_VERSION_u-boot_virtex4 = "u-boot-xilinx"
 
 KERNEL_IMAGETYPE = "uImage"
 
-- 
1.7.3.4



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

* [PATCH 07/25] virtex5: fix machine name in u-boot preferred version
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (4 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 06/25] virtex4: fix machine name in u-boot preferred version Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 08/25] xilinx-boot: add ml405 in default target configuration Adrian Alonso
                   ` (17 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Fix machine name in preferred version for u-boot,
  u-boot recipe was not been built for incorren machine name
  resolution

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 conf/machine/virtex5.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/conf/machine/virtex5.conf b/conf/machine/virtex5.conf
index 3b4930e..a778a77 100644
--- a/conf/machine/virtex5.conf
+++ b/conf/machine/virtex5.conf
@@ -12,7 +12,7 @@ require conf/machine/include/tune-ppc440.inc
 
 #ASSUME_PROVIDED += "virtual/kernel"
 PREFERRED_PROVIDER_virtual/kernel = "linux-xilinx"
-PREFERRED_VERSION_u-boot_xilinx-virtex5 = "u-boot-xilinx"
+PREFERRED_VERSION_u-boot_virtex5 = "u-boot-xilinx"
 
 KERNEL_IMAGETYPE = "uImage"
 
-- 
1.7.3.4



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

* [PATCH 08/25] xilinx-boot: add ml405 in default target configuration
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (5 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 07/25] virtex5: " Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 09/25] u-boot-xilinx: ml405 uartlite support Adrian Alonso
                   ` (16 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Add ml405 target board configuration support
* Only tested in ml405, ml507 target boards

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 classes/xilinx-boot.bbclass |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/classes/xilinx-boot.bbclass b/classes/xilinx-boot.bbclass
index 03b4512..524ae01 100644
--- a/classes/xilinx-boot.bbclass
+++ b/classes/xilinx-boot.bbclass
@@ -24,10 +24,12 @@ def uboot_machine(a, d):
     if re.match('powerpc', a):
         if board == 'ml507':
             return 'ml507_config'
+        elif board == 'ml405':
+            return 'ml405_config'
         else:
             return 'xilinx-ppc' + target + '-generic_config'
     else:
-        return 'microblaze-generic_config'
+        return target + '-generic_config'
 
 def uboot_target(a, d):
     import re
@@ -37,6 +39,8 @@ def uboot_target(a, d):
     if re.match('powerpc', a):
         if board == 'ml507':
             return 'ml507'
+        elif board == 'ml405':
+            return 'ml405'
         else:
             return 'ppc' + target
     else:
-- 
1.7.3.4



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

* [PATCH 09/25] u-boot-xilinx: ml405 uartlite support
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (6 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 08/25] xilinx-boot: add ml405 in default target configuration Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 10/25] xilinx-boot: split configure function Adrian Alonso
                   ` (15 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Add ML405 Uartlite support, find out which uart module is
  used based on xparameters header file
* Fix hardcodded macros for uartns550 setting uart and
  PLB bus frequency
* Fix inline qualifier from
* Bump PR

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 .../files/ml405-add-uartlite-config-options.patch  |   63 ++++++++++++++++++++
 ...405-replace-hardcode-macros-for-uartns550.patch |   36 +++++++++++
 ...e-inline-qualifier-from-show_boot_progres.patch |   31 ++++++++++
 recipes-bsp/uboot/u-boot-xilinx_git.bb             |    5 +-
 4 files changed, 134 insertions(+), 1 deletions(-)
 create mode 100644 recipes-bsp/uboot/files/ml405-add-uartlite-config-options.patch
 create mode 100644 recipes-bsp/uboot/files/ml405-replace-hardcode-macros-for-uartns550.patch
 create mode 100644 recipes-bsp/uboot/files/uboot-remove-inline-qualifier-from-show_boot_progres.patch

diff --git a/recipes-bsp/uboot/files/ml405-add-uartlite-config-options.patch b/recipes-bsp/uboot/files/ml405-add-uartlite-config-options.patch
new file mode 100644
index 0000000..8edd12a
--- /dev/null
+++ b/recipes-bsp/uboot/files/ml405-add-uartlite-config-options.patch
@@ -0,0 +1,63 @@
+From f2e7ecde205d88d28536e8454f58ba2b1ef4cc81 Mon Sep 17 00:00:00 2001
+From: Adrian Alonso <aalonso@secretlab.ca>
+Date: Thu, 16 Dec 2010 17:34:13 -0600
+Subject: [PATCH 1/2] ml405: add uartlite config options
+
+* Add CONFIG_XILINX_UARTLITE options
+* From xparameters find out which serial module
+  is included in the hardware project and configure
+  accord the available device
+
+Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
+---
+ include/configs/ml405.h |   19 +++++++++++++++++--
+ 1 files changed, 17 insertions(+), 2 deletions(-)
+
+diff --git a/include/configs/ml405.h b/include/configs/ml405.h
+index d6f4832..86f093e 100644
+--- a/include/configs/ml405.h
++++ b/include/configs/ml405.h
+@@ -115,7 +115,6 @@
+ //#define CFG_MONITOR_BASE	0xFFFC0000
+ #endif
+ 
+-#define CONFIG_BAUDRATE         9600
+ #define CONFIG_BOOTDELAY        5       /* autoboot after 5 seconds	*/
+
+ #define CONFIG_BOOTCOMMAND      "" /* autoboot command	*/
+@@ -181,6 +180,18 @@
+ #define CFG_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/
+
+ /*
++ * Serial port
++ * uartLite
++ */
++#ifdef XPAR_UARTLITE_0_BASEADDR
++#define CONFIG_XILINX_UARTLITE
++#define CONFIG_SERIAL_BASE      XPAR_UARTLITE_0_BASEADDR
++#define CONFIG_BAUDRATE         XPAR_UARTLITE_0_BAUDRATE
++#define CONFIG_SYS_BAUDRATE_TABLE   { CONFIG_BAUDRATE }
++#define XPAR_UART_0_CLOCK_FREQ_HZ XPAR_PLB_CLOCK_FREQ_HZ
++#else
++#ifdef XPAR_UARTNS550_0_BASEADDR
++/*
+  * 16550 UART and console
+  */
+ #define CONFIG_CONS_INDEX	1
+@@ -188,8 +199,12 @@
+ #define CFG_NS16550
+ #define CFG_NS16550_SERIAL
+ #define CFG_NS16550_REG_SIZE	-4
+-#define CFG_NS16550_CLK		XPAR_XUARTNS550_CLOCK_HZ
++#define CFG_NS16550_CLK		        XPAR_XUARTNS550_CLOCK_HZ
++#define XPAR_UART_0_CLOCK_FREQ_HZ   XPAR_XUARTNS550_CLOCK_HZ
+ #define CFG_NS16550_COM1	(XPAR_UARTNS550_0_BASEADDR + 0x1003)
++#define CONFIG_BAUDRATE         9600
++#endif
++#endif
+
+ #define CFG_BAUDRATE_TABLE	\
+ 	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
+--
+1.7.2.3
+
diff --git a/recipes-bsp/uboot/files/ml405-replace-hardcode-macros-for-uartns550.patch b/recipes-bsp/uboot/files/ml405-replace-hardcode-macros-for-uartns550.patch
new file mode 100644
index 0000000..3e8ce92
--- /dev/null
+++ b/recipes-bsp/uboot/files/ml405-replace-hardcode-macros-for-uartns550.patch
@@ -0,0 +1,36 @@
+From 111cbbadbf09b6570567b22962de4a80180aabe1 Mon Sep 17 00:00:00 2001
+From: Adrian Alonso <aalonso@secretlab.ca>
+Date: Thu, 16 Dec 2010 17:39:35 -0600
+Subject: [PATCH 2/2] ml405: replace hardcode macros for uartns550
+
+* Replace hardcoded macros for setting PLB and uart
+  frecuency
+
+Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
+---
+ board/xilinx/ml405/ml405.c |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/board/xilinx/ml405/ml405.c b/board/xilinx/ml405/ml405.c
+index 76dd5e5..0800b10 100755
+--- a/board/xilinx/ml405/ml405.c
++++ b/board/xilinx/ml405/ml405.c
+@@ -138,13 +138,13 @@ get_sys_info(sys_info_t * sysInfo)
+ 	sysInfo->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ;
+ 
+ 	/* only correct if the PLB and OPB run at the same frequency */
+-	sysInfo->freqPLB = XPAR_UARTNS550_0_CLOCK_FREQ_HZ;
++	sysInfo->freqPLB = XPAR_UART_0_CLOCK_FREQ_HZ;
+ 	sysInfo->freqPCI = 0;
+ 
+ 	/* setup the uart clock frequency in the global data otherwise the 
+ 	 * fdt fixups on the device tree hoses it up
+ 	 */
+-	gd->uart_clk = XPAR_UARTNS550_0_CLOCK_FREQ_HZ;
++	gd->uart_clk = XPAR_UART_0_CLOCK_FREQ_HZ;
+ }
+ 
+ /*-----------------------------------------------------------------------------
+-- 
+1.7.2.3
+
diff --git a/recipes-bsp/uboot/files/uboot-remove-inline-qualifier-from-show_boot_progres.patch b/recipes-bsp/uboot/files/uboot-remove-inline-qualifier-from-show_boot_progres.patch
new file mode 100644
index 0000000..56d26ea
--- /dev/null
+++ b/recipes-bsp/uboot/files/uboot-remove-inline-qualifier-from-show_boot_progres.patch
@@ -0,0 +1,31 @@
+From 4537cc92b5c149fbcb204d8e904a7ee20b8f4b1c Mon Sep 17 00:00:00 2001
+From: Adrian Alonso <aalonso@secretlab.ca>
+Date: Mon, 6 Dec 2010 23:01:03 -0600
+Subject: [PATCH 2/2] uboot: remove inline qualifier from show_boot_progress
+
+* Remove inline qualifier from show_boot_progress
+* Gcc 4.5.1 complains about
+  main.c:51:13: error: inline function 'show_boot_progress'
+  cannot be declared weak
+
+Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
+---
+ common/main.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/common/main.c b/common/main.c
+index 187ef8a..e2f8bb2 100644
+--- a/common/main.c
++++ b/common/main.c
+@@ -48,7 +48,7 @@ DECLARE_GLOBAL_DATA_PTR;
+  * Board-specific Platform code can reimplement show_boot_progress () if needed
+  */
+ void inline __show_boot_progress (int val) {}
+-void inline show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress")));
++void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress")));
+ 
+ #if defined(CONFIG_BOOT_RETRY_TIME) && defined(CONFIG_RESET_TO_RETRY)
+ extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);		/* for do_reset() prototype */
+-- 
+1.7.2.3
+
diff --git a/recipes-bsp/uboot/u-boot-xilinx_git.bb b/recipes-bsp/uboot/u-boot-xilinx_git.bb
index 3b35ae5..0a30602 100644
--- a/recipes-bsp/uboot/u-boot-xilinx_git.bb
+++ b/recipes-bsp/uboot/u-boot-xilinx_git.bb
@@ -1,5 +1,5 @@
 require ../meta/recipes-bsp/uboot/u-boot.inc
-PR = "r3"
+PR = "r4"
 THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
 FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
 
@@ -7,6 +7,9 @@ BRANCH="master"
 TAG="e094f2479ea339d7f48b6826f06f0be4984d9a98"
 SRC_URI = "git://git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git \
            file://uboot-do-not-use-Os-option.patch \
+           file://uboot-remove-inline-qualifier-from-show_boot_progres.patch \
+           file://ml405-add-uartlite-config-options.patch \
+           file://ml405-replace-hardcode-macros-for-uartns550.patch \
           "
 SRCREV = "${TAG}"
 
-- 
1.7.3.4



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

* [PATCH 10/25] xilinx-boot: split configure function
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (7 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 09/25] u-boot-xilinx: ml405 uartlite support Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 11/25] xilinx-boot: add do_mk_xparam function Adrian Alonso
                   ` (14 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Split configure_prepend function
* New do_export_xparam function handles the export process
  of xparameter header file from hardware project directory
  to u-boot source code

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 classes/xilinx-boot.bbclass |   49 +++++++++++++++++++++++-------------------
 1 files changed, 27 insertions(+), 22 deletions(-)

diff --git a/classes/xilinx-boot.bbclass b/classes/xilinx-boot.bbclass
index 524ae01..501734d 100644
--- a/classes/xilinx-boot.bbclass
+++ b/classes/xilinx-boot.bbclass
@@ -46,34 +46,39 @@ def uboot_target(a, d):
     else:
         return target
 
-do_configure_prepend() {
-#first check that the XILINX_BSP_PATH and XILINX_BOARD have been defined in local.conf
-#now depending on the board type and arch do what is nessesary
-if [ -n "${XILINX_BSP_PATH}" ]; then
-	if [ -n "${XILINX_BOARD}" ]; then
-		if [ -d "${S}/board/xilinx" ]; then
-			oenote "Replacing xparameters header to match hardware model"
-			if [ "${TARGET_ARCH}" == "powerpc" ]; then
-				xparam="${XILINX_BSP_PATH}/ppc${TARGET_CPU}_0/include/xparameters.h"
-				cpu="PPC`echo ${TARGET_CPU} | tr '[:lower:]' '[:upper:]'`"
-			else
-				xparam="${XILINX_BSP_PATH}/${TARGET_CPU}_0/include/xparameters.h"
-				cpu=`echo ${TARGET_CPU} | tr '[:lower:]' '[:upper:]'`
-			fi
-			if [ -e "$xparam" ]; then
-				cp ${xparam} ${S}/board/xilinx/${UBOOT_TARGET}
-				echo "/*** Cannonical definitions ***/
+
+do_export_xparam() {
+oenote "Replacing xparameters header to match hardware model"
+if [ "${TARGET_ARCH}" == "powerpc" ]; then
+	xparam="${XILINX_BSP_PATH}/ppc${TARGET_CPU}_0/include/xparameters.h"
+	cpu="PPC`echo ${TARGET_CPU} | tr '[:lower:]' '[:upper:]'`"
+else
+	xparam="${XILINX_BSP_PATH}/${TARGET_CPU}_0/include/xparameters.h"
+	cpu=`echo ${TARGET_CPU} | tr '[:lower:]' '[:upper:]'`
+fi
+if [ -e "$xparam" ]; then
+	cp ${xparam} ${S}/board/xilinx/${UBOOT_TARGET}
+	echo "/*** Cannonical definitions ***/
 #define XPAR_PLB_CLOCK_FREQ_HZ XPAR_PROC_BUS_0_FREQ_HZ
 #define XPAR_CORE_CLOCK_FREQ_HZ XPAR_CPU_${cpu}_CORE_CLOCK_FREQ_HZ
 #ifndef XPAR_DDR2_SDRAM_MEM_BASEADDR
 # define XPAR_DDR2_SDRAM_MEM_BASEADDR XPAR_DDR_SDRAM_MPMC_BASEADDR
 #endif
 #define XPAR_PCI_0_CLOCK_FREQ_HZ    0" >> ${S}/board/xilinx/${UBOOT_TARGET}/xparameters.h
-			else
-				oefatal "No xparameters header file found, missing hardware ref design?"
-                exit 1
-			fi
-		fi
+else
+    oefatal "No xparameters header file found, missing hardware ref design?"
+    exit 1
+fi
+}
+
+do_configure_prepend() {
+#first check that the XILINX_BSP_PATH and XILINX_BOARD have been defined in local.conf
+#now depending on the board type and arch do what is nessesary
+if [ -n "${XILINX_BSP_PATH}" ]; then
+	if [ -n "${XILINX_BOARD}" ]; then
+        if [ -d "${S}/board/xilinx" ]; then
+            do_export_xparam
+        fi
 	else
 		oefatal "XILINX_BOARD not defined ! Exit"
 		exit 1
-- 
1.7.3.4



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

* [PATCH 11/25] xilinx-boot: add do_mk_xparam function
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (8 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 10/25] xilinx-boot: split configure function Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 12/25] u-boot-xilinx: ml507 uartlite support Adrian Alonso
                   ` (13 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* do_mk_xparam function enables building i2c, sysace, lltemac
  xilinx drivers based on hardware setting, if hardware modules
  are present in the hwd project then are drivers build is enabled
* Add do_mk_xparam function call in configure_prepend stage

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 classes/xilinx-boot.bbclass |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/classes/xilinx-boot.bbclass b/classes/xilinx-boot.bbclass
index 501734d..39c0c88 100644
--- a/classes/xilinx-boot.bbclass
+++ b/classes/xilinx-boot.bbclass
@@ -71,6 +71,31 @@ else
 fi
 }
 
+do_mk_xparam() {
+oenote "Replacing xparameters.mk configuration file"
+if [ "${TARGET_ARCH}" == "powerpc" ]; then
+	xparam="${XILINX_BSP_PATH}/ppc${TARGET_CPU}_0/include/xparameters.h"
+
+    if grep -qoe XPAR_IIC_0_DEVICE_ID ${xparam}; then
+        echo -e "XPAR_IIC        := y" > ${S}/board/xilinx/${UBOOT_TARGET}/xparameters.mk
+    else
+        echo -e "XPAR_IIC        := n" > ${S}/board/xilinx/${UBOOT_TARGET}/xparameters.mk
+    fi
+
+    if grep -qoe XPAR_LLTEMAC_0_DEVICE_ID ${xparam}; then
+        echo -e "XPAR_LLTEMAC    := y" >> ${S}/board/xilinx/${UBOOT_TARGET}/xparameters.mk
+    else
+        echo -e "XPAR_LLTEMAC    := n" >> ${S}/board/xilinx/${UBOOT_TARGET}/xparameters.mk
+    fi
+
+    if grep -qoe XPAR_SYSACE_0_DEVICE_ID ${xparam}; then
+        echo -e "XPAR_SYSACE     := y" >> ${S}/board/xilinx/${UBOOT_TARGET}/xparameters.mk
+    else
+        echo -e "XPAR_SYSACE     := n" >> ${S}/board/xilinx/${UBOOT_TARGET}/xparameters.mk
+    fi
+fi
+}
+
 do_configure_prepend() {
 #first check that the XILINX_BSP_PATH and XILINX_BOARD have been defined in local.conf
 #now depending on the board type and arch do what is nessesary
@@ -78,6 +103,7 @@ if [ -n "${XILINX_BSP_PATH}" ]; then
 	if [ -n "${XILINX_BOARD}" ]; then
         if [ -d "${S}/board/xilinx" ]; then
             do_export_xparam
+            do_mk_xparam
         fi
 	else
 		oefatal "XILINX_BOARD not defined ! Exit"
-- 
1.7.3.4



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

* [PATCH 12/25] u-boot-xilinx: ml507 uartlite support
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (9 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 11/25] xilinx-boot: add do_mk_xparam function Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 13/25] u-boot-xilinx: remove hardcoded include path Adrian Alonso
                   ` (12 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Add u-boot ml507 uartlite support
* Fix hardcodded macros for uartns550 setting uart and
  PLB bus frequency for ml507 target board
* Bump PR

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 .../files/ml507-add-uartlite-config-options.patch  |   51 ++++++++++++++++++++
 ...507-replace-hardcode-macros-for-uartns550.patch |   35 +++++++++++++
 recipes-bsp/uboot/u-boot-xilinx_git.bb             |    4 +-
 3 files changed, 89 insertions(+), 1 deletions(-)
 create mode 100644 recipes-bsp/uboot/files/ml507-add-uartlite-config-options.patch
 create mode 100644 recipes-bsp/uboot/files/ml507-replace-hardcode-macros-for-uartns550.patch

diff --git a/recipes-bsp/uboot/files/ml507-add-uartlite-config-options.patch b/recipes-bsp/uboot/files/ml507-add-uartlite-config-options.patch
new file mode 100644
index 0000000..cdde911
--- /dev/null
+++ b/recipes-bsp/uboot/files/ml507-add-uartlite-config-options.patch
@@ -0,0 +1,51 @@
+From 6e3db4846a393558324733a1d18fdf9858d543fe Mon Sep 17 00:00:00 2001
+From: Adrian Alonso <aalonso00@gmail.com>
+Date: Fri, 17 Dec 2010 15:56:45 -0600
+Subject: [PATCH 1/2] ml507: add uartlite config options
+
+* Add CONFIG_XILINX_UARTLITE options
+* From xparameters find out which serial module
+  is included in the hardware project and configure
+  accord the available device
+
+Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
+---
+ include/configs/ml507.h |   16 +++++++++++++++-
+ 1 files changed, 15 insertions(+), 1 deletions(-)
+
+diff --git a/include/configs/ml507.h b/include/configs/ml507.h
+index 6454ef5..be429b6 100644
+--- a/include/configs/ml507.h
++++ b/include/configs/ml507.h
+@@ -172,7 +172,18 @@
+
+ #define CFG_MEMTEST_START	0x0400000	/* memtest works on	*/
+ #define CFG_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/
+-
++/*
++ *  * Serial port
++ *   * uartLite
++ *    */
++#ifdef XPAR_UARTLITE_0_BASEADDR
++#define CONFIG_XILINX_UARTLITE
++#define CONFIG_SERIAL_BASE      XPAR_UARTLITE_0_BASEADDR
++#define CONFIG_BAUDRATE         XPAR_UARTLITE_0_BAUDRATE
++#define CONFIG_SYS_BAUDRATE_TABLE   { CONFIG_BAUDRATE }
++#define XPAR_UART_0_CLOCK_FREQ_HZ XPAR_PLB_CLOCK_FREQ_HZ
++#else
++#ifdef XPAR_UARTNS550_0_BASEADDR
+ /*
+  * 16550 UART and console
+  */
+@@ -183,6 +194,9 @@
+ #define CFG_NS16550_REG_SIZE	-4
+ #define CFG_NS16550_CLK		XPAR_XUARTNS550_CLOCK_HZ
+ #define CFG_NS16550_COM1	(XPAR_UARTNS550_0_BASEADDR + 0x1003)
++#define XPAR_UART_0_CLOCK_FREQ_HZ   XPAR_XUARTNS550_CLOCK_HZ
++#endif
++#endif
+
+ #define CFG_BAUDRATE_TABLE	\
+ 	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
+--
+1.7.3.3
diff --git a/recipes-bsp/uboot/files/ml507-replace-hardcode-macros-for-uartns550.patch b/recipes-bsp/uboot/files/ml507-replace-hardcode-macros-for-uartns550.patch
new file mode 100644
index 0000000..8a94618
--- /dev/null
+++ b/recipes-bsp/uboot/files/ml507-replace-hardcode-macros-for-uartns550.patch
@@ -0,0 +1,35 @@
+From 9d8a9331156dcba4fe1aefb066a28f67c46468b4 Mon Sep 17 00:00:00 2001
+From: Adrian Alonso <aalonso00@gmail.com>
+Date: Fri, 17 Dec 2010 15:58:53 -0600
+Subject: [PATCH 2/2] ml507: replace hardcode macros for uartns550
+
+* Replace hardcoded macros for setting PLB and uart
+  frecuency
+
+Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
+---
+ board/xilinx/ml507/ml507.c |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/board/xilinx/ml507/ml507.c b/board/xilinx/ml507/ml507.c
+index 8e6970e..0ef81c3 100644
+--- a/board/xilinx/ml507/ml507.c
++++ b/board/xilinx/ml507/ml507.c
+@@ -137,13 +137,13 @@ get_sys_info(sys_info_t * sysInfo)
+ {
+ 	sysInfo->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ;
+
+-	sysInfo->freqPLB = XPAR_UARTNS550_0_CLOCK_FREQ_HZ;
++	sysInfo->freqPLB = XPAR_UART_0_CLOCK_FREQ_HZ;
+ 	sysInfo->freqPCI = 0;
+
+ 	/* setup the uart clock frequency in the global data otherwise the 
+ 	 * fdt fixups on the device tree hoses it up
+ 	 */
+-	gd->uart_clk = XPAR_UARTNS550_0_CLOCK_FREQ_HZ;
++	gd->uart_clk = XPAR_UART_0_CLOCK_FREQ_HZ;
+ }
+
+ /*-----------------------------------------------------------------------------
+--
+1.7.3.3
diff --git a/recipes-bsp/uboot/u-boot-xilinx_git.bb b/recipes-bsp/uboot/u-boot-xilinx_git.bb
index 0a30602..c972311 100644
--- a/recipes-bsp/uboot/u-boot-xilinx_git.bb
+++ b/recipes-bsp/uboot/u-boot-xilinx_git.bb
@@ -1,5 +1,5 @@
 require ../meta/recipes-bsp/uboot/u-boot.inc
-PR = "r4"
+PR = "r5"
 THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
 FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
 
@@ -10,6 +10,8 @@ SRC_URI = "git://git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git \
            file://uboot-remove-inline-qualifier-from-show_boot_progres.patch \
            file://ml405-add-uartlite-config-options.patch \
            file://ml405-replace-hardcode-macros-for-uartns550.patch \
+           file://ml507-add-uartlite-config-options.patch \
+           file://ml507-replace-hardcode-macros-for-uartns550.patch \
           "
 SRCREV = "${TAG}"
 
-- 
1.7.3.4



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

* [PATCH 13/25] u-boot-xilinx: remove hardcoded include path
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (10 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 12/25] u-boot-xilinx: ml507 uartlite support Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 14/25] linux-xilinx: update kernel version 2.6.37 rc4 Adrian Alonso
                   ` (11 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Remove hardcodded include path, search paths are pulled from
  bblayer settings
* Bump PR

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 recipes-bsp/uboot/u-boot-xilinx_git.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-bsp/uboot/u-boot-xilinx_git.bb b/recipes-bsp/uboot/u-boot-xilinx_git.bb
index c972311..afea5f0 100644
--- a/recipes-bsp/uboot/u-boot-xilinx_git.bb
+++ b/recipes-bsp/uboot/u-boot-xilinx_git.bb
@@ -1,5 +1,5 @@
-require ../meta/recipes-bsp/uboot/u-boot.inc
-PR = "r5"
+require recipes-bsp/uboot/u-boot.inc
+PR = "r6"
 THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
 FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
 
-- 
1.7.3.4



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

* [PATCH 14/25] linux-xilinx: update kernel version 2.6.37 rc4
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (11 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 13/25] u-boot-xilinx: remove hardcoded include path Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 15/25] linux-xilinx: remove hardcoded include path Adrian Alonso
                   ` (10 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Update kernel version 2.6.37 rc4
* Remove xilinx frame buffer patch, integrated in 2.6.36
* Bump PR

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 .../linux-xilinx/xilinxfb-update-tft-comp.patch    |   28 --------------------
 recipes-kernel/linux/linux-xilinx_git.bb           |    7 ++---
 2 files changed, 3 insertions(+), 32 deletions(-)
 delete mode 100644 recipes-kernel/linux/linux-xilinx/xilinxfb-update-tft-comp.patch

diff --git a/recipes-kernel/linux/linux-xilinx/xilinxfb-update-tft-comp.patch b/recipes-kernel/linux/linux-xilinx/xilinxfb-update-tft-comp.patch
deleted file mode 100644
index ba6c77d..0000000
--- a/recipes-kernel/linux/linux-xilinx/xilinxfb-update-tft-comp.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 93d77edd37fccd03b227f259f0e52072eae9ba74 Mon Sep 17 00:00:00 2001
-From: Adrian Alonso <aalonso00@gmail.com>
-Date: Thu, 15 Jul 2010 23:16:48 -0500
-Subject: [PATCH] xilinxfb: update tft comp versions
-
-* Add tft display module compatibility for new
-  hardware modules
-
-Signed-off-by: Adrian Alonso <aalonso00@gmail.com>
----
- drivers/video/xilinxfb.c |    2 ++
- 1 files changed, 2 insertions(+), 0 deletions(-)
-
-diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c
-index ed7c8d0..829efaa 100644
---- a/drivers/video/xilinxfb.c
-+++ b/drivers/video/xilinxfb.c
-@@ -484,6 +484,8 @@ static int __devexit xilinxfb_of_remove(struct of_device *op)
- /* Match table for of_platform binding */
- static struct of_device_id xilinxfb_of_match[] __devinitdata = {
-	{ .compatible = "xlnx,xps-tft-1.00.a", },
-+	{ .compatible = "xlnx,xps-tft-2.00.a", },
-+	{ .compatible = "xlnx,xps-tft-2.01.a", },
-	{ .compatible = "xlnx,plb-tft-cntlr-ref-1.00.a", },
-	{ .compatible = "xlnx,plb-dvi-cntlr-ref-1.00.c", },
-	{},
---
-1.7.1.1
diff --git a/recipes-kernel/linux/linux-xilinx_git.bb b/recipes-kernel/linux/linux-xilinx_git.bb
index 9b44e83..0541b3f 100644
--- a/recipes-kernel/linux/linux-xilinx_git.bb
+++ b/recipes-kernel/linux/linux-xilinx_git.bb
@@ -7,13 +7,12 @@ DEFAULT_PREFERENCE = "-1"
 DEFAULT_PREFERENCE_virtex4 = "1"
 DEFAULT_PREFERENCE_virtex5 = "1"
 
-TAG="xilinx_v2.6.35"
-PV = "2.6.35+git"
-PR = "r2"
+TAG="xilinx_v2.6.37-rc4"
+PV = "2.6.37.4"
+PR = "r3"
 
 SRCREV = "${TAG}"
 SRC_URI = "git://git.xilinx.com/linux-2.6-xlnx.git;protocol=git \
-           file://xilinxfb-update-tft-comp.patch \
            file://linux-xilinx-do-not-use-OS-option.patch \
 		   file://defconfig"
 
-- 
1.7.3.4



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

* [PATCH 15/25] linux-xilinx: remove hardcoded include path
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (12 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 14/25] linux-xilinx: update kernel version 2.6.37 rc4 Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 16/25] linux-xilinx: add license files checksum Adrian Alonso
                   ` (9 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Remove hardcodded include path
* Fix inherit xilinx-kernel for sw/hw integration
* Remove configure prepend function, use default config
  mechanism
* Bump PR

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 recipes-kernel/linux/linux-xilinx_git.bb |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/recipes-kernel/linux/linux-xilinx_git.bb b/recipes-kernel/linux/linux-xilinx_git.bb
index 0541b3f..47f19b1 100644
--- a/recipes-kernel/linux/linux-xilinx_git.bb
+++ b/recipes-kernel/linux/linux-xilinx_git.bb
@@ -1,4 +1,4 @@
-require ../meta/recipes-kernel/linux/linux.inc
+require recipes-kernel/linux/linux.inc
 
 DESCRIPTION = "Linux kernel for Xilinx platforms"
 
@@ -9,21 +9,17 @@ DEFAULT_PREFERENCE_virtex5 = "1"
 
 TAG="xilinx_v2.6.37-rc4"
 PV = "2.6.37.4"
-PR = "r3"
+PR = "r4"
 
 SRCREV = "${TAG}"
 SRC_URI = "git://git.xilinx.com/linux-2.6-xlnx.git;protocol=git \
            file://linux-xilinx-do-not-use-OS-option.patch \
 		   file://defconfig"
 
-inherit kernel xilinx-bsp
+inherit kernel xilinx-kernel
 
 TARGET_BOARD = "${@map_target(bb.data.getVar('TARGET_ARCH', d, 1), d)}"
 KERNEL_DEVICETREE_virtex4 = "arch/${ARCH}/boot/dts/virtex${TARGET_BOARD}.dts"
 KERNEL_DEVICETREE_virtex5 = "arch/${ARCH}/boot/dts/virtex${TARGET_BOARD}.dts"
 
 S = "${WORKDIR}/git"
-
-do_configure_prepend() {
-    install -m 0644 ${WORKDIR}/defconfig ${S}/.config
-}
-- 
1.7.3.4



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

* [PATCH 16/25] linux-xilinx: add license files checksum
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (13 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 15/25] linux-xilinx: remove hardcoded include path Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 17/25] device-table: add tty uartlite static dev nodes Adrian Alonso
                   ` (8 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Add LICENSE_FILES_CHKSUM information
* Bump PR

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 recipes-kernel/linux/linux-xilinx_git.bb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/recipes-kernel/linux/linux-xilinx_git.bb b/recipes-kernel/linux/linux-xilinx_git.bb
index 47f19b1..1d15437 100644
--- a/recipes-kernel/linux/linux-xilinx_git.bb
+++ b/recipes-kernel/linux/linux-xilinx_git.bb
@@ -7,9 +7,12 @@ DEFAULT_PREFERENCE = "-1"
 DEFAULT_PREFERENCE_virtex4 = "1"
 DEFAULT_PREFERENCE_virtex5 = "1"
 
+LICENSE = "GPL"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+
 TAG="xilinx_v2.6.37-rc4"
 PV = "2.6.37.4"
-PR = "r4"
+PR = "r5"
 
 SRCREV = "${TAG}"
 SRC_URI = "git://git.xilinx.com/linux-2.6-xlnx.git;protocol=git \
-- 
1.7.3.4



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

* [PATCH 17/25] device-table: add tty uartlite static dev nodes
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (14 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 16/25] linux-xilinx: add license files checksum Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 18/25] u-boot-xilinx: add license files checksum Adrian Alonso
                   ` (7 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Add static dev nodes for uartlite serial console
  ttyULx

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 files/device_table_add-xsa.txt |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/files/device_table_add-xsa.txt b/files/device_table_add-xsa.txt
index a0bc48e..23cc8c9 100644
--- a/files/device_table_add-xsa.txt
+++ b/files/device_table_add-xsa.txt
@@ -3,3 +3,4 @@
 /dev/xsa1   b   640     0   1   125     0   0   0   -
 /dev/xsa2   b   640     0   2   125     0   0   0   -
 /dev/xsa3   b   640     0   3   125     0   0   0   -
+/dev/ttyUL  c   666     0   0   204     187 0   1   4
-- 
1.7.3.4



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

* [PATCH 18/25] u-boot-xilinx: add license files checksum
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (15 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 17/25] device-table: add tty uartlite static dev nodes Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 19/25] tune-ppc405: append ppc440 in PACKAGE_EXTRA_ARCHS Adrian Alonso
                   ` (6 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Add LICENSE_FILES_CHKSUM information
* Bump PR

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 recipes-bsp/uboot/u-boot-xilinx_git.bb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/recipes-bsp/uboot/u-boot-xilinx_git.bb b/recipes-bsp/uboot/u-boot-xilinx_git.bb
index afea5f0..86e798a 100644
--- a/recipes-bsp/uboot/u-boot-xilinx_git.bb
+++ b/recipes-bsp/uboot/u-boot-xilinx_git.bb
@@ -1,7 +1,8 @@
 require recipes-bsp/uboot/u-boot.inc
-PR = "r6"
+PR = "r7"
 THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
 FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4c6cde5df68eff615d36789dc18edd3b"
 
 BRANCH="master"
 TAG="e094f2479ea339d7f48b6826f06f0be4984d9a98"
-- 
1.7.3.4



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

* [PATCH 19/25] tune-ppc405: append ppc440 in PACKAGE_EXTRA_ARCHS
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (16 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 18/25] u-boot-xilinx: add license files checksum Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 20/25] tune-ppc440: append ppc405 " Adrian Alonso
                   ` (5 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Append ppc440 in PACKAGE_EXTRA_ARCHS
* Support gnueabi toolchain for pcc440 and ppc405 archs
  (Xilinx PowerPC targets)

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 conf/machine/include/tune-ppc405.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/conf/machine/include/tune-ppc405.inc b/conf/machine/include/tune-ppc405.inc
index e5edd68..53332c9 100644
--- a/conf/machine/include/tune-ppc405.inc
+++ b/conf/machine/include/tune-ppc405.inc
@@ -3,4 +3,4 @@ TARGET_FPU   ?=  "soft"
 TARGET_CC_ARCH = "-mcpu=405"
 BASE_PACKAGE_ARCH = "ppc405"
 FEED_ARCH = "ppc405"
-PACKAGE_EXTRA_ARCHS += "ppc405"
+PACKAGE_EXTRA_ARCHS += "ppc405 ppc440"
-- 
1.7.3.4



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

* [PATCH 20/25] tune-ppc440: append ppc405 in PACKAGE_EXTRA_ARCHS
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (17 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 19/25] tune-ppc405: append ppc440 in PACKAGE_EXTRA_ARCHS Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 21/25] virtex4: update default serial console Adrian Alonso
                   ` (4 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Append ppc405 in PACKAGE_EXTRA_ARCHS
* Support gnueabi toolchain for pcc440 and ppc405 archs
  (Xilinx PowerPC targets)

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 conf/machine/include/tune-ppc440.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/conf/machine/include/tune-ppc440.inc b/conf/machine/include/tune-ppc440.inc
index 709727c..bdfb13f 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 += "${BASE_PACKAGE_ARCH}"
+PACKAGE_EXTRA_ARCHS += "${BASE_PACKAGE_ARCH} ppc405"
-- 
1.7.3.4



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

* [PATCH 21/25] virtex4: update default serial console
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (18 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 20/25] tune-ppc440: append ppc405 " Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 22/25] virtex5: " Adrian Alonso
                   ` (3 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Update default serial console for Virtex4 target board
* From Xilinx Platform Studio (XPS) the default serial module
  included is uartlite that maps to ttyUL0 dev node

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 conf/machine/virtex4.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/conf/machine/virtex4.conf b/conf/machine/virtex4.conf
index e395d1f..f9643cb 100644
--- a/conf/machine/virtex4.conf
+++ b/conf/machine/virtex4.conf
@@ -29,7 +29,7 @@ UBOOT_LOADADDRESS ?= "0x00000000"
 
 # Don't use tty1
 USE_VT = "0"
-SERIAL_CONSOLE = "9600 ttyS0"
+SERIAL_CONSOLE ?= "9600 ttyUL0"
 
 # Device nodes add xsa for (system ace)
 IMAGE_DEVICE_TABLES = "files/device_table-minimal.txt \
-- 
1.7.3.4



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

* [PATCH 22/25] virtex5: update default serial console
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (19 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 21/25] virtex4: update default serial console Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 23/25] defconfig: virtex4 config for linux 2.6.37.rc4 Adrian Alonso
                   ` (2 subsequent siblings)
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Update default serial console for Virtex5 target board
* From Xilinx Platform Studio (XPS) the default serial module
  included is uartlite that maps to ttyUL0 dev node

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 conf/machine/virtex5.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/conf/machine/virtex5.conf b/conf/machine/virtex5.conf
index a778a77..232ab6a 100644
--- a/conf/machine/virtex5.conf
+++ b/conf/machine/virtex5.conf
@@ -29,7 +29,7 @@ UBOOT_LOADADDRESS ?= "0x00000000"
 
 # Don't use tty1
 # USE_VT = "0"
-SERIAL_CONSOLE = "9600 ttyS0"
+SERIAL_CONSOLE ?= "9600 ttyUL0"
 
 # Device nodes add xsa for (system ace)
 IMAGE_DEVICE_TABLES = "files/device_table-minimal.txt \
-- 
1.7.3.4



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

* [PATCH 23/25] defconfig: virtex4 config for linux 2.6.37.rc4
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (20 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 22/25] virtex5: " Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 24/25] defconfig: virtex5 " Adrian Alonso
  2011-01-17 20:29 ` [PATCH 25/25] openssl: powerpc gnueabi toolchain support Adrian Alonso
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Update defconfig for linux 2.6.37 rc4
* Enable xilinx spi driver

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 .../linux/linux-xilinx/virtex4/defconfig           |  222 +++++++++++++++++---
 1 files changed, 188 insertions(+), 34 deletions(-)

diff --git a/recipes-kernel/linux/linux-xilinx/virtex4/defconfig b/recipes-kernel/linux/linux-xilinx/virtex4/defconfig
index 25aab9d..587f2b7 100644
--- a/recipes-kernel/linux/linux-xilinx/virtex4/defconfig
+++ b/recipes-kernel/linux/linux-xilinx/virtex4/defconfig
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
-# Linux kernel version: 2.6.33
-# Wed Jun  2 23:48:57 2010
+# Linux/powerpc 2.6.37-rc4 Kernel Configuration
+# Tue Jan 11 17:34:49 2011
 #
 # CONFIG_PPC64 is not set
 
@@ -61,8 +61,13 @@ CONFIG_PPC_DCR_NATIVE=y
 CONFIG_PPC_DCR_MMIO=y
 CONFIG_PPC_DCR=y
 CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
+CONFIG_PPC_ADV_DEBUG_REGS=y
+CONFIG_PPC_ADV_DEBUG_IACS=2
+CONFIG_PPC_ADV_DEBUG_DACS=2
+CONFIG_PPC_ADV_DEBUG_DVCS=0
 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
 CONFIG_CONSTRUCTORS=y
+CONFIG_HAVE_IRQ_WORK=y
 
 #
 # General setup
@@ -71,6 +76,7 @@ CONFIG_EXPERIMENTAL=y
 CONFIG_BROKEN_ON_SMP=y
 CONFIG_LOCK_KERNEL=y
 CONFIG_INIT_ENV_ARG_LIMIT=32
+CONFIG_CROSS_COMPILE=""
 CONFIG_LOCALVERSION=""
 # CONFIG_LOCALVERSION_AUTO is not set
 CONFIG_SWAP=y
@@ -95,7 +101,6 @@ CONFIG_RCU_FANOUT=32
 CONFIG_IKCONFIG=y
 CONFIG_IKCONFIG_PROC=y
 CONFIG_LOG_BUF_SHIFT=14
-# CONFIG_GROUP_SCHED is not set
 # CONFIG_CGROUPS is not set
 # CONFIG_SYSFS_DEPRECATED_V2 is not set
 # CONFIG_RELAY is not set
@@ -105,12 +110,7 @@ CONFIG_NAMESPACES=y
 # CONFIG_USER_NS is not set
 # CONFIG_PID_NS is not set
 # CONFIG_NET_NS is not set
-CONFIG_BLK_DEV_INITRD=y
-CONFIG_INITRAMFS_SOURCE=""
-CONFIG_RD_GZIP=y
-CONFIG_RD_BZIP2=y
-CONFIG_RD_LZMA=y
-CONFIG_RD_LZO=y
+# CONFIG_BLK_DEV_INITRD is not set
 # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
 CONFIG_SYSCTL=y
 CONFIG_ANON_INODES=y
@@ -153,6 +153,7 @@ CONFIG_HAVE_KPROBES=y
 CONFIG_HAVE_KRETPROBES=y
 CONFIG_HAVE_ARCH_TRACEHOOK=y
 CONFIG_HAVE_DMA_ATTRS=y
+CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
 CONFIG_HAVE_DMA_API_DEBUG=y
 
 #
@@ -222,6 +223,7 @@ CONFIG_DEFAULT_IOSCHED="cfq"
 # CONFIG_PPC_CELL is not set
 # CONFIG_PPC_CELL_NATIVE is not set
 # CONFIG_PQ2ADS is not set
+# CONFIG_ISS4xx is not set
 # CONFIG_PPC4xx_GPIO is not set
 CONFIG_XILINX_VIRTEX=y
 # CONFIG_ACADIA is not set
@@ -237,6 +239,7 @@ CONFIG_XILINX_VIRTEX_II_PRO=y
 CONFIG_XILINX_VIRTEX_4_FX=y
 CONFIG_IBM405_ERR77=y
 CONFIG_IBM405_ERR51=y
+CONFIG_KVM_GUEST=y
 # CONFIG_IPIC is not set
 # CONFIG_MPIC is not set
 # CONFIG_MPIC_WEIRD is not set
@@ -288,6 +291,7 @@ CONFIG_FLATMEM_MANUAL=y
 # CONFIG_SPARSEMEM_MANUAL is not set
 CONFIG_FLATMEM=y
 CONFIG_FLAT_NODE_MEM_MAP=y
+CONFIG_HAVE_MEMBLOCK=y
 CONFIG_PAGEFLAGS_EXTENDED=y
 CONFIG_SPLIT_PTLOCK_CPUS=4
 CONFIG_MIGRATION=y
@@ -297,6 +301,7 @@ CONFIG_BOUNCE=y
 CONFIG_VIRT_TO_BUS=y
 # CONFIG_KSM is not set
 CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
+CONFIG_NEED_PER_CPU_KM=y
 CONFIG_PPC_4K_PAGES=y
 # CONFIG_PPC_16K_PAGES is not set
 # CONFIG_PPC_64K_PAGES is not set
@@ -304,8 +309,8 @@ CONFIG_PPC_4K_PAGES=y
 CONFIG_FORCE_MAX_ZONEORDER=11
 CONFIG_PROC_DEVICETREE=y
 CONFIG_CMDLINE_BOOL=y
-CONFIG_CMDLINE=" debug "
-CONFIG_EXTRA_TARGETS="simpleImage.virtex405-ml405 simpleImage.initrd.virtex405-ml405"
+CONFIG_CMDLINE=""
+CONFIG_EXTRA_TARGETS=""
 # CONFIG_PM is not set
 CONFIG_SECCOMP=y
 # CONFIG_COMPRESSED_DEVICE_TREE is not set
@@ -315,6 +320,9 @@ CONFIG_ISA_DMA_API=y
 # Bus options
 #
 CONFIG_ZONE_DMA=y
+CONFIG_NEED_DMA_MAP_STATE=y
+CONFIG_NEED_SG_DMA_LENGTH=y
+CONFIG_GENERIC_ISA_DMA=y
 CONFIG_PPC_INDIRECT_PCI=y
 CONFIG_4xx_SOC=y
 CONFIG_PPC_PCI_CHOICE=y
@@ -324,7 +332,6 @@ CONFIG_PCI_SYSCALL=y
 # CONFIG_PCIEPORTBUS is not set
 CONFIG_ARCH_SUPPORTS_MSI=y
 # CONFIG_PCI_MSI is not set
-# CONFIG_PCI_LEGACY is not set
 # CONFIG_PCI_DEBUG is not set
 # CONFIG_PCI_STUB is not set
 # CONFIG_PCI_IOV is not set
@@ -352,7 +359,6 @@ CONFIG_NET=y
 # Networking options
 #
 CONFIG_PACKET=y
-# CONFIG_PACKET_MMAP is not set
 CONFIG_UNIX=y
 CONFIG_XFRM=y
 # CONFIG_XFRM_USER is not set
@@ -409,6 +415,7 @@ CONFIG_IPV6_NDISC_NODETYPE=y
 # CONFIG_IPV6_MULTIPLE_TABLES is not set
 # CONFIG_IPV6_MROUTE is not set
 # CONFIG_NETWORK_SECMARK is not set
+# CONFIG_NETWORK_PHY_TIMESTAMPING is not set
 CONFIG_NETFILTER=y
 # CONFIG_NETFILTER_DEBUG is not set
 CONFIG_NETFILTER_ADVANCED=y
@@ -421,6 +428,15 @@ CONFIG_NETFILTER_ADVANCED=y
 # CONFIG_NF_CONNTRACK is not set
 # CONFIG_NETFILTER_TPROXY is not set
 CONFIG_NETFILTER_XTABLES=m
+
+#
+# Xtables combined modules
+#
+# CONFIG_NETFILTER_XT_MARK is not set
+
+#
+# Xtables targets
+#
 # CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set
 # CONFIG_NETFILTER_XT_TARGET_DSCP is not set
 # CONFIG_NETFILTER_XT_TARGET_HL is not set
@@ -428,8 +444,13 @@ CONFIG_NETFILTER_XTABLES=m
 # CONFIG_NETFILTER_XT_TARGET_NFLOG is not set
 # CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set
 # CONFIG_NETFILTER_XT_TARGET_RATEEST is not set
+# CONFIG_NETFILTER_XT_TARGET_TEE is not set
 # CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set
 # CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set
+
+#
+# Xtables matches
+#
 # CONFIG_NETFILTER_XT_MATCH_COMMENT is not set
 # CONFIG_NETFILTER_XT_MATCH_DCCP is not set
 # CONFIG_NETFILTER_XT_MATCH_DSCP is not set
@@ -487,6 +508,7 @@ CONFIG_IP_NF_MANGLE=m
 # CONFIG_RDS is not set
 # CONFIG_TIPC is not set
 # CONFIG_ATM is not set
+# CONFIG_L2TP is not set
 # CONFIG_BRIDGE is not set
 # CONFIG_NET_DSA is not set
 # CONFIG_VLAN_8021Q is not set
@@ -519,9 +541,14 @@ CONFIG_WIRELESS=y
 #
 # CFG80211 needs to be enabled for MAC80211
 #
+
+#
+# Some wireless drivers require a rate control algorithm
+#
 # CONFIG_WIMAX is not set
 # CONFIG_RFKILL is not set
 # CONFIG_NET_9P is not set
+# CONFIG_CAIF is not set
 
 #
 # Device Drivers
@@ -563,6 +590,7 @@ CONFIG_MTD_BLOCK=y
 # CONFIG_INFTL is not set
 # CONFIG_RFD_FTL is not set
 # CONFIG_SSFDC is not set
+# CONFIG_SM_FTL is not set
 # CONFIG_MTD_OOPS is not set
 
 #
@@ -603,6 +631,9 @@ CONFIG_MTD_PHYSMAP_OF=y
 # Self-contained MTD device drivers
 #
 # CONFIG_MTD_PMC551 is not set
+# CONFIG_MTD_DATAFLASH is not set
+# CONFIG_MTD_M25P80 is not set
+# CONFIG_MTD_SST25L is not set
 # CONFIG_MTD_SLRAM is not set
 # CONFIG_MTD_PHRAM is not set
 # CONFIG_MTD_MTDRAM is not set
@@ -626,8 +657,21 @@ CONFIG_MTD_PHYSMAP_OF=y
 # UBI - Unsorted block images
 #
 # CONFIG_MTD_UBI is not set
+CONFIG_DTC=y
+CONFIG_OF=y
+
+#
+# Device Tree and Open Firmware support
+#
+CONFIG_PROC_DEVICETREE=y
+CONFIG_OF_FLATTREE=y
+CONFIG_OF_DYNAMIC=y
+CONFIG_OF_ADDRESS=y
+CONFIG_OF_IRQ=y
 CONFIG_OF_DEVICE=y
 CONFIG_OF_GPIO=y
+CONFIG_OF_SPI=y
+CONFIG_OF_MDIO=y
 # CONFIG_PARPORT is not set
 CONFIG_BLK_DEV=y
 # CONFIG_BLK_DEV_FD is not set
@@ -653,26 +697,39 @@ CONFIG_BLK_DEV_RAM_SIZE=8192
 CONFIG_XILINX_SYSACE=y
 # CONFIG_BLK_DEV_HD is not set
 CONFIG_MISC_DEVICES=y
+# CONFIG_AD525X_DPOT is not set
 # CONFIG_PHANTOM is not set
 # CONFIG_SGI_IOC4 is not set
 # CONFIG_TIFM_CORE is not set
+# CONFIG_ICS932S401 is not set
 # CONFIG_ENCLOSURE_SERVICES is not set
 # CONFIG_HP_ILO is not set
+# CONFIG_ISL29003 is not set
+# CONFIG_SENSORS_TSL2550 is not set
+# CONFIG_DS1682 is not set
+# CONFIG_TI_DAC7512 is not set
 # CONFIG_C2PORT is not set
 
 #
 # EEPROM support
 #
+# CONFIG_EEPROM_AT24 is not set
+# CONFIG_EEPROM_AT25 is not set
+# CONFIG_EEPROM_LEGACY is not set
+# CONFIG_EEPROM_MAX6875 is not set
 # CONFIG_EEPROM_93CX6 is not set
 # CONFIG_CB710_CORE is not set
 CONFIG_XILINX_DRIVERS=y
+CONFIG_NEED_XILINX_DMAV3=y
 CONFIG_NEED_XILINX_LLDMA=y
+CONFIG_NEED_XILINX_IPIF=y
 CONFIG_HAVE_IDE=y
 # CONFIG_IDE is not set
 
 #
 # SCSI device support
 #
+CONFIG_SCSI_MOD=y
 # CONFIG_RAID_ATTRS is not set
 # CONFIG_SCSI is not set
 # CONFIG_SCSI_DMA is not set
@@ -704,13 +761,34 @@ CONFIG_NETDEVICES=y
 # CONFIG_TUN is not set
 # CONFIG_VETH is not set
 # CONFIG_ARCNET is not set
-# CONFIG_PHYLIB is not set
-CONFIG_NET_ETHERNET=y
 CONFIG_MII=y
+CONFIG_PHYLIB=y
+
+#
+# MII PHY device drivers
+#
+# CONFIG_MARVELL_PHY is not set
+# CONFIG_DAVICOM_PHY is not set
+# CONFIG_QSEMI_PHY is not set
+# CONFIG_LXT_PHY is not set
+# CONFIG_CICADA_PHY is not set
+# CONFIG_VITESSE_PHY is not set
+# CONFIG_SMSC_PHY is not set
+# CONFIG_BROADCOM_PHY is not set
+# CONFIG_ICPLUS_PHY is not set
+# CONFIG_REALTEK_PHY is not set
+# CONFIG_NATIONAL_PHY is not set
+# CONFIG_STE10XP is not set
+# CONFIG_LSI_ET1011C_PHY is not set
+# CONFIG_MICREL_PHY is not set
+CONFIG_FIXED_PHY=y
+# CONFIG_MDIO_BITBANG is not set
+CONFIG_NET_ETHERNET=y
 # CONFIG_HAPPYMEAL is not set
 # CONFIG_SUNGEM is not set
 # CONFIG_CASSINI is not set
 # CONFIG_NET_VENDOR_3COM is not set
+# CONFIG_ENC28J60 is not set
 # CONFIG_ETHOC is not set
 # CONFIG_DNET is not set
 # CONFIG_NET_TULIP is not set
@@ -726,10 +804,11 @@ CONFIG_MII=y
 # CONFIG_NET_PCI is not set
 # CONFIG_B44 is not set
 # CONFIG_KS8842 is not set
+# CONFIG_KS8851 is not set
 # CONFIG_KS8851_MLL is not set
 # CONFIG_XILINX_EMAC is not set
 # CONFIG_ATL2 is not set
-# CONFIG_XILINX_EMACLITE is not set
+CONFIG_XILINX_EMACLITE=y
 CONFIG_NETDEV_1000=y
 # CONFIG_ACENIC is not set
 # CONFIG_DL2K is not set
@@ -750,7 +829,7 @@ CONFIG_NETDEV_1000=y
 # CONFIG_BNX2 is not set
 # CONFIG_CNIC is not set
 # CONFIG_MV643XX_ETH is not set
-# CONFIG_XILINX_LL_TEMAC is not set
+CONFIG_XILINX_LL_TEMAC=y
 # CONFIG_QLA3XXX is not set
 # CONFIG_ATL1 is not set
 # CONFIG_XILINX_TEMAC is not set
@@ -762,6 +841,8 @@ CONFIG_XILINX_LLTEMAC_MARVELL_88E1111_GMII=y
 # CONFIG_XILINX_LLTEMAC_NATIONAL_DP83865_GMII is not set
 # CONFIG_ATL1C is not set
 # CONFIG_JME is not set
+# CONFIG_STMMAC_ETH is not set
+# CONFIG_PCH_GBE is not set
 # CONFIG_NETDEV_10000 is not set
 # CONFIG_TR is not set
 CONFIG_WLAN=y
@@ -808,10 +889,14 @@ CONFIG_INPUT_EVDEV=y
 # Input Device Drivers
 #
 CONFIG_INPUT_KEYBOARD=y
+# CONFIG_KEYBOARD_ADP5588 is not set
 CONFIG_KEYBOARD_ATKBD=y
+# CONFIG_KEYBOARD_QT2160 is not set
 # CONFIG_KEYBOARD_LKKBD is not set
 # CONFIG_KEYBOARD_GPIO is not set
+# CONFIG_KEYBOARD_TCA6416 is not set
 # CONFIG_KEYBOARD_MATRIX is not set
+# CONFIG_KEYBOARD_MAX7359 is not set
 # CONFIG_KEYBOARD_NEWTON is not set
 # CONFIG_KEYBOARD_OPENCORES is not set
 # CONFIG_KEYBOARD_STOWAWAY is not set
@@ -829,6 +914,7 @@ CONFIG_MOUSE_PS2_TRACKPOINT=y
 # CONFIG_MOUSE_SERIAL is not set
 # CONFIG_MOUSE_VSXXXAA is not set
 # CONFIG_MOUSE_GPIO is not set
+# CONFIG_MOUSE_SYNAPTICS_I2C is not set
 # CONFIG_INPUT_JOYSTICK is not set
 # CONFIG_INPUT_TABLET is not set
 # CONFIG_INPUT_TOUCHSCREEN is not set
@@ -846,6 +932,7 @@ CONFIG_SERIO_LIBPS2=y
 CONFIG_SERIO_XILINX_XPS_PS2=y
 # CONFIG_SERIO_RAW is not set
 # CONFIG_SERIO_ALTERA_PS2 is not set
+# CONFIG_SERIO_PS2MULT is not set
 # CONFIG_GAMEPORT is not set
 
 #
@@ -858,6 +945,7 @@ CONFIG_HW_CONSOLE=y
 # CONFIG_VT_HW_CONSOLE_BINDING is not set
 CONFIG_DEVKMEM=y
 # CONFIG_SERIAL_NONSTANDARD is not set
+# CONFIG_N_GSM is not set
 # CONFIG_NOZOMI is not set
 
 #
@@ -873,6 +961,9 @@ CONFIG_SERIAL_8250_RUNTIME_UARTS=4
 #
 # Non-8250 serial port support
 #
+# CONFIG_SERIAL_MAX3100 is not set
+# CONFIG_SERIAL_MAX3107 is not set
+# CONFIG_SERIAL_MFD_HSU is not set
 CONFIG_SERIAL_UARTLITE=y
 CONFIG_SERIAL_UARTLITE_CONSOLE=y
 CONFIG_SERIAL_CORE=y
@@ -880,7 +971,10 @@ CONFIG_SERIAL_CORE_CONSOLE=y
 # CONFIG_SERIAL_JSM is not set
 CONFIG_SERIAL_OF_PLATFORM=y
 # CONFIG_SERIAL_OF_PLATFORM_NWPSERIAL is not set
+# CONFIG_SERIAL_TIMBERDALE is not set
 # CONFIG_SERIAL_GRLIB_GAISLER_APBUART is not set
+# CONFIG_SERIAL_ALTERA_JTAGUART is not set
+# CONFIG_SERIAL_ALTERA_UART is not set
 CONFIG_UNIX98_PTYS=y
 # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
 CONFIG_LEGACY_PTYS=y
@@ -897,8 +991,27 @@ CONFIG_XILINX_HWICAP=y
 # CONFIG_RAW_DRIVER is not set
 # CONFIG_TCG_TPM is not set
 CONFIG_DEVPORT=y
+# CONFIG_RAMOOPS is not set
 # CONFIG_I2C is not set
-# CONFIG_SPI is not set
+CONFIG_SPI=y
+# CONFIG_SPI_DEBUG is not set
+CONFIG_SPI_MASTER=y
+
+#
+# SPI Master Controller Drivers
+#
+CONFIG_SPI_BITBANG=y
+# CONFIG_SPI_GPIO is not set
+# CONFIG_SPI_PPC4xx is not set
+# CONFIG_SPI_TOPCLIFF_PCH is not set
+CONFIG_SPI_XILINX=y
+# CONFIG_SPI_DESIGNWARE is not set
+
+#
+# SPI Protocol Masters
+#
+# CONFIG_SPI_SPIDEV is not set
+# CONFIG_SPI_TLE62X0 is not set
 
 #
 # PPS support
@@ -912,11 +1025,18 @@ CONFIG_GPIO_SYSFS=y
 #
 # Memory mapped GPIO expanders:
 #
+# CONFIG_GPIO_IT8761E is not set
 CONFIG_GPIO_XILINX=y
+# CONFIG_GPIO_SCH is not set
 
 #
 # I2C GPIO expanders:
 #
+# CONFIG_GPIO_MAX7300 is not set
+# CONFIG_GPIO_MAX732X is not set
+# CONFIG_GPIO_PCA953X is not set
+# CONFIG_GPIO_PCF857X is not set
+# CONFIG_GPIO_ADP5588 is not set
 
 #
 # PCI GPIO expanders:
@@ -924,14 +1044,22 @@ CONFIG_GPIO_XILINX=y
 # CONFIG_GPIO_CS5535 is not set
 # CONFIG_GPIO_BT8XX is not set
 # CONFIG_GPIO_LANGWELL is not set
+# CONFIG_GPIO_RDC321X is not set
 
 #
 # SPI GPIO expanders:
 #
+# CONFIG_GPIO_MAX7301 is not set
+# CONFIG_GPIO_MCP23S08 is not set
+# CONFIG_GPIO_MC33880 is not set
 
 #
 # AC97 GPIO expanders:
 #
+
+#
+# MODULbus GPIO expanders:
+#
 # CONFIG_W1 is not set
 # CONFIG_POWER_SUPPLY is not set
 # CONFIG_HWMON is not set
@@ -943,22 +1071,55 @@ CONFIG_SSB_POSSIBLE=y
 # Sonics Silicon Backplane
 #
 # CONFIG_SSB is not set
-
-#
-# Multifunction device drivers
-#
+CONFIG_MFD_SUPPORT=y
 # CONFIG_MFD_CORE is not set
 # CONFIG_MFD_SM501 is not set
 # CONFIG_HTC_PASIC3 is not set
+# CONFIG_TPS65010 is not set
+# CONFIG_TPS6507X is not set
 # CONFIG_MFD_TMIO is not set
+# CONFIG_MFD_WM8400 is not set
+# CONFIG_MFD_PCF50633 is not set
+# CONFIG_MFD_MC13783 is not set
+# CONFIG_ABX500_CORE is not set
+# CONFIG_EZX_PCAP is not set
+# CONFIG_AB8500_CORE is not set
+# CONFIG_MFD_TIMBERDALE is not set
+# CONFIG_LPC_SCH is not set
+# CONFIG_MFD_RDC321X is not set
+# CONFIG_MFD_JANZ_CMODIO is not set
 # CONFIG_REGULATOR is not set
-# CONFIG_MEDIA_SUPPORT is not set
+CONFIG_MEDIA_SUPPORT=y
+
+#
+# Multimedia core support
+#
+# CONFIG_VIDEO_DEV is not set
+# CONFIG_DVB_CORE is not set
+# CONFIG_VIDEO_MEDIA is not set
+
+#
+# Multimedia drivers
+#
+CONFIG_IR_CORE=y
+CONFIG_VIDEO_IR=y
+CONFIG_LIRC=y
+CONFIG_RC_MAP=y
+CONFIG_IR_NEC_DECODER=y
+CONFIG_IR_RC5_DECODER=y
+CONFIG_IR_RC6_DECODER=y
+CONFIG_IR_JVC_DECODER=y
+CONFIG_IR_SONY_DECODER=y
+CONFIG_IR_RC5_SZ_DECODER=y
+CONFIG_IR_LIRC_CODEC=y
+# CONFIG_DAB is not set
 
 #
 # Graphics support
 #
 # CONFIG_AGP is not set
 CONFIG_VGA_ARB=y
+CONFIG_VGA_ARB_MAX_GPUS=16
 # CONFIG_DRM is not set
 # CONFIG_VGASTATE is not set
 # CONFIG_VIDEO_OUTPUT_CONTROL is not set
@@ -990,10 +1151,6 @@ CONFIG_DUMMY_CONSOLE=y
 CONFIG_XILINX_EDK=y
 # CONFIG_XILINX_LLDMA_USE_DCR is not set
 # CONFIG_UIO is not set
-
-#
-# TI VLYNQ
-#
 # CONFIG_STAGING is not set
 
 #
@@ -1078,6 +1235,7 @@ CONFIG_MISC_FILESYSTEMS=y
 # CONFIG_BFS_FS is not set
 # CONFIG_EFS_FS is not set
 # CONFIG_JFFS2_FS is not set
+# CONFIG_LOGFS is not set
 CONFIG_CRAMFS=y
 # CONFIG_SQUASHFS is not set
 # CONFIG_VXFS_FS is not set
@@ -1106,6 +1264,7 @@ CONFIG_SUNRPC=y
 # CONFIG_RPCSEC_GSS_KRB5 is not set
 # CONFIG_RPCSEC_GSS_SPKM3 is not set
 # CONFIG_SMB_FS is not set
+# CONFIG_CEPH_FS is not set
 # CONFIG_CIFS is not set
 # CONFIG_NCP_FS is not set
 # CONFIG_CODA_FS is not set
@@ -1172,15 +1331,9 @@ CONFIG_CRC32=y
 # CONFIG_CRC7 is not set
 # CONFIG_LIBCRC32C is not set
 CONFIG_ZLIB_INFLATE=y
-CONFIG_LZO_DECOMPRESS=y
-CONFIG_DECOMPRESS_GZIP=y
-CONFIG_DECOMPRESS_BZIP2=y
-CONFIG_DECOMPRESS_LZMA=y
-CONFIG_DECOMPRESS_LZO=y
 CONFIG_HAS_IOMEM=y
 CONFIG_HAS_IOPORT=y
 CONFIG_HAS_DMA=y
-CONFIG_HAVE_LMB=y
 CONFIG_NLATTR=y
 CONFIG_GENERIC_ATOMIC64=y
 
@@ -1215,6 +1368,7 @@ CONFIG_DEBUG_PREEMPT=y
 # CONFIG_RT_MUTEX_TESTER is not set
 # CONFIG_DEBUG_SPINLOCK is not set
 # CONFIG_DEBUG_MUTEXES is not set
+CONFIG_BKL=y
 # CONFIG_DEBUG_LOCK_ALLOC is not set
 # CONFIG_PROVE_LOCKING is not set
 # CONFIG_LOCK_STAT is not set
@@ -1259,6 +1413,7 @@ CONFIG_BRANCH_PROFILE_NONE=y
 # CONFIG_WORKQUEUE_TRACER is not set
 # CONFIG_BLK_DEV_IO_TRACE is not set
 # CONFIG_DMA_API_DEBUG is not set
+# CONFIG_ATOMIC64_SELFTEST is not set
 # CONFIG_SAMPLES is not set
 CONFIG_HAVE_ARCH_KGDB=y
 # CONFIG_KGDB is not set
@@ -1271,7 +1426,6 @@ CONFIG_PRINT_STACK_DEPTH=64
 # CONFIG_FTR_FIXUP_SELFTEST is not set
 # CONFIG_MSI_BITMAP_SELFTEST is not set
 # CONFIG_XMON is not set
-# CONFIG_IRQSTACKS is not set
 # CONFIG_BDI_SWITCH is not set
 # CONFIG_PPC_EARLY_DEBUG is not set
 
-- 
1.7.3.4



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

* [PATCH 24/25] defconfig: virtex5 config for linux 2.6.37.rc4
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (21 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 23/25] defconfig: virtex4 config for linux 2.6.37.rc4 Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  2011-01-17 20:29 ` [PATCH 25/25] openssl: powerpc gnueabi toolchain support Adrian Alonso
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Update defconfig for linux 2.6.37 rc4
* Enable xilinx spi driver

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 .../linux/linux-xilinx/virtex5/defconfig           |   45 +++++++++++++++++---
 1 files changed, 39 insertions(+), 6 deletions(-)

diff --git a/recipes-kernel/linux/linux-xilinx/virtex5/defconfig b/recipes-kernel/linux/linux-xilinx/virtex5/defconfig
index 087a530..e873f5e 100644
--- a/recipes-kernel/linux/linux-xilinx/virtex5/defconfig
+++ b/recipes-kernel/linux/linux-xilinx/virtex5/defconfig
@@ -24,6 +24,7 @@ CONFIG_PPC_MMU_NOHASH_32=y
 # CONFIG_PPC_MM_SLICES is not set
 CONFIG_NOT_COHERENT_CACHE=y
 CONFIG_PPC32=y
+CONFIG_32BIT=y
 CONFIG_WORD_SIZE=32
 CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
 CONFIG_MMU=y
@@ -318,7 +319,7 @@ CONFIG_PPC_4K_PAGES=y
 CONFIG_FORCE_MAX_ZONEORDER=11
 CONFIG_PROC_DEVICETREE=y
 CONFIG_CMDLINE_BOOL=y
-CONFIG_CMDLINE=" debug "
+CONFIG_CMDLINE=""
 CONFIG_EXTRA_TARGETS="simpleImage.virtex440-ml507 simpleImage.initrd.virtex440-ml507"
 CONFIG_SECCOMP=y
 # CONFIG_COMPRESSED_DEVICE_TREE is not set
@@ -642,8 +643,21 @@ CONFIG_MTD_PHYSMAP_OF=y
 # UBI - Unsorted block images
 #
 # CONFIG_MTD_UBI is not set
+CONFIG_DTC=y
+CONFIG_OF=y
+
+#
+# Device Tree and Open Firmware support
+#
+CONFIG_PROC_DEVICETREE=y
+CONFIG_OF_FLATTREE=y
+CONFIG_OF_DYNAMIC=y
+CONFIG_OF_ADDRESS=y
+CONFIG_OF_IRQ=y
 CONFIG_OF_DEVICE=y
 CONFIG_OF_GPIO=y
+CONFIG_OF_SPI=y
+CONFIG_OF_MDIO=y
 # CONFIG_PARPORT is not set
 CONFIG_BLK_DEV=y
 # CONFIG_BLK_DEV_FD is not set
@@ -745,7 +759,7 @@ CONFIG_MII=y
 # CONFIG_KS8851_MLL is not set
 # CONFIG_XILINX_EMAC is not set
 # CONFIG_ATL2 is not set
-# CONFIG_XILINX_EMACLITE is not set
+CONFIG_XILINX_EMACLITE=y
 CONFIG_NETDEV_1000=y
 # CONFIG_ACENIC is not set
 # CONFIG_DL2K is not set
@@ -914,7 +928,25 @@ CONFIG_XILINX_HWICAP=y
 # CONFIG_TCG_TPM is not set
 CONFIG_DEVPORT=y
 # CONFIG_I2C is not set
-# CONFIG_SPI is not set
+CONFIG_SPI=y
+# CONFIG_SPI_DEBUG is not set
+CONFIG_SPI_MASTER=y
+
+#
+# SPI Master Controller Drivers
+#
+CONFIG_SPI_BITBANG=y
+# CONFIG_SPI_GPIO is not set
+# CONFIG_SPI_PPC4xx is not set
+# CONFIG_SPI_TOPCLIFF_PCH is not set
+CONFIG_SPI_XILINX=y
+# CONFIG_SPI_DESIGNWARE is not set
+
+#
+# SPI Protocol Masters
+#
+# CONFIG_SPI_SPIDEV is not set
+# CONFIG_SPI_TLE62X0 is not set
 
 #
 # PPS support
@@ -975,6 +1007,7 @@ CONFIG_SSB_POSSIBLE=y
 #
 # CONFIG_AGP is not set
 CONFIG_VGA_ARB=y
+CONFIG_VGA_ARB_MAX_GPUS=16
 # CONFIG_DRM is not set
 # CONFIG_VGASTATE is not set
 # CONFIG_VIDEO_OUTPUT_CONTROL is not set
@@ -1046,7 +1079,7 @@ CONFIG_FB_XILINX=y
 #
 CONFIG_DUMMY_CONSOLE=y
 CONFIG_FRAMEBUFFER_CONSOLE=y
-# CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set
+CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
 # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
 CONFIG_FONTS=y
 CONFIG_FONT_8x8=y
@@ -1060,8 +1093,8 @@ CONFIG_FONT_8x16=y
 # CONFIG_FONT_SUN12x22 is not set
 # CONFIG_FONT_10x18 is not set
 CONFIG_LOGO=y
-# CONFIG_LOGO_LINUX_MONO is not set
-# CONFIG_LOGO_LINUX_VGA16 is not set
+CONFIG_LOGO_LINUX_MONO=y
+CONFIG_LOGO_LINUX_VGA16=y
 CONFIG_LOGO_LINUX_CLUT224=y
 # CONFIG_SOUND is not set
 # CONFIG_HID_SUPPORT is not set
-- 
1.7.3.4



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

* [PATCH 25/25] openssl: powerpc gnueabi toolchain support
  2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
                   ` (22 preceding siblings ...)
  2011-01-17 20:29 ` [PATCH 24/25] defconfig: virtex5 " Adrian Alonso
@ 2011-01-17 20:29 ` Adrian Alonso
  23 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-17 20:29 UTC (permalink / raw)
  To: poky; +Cc: Adrian Alonso

* Add powerpc-gnueabi toolchain configuration support

Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
---
 ...enssl-linux-gnueabi-powerpc-configuration.patch |   27 ++++++++++++++++++++
 .../openssl/openssl_0.9.8p.bbappend                |    5 +++
 2 files changed, 32 insertions(+), 0 deletions(-)
 create mode 100644 recipes-connectivity/openssl/openssl-0.9.8p/openssl-linux-gnueabi-powerpc-configuration.patch
 create mode 100644 recipes-connectivity/openssl/openssl_0.9.8p.bbappend

diff --git a/recipes-connectivity/openssl/openssl-0.9.8p/openssl-linux-gnueabi-powerpc-configuration.patch b/recipes-connectivity/openssl/openssl-0.9.8p/openssl-linux-gnueabi-powerpc-configuration.patch
new file mode 100644
index 0000000..5677756
--- /dev/null
+++ b/recipes-connectivity/openssl/openssl-0.9.8p/openssl-linux-gnueabi-powerpc-configuration.patch
@@ -0,0 +1,27 @@
+From f5fb652a90e71be1665bebb34622d5d205b5f68d Mon Sep 17 00:00:00 2001
+From: Adrian Alonso <aalonso@secretlab.ca>
+Date: Mon, 3 Jan 2011 15:33:20 -0600
+Subject: [PATCH] openssl: linux-gnueabi-powerpc configuration
+
+* Add linux-gnueabi-powerpc configuration option
+
+Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
+---
+ Configure |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/Configure b/Configure
+index 0428fd2..624e4a5 100755
+--- a/Configure
++++ b/Configure
+@@ -379,6 +379,7 @@ my %table=(
+ # throw in -D[BL]_ENDIAN, whichever appropriate...
+ "linux-generic32","gcc:-DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+ "linux-ppc",	"gcc:-DB_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::linux_ppc32.o::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"linux-gnueabi-powerpc",	"gcc:-DB_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::linux_ppc32.o::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+ #### IA-32 targets...
+ "linux-ia32-icc",	"icc:-DL_ENDIAN -DTERMIO -O2 -no_cpprt::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-KPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+ "linux-elf",	"gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+-- 
+1.7.3.4
+
diff --git a/recipes-connectivity/openssl/openssl_0.9.8p.bbappend b/recipes-connectivity/openssl/openssl_0.9.8p.bbappend
new file mode 100644
index 0000000..381f31c
--- /dev/null
+++ b/recipes-connectivity/openssl/openssl_0.9.8p.bbappend
@@ -0,0 +1,5 @@
+THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
+FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
+
+SRC_URI_append += "file://openssl-linux-gnueabi-powerpc-configuration.patch \
+                  "
--
1.7.3.4


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

* Re: [PATCH 03/25] gcc: crosssdk unset TARGET_FPU
  2011-01-17 20:29 ` [PATCH 03/25] gcc: crosssdk unset TARGET_FPU Adrian Alonso
@ 2011-01-17 23:55   ` Ilya Yanok
  2011-01-18  0:59     ` Adrian Alonso
  0 siblings, 1 reply; 42+ messages in thread
From: Ilya Yanok @ 2011-01-17 23:55 UTC (permalink / raw)
  To: poky

Hi Adrian,

Adrian Alonso <aalonso@...> writes:

> 
> * Configure fails due that --with-float=soft
>   flag isn't supportted by powerpc arch

That's not true. PowerPC support soft-float (and we actually need this for
MPC8308 which has e300c3 core without FPU).

For me, configure fails with the same message but that's not because PowerPC
lacks support for soft-float but cause gcc-crosssdk recipe passes wrong
--target= option to the configure script (for me it's x86_86-pokysdk-linux, I'm
building on the x86_64 host).

> * Unsetting TARGET_FPU this flag to not try to use
>   this flag

So please do NOT unset TARGET_FPU, some targets really need it. I'm looking
forward to see a correct solution for this issue.

Regards, Ilya.




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

* Re: [PATCH 03/25] gcc: crosssdk unset TARGET_FPU
  2011-01-17 23:55   ` Ilya Yanok
@ 2011-01-18  0:59     ` Adrian Alonso
  2011-01-18  1:45       ` Ilya Yanok
  2011-01-20  2:11       ` Ilya Yanok
  0 siblings, 2 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-18  0:59 UTC (permalink / raw)
  To: Ilya Yanok; +Cc: poky

[-- Attachment #1: Type: text/plain, Size: 1316 bytes --]

Hi Ilya,

I will also look for the proper solution,
However un-setting TARGET_FPU only affects the target machines
in meta-xilinx layer bsp, so other Powerpc targets are not been affected
with this patch.

Regards

On Mon, Jan 17, 2011 at 5:55 PM, Ilya Yanok <yanok@emcraft.com> wrote:

> Hi Adrian,
>
> Adrian Alonso <aalonso@...> writes:
>
> >
> > * Configure fails due that --with-float=soft
> >   flag isn't supportted by powerpc arch
>
> That's not true. PowerPC support soft-float (and we actually need this for
> MPC8308 which has e300c3 core without FPU).
>
> For me, configure fails with the same message but that's not because
> PowerPC
> lacks support for soft-float but cause gcc-crosssdk recipe passes wrong
> --target= option to the configure script (for me it's x86_86-pokysdk-linux,
> I'm
> building on the x86_64 host).
>
> > * Unsetting TARGET_FPU this flag to not try to use
> >   this flag
>
> So please do NOT unset TARGET_FPU, some targets really need it. I'm looking
> forward to see a correct solution for this issue.
>
> Regards, Ilya.
>
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>



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

[-- Attachment #2: Type: text/html, Size: 1952 bytes --]

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

* Re: [PATCH 03/25] gcc: crosssdk unset TARGET_FPU
  2011-01-18  0:59     ` Adrian Alonso
@ 2011-01-18  1:45       ` Ilya Yanok
  2011-01-20  2:11       ` Ilya Yanok
  1 sibling, 0 replies; 42+ messages in thread
From: Ilya Yanok @ 2011-01-18  1:45 UTC (permalink / raw)
  To: Adrian Alonso; +Cc: poky

Hi Adrian,

On 18.01.2011 03:59, Adrian Alonso wrote:
> I will also look for the proper solution,
> However un-setting TARGET_FPU only affects the target machines
> in meta-xilinx layer bsp, so other Powerpc targets are not been affected
> with this patch.

Well, I'm going to add support for MPC8308RDB which is affected ;)
And all ARM targets have TARGET_FPU=soft by default so they all are 
going to be affected.

Anyway, you are fixing not the source of the problem but just it's 
symptom. The compiler built by current gcc-crosssdk recipe is going to 
be broken (wrong target). Could you please verify that?

Regards, Ilya.



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

* Re: [PATCH 03/25] gcc: crosssdk unset TARGET_FPU
  2011-01-18  0:59     ` Adrian Alonso
  2011-01-18  1:45       ` Ilya Yanok
@ 2011-01-20  2:11       ` Ilya Yanok
  2011-01-20 17:35         ` Saul Wold
  1 sibling, 1 reply; 42+ messages in thread
From: Ilya Yanok @ 2011-01-20  2:11 UTC (permalink / raw)
  To: Adrian Alonso; +Cc: poky

[-- Attachment #1: Type: text/plain, Size: 1979 bytes --]

Hi Adrian,

I'm sorry, I was wrong in my previous postings.
I was confused by the gcc-crosssdk recipe name.
Now I think your solution is perfectly legal, but I still think that 
comment is misleading:
it's not powerpc arch that does not sipport --with-float=soft, it's 
x86_64 (in my case)!

I think we should just reset TARGET_FPU from crosssdk.bbclass, what do 
you think about it?

Regards, Ilya.

On 18.01.2011 03:59, Adrian Alonso wrote:
> Hi Ilya,
>
> I will also look for the proper solution,
> However un-setting TARGET_FPU only affects the target machines
> in meta-xilinx layer bsp, so other Powerpc targets are not been affected
> with this patch.
>
> Regards
>
> On Mon, Jan 17, 2011 at 5:55 PM, Ilya Yanok <yanok@emcraft.com 
> <mailto:yanok@emcraft.com>> wrote:
>
>     Hi Adrian,
>
>     Adrian Alonso <aalonso@...> writes:
>
>     >
>     > * Configure fails due that --with-float=soft
>     >   flag isn't supportted by powerpc arch
>
>     That's not true. PowerPC support soft-float (and we actually need
>     this for
>     MPC8308 which has e300c3 core without FPU).
>
>     For me, configure fails with the same message but that's not
>     because PowerPC
>     lacks support for soft-float but cause gcc-crosssdk recipe passes
>     wrong
>     --target= option to the configure script (for me it's
>     x86_86-pokysdk-linux, I'm
>     building on the x86_64 host).
>
>     > * Unsetting TARGET_FPU this flag to not try to use
>     >   this flag
>
>     So please do NOT unset TARGET_FPU, some targets really need it.
>     I'm looking
>     forward to see a correct solution for this issue.
>
>     Regards, Ilya.
>
>
>     _______________________________________________
>     poky mailing list
>     poky@yoctoproject.org <mailto:poky@yoctoproject.org>
>     https://lists.yoctoproject.org/listinfo/poky
>
>
>
>
> -- 
> Saludos
> Adrian Alonso
> http://aalonso.wordpress.com
>


[-- Attachment #2: Type: text/html, Size: 3113 bytes --]

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

* Re: [PATCH 03/25] gcc: crosssdk unset TARGET_FPU
  2011-01-20  2:11       ` Ilya Yanok
@ 2011-01-20 17:35         ` Saul Wold
  2011-01-20 17:53           ` Adrian Alonso
  2011-01-21  0:47           ` [PATCH] native,nativesdk,crosssdk: reset TARGET_FPU Ilya Yanok
  0 siblings, 2 replies; 42+ messages in thread
From: Saul Wold @ 2011-01-20 17:35 UTC (permalink / raw)
  To: Ilya Yanok; +Cc: poky

On 01/19/2011 06:11 PM, Ilya Yanok wrote:
> Hi Adrian,
>
> I'm sorry, I was wrong in my previous postings.
> I was confused by the gcc-crosssdk recipe name.
> Now I think your solution is perfectly legal, but I still think that
> comment is misleading:
> it's not powerpc arch that does not sipport --with-float=soft, it's
> x86_64 (in my case)!
>
> I think we should just reset TARGET_FPU from crosssdk.bbclass, what do
> you think about it?
>
Adrian,

Will you please re-publish the patch based on Ilya's feedback or let me 
know if you want to go with your orignal patch.

Thanks
    Sau!

> Regards, Ilya.
>
> On 18.01.2011 03:59, Adrian Alonso wrote:
>> Hi Ilya,
>>
>> I will also look for the proper solution,
>> However un-setting TARGET_FPU only affects the target machines
>> in meta-xilinx layer bsp, so other Powerpc targets are not been affected
>> with this patch.
>>
>> Regards
>>
>> On Mon, Jan 17, 2011 at 5:55 PM, Ilya Yanok <yanok@emcraft.com
>> <mailto:yanok@emcraft.com>> wrote:
>>
>>     Hi Adrian,
>>
>>     Adrian Alonso <aalonso@...> writes:
>>
>>     >
>>     > * Configure fails due that --with-float=soft
>>     > flag isn't supportted by powerpc arch
>>
>>     That's not true. PowerPC support soft-float (and we actually need
>>     this for
>>     MPC8308 which has e300c3 core without FPU).
>>
>>     For me, configure fails with the same message but that's not
>>     because PowerPC
>>     lacks support for soft-float but cause gcc-crosssdk recipe passes
>>     wrong
>>     --target= option to the configure script (for me it's
>>     x86_86-pokysdk-linux, I'm
>>     building on the x86_64 host).
>>
>>     > * Unsetting TARGET_FPU this flag to not try to use
>>     > this flag
>>
>>     So please do NOT unset TARGET_FPU, some targets really need it.
>>     I'm looking
>>     forward to see a correct solution for this issue.
>>
>>     Regards, Ilya.
>>
>>
>>     _______________________________________________
>>     poky mailing list
>>     poky@yoctoproject.org <mailto:poky@yoctoproject.org>
>>     https://lists.yoctoproject.org/listinfo/poky
>>
>>
>>
>>
>> --
>> Saludos
>> Adrian Alonso
>> http://aalonso.wordpress.com
>>
>
>
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky



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

* Re: [PATCH 03/25] gcc: crosssdk unset TARGET_FPU
  2011-01-20 17:35         ` Saul Wold
@ 2011-01-20 17:53           ` Adrian Alonso
  2011-01-21  0:43             ` Ilya Yanok
  2011-01-21  0:47           ` [PATCH] native,nativesdk,crosssdk: reset TARGET_FPU Ilya Yanok
  1 sibling, 1 reply; 42+ messages in thread
From: Adrian Alonso @ 2011-01-20 17:53 UTC (permalink / raw)
  To: Saul Wold; +Cc: poky, Ilya Yanok

[-- Attachment #1: Type: text/plain, Size: 2884 bytes --]

I will redo the patch based on Ilya suggestion,

But I'm not sure if un-setting TARGET_FPU on crosssdk.bbclass would affect
other targets.

Can some one with more background provide me more details if this could
affect other targets.

Regards

On Thu, Jan 20, 2011 at 11:35 AM, Saul Wold <saul.wold@intel.com> wrote:

> On 01/19/2011 06:11 PM, Ilya Yanok wrote:
>
>> Hi Adrian,
>>
>> I'm sorry, I was wrong in my previous postings.
>> I was confused by the gcc-crosssdk recipe name.
>> Now I think your solution is perfectly legal, but I still think that
>> comment is misleading:
>> it's not powerpc arch that does not sipport --with-float=soft, it's
>> x86_64 (in my case)!
>>
>> I think we should just reset TARGET_FPU from crosssdk.bbclass, what do
>> you think about it?
>>
>>  Adrian,
>
> Will you please re-publish the patch based on Ilya's feedback or let me
> know if you want to go with your orignal patch.
>
> Thanks
>   Sau!
>
>  Regards, Ilya.
>>
>> On 18.01.2011 03:59, Adrian Alonso wrote:
>>
>>> Hi Ilya,
>>>
>>> I will also look for the proper solution,
>>> However un-setting TARGET_FPU only affects the target machines
>>> in meta-xilinx layer bsp, so other Powerpc targets are not been affected
>>> with this patch.
>>>
>>> Regards
>>>
>>> On Mon, Jan 17, 2011 at 5:55 PM, Ilya Yanok <yanok@emcraft.com
>>> <mailto:yanok@emcraft.com>> wrote:
>>>
>>>    Hi Adrian,
>>>
>>>    Adrian Alonso <aalonso@...> writes:
>>>
>>>    >
>>>    > * Configure fails due that --with-float=soft
>>>    > flag isn't supportted by powerpc arch
>>>
>>>    That's not true. PowerPC support soft-float (and we actually need
>>>    this for
>>>    MPC8308 which has e300c3 core without FPU).
>>>
>>>    For me, configure fails with the same message but that's not
>>>    because PowerPC
>>>    lacks support for soft-float but cause gcc-crosssdk recipe passes
>>>    wrong
>>>    --target= option to the configure script (for me it's
>>>    x86_86-pokysdk-linux, I'm
>>>    building on the x86_64 host).
>>>
>>>    > * Unsetting TARGET_FPU this flag to not try to use
>>>    > this flag
>>>
>>>    So please do NOT unset TARGET_FPU, some targets really need it.
>>>    I'm looking
>>>    forward to see a correct solution for this issue.
>>>
>>>    Regards, Ilya.
>>>
>>>
>>>    _______________________________________________
>>>    poky mailing list
>>>    poky@yoctoproject.org <mailto:poky@yoctoproject.org>
>>>
>>>    https://lists.yoctoproject.org/listinfo/poky
>>>
>>>
>>>
>>>
>>> --
>>> Saludos
>>> Adrian Alonso
>>> http://aalonso.wordpress.com
>>>
>>>
>>
>>
>> _______________________________________________
>> poky mailing list
>> poky@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/poky
>>
>
>


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

[-- Attachment #2: Type: text/html, Size: 4477 bytes --]

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

* Re: [PATCH 05/25] u-boot: disable -Os option not supported by gcc
  2011-01-17 20:29 ` [PATCH 05/25] u-boot: disable -Os option not supported by gcc Adrian Alonso
@ 2011-01-20 18:53   ` Darren Hart
  2011-01-20 18:55     ` Darren Hart
  2011-01-20 23:05     ` Wolfgang Denk
  0 siblings, 2 replies; 42+ messages in thread
From: Darren Hart @ 2011-01-20 18:53 UTC (permalink / raw)
  To: Adrian Alonso; +Cc: poky

On 01/17/2011 12:29 PM, Adrian Alonso wrote:
> * Disable -Os optspace option not supported by gcc use insted
>    -O2
> * Bump PR
>


I ran into this in the recent u-boot_git.bb recipe I added. Rather than 
create a patch to the Makefile, I found it simpler to adding OPTFLAGS to 
the EXTRA_OEMAKE variable in the recipe:

EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS=''"

This negates the -Os in the Makefile.

--
Darren

> Signed-off-by: Adrian Alonso<aalonso@secretlab.ca>
> ---
>   .../uboot/files/uboot-do-not-use-Os-option.patch   |   30 ++++++++++++++++++++
>   recipes-bsp/uboot/u-boot-xilinx_git.bb             |    8 ++++-
>   2 files changed, 36 insertions(+), 2 deletions(-)
>   create mode 100644 recipes-bsp/uboot/files/uboot-do-not-use-Os-option.patch
>
> diff --git a/recipes-bsp/uboot/files/uboot-do-not-use-Os-option.patch b/recipes-bsp/uboot/files/uboot-do-not-use-Os-option.patch
> new file mode 100644
> index 0000000..c4153e4
> --- /dev/null
> +++ b/recipes-bsp/uboot/files/uboot-do-not-use-Os-option.patch
> @@ -0,0 +1,30 @@
> +From 8a4e1e92becc3994907f18919e9ee8b51b0f377a Mon Sep 17 00:00:00 2001
> +From: Adrian Alonso<aalonso@secretlab.ca>
> +Date: Mon, 6 Dec 2010 22:59:20 -0600
> +Subject: [PATCH 1/2] uboot: do not use Os option
> +
> +* Fix error: Do not use -Os option if --enable-target-optspace
> +  is not set.
> +* Gcc optospace options is disabled for powerpc machines
> +* Use -O2 optimization level instead
> +
> +Signed-off-by: Adrian Alonso<aalonso@secretlab.ca>
> +---
> + config.mk |    2 +-
> + 1 files changed, 1 insertions(+), 1 deletions(-)
> +
> +diff --git a/config.mk b/config.mk
> +index a63e9cd..ba629d1 100644
> +--- a/config.mk
> ++++ b/config.mk
> +@@ -138,7 +138,7 @@ ARFLAGS = crv
> + endif
> + RELFLAGS= $(PLATFORM_RELFLAGS)
> + DBGFLAGS= -g # -DDEBUG
> +-OPTFLAGS= -Os #-fomit-frame-pointer
> ++OPTFLAGS= -O2 #-fomit-frame-pointer
> + ifndef LDSCRIPT
> + #LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds.debug
> + ifeq ($(CONFIG_NAND_U_BOOT),y)
> +--
> +1.7.2.3
> diff --git a/recipes-bsp/uboot/u-boot-xilinx_git.bb b/recipes-bsp/uboot/u-boot-xilinx_git.bb
> index 50d99e3..3b35ae5 100644
> --- a/recipes-bsp/uboot/u-boot-xilinx_git.bb
> +++ b/recipes-bsp/uboot/u-boot-xilinx_git.bb
> @@ -1,9 +1,13 @@
>   require ../meta/recipes-bsp/uboot/u-boot.inc
> -PR = "r2"
> +PR = "r3"
> +THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
> +FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
>
>   BRANCH="master"
>   TAG="e094f2479ea339d7f48b6826f06f0be4984d9a98"
> -SRC_URI = "git://git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git"
> +SRC_URI = "git://git.xilinx.com/u-boot-xlnx.git;branch=${BRANCH};protocol=git \
> +           file://uboot-do-not-use-Os-option.patch \
> +          "
>   SRCREV = "${TAG}"
>
>   inherit xilinx-boot


-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


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

* Re: [PATCH 05/25] u-boot: disable -Os option not supported by gcc
  2011-01-20 18:53   ` Darren Hart
@ 2011-01-20 18:55     ` Darren Hart
  2011-01-20 21:41       ` Adrian Alonso
  2011-01-20 23:05     ` Wolfgang Denk
  1 sibling, 1 reply; 42+ messages in thread
From: Darren Hart @ 2011-01-20 18:55 UTC (permalink / raw)
  To: Adrian Alonso; +Cc: poky

On 01/20/2011 10:53 AM, Darren Hart wrote:
> On 01/17/2011 12:29 PM, Adrian Alonso wrote:
>> * Disable -Os optspace option not supported by gcc use insted
>> -O2
>> * Bump PR
>>
>
>
> I ran into this in the recent u-boot_git.bb recipe I added. Rather than
> create a patch to the Makefile, I found it simpler to adding OPTFLAGS to
> the EXTRA_OEMAKE variable in the recipe:
>
> EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS=''"
>
> This negates the -Os in the Makefile.

In fact, once contrib/dvhart/beagle is merged, you'll get this 
automatically as you use u-boot.inc. So you should be able to drop this 
patch.

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


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

* Re: [PATCH 05/25] u-boot: disable -Os option not supported by gcc
  2011-01-20 18:55     ` Darren Hart
@ 2011-01-20 21:41       ` Adrian Alonso
  0 siblings, 0 replies; 42+ messages in thread
From: Adrian Alonso @ 2011-01-20 21:41 UTC (permalink / raw)
  To: Darren Hart; +Cc: poky

[-- Attachment #1: Type: text/plain, Size: 1101 bytes --]

Ok, going to rework patch but keep the optimization level to -O2

Thanks for the suggestion.

On Thu, Jan 20, 2011 at 12:55 PM, Darren Hart <dvhart@linux.intel.com>wrote:

> On 01/20/2011 10:53 AM, Darren Hart wrote:
>
>> On 01/17/2011 12:29 PM, Adrian Alonso wrote:
>>
>>> * Disable -Os optspace option not supported by gcc use insted
>>> -O2
>>> * Bump PR
>>>
>>>
>>
>> I ran into this in the recent u-boot_git.bb recipe I added. Rather than
>> create a patch to the Makefile, I found it simpler to adding OPTFLAGS to
>> the EXTRA_OEMAKE variable in the recipe:
>>
>> EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS=''"
>>
>> This negates the -Os in the Makefile.
>>
>
> In fact, once contrib/dvhart/beagle is merged, you'll get this
> automatically as you use u-boot.inc. So you should be able to drop this
> patch.
>
>
> --
> Darren Hart
> Intel Open Source Technology Center
> Yocto Project - Linux Kernel
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>

[-- Attachment #2: Type: text/html, Size: 1885 bytes --]

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

* Re: [PATCH 05/25] u-boot: disable -Os option not supported by gcc
  2011-01-20 18:53   ` Darren Hart
  2011-01-20 18:55     ` Darren Hart
@ 2011-01-20 23:05     ` Wolfgang Denk
  2011-01-20 23:24       ` Richard Purdie
  1 sibling, 1 reply; 42+ messages in thread
From: Wolfgang Denk @ 2011-01-20 23:05 UTC (permalink / raw)
  To: Darren Hart; +Cc: Adrian Alonso, poky

Dear Darren Hart,

In message <4D3884A0.8030602@linux.intel.com> you wrote:
>
> I ran into this in the recent u-boot_git.bb recipe I added. Rather than 
> create a patch to the Makefile, I found it simpler to adding OPTFLAGS to 
> the EXTRA_OEMAKE variable in the recipe:
> 
> EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS=''"
> 
> This negates the -Os in the Makefile.

What exactly is the reason that -Os is not supported?


Note that -Os makes is intentional in U-Boot, and omitting it may
cause problems on a number of systems.

-O2 will create significantly larger code which does not fit into
flash sectors on some systems; on other systems, the code will not
fit any more in the size limitations given by the NAND loader.

In other works, -O2 breaks a number of systems.

I discourage doing this.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
For every complex problem, there is a solution that is simple,  neat,
and wrong.                                               - Mark Twain


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

* Re: [PATCH 05/25] u-boot: disable -Os option not supported by gcc
  2011-01-20 23:05     ` Wolfgang Denk
@ 2011-01-20 23:24       ` Richard Purdie
  2011-01-22 14:48         ` Wolfgang Denk
  0 siblings, 1 reply; 42+ messages in thread
From: Richard Purdie @ 2011-01-20 23:24 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: Adrian Alonso, poky

On Fri, 2011-01-21 at 00:05 +0100, Wolfgang Denk wrote:
> Dear Darren Hart,
> 
> In message <4D3884A0.8030602@linux.intel.com> you wrote:
> >
> > I ran into this in the recent u-boot_git.bb recipe I added. Rather than 
> > create a patch to the Makefile, I found it simpler to adding OPTFLAGS to 
> > the EXTRA_OEMAKE variable in the recipe:
> > 
> > EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS=''"
> > 
> > This negates the -Os in the Makefile.
> 
> What exactly is the reason that -Os is not supported?

Its not so much not supported, its that gcc 4.5 seems to have totally
broken it and for better or worse, we're on that gcc version. Until we
have a toolchain where the option works what do we do?

> Note that -Os makes is intentional in U-Boot, and omitting it may
> cause problems on a number of systems.
> 
> -O2 will create significantly larger code which does not fit into
> flash sectors on some systems; on other systems, the code will not
> fit any more in the size limitations given by the NAND loader.
> 
> In other works, -O2 breaks a number of systems.
> 
> I discourage doing this.

Well, its a case of "totally broken" or a risk of size issues on some
systems so I'm in favour of the latter. I agree the toolchain issues
need to be resolved and I'm sure they will sooner or later. I have
noticed upstream gcc don't seem to like the -Os option though and it
often seems to be the source of problems...

Cheers,

Richard



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

* Re: [PATCH 03/25] gcc: crosssdk unset TARGET_FPU
  2011-01-20 17:53           ` Adrian Alonso
@ 2011-01-21  0:43             ` Ilya Yanok
  0 siblings, 0 replies; 42+ messages in thread
From: Ilya Yanok @ 2011-01-21  0:43 UTC (permalink / raw)
  To: Adrian Alonso; +Cc: poky, Saul Wold

Hi Adrian, Saul,

On 20.01.2011 20:53, Adrian Alonso wrote:
> But I'm not sure if un-setting TARGET_FPU on crosssdk.bbclass would 
> affect
> other targets.

It should not. crosssdk class rewrites all TARGET_* variables except 
TARGET_FPU which may lead to inconsistent set of TARGET_* variables 
(like TARGET_ARCH = "x86_64" and TARGET_FPU = "soft"). This in turn 
confuses some recipes (like gcc).

Actually, we need to add the same thing to the nativesdk class (and, 
probably, native too) for the same reason.
Note that resetting TARGET_FPU in the nativesdk.bbclass solved the 
decimal-float issue (which turned to be the problem with eglibc-nativesdk).

I'll post my patch soon, but it still needs more testing.

Regards, Ilya.



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

* [PATCH] native,nativesdk,crosssdk: reset TARGET_FPU
  2011-01-20 17:35         ` Saul Wold
  2011-01-20 17:53           ` Adrian Alonso
@ 2011-01-21  0:47           ` Ilya Yanok
  1 sibling, 0 replies; 42+ messages in thread
From: Ilya Yanok @ 2011-01-21  0:47 UTC (permalink / raw)
  To: poky, aalonso00, saul.wold; +Cc: Ilya Yanok

When building one of the native, nativesdk or crosssdk packages TARGET_*
variables' values are no longer related to the target we set via MACHINE
variable, they are now related to the BUILD (native) or SDK (nativesdk,
crosssdk) targets instead. We need to change TARGET_FPU variable
accordingly or some of the recipes (the ones that check for TARGET_FPU
value, most notably gcc and eglibc) might be confused.

It's probably cleaner not to reset TARGET_FPU but to change it to
something like ${BUILD_FPU} (for native) or ${SDK_FPU} (for crosssdk and
nativesdk) but as long as BUILD and SDK are x86 it's safe to just reset
TARGET_FPU.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
---
 meta/classes/crosssdk.bbclass  |    1 +
 meta/classes/native.bbclass    |    1 +
 meta/classes/nativesdk.bbclass |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass
index 23db163..ac85507 100644
--- a/meta/classes/crosssdk.bbclass
+++ b/meta/classes/crosssdk.bbclass
@@ -11,6 +11,7 @@ TARGET_VENDOR = "${SDK_VENDOR}"
 TARGET_OS = "${SDK_OS}"
 TARGET_PREFIX = "${SDK_PREFIX}"
 TARGET_CC_ARCH = "${SDK_CC_ARCH}"
+TARGET_FPU = ""
 
 target_libdir = "${SDKPATHNATIVE}${libdir_nativesdk}"
 target_includedir = "${SDKPATHNATIVE}${includedir_nativesdk}"
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 3ca9d62..ac9df98 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -22,6 +22,7 @@ TARGET_OS = "${BUILD_OS}"
 TARGET_VENDOR = "${BUILD_VENDOR}"
 TARGET_PREFIX = "${BUILD_PREFIX}"
 TARGET_CC_ARCH = "${BUILD_CC_ARCH}"
+TARGET_FPU = ""
 
 HOST_ARCH = "${BUILD_ARCH}"
 HOST_OS = "${BUILD_OS}"
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass
index 154bd82..ba80364 100644
--- a/meta/classes/nativesdk.bbclass
+++ b/meta/classes/nativesdk.bbclass
@@ -32,6 +32,7 @@ TARGET_VENDOR = "${SDK_VENDOR}"
 TARGET_OS = "${SDK_OS}"
 TARGET_PREFIX = "${SDK_PREFIX}"
 TARGET_CC_ARCH = "${SDK_CC_ARCH}"
+TARGET_FPU = ""
 
 CPPFLAGS = "${BUILDSDK_CPPFLAGS}"
 CFLAGS = "${BUILDSDK_CFLAGS}"
-- 
1.7.2.3



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

* Re: [PATCH 05/25] u-boot: disable -Os option not supported by gcc
  2011-01-20 23:24       ` Richard Purdie
@ 2011-01-22 14:48         ` Wolfgang Denk
  2011-01-23  0:11           ` Richard Purdie
  0 siblings, 1 reply; 42+ messages in thread
From: Wolfgang Denk @ 2011-01-22 14:48 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Adrian Alonso, poky

Dear Richard,

In message <1295565854.14388.27977.camel@rex> you wrote:
>
> > What exactly is the reason that -Os is not supported?
> 
> Its not so much not supported, its that gcc 4.5 seems to have totally
> broken it and for better or worse, we're on that gcc version. Until we
> have a toolchain where the option works what do we do?

Usually I try to approach problems at the root cause - the best
solution was if we had patches for GCC to make it work.  It appears
that "-Os" is only one way to trigger issues in recent GCC version;
plain "-O" or "-O1" trigger other problems, see for example
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052



> Well, its a case of "totally broken" or a risk of size issues on some
> systems so I'm in favour of the latter. I agree the toolchain issues
> need to be resolved and I'm sure they will sooner or later. I have
> noticed upstream gcc don't seem to like the -Os option though and it
> often seems to be the source of problems...

Probably this is (at least partially) due to the fact that only such
lunatic fringe groups as the embedded folks tend to use exotic
features like -Os, and our word is of little interest to the GCC
PTBs.  Did anybody from the Yocto project / Poky / the LF / Intel or
any other bigger player try to put his weight in?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
It is impractical for  the  standard  to  attempt  to  constrain  the
behavior  of code that does not obey the constraints of the standard.
                                                          - Doug Gwyn


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

* Re: [PATCH 05/25] u-boot: disable -Os option not supported by gcc
  2011-01-22 14:48         ` Wolfgang Denk
@ 2011-01-23  0:11           ` Richard Purdie
  2011-01-25  9:09             ` Wolfgang Denk
  0 siblings, 1 reply; 42+ messages in thread
From: Richard Purdie @ 2011-01-23  0:11 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: Adrian Alonso, poky

On Sat, 2011-01-22 at 15:48 +0100, Wolfgang Denk wrote:
> In message <1295565854.14388.27977.camel@rex> you wrote:
> > > What exactly is the reason that -Os is not supported?
> > 
> > Its not so much not supported, its that gcc 4.5 seems to have totally
> > broken it and for better or worse, we're on that gcc version. Until we
> > have a toolchain where the option works what do we do?
> 
> Usually I try to approach problems at the root cause - the best
> solution was if we had patches for GCC to make it work.  It appears
> that "-Os" is only one way to trigger issues in recent GCC version;
> plain "-O" or "-O1" trigger other problems, see for example
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052

Right, I'm aware that recent versions of gcc have issues sadly :(. I'm
unaware of any resource available to Yocto with the right combination
of time/experience to fix that problem at source at this time though :(.

> > Well, its a case of "totally broken" or a risk of size issues on some
> > systems so I'm in favour of the latter. I agree the toolchain issues
> > need to be resolved and I'm sure they will sooner or later. I have
> > noticed upstream gcc don't seem to like the -Os option though and it
> > often seems to be the source of problems...
> 
> Probably this is (at least partially) due to the fact that only such
> lunatic fringe groups as the embedded folks tend to use exotic
> features like -Os, and our word is of little interest to the GCC
> PTBs.

I don't see embedded folks as a lunatic fringe group and I would like to
see gcc care a little more about some of these use cases and options,
you don't need to convince me about this.

>   Did anybody from the Yocto project / Poky / the LF / Intel or
> any other bigger player try to put his weight in?

I don't think the world works this way.

Lets take a step back and remind ourselves why Yocto exists in the first
place. Yocto exists to try and take Embedded Linux to a new level and
the fact there are people working on it shows a commitment from the LF,
Intel and other players to go and work on some hard problems. Great.

We can't fix every problem overnight, we don't have infinite resources.
Sad, but true.

For gcc specifically, consider the steps you need to take to approach
upstream about a problem. Top of the list is using recent versions. If
we try and report a bug upstream in an old version we'll just get told
to try with the latest. We have moved all our architectures to a modern
version of gcc although I think we're still a little behind. We're now
trying to figure out exactly how the land lies and make sure we have
something usable in the meantime (as you've noticed there are problems).
As and when we track down issues, they will get reported upstream and if
Yocto becomes a strong player representing embedded, I'd hope those
reports will get acted on. It will take time for Yocto to become a
significant player and it will take help from the wider community to
support that. We're not there yet.

FWIW, off the top of my head I think we have already fed a couple of
issues into the gcc community in one way or another.

We are open to suggestions on the issues where effort is needed. As I've
said above we have finite resources and some requirements from the
people providing those resources. We're going to do the best we can with
what we have.

This kind of issue is one reason I do want to keep up following upstream
versions so we can interact with the upstream more quickly and
effectively. I appreciate there are downsides to it too but I think in
the long run if we can keep on top of things and stay up to date it will
assist us in the long run immensely as we'll be able to feed back
information to the upstream much more quickly and efficiently if any
problems do appear.

So please try and help Yocto achieve these things but keep in mind its
not as simple as you make out above. There is a lot to do and help is
appreciated, gcc is just one facet of what we need to work on.

Cheers,

Richard



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

* Re: [PATCH 05/25] u-boot: disable -Os option not supported by gcc
  2011-01-23  0:11           ` Richard Purdie
@ 2011-01-25  9:09             ` Wolfgang Denk
  2011-01-25 22:49               ` Richard Purdie
  0 siblings, 1 reply; 42+ messages in thread
From: Wolfgang Denk @ 2011-01-25  9:09 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Adrian Alonso, poky

Dear Richard,

In message <1295741513.14388.37111.camel@rex> you wrote:
>
> > > Its not so much not supported, its that gcc 4.5 seems to have totally
> > > broken it and for better or worse, we're on that gcc version. Until we
> > > have a toolchain where the option works what do we do?
...
> Right, I'm aware that recent versions of gcc have issues sadly :(. I'm
> unaware of any resource available to Yocto with the right combination
> of time/experience to fix that problem at source at this time though :(.

Do you happen do have a list of GCC bugs that bite us here?  At the
moment I am aware of # 44392 and # 45052, but it seems there are fixes
available for these two.

Are there any others that need fixing?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Only two things are infinite,  the universe and human stupidity,  and
I'm not sure about the former.                     -- Albert Einstein


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

* Re: [PATCH 05/25] u-boot: disable -Os option not supported by gcc
  2011-01-25  9:09             ` Wolfgang Denk
@ 2011-01-25 22:49               ` Richard Purdie
  0 siblings, 0 replies; 42+ messages in thread
From: Richard Purdie @ 2011-01-25 22:49 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: Adrian Alonso, poky

On Tue, 2011-01-25 at 10:09 +0100, Wolfgang Denk wrote:
> In message <1295741513.14388.37111.camel@rex> you wrote:
> >
> > > > Its not so much not supported, its that gcc 4.5 seems to have totally
> > > > broken it and for better or worse, we're on that gcc version. Until we
> > > > have a toolchain where the option works what do we do?
> ...
> > Right, I'm aware that recent versions of gcc have issues sadly :(. I'm
> > unaware of any resource available to Yocto with the right combination
> > of time/experience to fix that problem at source at this time though :(.
> 
> Do you happen do have a list of GCC bugs that bite us here?  At the
> moment I am aware of # 44392 and # 45052, but it seems there are fixes
> available for these two.
> 
> Are there any others that need fixing?

I'm afraid I don't but creating a list (maybe on the wiki) would be a
good move for this. I know there are some other issues we could do with
filing bugs upstream for and some we already have.

Cheers,

Richard




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

end of thread, other threads:[~2011-01-25 22:50 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-17 20:29 [PATCH 01/25] xilinx-kernel: bbclass to handle linux kernel hw/sw integration Adrian Alonso
2011-01-17 20:29 ` [PATCH 02/25] xilinx-boot: bbclass to handle u-boot " Adrian Alonso
2011-01-17 20:29 ` [PATCH 03/25] gcc: crosssdk unset TARGET_FPU Adrian Alonso
2011-01-17 23:55   ` Ilya Yanok
2011-01-18  0:59     ` Adrian Alonso
2011-01-18  1:45       ` Ilya Yanok
2011-01-20  2:11       ` Ilya Yanok
2011-01-20 17:35         ` Saul Wold
2011-01-20 17:53           ` Adrian Alonso
2011-01-21  0:43             ` Ilya Yanok
2011-01-21  0:47           ` [PATCH] native,nativesdk,crosssdk: reset TARGET_FPU Ilya Yanok
2011-01-17 20:29 ` [PATCH 04/25] u-boot: update version use xilinx-boot bbclass Adrian Alonso
2011-01-17 20:29 ` [PATCH 05/25] u-boot: disable -Os option not supported by gcc Adrian Alonso
2011-01-20 18:53   ` Darren Hart
2011-01-20 18:55     ` Darren Hart
2011-01-20 21:41       ` Adrian Alonso
2011-01-20 23:05     ` Wolfgang Denk
2011-01-20 23:24       ` Richard Purdie
2011-01-22 14:48         ` Wolfgang Denk
2011-01-23  0:11           ` Richard Purdie
2011-01-25  9:09             ` Wolfgang Denk
2011-01-25 22:49               ` Richard Purdie
2011-01-17 20:29 ` [PATCH 06/25] virtex4: fix machine name in u-boot preferred version Adrian Alonso
2011-01-17 20:29 ` [PATCH 07/25] virtex5: " Adrian Alonso
2011-01-17 20:29 ` [PATCH 08/25] xilinx-boot: add ml405 in default target configuration Adrian Alonso
2011-01-17 20:29 ` [PATCH 09/25] u-boot-xilinx: ml405 uartlite support Adrian Alonso
2011-01-17 20:29 ` [PATCH 10/25] xilinx-boot: split configure function Adrian Alonso
2011-01-17 20:29 ` [PATCH 11/25] xilinx-boot: add do_mk_xparam function Adrian Alonso
2011-01-17 20:29 ` [PATCH 12/25] u-boot-xilinx: ml507 uartlite support Adrian Alonso
2011-01-17 20:29 ` [PATCH 13/25] u-boot-xilinx: remove hardcoded include path Adrian Alonso
2011-01-17 20:29 ` [PATCH 14/25] linux-xilinx: update kernel version 2.6.37 rc4 Adrian Alonso
2011-01-17 20:29 ` [PATCH 15/25] linux-xilinx: remove hardcoded include path Adrian Alonso
2011-01-17 20:29 ` [PATCH 16/25] linux-xilinx: add license files checksum Adrian Alonso
2011-01-17 20:29 ` [PATCH 17/25] device-table: add tty uartlite static dev nodes Adrian Alonso
2011-01-17 20:29 ` [PATCH 18/25] u-boot-xilinx: add license files checksum Adrian Alonso
2011-01-17 20:29 ` [PATCH 19/25] tune-ppc405: append ppc440 in PACKAGE_EXTRA_ARCHS Adrian Alonso
2011-01-17 20:29 ` [PATCH 20/25] tune-ppc440: append ppc405 " Adrian Alonso
2011-01-17 20:29 ` [PATCH 21/25] virtex4: update default serial console Adrian Alonso
2011-01-17 20:29 ` [PATCH 22/25] virtex5: " Adrian Alonso
2011-01-17 20:29 ` [PATCH 23/25] defconfig: virtex4 config for linux 2.6.37.rc4 Adrian Alonso
2011-01-17 20:29 ` [PATCH 24/25] defconfig: virtex5 " Adrian Alonso
2011-01-17 20:29 ` [PATCH 25/25] openssl: powerpc gnueabi toolchain support 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.