简体   繁体   中英

make modules_install restarts configuration process

I am trying to compile a Linux kernel version (linux-2.6.32.60) for my Debian machine. The first step was to create a configuration file (.config) by typing:

make xconfig

Once the configuration file was created, I simply ran make, to build the image kernel and modules. Up to that point no problem.

However, when installing the modules (.ko files), I type:

make modules_install

which instead of installing the newly compiled modules, brings a command line configuration setup, which is incorrect (the configuration file was already created).

Any ideas what is causing the configuration to be restarted?

Regards.

The issue was caused because of a development environment variable in my OS setting ARCH to be i386 (that was required for running some infrastructure in our office). Since my kernel runs in a 64-bit processor and xconfig relies on a variable with the same name, the resulting .config file was being generated for a 32-bit architecture, and so was the whole compilation process. In the end, this was causing the installation error (which is indeed expected).

在调用menuconfig之前设置ARCH变量

$ make ARCH=arm menuconfig

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM