[gentoo-user] Genkernel doesn't work when module loadable support is disabled
Dear all, I'm trying to generate a kernel without module. So I've disabled Enable loadable module support option with genkernel. Genkernel compiles well the bzimage but fails after with the message ERROR: Failed to compile the modules target... (look hereunder log). Do you know how can I generate my kernel w/o module support using Genkernel ? -- Xavier MOGHRABI - Consortium ObjectWeb Jabber: [EMAIL PROTECTED] - Phone: +33 4 76 61 52 35 * Compiling 2.6.17-gentoo-r7 bzImage... * Compiling 2.6.17-gentoo-r7 modules... * ERROR: Failed to compile the modules target... * -- Grepping log... -- SCSI media changer support (CHR_DEV_SCH) [N/m/y/?] n * * Some SCSI devices (e.g. CD jukebox) support multiple LUNs * Probe all LUNs on each SCSI device (SCSI_MULTI_LUN) [Y/n/?] y Verbose SCSI error reporting (kernel size +=12K) (SCSI_CONSTANTS) [N/y/?] n -- * * InfiniBand support * InfiniBand support (INFINIBAND) [N/m/y/?] n * * EDAC - error detection and reporting (RAS) (EXPERIMENTAL) * EDAC core system error reporting (EXPERIMENTAL) (EDAC) [N/m/y/?] n -- CC fs/read_write.o CC fs/file_table.o CC fs/buffer.o CC fs/bio.o fs/bio.c: In function 'bio_alloc_bioset': fs/bio.c:169: warning: 'idx' may be used uninitialized in this function -- CC fs/splice.o CC fs/sync.o CC fs/inotify.o CC fs/eventpoll.o fs/eventpoll.c: In function 'sys_epoll_create': fs/eventpoll.c:500: warning: 'fd' may be used uninitialized in this function -- CC fs/sysfs/bin.o CC fs/sysfs/group.o LD fs/sysfs/built-in.o CC fs/udf/balloc.o fs/udf/balloc.c: In function 'udf_table_new_block': fs/udf/balloc.c:751: warning: 'goal_eloc.logicalBlockNum' may be used uninitialized in this function -- CC fs/udf/lowlevel.o CC fs/udf/namei.o CC fs/udf/partition.o CC fs/udf/super.o fs/udf/super.c: In function 'udf_fill_super': fs/udf/super.c:1358: warning: 'ino.partitionReferenceNum' may be used uninitialized in this function -- CC ipc/compat.o CC ipc/util.o CC ipc/msgutil.o CC ipc/msg.o ipc/msg.c: In function 'sys_msgctl': ipc/msg.c:338: warning: 'setbuf.qbytes' may be used uninitialized in this function ipc/msg.c:338: warning: 'setbuf.uid' may be used uninitialized in this function ipc/msg.c:338: warning: 'setbuf.gid' may be used uninitialized in this function ipc/msg.c:338: warning: 'setbuf.mode' may be used uninitialized in this function CC ipc/sem.o ipc/sem.c: In function 'sys_semctl': ipc/sem.c:810: warning: 'setbuf.uid' may be used uninitialized in this function ipc/sem.c:810: warning: 'setbuf.gid' may be used uninitialized in this function ipc/sem.c:810: warning: 'setbuf.mode' may be used uninitialized in this function -- CC drivers/md/dm-target.o CC drivers/md/dm-linear.o CC drivers/md/dm-stripe.o CC drivers/md/dm-ioctl.o drivers/md/dm-ioctl.c: In function 'ctl_ioctl': drivers/md/dm-ioctl.c:1388: warning: 'param' may be used uninitialized in this function -- LD drivers/usb/mon/usbmon.o LD drivers/usb/mon/built-in.o CC drivers/usb/net/catc.o CC drivers/usb/net/kaweth.o drivers/usb/net/kaweth.c: In function 'kaweth_control': drivers/usb/net/kaweth.c:1212: warning: 'length' may be used uninitialized in this function -- CC lib/zlib_inflate/inffast.o CC lib/zlib_inflate/inflate.o CC lib/zlib_inflate/inflate_sync.o CC lib/zlib_inflate/inftrees.o lib/zlib_inflate/inftrees.c: In function 'huft_build': lib/zlib_inflate/inftrees.c:121: warning: 'r.base' may be used uninitialized in this function -- CC arch/x86_64/boot/compressed/misc.o OBJCOPY arch/x86_64/boot/compressed/vmlinux.bin GZIParch/x86_64/boot/compressed/vmlinux.bin.gz LD arch/x86_64/boot/compressed/piggy.o LD arch/x86_64/boot/compressed/vmlinux ld: warning: i386:x86-64 architecture of input file `arch/x86_64/boot/compressed/head.o' is incompatible with i386 output -- The present kernel configuration has modules disabled. Type 'make config' and enable loadable module support. Then build a kernel with module support enabled. make: *** [modules] Error 1 * Gentoo Linux Genkernel; Version 3.4.0 * Running with options: all * ERROR: Failed to compile the modules target... * -- End log... -- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Genkernel doesn't work when module loadable support is disabled
On Friday 01 September 2006 15:29, Xavier MOGHRABI wrote: Dear all, I'm trying to generate a kernel without module. So I've disabled Enable loadable module support option with genkernel. Genkernel compiles well the bzimage but fails after with the message ERROR: Failed to compile the modules target... (look hereunder log). Do you know how can I generate my kernel w/o module support using Genkernel ? You don't. The entire point of genkernel is to make it easy for newbies to compile a kernel, complete with all needed modules, lvm raid support if needed, maybe a splash and an initramfs. I suppose you *could* use the correct options to genkernel to do it, but if you are creating a monolithic kernel then you must know what you are doing, so what you want is: cd /usr/src/linux make menuconfig make copy kernel, System.map, .config and whatever else you like to keep to /boot; edit grub.conf reboot Using genkernel for this is overkill, much like a bulldozer is overkill for digging one hole to plant a rosebush :-) alan -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Genkernel doesn't work when module loadable support is disabled
On Friday 01 September 2006 14:29, Xavier MOGHRABI wrote: I'm trying to generate a kernel without module. So I've disabled Enable loadable module support option with genkernel. Genkernel compiles well the bzimage but fails after with the message ERROR: Failed to compile the modules target... (look hereunder log). Do you know how can I generate my kernel w/o module support using Genkernel ? The present kernel configuration has modules disabled. Type 'make config' and enable loadable module support. Then build a kernel with module support enabled. I'm not sure where that error comes from, but it sounds like you do need to heed it. If you *want* a kernel without modules, then enable module loading and make sure all the drivers you need are compiled in. If you *need* to not have module loading, then I'd imagine you have no choice but to compile it manually. p.s. Do you *need* an initrd/initramfs? With no modules I doubt you do, so try genkernel with kernel instead of all. -- Mike Williams -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Genkernel doesn't work when module loadable support is disabled
On 9/1/06, Alan McKinnon [EMAIL PROTECTED] wrote: On Friday 01 September 2006 15:29, Xavier MOGHRABI wrote: Do you know how can I generate my kernel w/o module support using Genkernel ? You don't. The entire point of genkernel is to make it easy for newbies to compile a kernel, complete with all needed modules, lvm raid support if needed, maybe a splash and an initramfs. Right. Although if you did still want to use genkernel to get an initramfs and a nice splash screen, the correct way is: genkernel bzImage initrd It might also be useful for you to read genkernel --help. -Richard -- gentoo-user@gentoo.org mailing list