ubuntu 下编译树莓派内核

ubuntu 下编译树莓派内核


root@susz-virtual-machine:/home/susz/Raspberry/linux# 

root@susz-virtual-machine:/home/susz/Raspberry/linux# make menuconfig  
  HOSTCC  scripts/kconfig/mconf.o
In file included from scripts/kconfig/mconf.c:23:0:
scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory
compilation terminated.
scripts/Makefile.host:124: recipe for target 'scripts/kconfig/mconf.o' failed
make[1]: *** [scripts/kconfig/mconf.o] Error 1
Makefile:541: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2
root@susz-virtual-machine:/home/susz/Raspberry/linux# scripts/Makefile.host:124: recipe for target 'scripts/kconfig/mconf.o' failed

bash: scripts/Makefile.host:124:: No such file or directory

root@susz-virtual-machine:/home/susz/Raspberry/linux# 

root@susz-virtual-machine:/home/susz/Raspberry/linux# apt-get install  libncurses5-dev

****


root@susz-virtual-machine:/home/susz/Raspberry/linux# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig


-----------------------------------------------------------------------------------------------------------
  +------------------------------- Linux/arm 4.9.70 Kernel Configuration --------------------------------+
  |  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty submenus ----).  Highlighted |
  |  letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M> modularizes features.  Press         |
  |  <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*] built-in  [ ] excluded  <M> module   |
  |  < > module capable                                                                                  |
  | +--------------------------------------------------------------------------------------------------+ |
  | |              -*- Patch physical to virtual translations at runtime                               | |
  | |                  General setup  --->                                                             | |
  | |              [*] Enable loadable module support  --->                                            | |
  | |              [*] Enable the block layer  --->                                                    | |
  | |                  System Type  --->                                                               | |
  | |                  Bus support  --->                                                               | |
  | |                  Kernel Features  --->                                                           | |
  | |                  Boot options  --->                                                              | |
  | |                  CPU Power Management  --->                                                      | |
  | |                  Floating point emulation  --->                                                  | |
  | |                  Userspace binary formats  --->                                                  | |
  | |                  Power management options  --->                                                  | |
  | |              [*] Networking support  --->                                                        | |
  | |                  Device Drivers  --->                                                            | |
  | |                  Firmware Drivers  --->                                                          | |
  | |                  File systems  --->                                                              | |
  | |                  Kernel hacking  --->                                                            | |
  | |                  Security options  --->                                                          | |
  | |              -*- Cryptographic API  --->                                                         | |
  | |                  Library routines  --->                                                          | |
  | |              [ ] Virtualization  ----                                                            | |
  | |                                                                                                  | |
  | |                                                                                                  | |
  | |                                                                                                  | |
  | |                                                                                                  | |
  | |                                                                                                  | |
  | |                                                                                                  | |
  | |                                                                                                  | |
  | |                                                                                                  | |
  | +--------------------------------------------------------------------------------------------------+ |
  +------------------------------------------------------------------------------------------------------+
  |                       <Select>    < Exit >    < Help >    < Save >    < Load >    


未完,待续




https://www.cnblogs.com/qiengo/p/5284168.html

https://www.raspberrypi.org/documentation/linux/kernel/building.md






  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值