ubuntu 下编译树莓派内核
root@susz-virtual-machine:/home/susz/Raspberry/linux#
root@susz-virtual-machine:/home/susz/Raspberry/linux# make menuconfigHOSTCC 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