編譯 Linux 內核 時出現 Restart config 問題


scripts/kconfig/conf --silentoldconfig Kconfig
*
* Restart config...
*
*
* Enable the block layer
*
Enable the block layer (BLOCK) [Y/?] y
  Support for large (2TB+) block devices and files (LBDAF) [Y/n/?] (NEW) ^Cscripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Interrupt
Makefile:541: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Interrupt

 

出現以上問題時,一般是配置內核時,沒有指定好架構和編譯器。

解決方法:

  在配置內核時, 指定好對應的架構和編譯器, 在配置完成以后save。

  在編譯內核時,指定好配置時指定的架構和編譯器,make 對應的鏡像即可。

 

范例:

 
         
配置時:
make
ARCH=arm CROSS_COMPILE=arm-hisiv500-linux- menuconfig

編譯時:
make ARCH=arm CROSS_COMPILE=arm-hisiv500-linux- uImage -j4

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM