Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm compiling for ARM architecture, I'm using the Scratchbox Tools(no much experience actually),
I'm following the instructions from Scratchbox webpage:
"" First we need a small piece of software to compile. "Hello World" will do fine:
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return 0;
}
Then let us compile the "Hello World" natively for X86 to see it works and to see some information about the binary produced. We assume you wrote the "Hello World" to a file named 'hello.c'. Now in the same directory where you have the 'hello.c' execute a command:
> gcc -Wall -o hello hello.c
It should not output anything and then you should have a 'hello' binary that you can run to get output of "Hello World!".
> ./hello
Hello World!
Now for running a 'file' command to see some information about the 'hello' binary:
> file hello
hello: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped
""
My question is: what can I do to change the GNU/Linux version of the "hello" file compiled. For instance: change the version from GNU/Linux 2.2.0 to GNU/Linux 2.6.18.
My Distro is Fedora and my kernel is 2.6.18, and my concern is: why the Scratchbox is compiling for GNU/Linux 2.2.0 while my Kernel is 2.6.18, then I don't think the "2.2.0" denotes the kernel version, my first guess is that I can fix this problem by patching the Scratchbox or by changing some headers, but I don't know how...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.