Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I'm building a kernel for a diskless slave node as part of a beowulf cluster I'm working on. I've stripped the kernel down a bit by removing things that ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2005
    Posts
    2

    fc4 2.6.11-1 kernel compile issue (diskless target)


    Hi,

    I'm building a kernel for a diskless slave node as part of a beowulf cluster I'm working on. I've stripped the kernel down a bit by removing things that I know I won't need, but I'm running into an issue during the compile. The build appears to bomb out when building the diskdump block device...

    Important notes:
    Kernel is kernel-2.6.11 from kernel-2.6.11-1.1369_FC4.src.rpm

    I did the standard source install --
    Code:
    rpm -ivh kernel-2.6.11-1.1369_FC4.src.rpm
    rpmbuild -bp --target=noarch  /usr/src/redhat/SPECS/kernel-2.6.spec
    mv /usr/src/redhat/BUILD/kernel-2.6.11 /usr/src/kernels/kernel-2.6.11
    I ran through make menuconfig and modified the config as needed for my systems. The changes I made are listed below:

    Code:
    general --> check optimize for size
    loadable module support --> uncheck all
    processor type and features --> processor family --> change to p4/xeon
    processor type and features --> uncheck toshiba & dell laptop support
    power management options --> uncheck power management support
    power management options --> cpu frequency scaling --> uncheck cpu frequency scaling
    Device Drivers --> Block Devices --> uncheck Normal Floppy Disk Support and Parallel Port IDE Device Support
    Device Drivers --> ATA/ATAPI/MFM/RLL Support --> uncheck Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
    Device Drivers --> Multi Device Support (RAID and LVM) --> uncheck Multiple devices driver support (RAID and LVM)
    I'm getting an error when I do 'make bzImage' as follows:
    Code:
      CC      drivers/block/diskdump.o
    drivers/block/diskdump.c: In function ‚€˜start_disk_dump‚€™:
    drivers/block/diskdump.c:491: error: ‚€˜__this_module‚€™ undeclared (first use in this function)
    drivers/block/diskdump.c:491: error: (Each undeclared identifier is reported only once
    drivers/block/diskdump.c:491: error: for each function it appears in.)
    drivers/block/diskdump.c:491: error: dereferencing pointer to incomplete type
    drivers/block/diskdump.c:491: error: dereferencing pointer to incomplete type
    drivers/block/diskdump.c: In function ‚€˜register_disk_dump_device‚€™:
    drivers/block/diskdump.c:947: error: ‚€˜__this_module‚€™ undeclared (first use in this function)
    drivers/block/diskdump.c:947: error: dereferencing pointer to incomplete type
    drivers/block/diskdump.c:947: error: dereferencing pointer to incomplete type
    drivers/block/diskdump.c: In function ‚€˜unregister_disk_dump_device‚€™:
    drivers/block/diskdump.c:959: error: ‚€˜__this_module‚€™ undeclared (first use in this function)
    drivers/block/diskdump.c:959: error: dereferencing pointer to incomplete type
    drivers/block/diskdump.c:959: error: dereferencing pointer to incomplete type
    drivers/block/diskdump.c: In function ‚€˜register_disk_dump_type‚€™:
    drivers/block/diskdump.c:980: error: ‚€˜__this_module‚€™ undeclared (first use in this function)
    drivers/block/diskdump.c:980: error: dereferencing pointer to incomplete type
    drivers/block/diskdump.c:980: error: dereferencing pointer to incomplete type
    drivers/block/diskdump.c: In function ‚€˜unregister_disk_dump_type‚€™:
    drivers/block/diskdump.c:992: error: ‚€˜__this_module‚€™ undeclared (first use in this function)
    drivers/block/diskdump.c:992: error: dereferencing pointer to incomplete type
    drivers/block/diskdump.c:992: error: dereferencing pointer to incomplete type
    drivers/block/diskdump.c: In function ‚€˜init_diskdump‚€™:
    drivers/block/diskdump.c:1090: error: ‚€˜__this_module‚€™ undeclared (first use in this function)
    drivers/block/diskdump.c:1090: error: dereferencing pointer to incomplete type
    drivers/block/diskdump.c:1090: error: dereferencing pointer to incomplete type
    make[2]: *** [drivers/block/diskdump.o] Error 1
    make[1]: *** [drivers/block] Error 2
    make: *** [drivers] Error 2
    My .config and build log are located at www.haxorwear.com/buildinfo/. Any help would be much appreciated. I don't think anything is disabled that would affect this, but I also cannot find any patches online or references to this particular error condition for this diskdump.c sourcefile. Hopefully someone else has run into this previously and might shed some insight into my situation.

    -Tim

  2. #2
    Just Joined!
    Join Date
    Sep 2005
    Posts
    2
    Since nobody else has commented, I'll say what worked for me...

    Apparently 2.6.13.2 downloaded from kernel.org will compile fine using similar options, so one can deduce that something is wrong with the source or 2.6.11-1.1369_FC4.src.rpm distributable.

    -Tim

  3. #3
    Just Joined!
    Join Date
    Dec 2005
    Posts
    3
    Hy Tim please can you take me a link for creating a kernel for diskless computer?
    thinks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •