Java Mailing List Archive

http://www.redhatconfig.com/

Home » Gentoo Linux »

[gentoo-user] different strange kernel name - 2.6.24-gentoo-r4-g506ab20b-dirty

Chuanwen Wu

2008-04-28

Replies:

Author LoginPost Reply
Hi,
I want to add my codes to the kernel source( I use gentoo-source ) and
compile it as modules.
All my codes are under the directory /usr/src/linu/fs/dnfs/.
The problem is why everytime after I changed my codes and re-complied
the kernel, I got a different strange kernel image.

Here is the details:
linux # make && make modules_install
CHK   include/linux/version.h
[...]
LD    kernel/built-in.o
CC [M] fs/dnfs/dnfs.o
################ my codes
fs/dnfs/dnfs.c: In function 'init_once':
fs/dnfs/dnfs.c:22: warning: ISO C90 forbids mixed declarations and code
fs/dnfs/dnfs.c: In function 'init_dnfs_fs':
fs/dnfs/dnfs.c:51: warning: ISO C90 forbids mixed declarations and code
GEN   .version
CHK   include/linux/compile.h
UPD   include/linux/compile.h
CC    init/version.o
LD    init/built-in.o
LD    .tmp_vmlinux1
KSYM   .tmp_kallsyms1.S
AS    .tmp_kallsyms1.o
LD    .tmp_vmlinux2
KSYM   .tmp_kallsyms2.S
AS    .tmp_kallsyms2.o
LD    vmlinux.o
MODPOST vmlinux.o
LD    vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
AS    arch/x86/boot/header.o
CC    arch/x86/boot/version.o
LD    arch/x86/boot/setup.elf
OBJCOPY arch/x86/boot/setup.bin
OBJCOPY arch/x86/boot/compressed/vmlinux.bin
GZIP   arch/x86/boot/compressed/vmlinux.bin.gz
LD    arch/x86/boot/compressed/piggy.o
LD    arch/x86/boot/compressed/vmlinux
OBJCOPY arch/x86/boot/vmlinux.bin
BUILD  arch/x86/boot/bzImage
Root device is (8, 38)
Setup is 10904 bytes (padded to 11264 bytes).
System is 2763 kB
Kernel: arch/x86/boot/bzImage is ready (#22)
Building modules, stage 2.
MODPOST 12 modules
[...]
CC    fs/dnfs/dnfs.mod.o                ######### build modules
LD [M] fs/dnfs/dnfs.ko
[...]
INSTALL fs/dnfs/dnfs.ko                 ######### install modules
[...]
DEPMOD 2.6.24-gentoo-r4-gb921d0de-dirty    ############### a
different strange kernel image name

then, the kernel image I am using now is:
# uname -r
2.6.24-gentoo-r4-g506ab20b-dirty

From the above, I get two questions:
1, Why I got a new kernel image(2.6.24-gentoo-r4-gb921d0de-dirty)
instead of using the old one (2.6.24-gentoo-r4-g506ab20b-dirty) ? As I
know if I add/change something as modules, all I need to do is "make
&& make modules_install", and I don't need to install the kernel image
again and reboot my OS because all the changes are in modules and the
kernel image is all the same - fixed me please if I'm wrong.
2, Why the kernel image including my codes have a very strange name
- 2.6.24-gentoo-r4-g506ab20b-dirty.

Any help will be appreciated!
--
wcw
--
gentoo-user@(protected)

©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.