make oldconfig.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Time
    New Member
    • Jan 2010
    • 77

    make oldconfig.

    This command is not working as am trying to install kernel-2.6.30
    Code:
    make oldconfig
    make: *** No rule to make target `oldconfig'.  Stop.
    i even tried
    Code:
    make -f oldconfig
    make: oldconfig: No such file or directory
    where am i going wrong?
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    which distro do you use?

    Comment

    • Time
      New Member
      • Jan 2010
      • 77

      #3
      The linux distro used by me is:
      2.6.28-18 generic

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5388

        #4
        that's more likely the kernel version ... i mean: ubuntu or suse or what linux-distribution?

        Comment

        • Time
          New Member
          • Jan 2010
          • 77

          #5
          Sorry for the earlier reply
          it's ubuntu.

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5388

            #6
            have a look here and/or here and see if that helps ...

            kind regards

            Comment

            • Time
              New Member
              • Jan 2010
              • 77

              #7
              Checked both the links and tried commands like
              sudo apt-get install module-assistant
              sudo m-a prepare
              chmod -x foldername
              but still getting the error as:
              make: *** No rule to make target `oldconfig'. Stop.
              after running;
              make oldconfig.

              Comment

              • gits
                Recognized Expert Moderator Expert
                • May 2007
                • 5388

                #8
                from where do you run it? should be something like:

                /usr/src/linux-headers-2.6.28-18-generic

                ?

                Comment

                • Time
                  New Member
                  • Jan 2010
                  • 77

                  #9
                  am doing it in /usr/src/linux
                  i suppose that now make oldconfig is working, as am getting this after running
                  make oldconfig:

                  sudo make oldconfig
                  HOSTCC scripts/basic/fixdep
                  HOSTCC scripts/basic/docproc
                  HOSTCC scripts/basic/hash
                  HOSTCC scripts/kconfig/conf.o
                  scripts/kconfig/conf.c: In function ‘conf_askvalue’ :
                  scripts/kconfig/conf.c:104: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_res ult
                  scripts/kconfig/conf.c: In function ‘conf_choi ce’:
                  scripts/kconfig/conf.c:306: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_res ult
                  HOSTCC scripts/kconfig/kxgettext.o
                  HOSTCC scripts/kconfig/zconf.tab.o
                  HOSTLD scripts/kconfig/conf
                  scripts/kconfig/conf -o arch/x86/Kconfig
                  #
                  # configuration written to .config
                  #
                  But make command is not working; i tried it using /linux-headers-2.6.28-18-generic also; as suggested by you.
                  But in both the cases am getting the same error as:
                  scripts/kconfig/conf -s arch/x86/Kconfig
                  CHK include/linux/version.h
                  CHK include/linux/utsrelease.h
                  SYMLINK include/asm -> include/asm-x86
                  make[1]: *** No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'. Stop.
                  make: *** [prepare0] Error 2
                  because of this error make install is also not working.
                  sh /usr/src/linux-headers-2.6.28-18-generic/arch/x86/boot/install.sh 2.6.28.10 arch/x86/boot/bzImage System.map "/boot"

                  *** Missing file: arch/x86/boot/bzImage
                  *** You need to run "make" before "make install".

                  make[1]: *** [install] Error 1
                  make: *** [install] Error 2

                  Comment

                  • gits
                    Recognized Expert Moderator Expert
                    • May 2007
                    • 5388

                    #10
                    could this be of help?

                    Comment

                    • Time
                      New Member
                      • Jan 2010
                      • 77

                      #11
                      still getting this message after make command:

                      sh /usr/src/linux-headers-2.6.28-18-generic/arch/x86/boot/install.sh 2.6.28.10 arch/x86/boot/bzImage System.map "/boot"

                      *** Missing file: arch/x86/boot/bzImage
                      *** You need to run "make" before "make install".

                      make[1]: *** [install] Error 1
                      make: *** [install] Error 2

                      Comment

                      • gits
                        Recognized Expert Moderator Expert
                        • May 2007
                        • 5388

                        #12
                        have you read the entire thread that is linked in the previous post and ensured all hints there? ... installed all linux-source files and extracted them? created a symlink to the sources, and tried as sudo -s?

                        kind regards

                        Comment

                        • Time
                          New Member
                          • Jan 2010
                          • 77

                          #13
                          Thanks a lot.
                          Am finally done with it.

                          Comment

                          • gits
                            Recognized Expert Moderator Expert
                            • May 2007
                            • 5388

                            #14
                            glad to hear that :) ... would you mind to post a short hint about the solution that did help you? so that users with a similar problem might get a hint how it was solved ...

                            kind regards

                            Comment

                            • Time
                              New Member
                              • Jan 2010
                              • 77

                              #15
                              Yeah i was about to write it down in earlier post itself..but thought of avoiding it. The reason is; i was being really very silly,. actually i was writting the make command in my earlier version of linux ...and of course i should have written it in the latest version, the one which am installing.
                              I know this is way too ridiculous and i wasted lot of time and energy of many ppl coz of this stupid thing.
                              I really apologize for that.

                              Comment

                              Working...