- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: kernel information
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2003 12:26 AM
01-24-2003 12:26 AM
kernel information
When I see the first line of dmesg in RedHat's kernel, it looks like
Linux version 2.4.18-10custom (root@localhost) (gcc version 2.96 20000731 (Red Hat Li
nux 7.3 2.96-110)) #1 Wed Sep 4 19:30:56 JST 2002
But if I use the source from kernel.org shows diffrent output.
If I want to change " (Red Hat Linux 7.3 2.96-110))" part, which file should I modify in kernel source?
Thanks in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2003 01:05 AM
01-24-2003 01:05 AM
Re: kernel information
/usr/src/linux/include/linux/version.h
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2003 02:29 AM
01-24-2003 02:29 AM
Re: kernel information
I found # gcc -v output looks like what I am looking for.
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
Does any one know this output is hard-coded in the kernel when kernel compile, or use current gcc -v output?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2003 04:05 AM
01-24-2003 04:05 AM
Re: kernel information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2003 01:40 PM
01-28-2003 01:40 PM
Re: kernel information
GCC, the Kernel, and a number of other 'major' projects remember the machine, time, and arch they were built upon.
Is a pain in the ass, but there's not much else you can do.
I've never seen anybody alter this after compilation.
By the same token, I haven't really gone looking :P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2003 03:26 PM
01-28-2003 03:26 PM
Re: kernel information
and on the 3rd reading of the post, I understand what it was asking.
*hides*
See what a long weekend, and a day of the boards being down does to a person?
Sorry.. just ignore these posts :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2003 05:05 PM
01-28-2003 05:05 PM
Re: kernel information
include/linux/compile.h:
#define LINUX_COMPILER
is your string.
Created using:
@echo \#define LINUX_COMPILER \"`$(CC) $(CFLAGS) -v 2>&1 | tail -1`\" >> .ver
in the kernel's core Makefile.
Haven't tried it, but you might be able to get away with modifying the header file.
The full string is in:
init/version.c
defined as:
const char *linux_banner
... bkx ...