rk3399 pro编译内核

it2023-09-04  67

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,最终5.4G 7.lz4c: not found sudo apt-get install liblz4-tool

3.终点

还没成功(因为下班了,哈哈) 元气满满的第二天:把boot_linux目录下的内容复制到/boot下,重启 取得真经(封为阿弥陀佛)

最新回复(0)