- 博客(357)
- 资源 (22)
- 收藏
- 关注
原创 最新libimobiledevice库崩溃问题解决方案
最新开源的libimobiledevice库运行3小时左右,会崩溃。出现:Received packet is too small, got 0 bytes!
2024-03-11 17:09:48
254
转载 wpa_supplicant交叉编译
wpa_supplicant交叉编译libnl库 编译1.git下载opensource源码,此版本为3.2.xgit clone git://github.com/tgraf/libnl.git本次编译采用3.2.25的版本,切换方法如下:cd libnlgit branch 3.2.25git checkout 3.2.25git reset --hard libnl3_2_252.编译配置Makefile: 如果没有configure文件,需要执行./autogen.sh先生成.
2022-01-11 15:37:29
624
原创 2021-08-12
使用Shell遍历目录及其子目录中的所有文件方法 1 $ vi traveDir.sh 输入以下代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #! /bin/bash function read_dir(){ for file in `ls $1` #注意此处这是两个反引号,表示运行系统命
2021-08-12 13:58:16
139
原创 VI文件格式转换
Linux下VI编辑器如何转换文件格式?由于 Unix、Window 和 MacOS 的换行符的内部表示不一样,因此有时候需要转换文件格式。vi filename.c,输入如下命令保存即可将文件格式转换为 Unix 格式::set fileformat=unix 简化:set ff=unix将文件格式转换为 Windows 格式::set fileformat=dos简化:set ff=dos注:两个命令set ccv=unicodeset ff=dos每个命令还有别的参数可选,.
2021-07-02 09:16:17
2008
原创 君正平台设置swap分区
内存紧缺的话,有两个方案:1 根本上解决得话使用128M的芯片,2使用swap分区,可以缓解一下echo 16777216 > /sys/block/zram0/disksizemkswap /dev/zram0swapon /dev/zram0 echo 100 > /proc/sys/vm/swappiness这是开启swap分区的参考命令...
2021-06-03 18:23:54
292
原创 如何查看代码占多少内存
1,先ps查查进程id[root@Ingenic-uc1_1:~]# ps20878 root 98284 S ./sample-personDetcat /proc/20878/status
2021-06-03 18:09:16
3099
原创 Makefile -I include目录不能用相对路径~
export ISVP_ENV_RELEASE_DIR_SDK="/home/a/of/project/t31/Ingenic-SDK-T31-1.1.2-20201021/sdk/4.7.2/"
2021-06-03 17:13:49
1487
原创 君正T31人形检测例子,Makefile里面的库互相依赖,如果顺序不对,会造成编译错误。
Makefile里面的库互相依赖,如果顺序不对,会造成编译错误。例如君正T31人形检测例子,Makefile内容如下CONFIG_UCLIBC_BUILD=yCUR_DIR=$(shell pwd)CROSS_COMPILE ?= mips-linux-uclibc-gnu-CC = $(CROSS_COMPILE)gccCPLUSPLUS = $(CROSS_COMPILE)g++LD = $(CROSS_COMPILE)ldAR = $(CROSS_COMPILE)ar crST
2021-05-13 11:36:46
1573
1
原创 busybox用ntpd同步网上时间
busybox 中的ntpd使用一、时区1. 查看当前时区date -R2. 修改设置时区,从asia.pool.ntp.org获取时间cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtimentpd -p asia.pool.ntp.org -qNnhwclock –w3.启动时从hwclock同步到sys启动脚本加:hwclock –smarvell不加也可以,自动同步。。...
2021-03-23 10:32:19
3079
原创 linux下带进度速度的CP脚本
新建CP.sh,用法与cp命令一样:CP.sh源文件目标文件#!/bin/bashPARAM_LIST=$*PARAM_NUM=$#TOTAL_SIZE=0for((i = 0; i < PARAM_NUM - 1; i++))do [ ! -r $1 ] && echo "Cannot read $1." && exit 1 SIZE=`du -s $1 | awk '{print $1}'` ((..
2021-03-17 15:12:08
598
原创 busy shell与ubuntu shell脚本的坑
busy shell与ubuntu shell脚本有一些不同的地方,例如:if [ $1 == "wlan0" ]; then touch /tmp/abcfibusy shell可以正常运行,ubuntu shell却报错“[: wlan: unexpected operator”原因是ubuntu shell默认是Bash,脚本的空格和“期待一元表达式”错误1、Bash脚本中的赋值符号“=”前后不能有空格。例如给变量number赋值要写成“number=1”,不能写成“num
2021-03-06 15:30:12
900
转载 linux wifi热点启动脚本
linux wifi热点启动脚本最近有关wifi热点的驱动,启动参数都调试完了,验证可以连接传输数据。首先要在系统启动脚本中插入wifi驱动,配置wlan0的ipinsmod /system/vendor/modules/8188eu.koifconfig wlan0 192.168.201.1 netmask 255.255.255.0/etc/softat-server start &今天就把wifi ap的start stop脚本给弄了一下。#!/bi..
2021-03-03 18:25:12
552
1
原创 卸载驱动出现:rmmod: can‘t change directory to ‘/lib/modules‘: No such file or directory
rmmod: can't change directory to '/lib/modules': No such file or directory新建目录/lib/modules#mkdir -p/lib/modules又出现rmmod: can't change directory to '2.6.32.2-FriendlyARM': No such file or directory继续新建#mkdir -p/lib/modules/2.6.32.2-FriendlyARM..
2021-03-02 14:23:40
386
转载 busybox root 自动登陆
root 自动登陆 (busybox)作者:admin 时间:2019-12-19 分类:默认分类https://whycan.cn/t_542.html找到/etc/inittab文件的console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL修改为:console::respawn:-/bin/sh重启后就没有恼人的 login 提示了.1. 一个绕过getty 的log...
2021-03-02 13:52:23
2142
原创 int main(int argc, char* argv[]) 怎么改为普通函数,被其他函数调用
int main(int argc, char* argv[]) 改为baiint CopyFile(int argc, char *argv[])调用时可以这样char *argv[] = {““shu, "SrcFile", "DestFile"} //char *argv[] = {““, "C:\\Path\\SrcFile", "D:\\Path\\DestFile"}CopyFile(3, argv);
2020-11-27 20:02:59
1181
转载 aplay -l 列出声卡和数字音频设备
转自:https://blog.youkuaiyun.com/orz415678659/article/details/8866944aplay -l 列出声卡和数字音频设备 card 0: SOUND0 [TI81XX SOUND0], device 1: AIC3X tlv320aic3x-hifi-1 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: SOUND1 [TI81XX SOUND1], d..
2020-11-25 14:39:58
3339
1
原创 树莓派编译cartographer缺pcl_msgs依赖问题
按照大神文章安装:https://blog.youkuaiyun.com/weixin_37918890/article/details/96165880树莓派执行依赖安装时cd~/rosws_cartographerrosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y出现pcl_msgs依赖找不到问题ERROR: the following packages/stacks could not have thei.
2020-11-23 11:16:52
705
1
转载 __attribute__((packed))详解
__attribute__((packed))详解1.__attribute__ ((packed)) 的作用就是告诉编译器取消结构在编译过程中的优化对齐,按照实际占用字节数进行对齐,是GCC特有的语法。这个功能是跟操作系统没关系,跟编译器有关,gcc编译器不是紧凑模式的,我在windows下,用vc的编译器也不是紧凑的,用tc的编译器就是紧凑的。例如:在TC下:struct my{ char ch; int a;} sizeof(int)=2;sizeof(my)=3;(紧凑模式)在GCC下.
2020-11-17 20:28:27
25293
1
原创 树莓派4B安装ROS(Kinetic版本) 问题解决补充
今天终于在树莓派4B安装ROS(Kinetic版本)成功了,感谢大神的文章:https://blog.youkuaiyun.com/hua_lun_tong_xue/article/details/106930273遇到一个C++11的坑,解决方法分享一下:error This file requires compiler and library support for the ISO C++ 2011在ros_catkin_ws/src/opencv3/opencv_contrib/dnn_moder
2020-11-12 18:00:53
661
原创 Segmentation fault (core dumped)段错误如何查找出错语句
Segmentation fault (core dumped)段错误如何查找出错语句使用GDB查看core文件默认编译出来的程序在出现Segmentation fault 时并没有生成core崩溃文件,可以在gcc/g++编译时增加-g选项。如果仍然没有生成core文件,则可能是因为系统设置了core文件大小为0,可以通过:ulimit -a 查询得知。a@ubuntu:~/$ ulimit -acore file size (blocks, -c) 0执行 u
2020-11-11 10:15:39
2678
原创 dd命令磁盘对拷及备份
dd命令磁盘对拷及备份dd命令:convert and copy a file用法:dd if=/PATH/FROM/SRC of=/PATH/TO/DESTbs=#:block size, 复制单元大小;count=#:复制多少个bs;磁盘拷贝:dd if=/dev/sda of=/dev/sdb备份MBRdd if=/dev/sda of=/tmp/mbr.bak bs=512 count=1破坏MBR中的bootloader:dd if=/dev/zero
2020-11-10 11:58:33
2295
原创 树莓派4B的ROS,出现missing: PY_EM错误
按照大神文章安装树莓派4B的ROS,出现missing: PY_EM错误https://blog.youkuaiyun.com/weixin_42587961/article/details/102229510sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic出现错误:-- Could NOT find PY_em (missing
2020-11-09 20:06:54
2176
1
原创 cartographer+EAI ydlidar雷达配置过程
cartographer+EAI ydlidar雷达配置过程一、配置环境(安装驱动)1、系统环境:ubuntu16.04+ROS-kinetic2、安装ROS-kinetic 详细说明过程http://wiki.ros.org/kinetic/Installation/Ubuntu二、代码程序见附件三、说明文档(配置步骤+代码说明)3.1 配置过程1、安装cartographer按网上教程安装cartographer+ROS,做到能从bag包出slam图。3.2 雷.
2020-11-06 14:42:34
1371
1
原创 cartographer没设置环境变量,启动失败问题
https://blog.youkuaiyun.com/weixin_43262513/article/details/88256762https://blog.youkuaiyun.com/lclfans1983/article/details/107256133/参考这个大神跑cartographer,出错roslaunch cartographer_ros demo_bearpaw.launch bag_filename:=/home/a/catkin_ws/2d_bag/cartographer_paper_d
2020-10-23 11:59:15
452
原创 cartographer编译,gcc 编译出现 internal compiler error: Killed
编译cartographer,出现错误:internal compiler error: Killed (program cc1plus)发可能是系统没有交换分区, 编译过程中内存耗尽, 导致了编译中断 …解决方式也很简单, 就是增加一个交换分区:1. 创建分区文件, 大小 2Gdd if=/dev/zero of=/swapfile bs=1k count=20480002. 生成 swap 文件系统mkswap /swapfile3. 激活 swap 文件sw.
2020-10-23 10:50:45
488
2
原创 Ubuntu下连接raw.githubusercontent.com失败
问题描述:Ubuntu下连接raw.githubusercontent.com失败 wget https://raw.githubusercontent.com/madmashup/targeted-marketing-predictive-engine/master/banking.csv --2020-05-17 17:00:19-- https://raw.githubusercontent.com/madmashup/targeted-marketing-pred..
2020-10-20 20:46:24
7069
转载 cartographer的交叉编译总结
思考:对交叉编译不熟悉,一些事后感觉很简单的问题事前烦恼了很久。源代码的编译大致可以分为三个类,用cmake的,用make的, 用脚本的。用cmake的最好改,其次是用脚本的,一般文档写得全。用make的往往是很简陋的,没文档,相关资料也少。总结:一.cartographer的Gmock GTest Glog模块的交叉编译首先下载Gmock GTest Glog的源码,Gmock和GTest在github上的一个仓库中修改cmakelist中修改cmakelist中的设置#告知当前使用.
2020-10-20 17:04:11
2045
3
原创 git 设置网络代理,修改http.proxy
git 修改http.proxygit代理设置方法解决git config --global https.proxyhttp://127.0.0.1:1080git config --global https.proxyhttps://127.0.0.1:1080git config --global --unset http.proxygit config --global --unset https.proxynpm config delete proxygit c...
2020-09-02 23:09:00
99913
2
原创 Android Studio错误:Connect to 127.0.0.1:1080 [/127.0.0.1] failed: Connection refused: connect
Android Studio错误:Connect to 127.0.0.1:1080 [/127.0.0.1] failed: Connection refused: connect同步gradle时发生如下错误:> Could not resolve all dependencies for configuration ':classpath'.> Could not resolve com.github.dcendents:android-maven-gradle-plugin:
2020-08-30 17:48:20
1137
转载 win7系统电脑共享文件夹别人访问不了怎么办
win7系统电脑共享文件夹别人访问不了怎么办 由于工作的需要,经常需要进行文件夹的共享,方便大家查看文件或图片。win7系统设置好了两台电脑的文件共享之后,发现别人访问不了自己电脑文件夹,针对此疑问,用户可以采取下面教程内容解决问题。 解决方法如下: 一、网上邻居→本地连接→属性里,“看是否安装了microsoft网络的文件和打印机共享”; 二、控制面板→管理工具→本地安全策略→本地策略→用户权利指派里,“从网络访问此计算机”中加入guest帐户,而“拒绝从网络访问这台计算.
2020-08-29 00:58:59
5895
EAI ydlidar雷达驱动源码与教程
2020-11-06
dbg安装包6.12.2 x86平台 在QT中配置
2018-04-19
c语言字符串分割函数strtok
2017-01-12
dbg安装包,可供QT使用
2016-10-18
Android上调用ffmpeg的实例FFmpegTest
2015-08-31
7620QAtool改wifi MAC地址
2015-06-06
M8 android dump内存工具
2012-08-12
s3c6410支持onenand的u-boot-1.3.4_onenand090812
2009-09-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人