随笔分类 -  Linux

摘要:INCS += -I ./CPP/include/ -I . FILE += $(wildcard *.cpp) FILE += $(wildcard GenICamA/*.cpp) FILE += $(wildcard CLProtocolA/*.cpp) FILE += $(wildcard G 阅读全文
posted @ 2023-01-10 16:07 thomas_blog 阅读(218) 评论(0) 推荐(0) 编辑
摘要:使用 WSL 在 Windows 上安装 Linux wsl --install 其中,也讲到Linux卸载; 如果wsl安装Linux失败,可以参考如下 利用 Microsoft Store 安装 Linux 发行版 我是遇到,win11安装的时候,莫名其妙的自动停止下载,应该不是网络的问题 所以 阅读全文
posted @ 2022-12-06 14:49 thomas_blog 阅读(217) 评论(0) 推荐(0) 编辑
摘要:apt install openssh-server vim /etc/ssh/sshd_config Port 22 PermitRootLogin yes #root登录 /etc/init.d/ssh start 出现错误 # service ssh start * Starting Open 阅读全文
posted @ 2022-12-06 13:53 thomas_blog 阅读(20) 评论(0) 推荐(0) 编辑
摘要:操作流程: 启动系统; 长按【shift】进入GRUB界面; 选择Advanced options for Ubuntu,进入; 选择recovery mode,按【e】进入编辑界面; 翻到最后,将ro recovery nomodeset所在行中,ro改为rw; 按下【ctrl + x】重启系统。 阅读全文
posted @ 2022-05-31 13:35 thomas_blog 阅读(152) 评论(0) 推荐(0) 编辑
摘要:配置core文件生成 # ulimit -c unlimited # echo "/var/core-%e-%p-%t" > /proc/sys/kernel/core_pattern # cat /proc/sys/kernel/core_pattern /var/core-%e-%p-%t 生成 阅读全文
posted @ 2021-11-16 16:55 thomas_blog 阅读(716) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> #include <string.h> int main() { char *str = "hello"; strcpy(str, "furong"); return 0; } 产生core文件 gcc dump.c -g 开启core dump功能 ulimi 阅读全文
posted @ 2021-11-15 19:41 thomas_blog 阅读(575) 评论(0) 推荐(0) 编辑
摘要:源码地址 https://github.com/hku-mars/loam_livox Ubuntu16.04安装ROS Kinetic详细过程 https://blog.csdn.net/weixin_43159148/article/details/83375218 sudo sh -c 'ec 阅读全文
posted @ 2021-06-23 19:16 thomas_blog 阅读(368) 评论(0) 推荐(0) 编辑
摘要:如果在时间片结束时进程还在运行,则CPU将被剥夺并分配给另一个进程。如果进程在时间片结束前阻塞或结束,则CPU 当即进行切换 测试条件 单核CPU 示例代码 #include <stdio.h> #include <pthread.h> #include <unistd.h> #include <s 阅读全文
posted @ 2021-05-08 17:57 thomas_blog 阅读(480) 评论(0) 推荐(0) 编辑
摘要:可以看到D-bus的对象、路径和方法 详见: https://wiki.deepin.org/wiki/D-Feet client.c server.c 编译 获取DBUS_SESSION_BUS_ADDRESS 设置环境变量 发送端和接收端都需要设置,而且要设置一致 使用dbus-monitor接 阅读全文
posted @ 2020-12-18 11:35 thomas_blog 阅读(2711) 评论(0) 推荐(0) 编辑
摘要:下载地址 https://dbus.freedesktop.org/releases/dbus/ 编译安装 出现如下错误: 解决办法: 出现如下错误: 解决办法: 阅读全文
posted @ 2020-12-14 17:11 thomas_blog 阅读(1853) 评论(0) 推荐(0) 编辑
摘要:下载 SDK Managerhttps://developer.nvidia.com/nvidia-sdk-manager-archive在虚拟机中安装运行sdkmanager$ sdkmanager磁盘空间要满足要求,安装的时候需要很大的空间,磁盘空间不足会导致安装失败屏幕分辨率要满足要求,安装页面是自适应大小,如果过小会导致显示不全,甚至连"下一步”按钮都看不见登录NVIDIA安装必不可少的,... 阅读全文
posted @ 2020-10-21 10:50 thomas_blog 阅读(859) 评论(0) 推荐(0) 编辑
摘要:测试环境介绍CPU型号:MPC8548MGHATGB,工作频率为1GHz相机数据:280Mbps以10W次CRC计算为例#define COUNT 100000#define SIZE 1024原始计算方法__u16 crc_itu_t_byte(__u16 crc, const __u8 data){ return (crc > 8) ^ data) & 0xff];}__u16 gCrc1... 阅读全文
posted @ 2020-09-30 13:33 thomas_blog 阅读(727) 评论(0) 推荐(0) 编辑
摘要:创建分区[root@localhost lohr]# fdisk /dev/sdb欢迎使用 fdisk (util-linux 2.23.2)。更改将停留在内存中,直到您决定将更改写入磁盘。使用写入命令前请三思。命令(输入 m 获取帮助):p磁盘 /dev/sdb:5368 MB, 5368709120 字节,10485760 个扇区Units = 扇区 of 1 * 512 = 512 byte... 阅读全文
posted @ 2020-08-09 23:48 thomas_blog 阅读(527) 评论(0) 推荐(0) 编辑
摘要:扩容 [root@localhost lohr]# lvextend -L +2G /dev/thomas/thomas-lv Size of logical volume thomas/thomas-lv changed from 1.00 GiB (256 extents) to 3.00 Gi 阅读全文
posted @ 2020-08-09 22:27 thomas_blog 阅读(191) 评论(0) 推荐(0) 编辑
摘要:创建分区[root@localhost lohr]# fdisk /dev/sdb 欢迎使用 fdisk (util-linux 2.23.2)。更改将停留在内存中,直到您决定将更改写入磁盘。使用写入命令前请三思。Device does not contain a recognized partition table使用磁盘标识符 0xa7a34d5d 创建新的 DOS 磁盘标签。命令(输入 m ... 阅读全文
posted @ 2020-08-09 22:19 thomas_blog 阅读(1008) 评论(0) 推荐(0) 编辑
摘要:yum自动补全yum install bash-completion -y阿里云官方镜像站https://developer.aliyun.com/mirror/添加yum软件仓库wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo或者sudo yum-config-manag... 阅读全文
posted @ 2020-08-09 21:16 thomas_blog 阅读(721) 评论(0) 推荐(0) 编辑
摘要:默认/dev下是没有spi设备的 JetPack版本 JetPack-L4T-3.2.1-linux-x64_b23.run 下载Kernel sudo git clone http://github.com/jetsonhacks/buildJetsonTX2Kernel.git git chec 阅读全文
posted @ 2020-06-02 22:26 thomas_blog 阅读(1241) 评论(0) 推荐(0) 编辑
摘要:首先 内核配置需要打开MTD选项 Memory Technology Devices (MTD) > 如果是NOR Flash,需要选择Common Flash Interface (CFI)相关的选项;而且需要配置映射首地址(和uboot中配置的flash首地址一致)、映射地址大小和位宽 <*> 阅读全文
posted @ 2019-08-16 20:29 thomas_blog 阅读(2180) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示