All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] toolchain-external: bump CodeSourcery AMD64 to 2016.11-19
@ 2016-12-20 20:29 Romain Naour
  2016-12-20 20:54 ` Thomas Petazzoni
  2017-01-27  9:23 ` Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Romain Naour @ 2016-12-20 20:29 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
Just build tested only, I don't have this kind of hardware.
---
 .../toolchain-external-codesourcery-amd64/Config.in          | 12 ++++++------
 .../toolchain-external-codesourcery-amd64.hash               |  4 ++--
 .../toolchain-external-codesourcery-amd64.mk                 |  2 +-
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in b/toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in
index 86486c8..32d79eb 100644
--- a/toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in
+++ b/toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in
@@ -1,5 +1,5 @@
 config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64
-	bool "Sourcery CodeBench AMD64 2015.11"
+	bool "Sourcery CodeBench AMD64 2016.11"
 	depends on BR2_x86_64
 	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
 	depends on !BR2_STATIC_LIBS
@@ -9,13 +9,13 @@ config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64
 	select BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	select BR2_INSTALL_LIBSTDCPP
 	select BR2_HOSTARCH_NEEDS_IA32_LIBS
-	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
-	select BR2_TOOLCHAIN_GCC_AT_LEAST_5
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_6
 	help
 	  Sourcery CodeBench toolchain for the amd64 (x86_64)
-	  architectures, from Mentor Graphics. It uses gcc 5.2,
-	  binutils 2.25.51, glibc 2.22, gdb 7.10.50 and kernel headers
-	  4.2. It has support for the following variants:
+	  architectures, from Mentor Graphics. It uses gcc 6.2,
+	  binutils 2.26, glibc 2.24, gdb 7.11 and kernel headers
+	  4.7. It has support for the following variants:
 	    - AMD Puma/Jaguar (family 16h), glibc
 	    Default for x86_64, nothing special to do.
 	    - AMD Steamroller (family 15h), glibc
diff --git a/toolchain/toolchain-external/toolchain-external-codesourcery-amd64/toolchain-external-codesourcery-amd64.hash b/toolchain/toolchain-external/toolchain-external-codesourcery-amd64/toolchain-external-codesourcery-amd64.hash
index ea5f300..291e6a5 100644
--- a/toolchain/toolchain-external/toolchain-external-codesourcery-amd64/toolchain-external-codesourcery-amd64.hash
+++ b/toolchain/toolchain-external/toolchain-external-codesourcery-amd64/toolchain-external-codesourcery-amd64.hash
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256 3c31206c8b9277f409ee00e4777ba82dfa6da2a4ca0926501cd5fb6bbd1b407e  amd-2015.11-139-x86_64-amd-linux-gnu-i686-pc-linux-gnu.tar.bz2
-sha256 0b673f5035f97d5d03c31272cddab0f117d39ad76a5ad2a3bc98c156571527de  amd-2015.11-139-x86_64-amd-linux-gnu.src.tar.bz2
+sha256 a6c23837dd45a33866c60a2fd8d7af40520cd84ff1059abda797952d7ee0fafd  amd-2016.11-19-x86_64-amd-linux-gnu-i686-pc-linux-gnu.tar.bz2
+sha256 d61ce0b5648ad63cca16fe233c82e7eaa6a3212a549d69a527e7a2d5350f7b4a  amd-2016.11-19-x86_64-amd-linux-gnu.src.tar.bz2
diff --git a/toolchain/toolchain-external/toolchain-external-codesourcery-amd64/toolchain-external-codesourcery-amd64.mk b/toolchain/toolchain-external/toolchain-external-codesourcery-amd64/toolchain-external-codesourcery-amd64.mk
index 4b8e31c..1697e5e 100644
--- a/toolchain/toolchain-external/toolchain-external-codesourcery-amd64/toolchain-external-codesourcery-amd64.mk
+++ b/toolchain/toolchain-external/toolchain-external-codesourcery-amd64/toolchain-external-codesourcery-amd64.mk
@@ -5,7 +5,7 @@
 ################################################################################
 
 TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_SITE = https://sourcery.mentor.com/public/gnu_toolchain/$(TOOLCHAIN_EXTERNAL_PREFIX)
-TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_VERSION = 2015.11-139
+TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_VERSION = 2016.11-19
 TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_SOURCE = amd-$(TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_VERSION)-$(TOOLCHAIN_EXTERNAL_PREFIX)-i686-pc-linux-gnu.tar.bz2
 TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_ACTUAL_SOURCE_TARBALL = amd-$(TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_VERSION)-$(TOOLCHAIN_EXTERNAL_PREFIX).src.tar.bz2
 
-- 
2.5.5

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

* [Buildroot] [PATCH] toolchain-external: bump CodeSourcery AMD64 to 2016.11-19
  2016-12-20 20:29 [Buildroot] [PATCH] toolchain-external: bump CodeSourcery AMD64 to 2016.11-19 Romain Naour
@ 2016-12-20 20:54 ` Thomas Petazzoni
  2016-12-20 21:15   ` Romain Naour
  2017-01-27  9:23 ` Thomas Petazzoni
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2016-12-20 20:54 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 20 Dec 2016 21:29:29 +0100, Romain Naour wrote:
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> ---
> Just build tested only, I don't have this kind of hardware.

You don't have qemu-system-x86_64, really ? :-)

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] [PATCH] toolchain-external: bump CodeSourcery AMD64 to 2016.11-19
  2016-12-20 20:54 ` Thomas Petazzoni
@ 2016-12-20 21:15   ` Romain Naour
  2016-12-20 21:18     ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Romain Naour @ 2016-12-20 21:15 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

Le 20/12/2016 ? 21:54, Thomas Petazzoni a ?crit :
> Hello,
> 
> On Tue, 20 Dec 2016 21:29:29 +0100, Romain Naour wrote:
>> Signed-off-by: Romain Naour <romain.naour@gmail.com>
>> ---
>> Just build tested only, I don't have this kind of hardware.
> 
> You don't have qemu-system-x86_64, really ? :-)

I can't use it with Qemu even with the current version or this new toolchain.
It doesn't boot at all, I don't even see the first kernel line.

I'm using a Linux kernel 4.8.13 with qemu-2.4.1-11.fc23 or v2.8.0-rc2-8-gbd8ef50

Best regards,
Romain


> 
> Thomas
> 

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

* [Buildroot] [PATCH] toolchain-external: bump CodeSourcery AMD64 to 2016.11-19
  2016-12-20 21:15   ` Romain Naour
@ 2016-12-20 21:18     ` Thomas Petazzoni
  2016-12-20 21:27       ` Romain Naour
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2016-12-20 21:18 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 20 Dec 2016 22:15:16 +0100, Romain Naour wrote:

> > You don't have qemu-system-x86_64, really ? :-)  
> 
> I can't use it with Qemu even with the current version or this new toolchain.
> It doesn't boot at all, I don't even see the first kernel line.
> 
> I'm using a Linux kernel 4.8.13 with qemu-2.4.1-11.fc23 or v2.8.0-rc2-8-gbd8ef50

Odd. What CPU variant are you using?

Maybe Gustavo has a clue?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] [PATCH] toolchain-external: bump CodeSourcery AMD64 to 2016.11-19
  2016-12-20 21:18     ` Thomas Petazzoni
@ 2016-12-20 21:27       ` Romain Naour
  2016-12-21 21:42         ` Romain Naour
  0 siblings, 1 reply; 7+ messages in thread
From: Romain Naour @ 2016-12-20 21:27 UTC (permalink / raw)
  To: buildroot

Le 20/12/2016 ? 22:18, Thomas Petazzoni a ?crit :
> Hello,
> 
> On Tue, 20 Dec 2016 22:15:16 +0100, Romain Naour wrote:
> 
>>> You don't have qemu-system-x86_64, really ? :-)  
>>
>> I can't use it with Qemu even with the current version or this new toolchain.
>> It doesn't boot at all, I don't even see the first kernel line.
>>
>> I'm using a Linux kernel 4.8.13 with qemu-2.4.1-11.fc23 or v2.8.0-rc2-8-gbd8ef50
> 
> Odd. What CPU variant are you using?

I'm using BR2_x86_steamroller, Qemu doesn't seems support it.

Romain

> 
> Maybe Gustavo has a clue?
> 
> Thomas
> 

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

* [Buildroot] [PATCH] toolchain-external: bump CodeSourcery AMD64 to 2016.11-19
  2016-12-20 21:27       ` Romain Naour
@ 2016-12-21 21:42         ` Romain Naour
  0 siblings, 0 replies; 7+ messages in thread
From: Romain Naour @ 2016-12-21 21:42 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

Le 20/12/2016 ? 22:27, Romain Naour a ?crit :
> Le 20/12/2016 ? 22:18, Thomas Petazzoni a ?crit :
>> Hello,
>>
>> On Tue, 20 Dec 2016 22:15:16 +0100, Romain Naour wrote:
>>
>>>> You don't have qemu-system-x86_64, really ? :-)  
>>>
>>> I can't use it with Qemu even with the current version or this new toolchain.
>>> It doesn't boot at all, I don't even see the first kernel line.
>>>
>>> I'm using a Linux kernel 4.8.13 with qemu-2.4.1-11.fc23 or v2.8.0-rc2-8-gbd8ef50
>>
>> Odd. What CPU variant are you using?
> 
> I'm using BR2_x86_steamroller, Qemu doesn't seems support it.

I switched to BR2_x86_jaguar for testing and it still don't boot with the command line provided in board/qemu/x86_64/readme.txt

So, I tried several Qemu options (-cpu and -M) and some kernel options...
Qemu 2.8.0 -cpu Opteron_G4 option seems interesting.

Finally, I had to try a strange option combination "-cpu Opteron_G4 -enable-kvm" even if my host is not an AMD64 cpu (it's an Intel(R) Core(TM) i5-4670K CPU).

And it boot completely :)

Here is the command line used:
~/git/qemu/x86_64-softmmu/qemu-system-x86_64 -M pc  -kernel test/sourcery-x86-64/images/bzImage -drive file=test/sourcery-x86-64/images/rootfs.ext2,if=virtio,format=raw -append root=/dev/vda -net nic,model=virtio -net user -cpu Opteron_G4 -enable-kvm

Note: Qemu complain about some missing feature
warning: host doesn't support requested feature: CPUID.80000001H:ECX.sse4a [bit 6]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.misalignsse [bit 7]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.3dnowprefetch [bit 8]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.xop [bit 11]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.fma4 [bit 16]

It's almost the same warning without -enable-kvm option
warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
warning: TCG doesn't support requested feature: CPUID.80000001H:ECX.misalignsse [bit 7]
warning: TCG doesn't support requested feature: CPUID.80000001H:ECX.3dnowprefetch [bit 8]
warning: TCG doesn't support requested feature: CPUID.80000001H:ECX.xop [bit 11]
warning: TCG doesn't support requested feature: CPUID.80000001H:ECX.fma4 [bit 16]

I guess it works with --enable-kvm since my host support CPUID.01H:ECX.avx

It's amazing to see the content of cpuinfo inside Qemu VM: 
# cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 21
model		: 1
model name	: AMD Opteron 62xx class CPU

So, this toolchain seems to work correctly if avx support is present :)
Tested with Qemu 2.8.0 and kernel 4.9 (using board/qemu/x86_64/linux-4.8.config) with BR2_x86_jaguar.

However, it doesn't boot with BR2_x86_steamroller.
warning: host doesn't support requested feature: CPUID.80000001H:ECX.sse4a [bit 6]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.misalignsse [bit 7]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.3dnowprefetch [bit 8]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.xop [bit 11]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.fma4 [bit 16]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.tbm [bit 21]

missing CPUID.80000001H:ECX.tbm on my host it seems...

Best regards,
Romain

> 
> Romain
> 
>>
>> Maybe Gustavo has a clue?
>>
>> Thomas
>>
> 

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

* [Buildroot] [PATCH] toolchain-external: bump CodeSourcery AMD64 to 2016.11-19
  2016-12-20 20:29 [Buildroot] [PATCH] toolchain-external: bump CodeSourcery AMD64 to 2016.11-19 Romain Naour
  2016-12-20 20:54 ` Thomas Petazzoni
@ 2017-01-27  9:23 ` Thomas Petazzoni
  1 sibling, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2017-01-27  9:23 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 20 Dec 2016 21:29:29 +0100, Romain Naour wrote:
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> ---
> Just build tested only, I don't have this kind of hardware.
> ---
>  .../toolchain-external-codesourcery-amd64/Config.in          | 12 ++++++------
>  .../toolchain-external-codesourcery-amd64.hash               |  4 ++--
>  .../toolchain-external-codesourcery-amd64.mk                 |  2 +-
>  3 files changed, 9 insertions(+), 9 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2017-01-27  9:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-20 20:29 [Buildroot] [PATCH] toolchain-external: bump CodeSourcery AMD64 to 2016.11-19 Romain Naour
2016-12-20 20:54 ` Thomas Petazzoni
2016-12-20 21:15   ` Romain Naour
2016-12-20 21:18     ` Thomas Petazzoni
2016-12-20 21:27       ` Romain Naour
2016-12-21 21:42         ` Romain Naour
2017-01-27  9:23 ` Thomas Petazzoni

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.