Welcome to the Linux Foundation Forum!

Kernel Installation Errors (lesson 7)

Hi, I am new to kernel development and enjoying it due to my recent learning of operating systems. Was following the tutorial of "Installing the New Kernel" (had copied all configs files and compiled them successfully....(I hope)).
But while running the final installation command
su -c "make modules_install install"
It gives me some errors: Traceback attached below.

  1. sed: can't read modules.order: No such file or directory
  2. Makefile:1474: recipe for target '_modinst_' failed
  3. make[1]: *** [_modinst_] Error 2
  4. Makefile:335: recipe for target '__build_one_by_one' failed
  5. make: *** [__build_one_by_one] Error 2

What could be the possible reason and how can it be resolved?

Thanks in advanced!

Welcome!

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

Answers

  • This usually means kernel compile failed - take a look to see if kernel compile worked. If it did you will see kernel and modules in you repo

  • @ShuahKhanLF said:
    This usually means kernel compile failed - take a look to see if kernel compile worked. If it did you will see kernel and modules in you repo

    I can see kernel directory but not the modules, is there anything I need to do?

  • Posts: 4

    @infinity1729 said:
    (had copied all configs files and compiled them successfully....(I hope)).

    what do you mean by "all configs files"? I thought in lesson 7, it mentioned only one config file. No matter by which means, make menuconfig or cp /boot/config .config or make localmodconfig, the final result is the same, have a workable .config file.
    could you please attach the make all log, if it still troubles you.

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