Skip to contentSkip to conversation

question on App bitsize - need the same as the kernel (multilib situation)

DISCUSSION Amy Fong 3 participants 7 messages Mar 12, 2013 – Mar 13, 2013

lore
Share & tools
lore

Amy Fong

author
#0 lore raw

I need to build an application that has the same bitsize as the kernel. But in my multilib configuration, the default usersapce bitsize is not the same as the kernel's bitsize. How do you do this?

Thanks!
Amy

#1 lore raw
Quoted 3 lines · Amy Fong

I need to build an application that has the same bitsize as the kernel. But in my multilib configuration, the default usersapce bitsize is not the same as the kernel's bitsize. How do you do this?

which arch is this ?
since generally we have one in multilib combo that matches kernel bit size but you might have left it out.

Quoted 8 lines

Thanks!
Amy

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw
In reply to Amy Fong
Quoted 3 lines · Amy Fong

I need to build an application that has the same bitsize as the kernel. But in my multilib configuration, the default usersapce bitsize is not the same as the kernel's bitsize. How do you do this?

which arch is this ?
since generally we have one in multilib combo that matches kernel bit size but you might have left it out.

Quoted 8 lines

Thanks!
Amy

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

author
#3 lore raw

It may be a combination of kernel ppc64 + userspace ppc (32); or kernel x86-64 + userspace x86-32.

Quoted 25 lines · Khem Raj
Quoted 3 lines · Amy Fong

I need to build an application that has the same bitsize as the kernel. But in my multilib configuration, the default usersapce bitsize is not the same as the kernel's bitsize. How do you do this?

which arch is this ?
since generally we have one in multilib combo that matches kernel bit size but you might have left it out.

Quoted 8 lines

Thanks!
Amy

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#4 lore raw
Quoted 2 lines · Amy Fong

It may be a combination of kernel ppc64 + userspace ppc (32); or kernel x86-64 + userspace x86-32.

I think you to ship ppc64 C runtime at least and same is true for x86_64 and by bit size you mean machine word length right ? like sizeof(long)

Quoted 32 lines · Khem Raj
Quoted 21 lines · Amy Fong
Quoted 4 lines

I need to build an application that has the same bitsize as the kernel. But in my multilib configuration, the default usersapce bitsize is not the same as the kernel's bitsize. How do you do this?

which arch is this ?
since generally we have one in multilib combo that matches kernel bit size but you might have left it out.

Quoted 8 lines

Thanks!
Amy

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

author
#5 lore raw
Quoted 9 lines · Khem Raj
Quoted 2 lines · Amy Fong

It may be a combination of kernel ppc64 + userspace ppc (32); or kernel x86-64 + userspace x86-32.

I think you to ship ppc64 C runtime at least and same is true for x86_64 and by bit size you mean machine word length right ? like sizeof(long)

Uhhhh no, what I mean is,

e.g.

For userspace, if 32bit:

root@localhost:~# file /bin/bash
/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.34, stripped

For kernel, if 64bit:
(in kernel config)
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y

Take for example, I want to run crash to do some kernel debugging, in this case, I would want crash to be 64bits.

Quoted 37 lines
Quoted 27 lines · Khem Raj
Quoted 21 lines · Amy Fong
Quoted 4 lines

I need to build an application that has the same bitsize as the kernel. But in my multilib configuration, the default usersapce bitsize is not the same as the kernel's bitsize. How do you do this?

which arch is this ?
since generally we have one in multilib combo that matches kernel bit size but you might have left it out.

Quoted 8 lines

Thanks!
Amy

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#6 lore raw
Quoted 26 lines · Amy Fong
Quoted 9 lines · Khem Raj
Quoted 2 lines · Amy Fong

It may be a combination of kernel ppc64 + userspace ppc (32); or kernel x86-64 + userspace x86-32.

I think you to ship ppc64 C runtime at least and same is true for x86_64 and by bit size you mean machine word length right ? like sizeof(long)

Uhhhh no, what I mean is,

e.g.

For userspace, if 32bit:

root@localhost:~# file /bin/bash
/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.34, stripped

For kernel, if 64bit:
(in kernel config)
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y

Quoted 2 lines

Take for example, I want to run crash to do some kernel debugging, in this case, I would want crash to be 64bits.

...and with the userspace defaulting to a 32-bit userspace.. Doing something like:

INSTALL_IMAGE_append = "crash" will result in a executable that doesn't work. So the user has to know they have to add "lib64-crash". (Easy when it's INSTALL_IMAGE_append.. not so easy when you have a custom rootfs that simply add's "crash"... How does it know it needs to add a multilib variant?)

Which is why the question comes down to, how do I tell the system that a specific package needs to be the same bitsize as the kernel, and then how do I get the system to select the "right" version of that package?

From my experience that are not a lot of things in the system that have this requirements.. but kexec and related do.

--Mark

Quoted 43 lines
Quoted 33 lines
Quoted 27 lines · Khem Raj
Quoted 21 lines · Amy Fong
Quoted 4 lines

I need to build an application that has the same bitsize as the kernel. But in my multilib configuration, the default usersapce bitsize is not the same as the kernel's bitsize. How do you do this?

which arch is this ?
since generally we have one in multilib combo that matches kernel bit size but you might have left it out.

Quoted 8 lines

Thanks!
Amy

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel