Welcome to the Linux Foundation Forum!

Kernel Installation Errors (lesson 7)

Options

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.

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

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

Thanks in advanced!

Answers

  • ShuahKhanLF
    Options

    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

  • infinity1729
    Options

    @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?

  • exlud
    exlud Posts: 4
    Options

    @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.

Categories

Upcoming Training