Welcome to the Linux Foundation Forum!

getting errors while installing new kernel

Posts: 13
edited January 2022 in LFD103 Class Forum

As I tried to run the command > sudo bash -c "make modules_install install . I am getting some errors.

  1. $ sudo bash -c "make modules_install install"
  2. [sudo] password for viveksahu26:
  3. sed: can't read modules.order: No such file or directory
  4. make[1]: *** [Makefile:1479: _modinst_] Error 2
  5. make: *** [Makefile:335: __build_one_by_one] Error 2

I need help to install new kernel. Anyone will be most welcome for help.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Answers

  • Posts: 916

    Did you do a "make" first? (which builds the kernel and also does "make modules"). You cannot install them if they were not made first

  • Posts: 13
    edited January 2022

    Yes, @coop I did.
    I ran these commands:

    1. make oldconfig
    2. make LSMOD=/tmp/my-lsmod localmodconfig
    3. make -j3 all"
  • It appears kernel build might have failed. Also the sequence of "make oldconfig; make LSMOD=/tmp/my-lsmod localmodconfig;" looks odd. If you started with a config and ran "make oldconfig", you don't need the rest.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training