1.从哪里来
- 官方固件没有cdc_acm驱动
- 下载内核源码
- 参考make.sh根据自己的环境执行命令,需要在
make rockchip_linux_defconfig
之后执行make menuconfig
添加cdc_acm驱动编译选项
2.途径何处
- 1.fatal error curses.h no such file or directory
- sudo apt-get install libncurses5-dev libncursesw5-dev
- 2.gcc: error: unrecognized command line option ‘-mlittle-endian’
- make时加上交叉编译器CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-gcc
- 3./usr/bin/arm-linux-gnueabihf-gcc gcc:No such file or directory Is your PATH set correctly?
- 去板子上编译
- 4.bc not found
- sudo apt install bc
- 5.‘strncat’ specified bound 2 equals source length [-Wstringop-overflow=]
- Makefile的KBUILD_CFLAGS加入-Wno-stringop-overflow
- 6.板子上没空间了
- 报错时已有3.6G