Skip to contentSkip to conversation

u-boot-am33x: Update am335x to use latest u-boot for 3.2 kernel

PATCH In review Franklin S. Cooper Jr 3 participants 7 messages Jul 2, 2013 – Jul 9, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 u-boot-am33x: Update am335x to use latest u-boot for 3.2 kernel

Latest commit includes the following:
* Add support for Beaglebone Black
* Add fix for Linaro toolchain to insure NOR and RNDIS works.
* Add workaround for Errata 1.0.24
* Enable DDR3 power down for BBB and GP evm.

---
 recipes-bsp/u-boot/u-boot-am33x_2013.01.01.bb |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
recipes-bsp/u-boot/u-boot-am33x_2013.01.01.bb +3 -4
index 19ec34e..cb2e850 100644
@@ -6,15 +6,14 @@ COMPATIBLE_MACHINE = "ti33x"
 
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r5+gitr${SRCPV}"
+PR = "r6+gitr${SRCPV}"
 
 SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git;protocol=git;branch=${BRANCH}"
 
 # This version of u-boot is meant for 3.2 kernel which doesn't support device tree.
-BRANCH = "ti-u-boot-2013.01.01-amsdk-05.07.00.00"
+BRANCH = "ti-u-boot-2013.01.01-amsdk-06.00.00.00"
 
-# Commit corresponds to tag "v2013.01.01_amsdk-05.07.00.00"
-SRCREV = "8eb15a787c558fee98b0fa2a66ff0849c732edcc"
+SRCREV = "540aa6fbb0c9274bda598f7e8819ed28259cad6b"
 
 # Set the name of the SPL that will built so that it is also packaged with u-boot.
 SPL_BINARY = "MLO"
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/2 u-boot: Add memory alignment fix for armv7 for am37x and am3517

* On am335x a memory alignment issue was found when using the Linaro toolchain.
* A similar patch was applied for am335x that fixed this well documented issue.
* Add a similar fix to am37x and am3517 since this is a generic armv7 issue.

---
 .../0001-armv7-Unaligned-access-fix.patch          |   30 ++++++++++++++++++++
 recipes-bsp/u-boot/u-boot-am3517_2011.09.bb        |    5 ++-
 .../0001-armv7-Unaligned-access-fix.patch          |   30 ++++++++++++++++++++
 recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb      |    3 ++
 4 files changed, 66 insertions(+), 2 deletions(-)
 create mode 100644 recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7-Unaligned-access-fix.patch
 create mode 100644 recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7-Unaligned-access-fix.patch
recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7-Unaligned-access-fix.patch new file +30 -0
new file mode 100644
index 0000000..35307ac
@@ -0,0 +1,30 @@
+From 40f1e7db785f477a2aa145a3b47bd498c48ad52d Mon Sep 17 00:00:00 2001
+From: Steve Kipisz <[email protected]>
+Date: Fri, 14 Jun 2013 05:16:52 -0500
+Subject: [PATCH] armv7:Unaligned access fix
+
+This fixes an unaligned access data abort introduced when using gcc 4.7
+or higher. The Linaro toolchain uses gcc 4.7.3. This is documented in u-boot
+doc/README.arm-unaligned-accesses.
+
+Signed-off-by: Steve Kipisz <[email protected]>
+---
+ arch/arm/cpu/armv7/config.mk |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/cpu/armv7/config.mk b/arch/arm/cpu/armv7/config.mk
+index 9c3e2f3..9736da8 100644
+--- a/arch/arm/cpu/armv7/config.mk
++++ b/arch/arm/cpu/armv7/config.mk
+@@ -20,7 +20,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ # MA 02111-1307 USA
+ #
+-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
++PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mno-unaligned-access
+ 
+ # If armv7-a is not supported by GCC fall-back to armv5, which is
+ # supported by more tool-chains
+-- 
+1.7.9.5
+
recipes-bsp/u-boot/u-boot-am3517_2011.09.bb +3 -2
index 6321406..02019e9 100644
@@ -6,9 +6,10 @@ COMPATIBLE_MACHINE = "omap3"
 
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
-SRC_URI = "git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;branch=${BRANCH}"
+SRC_URI = "git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;branch=${BRANCH} \
+           file://0001-armv7-Unaligned-access-fix.patch"
 
 BRANCH = "AM335XPSP_04.06.00.08"
 
recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7-Unaligned-access-fix.patch new file +30 -0
new file mode 100644
index 0000000..35307ac
@@ -0,0 +1,30 @@
+From 40f1e7db785f477a2aa145a3b47bd498c48ad52d Mon Sep 17 00:00:00 2001
+From: Steve Kipisz <[email protected]>
+Date: Fri, 14 Jun 2013 05:16:52 -0500
+Subject: [PATCH] armv7:Unaligned access fix
+
+This fixes an unaligned access data abort introduced when using gcc 4.7
+or higher. The Linaro toolchain uses gcc 4.7.3. This is documented in u-boot
+doc/README.arm-unaligned-accesses.
+
+Signed-off-by: Steve Kipisz <[email protected]>
+---
+ arch/arm/cpu/armv7/config.mk |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/cpu/armv7/config.mk b/arch/arm/cpu/armv7/config.mk
+index 9c3e2f3..9736da8 100644
+--- a/arch/arm/cpu/armv7/config.mk
++++ b/arch/arm/cpu/armv7/config.mk
+@@ -20,7 +20,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ # MA 02111-1307 USA
+ #
+-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
++PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mno-unaligned-access
+ 
+ # If armv7-a is not supported by GCC fall-back to armv5, which is
+ # supported by more tool-chains
+-- 
+1.7.9.5
+
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +3 -0
index c25cf1e..1cd96b6 100644
@@ -6,6 +6,8 @@ COMPATIBLE_MACHINE = "am37x-evm|beagleboard"
 
 BRANCH ?= "master"
 
+PR = "r1+gitr${SRCPV}"
+
 # v2012.04.01
 SRCREV = "415d386877df49eb051b85ef74fa59a16dc17c7d"
 
@@ -33,6 +35,7 @@ SRC_URI += "file://0001-omap3_beagle-add-usbethaddr-setting-to-enable-networ.pat
             file://0002-omap3evm-Make-the-board-start-at-800MHz.patch \
             file://0003-beagleboard-Make-xM-rev-C-go-to-800MHz.patch \
             file://0001-ARM-omap3-Set-SPL-stack-size-to-8KB-image-to-54KB.patch \
+            file://0001-armv7-Unaligned-access-fix.patch \
             "
 
 SPL_BINARY = "MLO"
Signature · 1 line
1.7.0.4
Acked-by on v1 1/2
#6 lore raw
In reply to Franklin S. Cooper Jr
Quoted 53 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Tuesday, July 02, 2013 11:48 AM
To: [email protected]
Subject: [meta-ti] [master & danny][PATCH 1/2] u-boot-am33x:
Update am335x to use latest u-boot for 3.2 kernel

Latest commit includes the following:
* Add support for Beaglebone Black
* Add fix for Linaro toolchain to insure NOR and RNDIS works.
* Add workaround for Errata 1.0.24
* Enable DDR3 power down for BBB and GP evm.

---
recipes-bsp/u-boot/u-boot-am33x_2013.01.01.bb | 7 +++----

1 files changed, 3 insertions(+), 4 deletions(-)
recipes-bsp/u-boot/u-boot-am33x_2013.01.01.bb +0 -0
index 19ec34e..cb2e850 100644
@@ -6,15 +6,14 @@ COMPATIBLE_MACHINE = "ti33x"
 

DEFAULT_PREFERENCE = "-1"

recipes-bsp/u-boot/u-boot-am33x_2013.01.01.bb +1 -1
-PR = "r5+gitr${SRCPV}"
+PR = "r6+gitr${SRCPV}"

SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-
boot.git;protocol=git;branch=${BRANCH}"

# This version of u-boot is meant for 3.2 kernel which doesn't support device tree.

recipes-bsp/u-boot/u-boot-am33x_2013.01.01.bb +2 -3
-BRANCH = "ti-u-boot-2013.01.01-amsdk-05.07.00.00"
+BRANCH = "ti-u-boot-2013.01.01-amsdk-06.00.00.00"
 
-# Commit corresponds to tag "v2013.01.01_amsdk-05.07.00.00"
-SRCREV = "8eb15a787c558fee98b0fa2a66ff0849c732edcc"
+SRCREV = "540aa6fbb0c9274bda598f7e8819ed28259cad6b"

# Set the name of the SPL that will built so that it is also packaged with u-boot.
SPL_BINARY = "MLO"
--
1.7.0.4

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#2 lore raw

Re: [master & danny][PATCH 2/2] u-boot: Add memory alignment fix for armv7 for am37x and am3517

In reply to Franklin S. Cooper Jr

Couldn't you only use one copy of the patch file and place it in a more generic directory? Not a big issue but just asking.

Sincerely,
Chase Maupin
Integration Team Manager
Linux Core Product Development
e-mail: [email protected]
phone: (214) 567-2950

For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/

Quoted 172 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Tuesday, July 02, 2013 11:48 AM
To: [email protected]
Subject: [meta-ti] [master & danny][PATCH 2/2] u-boot: Add memory alignment fix for armv7 for am37x and am3517

* On am335x a memory alignment issue was found when using the Linaro toolchain.
* A similar patch was applied for am335x that fixed this well documented issue.
* Add a similar fix to am37x and am3517 since this is a generic armv7 issue.

---
.../0001-armv7-Unaligned-access-fix.patch | 30
++++++++++++++++++++
recipes-bsp/u-boot/u-boot-am3517_2011.09.bb | 5 ++-
.../0001-armv7-Unaligned-access-fix.patch | 30
++++++++++++++++++++
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb | 3 ++

4 files changed, 66 insertions(+), 2 deletions(-)

create mode 100644 recipes-bsp/u-boot/u-boot-am3517-2011.09/0001- armv7-Unaligned-access-fix.patch
create mode 100644 recipes-bsp/u-boot/u-boot-am37x- 2012.04.01/0001-armv7-Unaligned-access-fix.patch

(quoted diff) +0 -0

Unaligned-access-fix.patch b/recipes-bsp/u-boot/u-boot-am3517- 2011.09/0001-armv7-Unaligned-access-fix.patch
new file mode 100644
index 0000000..35307ac

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +0 -0

Unaligned-access-fix.patch

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +1 -0
@@ -0,0 +1,30 @@
+From 40f1e7db785f477a2aa145a3b47bd498c48ad52d Mon Sep 17 00:00:00

2001

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +5 -0
+From: Steve Kipisz <[email protected]>
+Date: Fri, 14 Jun 2013 05:16:52 -0500
+Subject: [PATCH] armv7:Unaligned access fix
+
+This fixes an unaligned access data abort introduced when using

gcc 4.7
+or higher. The Linaro toolchain uses gcc 4.7.3. This is documented in u-boot

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +8 -0
+doc/README.arm-unaligned-accesses.
+
+Signed-off-by: Steve Kipisz <[email protected]>
+---
+ arch/arm/cpu/armv7/config.mk |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/cpu/armv7/config.mk

b/arch/arm/cpu/armv7/config.mk
+index 9c3e2f3..9736da8 100644
+--- a/arch/arm/cpu/armv7/config.mk
++++ b/arch/arm/cpu/armv7/config.mk
+@@ -20,7 +20,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ # MA 02111-1307 USA
+ #
+-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float ++PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mno- unaligned-access
+
+ # If armv7-a is not supported by GCC fall-back to armv5, which is
+ # supported by more tool-chains
+--
+1.7.9.5

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +1 -0
+
recipes-bsp/u-boot/u-boot-am3517_2011.09.bb +0 -0
index 6321406..02019e9 100644
@@ -6,9 +6,10 @@ COMPATIBLE_MACHINE = "omap3"
 

DEFAULT_PREFERENCE = "-1"

recipes-bsp/u-boot/u-boot-am3517_2011.09.bb +1 -2
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
-SRC_URI = "git://arago-project.org/git/projects/u-boot-

am33x.git;protocol=git;branch=${BRANCH}" +SRC_URI = "git://arago-project.org/git/projects/u-boot- am33x.git;protocol=git;branch=${BRANCH} \
+ file://0001-armv7-Unaligned-access-fix.patch"

BRANCH = "AM335XPSP_04.06.00.08"

(quoted diff) +0 -0

armv7-Unaligned-access-fix.patch b/recipes-bsp/u-boot/u-boot- am37x-2012.04.01/0001-armv7-Unaligned-access-fix.patch new file mode 100644
index 0000000..35307ac

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +0 -0

Unaligned-access-fix.patch

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +1 -0
@@ -0,0 +1,30 @@
+From 40f1e7db785f477a2aa145a3b47bd498c48ad52d Mon Sep 17 00:00:00

2001

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +5 -0
+From: Steve Kipisz <[email protected]>
+Date: Fri, 14 Jun 2013 05:16:52 -0500
+Subject: [PATCH] armv7:Unaligned access fix
+
+This fixes an unaligned access data abort introduced when using

gcc 4.7
+or higher. The Linaro toolchain uses gcc 4.7.3. This is documented in u-boot

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +8 -0
+doc/README.arm-unaligned-accesses.
+
+Signed-off-by: Steve Kipisz <[email protected]>
+---
+ arch/arm/cpu/armv7/config.mk |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/cpu/armv7/config.mk

b/arch/arm/cpu/armv7/config.mk
+index 9c3e2f3..9736da8 100644
+--- a/arch/arm/cpu/armv7/config.mk
++++ b/arch/arm/cpu/armv7/config.mk
+@@ -20,7 +20,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ # MA 02111-1307 USA
+ #
+-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float ++PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mno- unaligned-access
+
+ # If armv7-a is not supported by GCC fall-back to armv5, which is
+ # supported by more tool-chains
+--
+1.7.9.5

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +1 -0
+
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +0 -0
index c25cf1e..1cd96b6 100644
@@ -6,6 +6,8 @@ COMPATIBLE_MACHINE = "am37x-evm|beagleboard"
 

BRANCH ?= "master"

recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +2 -0
+PR = "r1+gitr${SRCPV}"
+
# v2012.04.01
SRCREV = "415d386877df49eb051b85ef74fa59a16dc17c7d"
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +0 -0
@@ -33,6 +35,7 @@ SRC_URI += "file://0001-omap3_beagle-add-

usbethaddr-setting-to-enable-networ.pat

            file://0002-omap3evm-Make-the-board-start-at-
800MHz.patch \
            file://0003-beagleboard-Make-xM-rev-C-go-to-
800MHz.patch \
            file://0001-ARM-omap3-Set-SPL-stack-size-to-8KB-
image-to-54KB.patch \
+            file://0001-armv7-Unaligned-access-fix.patch \
            "

SPL_BINARY = "MLO"
--
1.7.0.4

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#3 lore raw

Re: [master & danny][PATCH 2/2] u-boot: Add memory alignment fix for armv7 for am37x and am3517

Quoted 2 lines · Chase

Couldn't you only use one copy of the patch file and place it in a more generic directory? Not a big issue but just asking.

Franklin,

Any comment for the above question?

Also, please remind me in 2 days to apply your patches. I'm not sure I will have time today or tomorrow. Thanks.

Signature · 1 line
Denys
Quoted 176 lines
Quoted 164 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Tuesday, July 02, 2013 11:48 AM
To: [email protected]
Subject: [meta-ti] [master & danny][PATCH 2/2] u-boot: Add memory alignment fix for armv7 for am37x and am3517

* On am335x a memory alignment issue was found when using the Linaro toolchain.
* A similar patch was applied for am335x that fixed this well documented issue.
* Add a similar fix to am37x and am3517 since this is a generic armv7 issue.

---
.../0001-armv7-Unaligned-access-fix.patch | 30
++++++++++++++++++++
recipes-bsp/u-boot/u-boot-am3517_2011.09.bb | 5 ++-
.../0001-armv7-Unaligned-access-fix.patch | 30
++++++++++++++++++++
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb | 3 ++

4 files changed, 66 insertions(+), 2 deletions(-)

create mode 100644 recipes-bsp/u-boot/u-boot-am3517-2011.09/0001- armv7-Unaligned-access-fix.patch
create mode 100644 recipes-bsp/u-boot/u-boot-am37x- 2012.04.01/0001-armv7-Unaligned-access-fix.patch

(quoted diff) +0 -0

Unaligned-access-fix.patch b/recipes-bsp/u-boot/u-boot-am3517- 2011.09/0001-armv7-Unaligned-access-fix.patch
new file mode 100644
index 0000000..35307ac

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +0 -0

Unaligned-access-fix.patch

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +1 -0
@@ -0,0 +1,30 @@
+From 40f1e7db785f477a2aa145a3b47bd498c48ad52d Mon Sep 17 00:00:00

2001

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +5 -0
+From: Steve Kipisz <[email protected]>
+Date: Fri, 14 Jun 2013 05:16:52 -0500
+Subject: [PATCH] armv7:Unaligned access fix
+
+This fixes an unaligned access data abort introduced when using

gcc 4.7
+or higher. The Linaro toolchain uses gcc 4.7.3. This is documented in u-boot

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +8 -0
+doc/README.arm-unaligned-accesses.
+
+Signed-off-by: Steve Kipisz <[email protected]>
+---
+ arch/arm/cpu/armv7/config.mk |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/cpu/armv7/config.mk

b/arch/arm/cpu/armv7/config.mk
+index 9c3e2f3..9736da8 100644
+--- a/arch/arm/cpu/armv7/config.mk
++++ b/arch/arm/cpu/armv7/config.mk
+@@ -20,7 +20,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ # MA 02111-1307 USA
+ #
+-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float ++PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mno- unaligned-access
+
+ # If armv7-a is not supported by GCC fall-back to armv5, which is
+ # supported by more tool-chains
+--
+1.7.9.5

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +1 -0
+
recipes-bsp/u-boot/u-boot-am3517_2011.09.bb +0 -0
index 6321406..02019e9 100644
@@ -6,9 +6,10 @@ COMPATIBLE_MACHINE = "omap3"
 

DEFAULT_PREFERENCE = "-1"

recipes-bsp/u-boot/u-boot-am3517_2011.09.bb +1 -2
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
-SRC_URI = "git://arago-project.org/git/projects/u-boot-

am33x.git;protocol=git;branch=${BRANCH}" +SRC_URI = "git://arago-project.org/git/projects/u-boot- am33x.git;protocol=git;branch=${BRANCH} \
+ file://0001-armv7-Unaligned-access-fix.patch"

BRANCH = "AM335XPSP_04.06.00.08"

(quoted diff) +0 -0

armv7-Unaligned-access-fix.patch b/recipes-bsp/u-boot/u-boot- am37x-2012.04.01/0001-armv7-Unaligned-access-fix.patch new file mode 100644
index 0000000..35307ac

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +0 -0

Unaligned-access-fix.patch

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +1 -0
@@ -0,0 +1,30 @@
+From 40f1e7db785f477a2aa145a3b47bd498c48ad52d Mon Sep 17 00:00:00

2001

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +5 -0
+From: Steve Kipisz <[email protected]>
+Date: Fri, 14 Jun 2013 05:16:52 -0500
+Subject: [PATCH] armv7:Unaligned access fix
+
+This fixes an unaligned access data abort introduced when using

gcc 4.7
+or higher. The Linaro toolchain uses gcc 4.7.3. This is documented in u-boot

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +8 -0
+doc/README.arm-unaligned-accesses.
+
+Signed-off-by: Steve Kipisz <[email protected]>
+---
+ arch/arm/cpu/armv7/config.mk |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/cpu/armv7/config.mk

b/arch/arm/cpu/armv7/config.mk
+index 9c3e2f3..9736da8 100644
+--- a/arch/arm/cpu/armv7/config.mk
++++ b/arch/arm/cpu/armv7/config.mk
+@@ -20,7 +20,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ # MA 02111-1307 USA
+ #
+-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float ++PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mno- unaligned-access
+
+ # If armv7-a is not supported by GCC fall-back to armv5, which is
+ # supported by more tool-chains
+--
+1.7.9.5

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +1 -0
+
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +0 -0
index c25cf1e..1cd96b6 100644
@@ -6,6 +6,8 @@ COMPATIBLE_MACHINE = "am37x-evm|beagleboard"
 

BRANCH ?= "master"

recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +2 -0
+PR = "r1+gitr${SRCPV}"
+
# v2012.04.01
SRCREV = "415d386877df49eb051b85ef74fa59a16dc17c7d"
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +0 -0
@@ -33,6 +35,7 @@ SRC_URI += "file://0001-omap3_beagle-add-

usbethaddr-setting-to-enable-networ.pat

            file://0002-omap3evm-Make-the-board-start-at-
800MHz.patch \
            file://0003-beagleboard-Make-xM-rev-C-go-to-
800MHz.patch \
            file://0001-ARM-omap3-Set-SPL-stack-size-to-8KB-
image-to-54KB.patch \
+            file://0001-armv7-Unaligned-access-fix.patch \
            "
Quoted 8 lines

SPL_BINARY = "MLO"
--
1.7.0.4

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#4 lore raw

Re: [master & danny][PATCH 2/2] u-boot: Add memory alignment fix for armv7 for am37x and am3517

Quoted 10 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, July 09, 2013 11:54 AM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; [email protected]
Subject: Re: [meta-ti] [master & danny][PATCH 2/2] u-boot: Add memory alignment fix for armv7 for am37x and am3517

Quoted 7 lines
Quoted 2 lines · Chase

Couldn't you only use one copy of the patch file and place it in a more generic directory? Not a big issue but just asking.

Franklin,

Any comment for the above question?

Sent a v2 addressing Chase's comment.

Quoted 3 lines

Also, please remind me in 2 days to apply your patches. I'm not sure I will have time today or tomorrow. Thanks.

Will do!

Quoted 183 lines

--
Denys

Quoted 29 lines
Quoted 29 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Tuesday, July 02, 2013 11:48 AM
To: [email protected]
Subject: [meta-ti] [master & danny][PATCH 2/2] u-boot: Add memory alignment fix for armv7 for am37x and am3517

* On am335x a memory alignment issue was found when using the Linaro toolchain.
* A similar patch was applied for am335x that fixed this well documented issue.
* Add a similar fix to am37x and am3517 since this is a generic armv7 issue.

---
.../0001-armv7-Unaligned-access-fix.patch | 30
++++++++++++++++++++
recipes-bsp/u-boot/u-boot-am3517_2011.09.bb | 5 ++-
.../0001-armv7-Unaligned-access-fix.patch | 30
++++++++++++++++++++
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb | 3 ++

4 files changed, 66 insertions(+), 2 deletions(-)

create mode 100644 recipes-bsp/u-boot/u-boot-am3517-2011.09/0001- armv7-Unaligned-access-fix.patch
create mode 100644 recipes-bsp/u-boot/u-boot-am37x- 2012.04.01/0001-armv7-Unaligned-access-fix.patch

Quoted 10 lines

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- line 1

Quoted 10 lines
(quoted diff) +0 -0

Unaligned-access-fix.patch b/recipes-bsp/u-boot/u-boot-am3517- 2011.09/0001-armv7-Unaligned-access-fix.patch
new file mode 100644
index 0000000..35307ac

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +0 -0

Unaligned-access-fix.patch

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +1 -0
@@ -0,0 +1,30 @@
+From 40f1e7db785f477a2aa145a3b47bd498c48ad52d Mon Sep 17

00:00:00

Quoted 55 lines
Quoted 55 lines

2001

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +5 -0
+From: Steve Kipisz <[email protected]>
+Date: Fri, 14 Jun 2013 05:16:52 -0500
+Subject: [PATCH] armv7:Unaligned access fix
+
+This fixes an unaligned access data abort introduced when using

gcc 4.7
+or higher. The Linaro toolchain uses gcc 4.7.3. This is documented in u-boot

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +8 -0
+doc/README.arm-unaligned-accesses.
+
+Signed-off-by: Steve Kipisz <[email protected]>
+---
+ arch/arm/cpu/armv7/config.mk |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/cpu/armv7/config.mk

b/arch/arm/cpu/armv7/config.mk
+index 9c3e2f3..9736da8 100644
+--- a/arch/arm/cpu/armv7/config.mk
++++ b/arch/arm/cpu/armv7/config.mk
+@@ -20,7 +20,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ # MA 02111-1307 USA
+ #
+-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float ++PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mno- unaligned-access
+
+ # If armv7-a is not supported by GCC fall-back to armv5, which is
+ # supported by more tool-chains
+--
+1.7.9.5

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +1 -0
+
recipes-bsp/u-boot/u-boot-am3517_2011.09.bb +0 -0
index 6321406..02019e9 100644
@@ -6,9 +6,10 @@ COMPATIBLE_MACHINE = "omap3"
 

DEFAULT_PREFERENCE = "-1"

recipes-bsp/u-boot/u-boot-am3517_2011.09.bb +1 -2
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
-SRC_URI = "git://arago-project.org/git/projects/u-boot-

am33x.git;protocol=git;branch=${BRANCH}" +SRC_URI = "git://arago-project.org/git/projects/u-boot- am33x.git;protocol=git;branch=${BRANCH} \
+ file://0001-armv7-Unaligned-access-fix.patch"

BRANCH = "AM335XPSP_04.06.00.08"

Quoted 10 lines

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- line 1

Quoted 10 lines
(quoted diff) +0 -0

armv7-Unaligned-access-fix.patch b/recipes-bsp/u-boot/u-boot- am37x-2012.04.01/0001-armv7-Unaligned-access-fix.patch new file mode 100644
index 0000000..35307ac

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +0 -0

Unaligned-access-fix.patch

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +1 -0
@@ -0,0 +1,30 @@
+From 40f1e7db785f477a2aa145a3b47bd498c48ad52d Mon Sep 17

00:00:00

Quoted 72 lines
Quoted 60 lines

2001

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +5 -0
+From: Steve Kipisz <[email protected]>
+Date: Fri, 14 Jun 2013 05:16:52 -0500
+Subject: [PATCH] armv7:Unaligned access fix
+
+This fixes an unaligned access data abort introduced when using

gcc 4.7
+or higher. The Linaro toolchain uses gcc 4.7.3. This is documented in u-boot

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +8 -0
+doc/README.arm-unaligned-accesses.
+
+Signed-off-by: Steve Kipisz <[email protected]>
+---
+ arch/arm/cpu/armv7/config.mk |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/cpu/armv7/config.mk

b/arch/arm/cpu/armv7/config.mk
+index 9c3e2f3..9736da8 100644
+--- a/arch/arm/cpu/armv7/config.mk
++++ b/arch/arm/cpu/armv7/config.mk
+@@ -20,7 +20,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ # MA 02111-1307 USA
+ #
+-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float ++PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mno- unaligned-access
+
+ # If armv7-a is not supported by GCC fall-back to armv5, which is
+ # supported by more tool-chains
+--
+1.7.9.5

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +1 -0
+
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +0 -0
index c25cf1e..1cd96b6 100644
@@ -6,6 +6,8 @@ COMPATIBLE_MACHINE = "am37x-evm|beagleboard"
 

BRANCH ?= "master"

recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +2 -0
+PR = "r1+gitr${SRCPV}"
+
# v2012.04.01
SRCREV = "415d386877df49eb051b85ef74fa59a16dc17c7d"
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +0 -0
@@ -33,6 +35,7 @@ SRC_URI += "file://0001-omap3_beagle-add-

usbethaddr-setting-to-enable-networ.pat

            file://0002-omap3evm-Make-the-board-start-at-
800MHz.patch \
            file://0003-beagleboard-Make-xM-rev-C-go-to-
800MHz.patch \
            file://0001-ARM-omap3-Set-SPL-stack-size-to-8KB-
image-to-54KB.patch \
+            file://0001-armv7-Unaligned-access-fix.patch \
            "
Quoted 8 lines

SPL_BINARY = "MLO"
--
1.7.0.4

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#5 lore raw

Re: [master & danny][PATCH 2/2] u-boot: Add memory alignment fix for armv7 for am37x and am3517

Quoted 10 lines · Franklin
Quoted 10 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, July 09, 2013 11:54 AM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; [email protected]
Subject: Re: [meta-ti] [master & danny][PATCH 2/2] u-boot: Add memory alignment fix for armv7 for am37x and am3517

Quoted 8 lines
Quoted 7 lines · Chase
Quoted 2 lines

Couldn't you only use one copy of the patch file and place it in a more generic directory? Not a big issue but just asking.

Franklin,

Any comment for the above question?

Sent a v2 addressing Chase's comment.

Thanks!

Quoted 186 lines
Quoted 2 lines

Also, please remind me in 2 days to apply your patches. I'm not sure I will have time today or tomorrow. Thanks.

Will do!

Quoted 183 lines

--
Denys

Quoted 29 lines
Quoted 29 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Tuesday, July 02, 2013 11:48 AM
To: [email protected]
Subject: [meta-ti] [master & danny][PATCH 2/2] u-boot: Add memory alignment fix for armv7 for am37x and am3517

* On am335x a memory alignment issue was found when using the Linaro toolchain.
* A similar patch was applied for am335x that fixed this well documented issue.
* Add a similar fix to am37x and am3517 since this is a generic armv7 issue.

---
.../0001-armv7-Unaligned-access-fix.patch | 30
++++++++++++++++++++
recipes-bsp/u-boot/u-boot-am3517_2011.09.bb | 5 ++-
.../0001-armv7-Unaligned-access-fix.patch | 30
++++++++++++++++++++
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb | 3 ++

4 files changed, 66 insertions(+), 2 deletions(-)

create mode 100644 recipes-bsp/u-boot/u-boot-am3517-2011.09/0001- armv7-Unaligned-access-fix.patch
create mode 100644 recipes-bsp/u-boot/u-boot-am37x- 2012.04.01/0001-armv7-Unaligned-access-fix.patch

Quoted 10 lines

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- line 1

Quoted 10 lines
(quoted diff) +0 -0

Unaligned-access-fix.patch b/recipes-bsp/u-boot/u-boot-am3517- 2011.09/0001-armv7-Unaligned-access-fix.patch
new file mode 100644
index 0000000..35307ac

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +0 -0

Unaligned-access-fix.patch

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +1 -0
@@ -0,0 +1,30 @@
+From 40f1e7db785f477a2aa145a3b47bd498c48ad52d Mon Sep 17

00:00:00

Quoted 55 lines
Quoted 55 lines

2001

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +5 -0
+From: Steve Kipisz <[email protected]>
+Date: Fri, 14 Jun 2013 05:16:52 -0500
+Subject: [PATCH] armv7:Unaligned access fix
+
+This fixes an unaligned access data abort introduced when using

gcc 4.7
+or higher. The Linaro toolchain uses gcc 4.7.3. This is documented in u-boot

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +8 -0
+doc/README.arm-unaligned-accesses.
+
+Signed-off-by: Steve Kipisz <[email protected]>
+---
+ arch/arm/cpu/armv7/config.mk |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/cpu/armv7/config.mk

b/arch/arm/cpu/armv7/config.mk
+index 9c3e2f3..9736da8 100644
+--- a/arch/arm/cpu/armv7/config.mk
++++ b/arch/arm/cpu/armv7/config.mk
+@@ -20,7 +20,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ # MA 02111-1307 USA
+ #
+-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float ++PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mno- unaligned-access
+
+ # If armv7-a is not supported by GCC fall-back to armv5, which is
+ # supported by more tool-chains
+--
+1.7.9.5

recipes-bsp/u-boot/u-boot-am3517-2011.09/0001-armv7- new file +1 -0
+
recipes-bsp/u-boot/u-boot-am3517_2011.09.bb +0 -0
index 6321406..02019e9 100644
@@ -6,9 +6,10 @@ COMPATIBLE_MACHINE = "omap3"
 

DEFAULT_PREFERENCE = "-1"

recipes-bsp/u-boot/u-boot-am3517_2011.09.bb +1 -2
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
-SRC_URI = "git://arago-project.org/git/projects/u-boot-

am33x.git;protocol=git;branch=${BRANCH}" +SRC_URI = "git://arago-project.org/git/projects/u-boot- am33x.git;protocol=git;branch=${BRANCH} \
+ file://0001-armv7-Unaligned-access-fix.patch"

BRANCH = "AM335XPSP_04.06.00.08"

Quoted 10 lines

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- line 1

Quoted 10 lines
(quoted diff) +0 -0

armv7-Unaligned-access-fix.patch b/recipes-bsp/u-boot/u-boot- am37x-2012.04.01/0001-armv7-Unaligned-access-fix.patch new file mode 100644
index 0000000..35307ac

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +0 -0

Unaligned-access-fix.patch

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +1 -0
@@ -0,0 +1,30 @@
+From 40f1e7db785f477a2aa145a3b47bd498c48ad52d Mon Sep 17

00:00:00

Quoted 72 lines
Quoted 60 lines

2001

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +5 -0
+From: Steve Kipisz <[email protected]>
+Date: Fri, 14 Jun 2013 05:16:52 -0500
+Subject: [PATCH] armv7:Unaligned access fix
+
+This fixes an unaligned access data abort introduced when using

gcc 4.7
+or higher. The Linaro toolchain uses gcc 4.7.3. This is documented in u-boot

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +8 -0
+doc/README.arm-unaligned-accesses.
+
+Signed-off-by: Steve Kipisz <[email protected]>
+---
+ arch/arm/cpu/armv7/config.mk |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/cpu/armv7/config.mk

b/arch/arm/cpu/armv7/config.mk
+index 9c3e2f3..9736da8 100644
+--- a/arch/arm/cpu/armv7/config.mk
++++ b/arch/arm/cpu/armv7/config.mk
+@@ -20,7 +20,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ # MA 02111-1307 USA
+ #
+-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float ++PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mno- unaligned-access
+
+ # If armv7-a is not supported by GCC fall-back to armv5, which is
+ # supported by more tool-chains
+--
+1.7.9.5

recipes-bsp/u-boot/u-boot-am37x-2012.04.01/0001-armv7- new file +1 -0
+
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +0 -0
index c25cf1e..1cd96b6 100644
@@ -6,6 +6,8 @@ COMPATIBLE_MACHINE = "am37x-evm|beagleboard"
 

BRANCH ?= "master"

recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +2 -0
+PR = "r1+gitr${SRCPV}"
+
# v2012.04.01
SRCREV = "415d386877df49eb051b85ef74fa59a16dc17c7d"
recipes-bsp/u-boot/u-boot-am37x_2012.04.01.bb +0 -0
@@ -33,6 +35,7 @@ SRC_URI += "file://0001-omap3_beagle-add-

usbethaddr-setting-to-enable-networ.pat

            file://0002-omap3evm-Make-the-board-start-at-
800MHz.patch \
            file://0003-beagleboard-Make-xM-rev-C-go-to-
800MHz.patch \
            file://0001-ARM-omap3-Set-SPL-stack-size-to-8KB-
image-to-54KB.patch \
+            file://0001-armv7-Unaligned-access-fix.patch \
            "
Quoted 8 lines

SPL_BINARY = "MLO"
--
1.7.0.4

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti