[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compiling & installing kernels

Ah fudge...

now for some reason when I try to make bzImage I get some weird errors along the lines of:

/usr/src/kernel-source-2.4.20/include/linux/modules/ksyms.ver:546: warning: `del_timer_sync' redefined
/usr/src/kernel-source-2.4.20/include/linux/timer.h:30: warning: this is the location of the previous definition
In file included from /usr/src/kernel-source-2.4.20/include/linux/interrupt.h:45,
                from ksyms.c:21:
/usr/src/kernel-source-2.4.20/include/asm/hardirq.h:37: warning: `synchronize_irq' redefined
/usr/src/kernel-source-2.4.20/include/linux/modules/i386_ksyms.ver:90: warning: this is the location of the previous definition
In file included from ksyms.c:17:
/usr/src/kernel-source-2.4.20/include/linux/kernel_stat.h: In function `kstat_irqs':
/usr/src/kernel-source-2.4.20/include/linux/kernel_stat.h:57: `smp_num_cpus' undeclared (first use in this function)
/usr/src/kernel-source-2.4.20/include/linux/kernel_stat.h:57: (Each undeclared identifier is reported only once
/usr/src/kernel-source-2.4.20/include/linux/kernel_stat.h:57: for each function it appears in.)
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/kernel-source-2.4.20/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.20/kernel'
make: *** [_dir_kernel] Error 2

any ideas on what could be causing this?

maybe I should just re-install the kernel-source & start again..?

ben wrote:
Thanks all for the help so far!!

Finally got modules installed.. don't really no what I did wrong, but they're in there now! unfortunately my acpi is apparently not installed correctly (I have selected everything in acpi when configuring kernel as modules)according to klaptopdaemon.. will try installing them as suggested by Michael ie compiling them into the kernel.

chug chug.. (the little train that could!)


Michael Ott wrote:

Hallo Ben!

2. Install the new kernel
    - cd /usr/src/linux
    - cp /usr/usr/<old kernel sources>/.config /usr/src/linux/.config
    - make oldconfig

3. Enable ACPI, and remove APM (the old power management modules/tools)
    - Under "general support":
        - turn ON Power Management support
        - turn OFF APM
        - turn ON as MODULES everything to do with ACPI
            - bus manager
            - system
            - processor
            - button
            - AC adapter
            - embedded controller
            - control method battery
            - thermal
    - <exit> and save the new configuration

4. Finish installing the new kernel
    - make dep
    - make clean
    - make bzImage
    - make modules
    - make modules_install

I must be doing something rather wrong!

I have installed the new kernel, but none of the modules (like really none..) are loading.. when I did make modules it seemed to be doing everything, until the end where it said 'nothing to be done for modules..' or similar

when I lsmod I get an empty list!

insmod <kernelModul> Example
/sbin/insmod ospm_busmgr
/sbin/insmod ospm_system
/sbin/insmod ospm_processor
/sbin/insmod ospm_battery
/sbin/insmod ospm_ac_adapter
/sbin/insmod ospm_button
/sbin/insmod ospm_thermal TZP=20

or build new kernel with compiling into the kernel
(YES instead of MODULE)

     Michael                                                      .--.
|o_o | -- ||_/ |
  /-----------------------------------------------------\    //   \ \
  |  Michael Ott, Glockenhofstr. 29a, 90478 Nuernberg   |   (|     | )
  | e-mail: michael@ZolnOtt.de, Tel. +49 9 11 41 88 576 |  /'\_   _/`\
  \-----------------------------------------------------/  \___)=(___/

Reply to: