来自 https://whycan.cn/t_1672.html
git clone https://github.com/torvalds/linux.git cd linux git reset --hard 5e335542de83558e46d28de1008a1c37d5d6679a ###恢复到指定版本 patch -p1 < lichee_pi_nano_usbok_patch_5e335542de83558e46d.patch ###打补丁 ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make sunxi_defconfig ###使用默认配置 ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make -j4 ###四进程编译出现 /bin/sh: 1: bison: not found scripts/Makefile.lib:217: recipe for target ‘scripts/kconfig/zconf.tab.c’ failed make[2]: *** [scripts/kconfig/zconf.tab.c] Error 127 Makefile:514: recipe for target ‘silentoldconfig’ failed
解决方法 sudo apt-get install bison
继续 make 又出现 /bin/sh: 1: flex: not found scripts/Makefile.lib:202: recipe for target ‘scripts/kconfig/zconf.lex.c’ failed make[2]: *** [scripts/kconfig/zconf.lex.c] Error 127 Makefile:514: recipe for target ‘silentoldconfig’ failed
解决 sudo apt-get install flex
大概可以看出来,编译时缺少什么就安装什么
荔枝派Nano USB bug解决
下面截图来自 https://whycan.cn/t_1672.html
