问题与解决
记录遇到过的问题,做个笔记以便后续快速解决
R-QWERT
这个作者很懒,什么都没留下…
展开
-
openssl编译出错解决办法
版权声明:本文为CSDN博主「WanAnZaiQingChen」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.csdn.net/WanAnZaiQingChen/article/details/81507557。修改Makefile ,若有-m32或-m64 字段,直接删除即可。是mipsel-linux没有提供GNU C的ucontext库。config 配置时添加 no-async。然后 make install。转载 2024-01-03 12:29:36 · 311 阅读 · 0 评论 -
编译U-Boot报错:Error:You must add new CONFIG options using Kconfig
在u-boot/scripts/config_whitelist.txt中增加新检测到的config. “CONFIG_ADC”。注意根据字母排序顺序加入正确的位置。转载 2023-02-11 23:06:44 · 586 阅读 · 0 评论 -
Linux内核报错:SQUASHFS error: xz decompression failed, data probably corrupt
平台:Allwinner H3系统:OpenWrt linux出错特点: reboot 后概率出现,下次启动又正常。转载 2022-11-23 16:32:08 · 2414 阅读 · 0 评论 -
Linux:Ubuntu如何恢复被删除的文件
首先一点,被删除文件所在的地方没有被再次覆盖了,那么文件就是可以被恢复的,否则就回天乏术了。 使用工具 extundelete sudo apt-get install extundelete 1、可以先查看帮助 extundelete --help2、按时间来恢复文件 也即是说,恢复到删除文件的那个时间之前,这个时间是一个参数,可以这么获得 extundelete --help结果是 1525762800 ,是从 1970-01-01 00:00:00 算起到双引号括起来的时间之间转载 2021-11-14 23:16:56 · 7696 阅读 · 0 评论 -
gcc编译出错:fatal error: sys/cdefs.h: No such file or directory
问题:/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory分析:在64位主机上编译成32位程序时出错(-m32选项),安装必要的软件包即可;解决:$ sudo apt install gcc-multilib # 一般安装这个就可以了,不行再安装下面的$ sudo apt install g++-multilib$ sudo apt install libc6-dev li原创 2021-11-12 10:32:49 · 7611 阅读 · 1 评论 -
嵌入式Linux:解决busybox udhcpc获取IP但没有设置系统DNS的问题
描述:前段时间在buildroot搭建的根文件系统中移植过wifi驱动并且调试成功,一般来说,buildroot构建的文件系统比较完整,但最近使用busybox来构建了根文件系统,后者就比较简陋,很多文件都是靠自己去创建等等,所以在移植wifi网卡的时候就出现了缺乏某些文件导致功能不能正常使用的问题,现在就记录一下使用busybox里的小工具udhcpc能成功动态获取ip地址,但没能自动设置DNS,也就没能上网的问题。现象:...wlan0: associatedudhcpc: started,原创 2021-09-05 23:50:47 · 2983 阅读 · 0 评论 -
Windows:编写.bat脚本实现文件复制
一、需求需要将指定目录下的.txt文件复制到指定目录中,复制完毕后删除文件二、实现@echo off echo "复制考勤数据........." echo. xcopy E:\checkindata\a001\*.txt Z:\a001\ /s /e /c /y /h /rxcopy E:\checkindata\a001\*.txt Z:\a002\ /s /e /c /y /h /r xcopy E:\checkindata\a001\*.txt Z:\a003\ /s /e转载 2021-09-05 19:21:12 · 11398 阅读 · 0 评论 -
编译内核出错:recipe for target ‘arch/arm/boot/compressed/piggy.lzo‘ failed
问题:/bin/sh: 1: lzop: not foundarch/arm/boot/compressed/Makefile:180: recipe for target 'arch/arm/boot/compressed/piggy.lzo' failedmake[2]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1arch/arm/boot/Makefile:52: recipe for target 'arch/arm/boot/compr原创 2021-04-28 09:18:42 · 2290 阅读 · 0 评论 -
make menuconfig出错:Unable to find the ncurses libraries or the...
问题描述: *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. *** *** Install ncurses (ncurses-devel or libncurses-dev *** depending on your distribution) and try again.分析:原创 2021-04-18 11:26:34 · 239 阅读 · 0 评论 -
make uImage出错:“mkimage“ command not found - U-Boot images will not be built
问题:"mkimage" command not found - U-Boot images will not be builtarch/arm/boot/Makefile:90: recipe for target 'arch/arm/boot/uImage' failedmake[1]: *** [arch/arm/boot/uImage] Error 1arch/arm/Makefile:336: recipe for target 'uImage' failedmake: *** [uIm原创 2020-09-02 11:47:30 · 465 阅读 · 0 评论 -
编译内核出错:Unable to find the ncurses package. recipe for target ‘scripts/kconfig/.mconf-cfg‘ failed
问题:book@book-VirtualBox:~/project/s3c2440/linux-4.19-rc3-modify$ make menuconfig** Unable to find the ncurses package.* Install ncurses (ncurses-devel or libncurses-dev* depending on your distribution).*scripts/kconfig/Makefile:228: recipe for targe原创 2020-09-02 11:32:35 · 4237 阅读 · 0 评论 -
编译内核出错:scripts/extract-cert.c:21:25: fatal error: openssl/bio.h: No such file or directory
问题:scripts/extract-cert.c:21:25: fatal error: openssl/bio.h: No such file or directorycompilation terminated.scripts/Makefile.host:90: recipe for target 'scripts/extract-cert' failedmake[1]: *** [scripts/extract-cert] Error 1make[1]: *** Waiting for u原创 2020-09-02 11:00:23 · 883 阅读 · 0 评论 -
编译内核出错:/bin/sh: 1: bison: not found scripts/Makefile.lib:196: recipe for target ‘scripts/kconfig/zco
问题:book@book-VirtualBox:~/project/s3c2440/linux-4.19-rc3$ make menuconfig YACC scripts/kconfig/zconf.tab.c/bin/sh: 1: bison: not foundscripts/Makefile.lib:196: recipe for target 'scripts/kconfig/zconf.tab.c' failedmake[1]: *** [scripts/k原创 2020-09-02 10:47:34 · 7453 阅读 · 2 评论 -
Linux无法修改文件内容:Read-only file system
问题:修改文件时提示 “Read-only file system” ,导致无法修改文件内容、创建文件等。解决:以挂载/system目录为例,执行mount -o remount,rw /system(注意逗号后面没有空格)或mount -o remount -o rw /system重新挂载即可。解析:目录所在文件系统没有写权限,可通过mount命令查看对比该目录重新被 “remount” 前后的读写属性(以/system目录为例):remount前:ro 只读/dev/block/plat原创 2020-06-15 10:15:13 · 2808 阅读 · 0 评论 -
编译驱动:WARNING: 某函数名 [某驱动名.ko] undefined!
问题:WARNING: “cfg80211_put_bss” [/…/wlan_driver/xx.ko] undefined!原因:编译时指定的内核没有将相应的选项配置打开,导致编译驱动时没找到对应的函数原型。解决:查找该函数原型(如cfg80211_put_bss)所在文件及路径之后,在该内核执行make menuconfig将相应的功能配置打开重新编译即可消除警告...原创 2020-06-09 16:21:21 · 2043 阅读 · 0 评论 -
Makefile:/bin/sh: -c: 行 0: 未预期的符号‘ ( ‘附近有语法错误
原因:Makefile中包含的路径有可能包含(,尤其是使用pwd得到的路径解决:修改去掉(或加上转义字符\原创 2020-06-09 15:13:24 · 1532 阅读 · 0 评论