Skip to contentSkip to conversation

configs/arcturus_ucp1020_defconfig

PATCH New Oleksandr Zhadan 2 participants 8 messages Jul 12, 2017 – Jul 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs/arcturus_ucp1020_defconfig

Back to the BR2_GCC_VERSION_4_9_X, because the default/latest GCC fails to build the Linux kernel.

---
 configs/arcturus_ucp1020_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/arcturus_ucp1020_defconfig +1 -0
index cc1297ce1..29e0f766b 100644
@@ -10,6 +10,7 @@ BR2_TARGET_GENERIC_HOSTNAME="UCP1020"
 BR2_TARGET_GENERIC_ISSUE="Welcome to Arcturus uCP1020 System on Module"
 BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
 BR2_SYSTEM_DHCP="eth0"
+BR2_GCC_VERSION_4_9_X=y
 
 # Kernel
 BR2_LINUX_KERNEL=y
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 configs/arcturus_ucp1020_defconfig

Hello,

Quoted 3 lines · Oleksandr Zhadan

Back to the BR2_GCC_VERSION_4_9_X, because the default/latest GCC fails to build the Linux kernel.

What failure do you have when building the Linux kernel ?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 configs/arcturus_ucp1020_defconfig

Hello Thomas,

Quoted 8 lines · Thomas Petazzoni

Hello,

Quoted 3 lines · Oleksandr Zhadan

Back to the BR2_GCC_VERSION_4_9_X, because the default/latest GCC fails to build the Linux kernel.

What failure do you have when building the Linux kernel ?

In file included from include/linux/linkage.h:4:0,
from include/linux/kernel.h:6,
from arch/powerpc/kernel/ptrace.c:18:
arch/powerpc/kernel/ptrace.c: In function ?fpr_get?:
arch/powerpc/kernel/ptrace.c:379:24: error: index 32 denotes an offset greater than size of ?u64[32][1] {aka long long unsigned int[32][1]}? [-Werror=array-bounds]

         offsetof(struct thread_fp_state, fpr[32][0]));

....

arch/powerpc/kernel/ptrace.c: In function ?fpr_set?:
arch/powerpc/kernel/ptrace.c:407:24: error: index 32 denotes an offset greater than size of ?u64[32][1] {aka long long unsigned int[32][1]}? [-Werror=array-bounds]

         offsetof(struct thread_fp_state, fpr[32][0]));
Quoted 2 lines

Thomas

P.S.
Did you have a chance to look into our "[Buildroot][PATCH v4 1/1] configs/arcturus_ucls1012a: new defconfig" patch from 07/06/2017 05:13 PM.

Thank you,

Oleks

#3 lore raw

PATCH 1/1 configs/arcturus_ucp1020_defconfig

Hello,

Quoted 10 lines · Oleksandr G Zhadan
Quoted 2 lines
Quoted 1 line

What failure do you have when building the Linux kernel ?

In file included from include/linux/linkage.h:4:0,
from include/linux/kernel.h:6,
from arch/powerpc/kernel/ptrace.c:18:
arch/powerpc/kernel/ptrace.c: In function ?fpr_get?:
arch/powerpc/kernel/ptrace.c:379:24: error: index 32 denotes an offset greater than size of ?u64[32][1] {aka long long unsigned int[32][1]}? [-Werror=array-bounds]

Quoted 8 lines
         offsetof(struct thread_fp_state, fpr[32][0]));

....

arch/powerpc/kernel/ptrace.c: In function ?fpr_set?:
arch/powerpc/kernel/ptrace.c:407:24: error: index 32 denotes an offset greater than size of ?u64[32][1] {aka long long unsigned int[32][1]}? [-Werror=array-bounds]

         offsetof(struct thread_fp_state, fpr[32][0]));

Then could you please backport Linux kernel commit 1e407ee3b21f981140491d5b8a36422979ca246f instead? It should fix this build issue.

Quoted 4 lines
Quoted 1 line

Thomas

P.S.
Did you have a chance to look into our "[Buildroot][PATCH v4 1/1] configs/arcturus_ucls1012a: new defconfig" patch from 07/06/2017 05:13 PM.

I had a brief look, it looked good. I'll review more carefully, and hopefully apply it as time permits.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw

PATCH 1/1 configs/arcturus_ucp1020_defconfig

Quoted 16 lines · Thomas Petazzoni

Hello,

Quoted 12 lines · Oleksandr G Zhadan
Quoted 2 lines
Quoted 1 line

What failure do you have when building the Linux kernel ?

In file included from include/linux/linkage.h:4:0,
from include/linux/kernel.h:6,
from arch/powerpc/kernel/ptrace.c:18:
arch/powerpc/kernel/ptrace.c: In function ?fpr_get?:
arch/powerpc/kernel/ptrace.c:379:24: error: index 32 denotes an offset greater than size of ?u64[32][1] {aka long long unsigned int[32][1]}? [-Werror=array-bounds]

          offsetof(struct thread_fp_state, fpr[32][0]));

....

Quoted 8 lines
Quoted 5 lines

arch/powerpc/kernel/ptrace.c: In function ?fpr_set?:
arch/powerpc/kernel/ptrace.c:407:24: error: index 32 denotes an offset greater than size of ?u64[32][1] {aka long long unsigned int[32][1]}? [-Werror=array-bounds]

          offsetof(struct thread_fp_state, fpr[32][0]));

Then could you please backport Linux kernel commit 1e407ee3b21f981140491d5b8a36422979ca246f instead? It should fix this build issue.

Yes, I can, but we are using public kernel. Should I add it as an extra patches to my board/arcturus/ppc-ucp1020/patches/linux/ directory ?

Quoted 10 lines
Quoted 4 lines
Quoted 1 line

Thomas

P.S.
Did you have a chance to look into our "[Buildroot][PATCH v4 1/1] configs/arcturus_ucls1012a: new defconfig" patch from 07/06/2017 05:13 PM.

I had a brief look, it looked good. I'll review more carefully, and hopefully apply it as time permits.

Best regards,

Thomas

Kind Regards,

Oleks

#5 lore raw

PATCH 1/1 configs/arcturus_ucp1020_defconfig

Hello,

Quoted 5 lines · Oleksandr G Zhadan
Quoted 3 lines

Then could you please backport Linux kernel commit 1e407ee3b21f981140491d5b8a36422979ca246f instead? It should fix this build issue.

Yes, I can, but we are using public kernel.

Well, the kernel is downloaded from:

+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://www.arcturusnetworks.com/OSS/kernel-ucls1012a-170706-13.tar.gz"

and you work for Arcturus Networks, so I guess you could adjust your tarball to include the relevant patch, no?

Quoted 2 lines

Should I add it as an extra patches to my board/arcturus/ppc-ucp1020/patches/linux/ directory ?

If changing the tarball is not possible, then adding the patch in Buildroot is indeed the other option.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#6 lore raw

PATCH 1/1 configs/arcturus_ucp1020_defconfig

Hi Thomas,

Looks like we mixed two architectures:

We have arcturus_ucp1020_defconfig (board/arcturus/ppc-ucp1020) already in buildroot tree for a while and we been using public kernel with our patches.
Recently I tested the build of it and found that with latest GCC-6 we have an issue to build image for this existing board (uCP1020), but it was building OK when the latest was GCC-4.9. I agree with you that it is better to port GCC-6 issue fix and use GCC-6, I already tested it here and will added that linux-3.18 patch into my board patch directory. The updated patch for uCP1020 I will send soon.

The arcturus_ucls1012a_defconfig (board/arcturus/aarch64-ucls1012a) is
another board support package we are trying to add to buildroot now.
And in patches for this board we are using "BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://www.arcturusnetworks.com/OSS/kernel-ucls1012a-170706-13.tar.gz". The v4 of the patch for uCLS1012a is waiting for your approval.

Thank you,

Oleks

Quoted 23 lines · Thomas Petazzoni

Hello,

Quoted 4 lines · Oleksandr G Zhadan
Quoted 3 lines

Then could you please backport Linux kernel commit 1e407ee3b21f981140491d5b8a36422979ca246f instead? It should fix this build issue.

Yes, I can, but we are using public kernel.

Well, the kernel is downloaded from:

+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://www.arcturusnetworks.com/OSS/kernel-ucls1012a-170706-13.tar.gz"

and you work for Arcturus Networks, so I guess you could adjust your tarball to include the relevant patch, no?

Quoted 2 lines

Should I add it as an extra patches to my board/arcturus/ppc-ucp1020/patches/linux/ directory ?

If changing the tarball is not possible, then adding the patch in Buildroot is indeed the other option.

Thanks!

Thomas

#7 lore raw

PATCH 1/1 configs/arcturus_ucp1020_defconfig

Hello,

Quoted 12 lines · Oleksandr G Zhadan

Looks like we mixed two architectures:

We have arcturus_ucp1020_defconfig (board/arcturus/ppc-ucp1020) already in buildroot tree for a while and we been using public kernel with our patches.
Recently I tested the build of it and found that with latest GCC-6 we have an issue to build image for this existing board (uCP1020), but it was building OK when the latest was GCC-4.9. I agree with you that it is better to port GCC-6 issue fix and use GCC-6, I already tested it here and will added that linux-3.18 patch into my board patch directory. The updated patch for uCP1020 I will send soon.

Quoted 5 lines

The arcturus_ucls1012a_defconfig (board/arcturus/aarch64-ucls1012a) is
another board support package we are trying to add to buildroot now.
And in patches for this board we are using "BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://www.arcturusnetworks.com/OSS/kernel-ucls1012a-170706-13.tar.gz". The v4 of the patch for uCLS1012a is waiting for your approval.

Indeed, I got confused by the two defconfigs. Thanks for clarifying the situation!

Best regards,

Thomas

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