自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(75)
  • 资源 (9)
  • 收藏
  • 关注

原创 apt-build 使用

环境:公司的arm设备1. 测试编译:apt-build build-source tree报错:cc1: error: unknown value ‘armv7’ for -mtunecc1: note: valid arguments are: cortex-a35 cortex-a53 cortex-a57 cortex-a72 cortex-a73 thunderx thunderxt88p1 thunderxt88 thunderxt81 thunderxt83 xgene1 falko

2021-06-18 11:27:54 715

原创 expect 入门用法

#!//usr/bin/expectset timeout 1000spawn ssh [email protected] "*password*"send "123456\r"expect "*scale*"send "touch abc.txt\r"send "ls\n"expect eof

2021-04-27 14:17:07 256

原创 qt gdb debug remotely

sudo apt install libc6-dbgsudo apt install libc6-devcopy all files in debug folder include <program name>.debugproceed with normal gdb remote debugging:https://blog.csdn.net/songpeng26/article/details/115957725

2021-04-23 16:14:24 217

原创 gdb remote debuging from ubuntu to arm

# on hostarm-linux-gnueabihf-gcc -g -o main main.cscp main use@ip:/home/user# on remote(arm)# 172.25.115.195 is arm ip address# 13000 is port to debug, can be anycd /home/usergdbserver 172.25.115.195:13000 main# on hostarm-linux-gnueabihf-gdb main

2021-04-21 15:35:53 81

原创 ps command understanding

一、ps aux -> BSD语法1. ps a -> 显示所有用户的程序1-1. ps aux 和 ps ux 对比1-1-1. ps aux 列出了所有用户的进程peng@peng-vmware:~/Desktop$ps auxUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDroot 24800 0.2 1.6 80572 32532 pts/1 S+ 08

2020-08-30 11:48:06 422

原创 simulate “insert“ key with xmodmap | 模拟 “shift + insert” key with autokey-gtk

1.simulate insert key with xmodmap用F9来替换insert键:# set Key and Shift+Keyxmodmap -e "keycode 75 = Insert Insert"or# set allxmodmap -e "keycode 75 = Insert Insert Insert Insert Insert Insert"原理:先用xev来查看按键的键值,上面的keycode 75就是按F9输出的键值notice:Each keysy

2020-08-29 14:23:54 123

原创 vim-plug + nerdtree + vim-colorschemes

1.下载vim-plugcd ~/.vim/autoloadwget https://github.com/junegunn/vim-plug/archive/0.10.0.tar.gztar -xvf 0.10.0.tar.gzcp vim-plugxxxxxxx/plug.vim ./2.配置vim-plug , 安装 vim-colorscheme 和 nerdtree2-1 修改~/.vimrcvim ~/.vimrc输入:" vimset nocompatible" vi

2020-08-22 23:23:49 342 1

原创 /etc/bash.bashrc DIY

# env statusecho “sourcing /etc/bash.bashrc…”# cd shortcutalias …2=“cd …/…/”alias …3=“cd …/…/…/”alias …4=“cd …/…/…/…/”alias …5=“cd …/…/…/…/…/”alias …6=“cd …/…/…/…/…/…/”alias …7=“cd …/…/…/…/…/…/…/”alias …8=“cd …/…/…/…/…/…/…/…/”alias cdd=“cd ~/Desk

2020-08-22 20:54:55 2233

原创 .bashrc DIY

# env statusecho “sourcing ~/.bashrc…”# enter desktop when open terminalecho “enter desktop…”if [[ $PWD == $(realpath ~) ]]; thencd ~/Desktop/fi

2020-08-22 20:46:24 171

原创 Linux Shell 环境变量 /etc/profile /etc/bashrc ~/.profile ~/.bashrc 作用时机

1.为了一探环境变量起作用的时机,我们在各个关键文件中追加echo1-1.在/etc/profile中追加`echo "sourcing /etc/profile..."1-2.在/etc/bashrc中追加echo "sourcing /etc/bashrc..."or在/etc/bash.bashrc (Debian/Ubuntu)中追加:echo "sourcing /etc/bash.bashrc..."1-3.在~/.profile中追加echo "sourcing ~/.

2020-08-22 18:19:47 267

原创 wget proxy/snap proxy

wget proxy:Proxy environment variables are not propagated to all stages of the Yocto build process so sometimes wget cannot pick them up. To workaround this add the following to ~/.wgetrc.https_proxy = http://socks.example.com:1080http_proxy = http://s

2020-08-21 14:00:10 185

原创 Git第七阶段:http/https proxy/ssh proxy/git proxy

git config --global --unset http.proxygit config --global --unset https.proxygit config --global http.proxy http://proxy.bizerba.com:8080git config --global https.proxy https://proxy.bizerba.com:8080git config --global http.proxy "socks5://127.0.0.1:10

2020-08-18 16:24:41 529

原创 C语言 变量与指针 回顾

1.0变量与地址:地址:鞋柜的门上贴了一张纸,写了鞋柜的编号,即为地址。变量:鞋柜的里面放了一张纸,写了XXX,即为内容,即为变量取值。变量名:你的名字,你的名字对应一个具体的鞋柜格子(可变化),这个格子的内涵,包括外面那张纸(地址)和 里面那张纸(内容)。char a = '0'; 鞋柜类型为char,容量为1。2.0 数组chara[6]; //横向6个鞋柜格子3.0 二维数组chara[5][6];五行六列的鞋柜inta[4][5];五...

2020-08-05 13:17:14 129

原创 int time

int time 的format,值得留意一下TYstr dtext0 [200];int intTime = 1594305167;Sprintf( dtext0, "%02t.%02m.%04Y %T:%02S", intTime, intTime, intTime, intTime, intTime );printf(dtext0);输出为:09.07.2020 14:32:47

2020-07-24 13:11:27 1060

原创 Git第六阶段:Rebase -> 合并多个commit为一个,使提交更为简洁。

1.如下所示,自上次push以后,我在本地有三次零散的commit,但是还没有push,因为不想提交到server上显得太过凌乱,所以要合并以下再push,这就要用到’git rebase’:peng@host:~/gitTest$ git logcommit a92aea92169587086679cd13af4cf2dc335ceca5 (HEAD -> master)Author: songpeng22 <[email protected]>Date: Wed Jul

2020-07-22 22:01:15 5156

原创 log4cpp arm环境 直接编译/交叉编译

1. build./configure --build=armmakemake checkmake install2. use log4cpp2.1 makefileCC=g++all: $(CC) main.cpp -I /usr/local/include -L /usr/local/lib -llog4cpp -o mainclean: rm -f *.o main

2020-06-17 16:46:00 1280

转载 linux build/use library

Linux下动态库文件的文件名形如libxxx.so,其中so是 Shared Object 的缩写,即可以共享的目标文件。在链接动态库生成可执行文件时,并不会把动态库的代码复制到执行文件中,而是在执行文件中记录对动态库的引用。程序执行时,再去加载动态库文件。如果动态库已经加载,则不必重复加载,从而能节省内存空间。Linux下生成和使用动态库的步骤如下:编写源文件。 将一个或几个源文件编译链接,生成共享库。 通过-L<path> -lxxx的gcc选项链接生成的libx...

2020-06-17 12:38:40 187

原创 win10 python3 虚拟环境 virtualenv

1.0 什么是python虚拟环境python虚拟环境是一个隔离/独立的python开发环境,和系统python环境可以完全隔离,互不相关,相当于多了一个python开发环境。而且你在python虚拟环境中的开发过程和使用系统python一模一样,你可以在你创建的python虚拟环境中使用pip工具安装任何你需要的模块,该模块和系统python环境完全不相关。虚拟环境的这个特点就能解决上面的问题了。1.1 有两种虚拟环境python有两个模块可以用于创建和管理python虚拟环境:venvvir

2020-05-29 13:36:01 576

原创 bash 符号运用搜集

01.大括号Brace expansion is a mechanism by which arbitrary strings may be generated. This mechanism is similar to filename expansion (see Filename Expansion), but the filenames generated need not exist. Patterns to be brace expanded take the form of an optio

2020-05-26 10:38:05 194

原创 login shell

# sudo asks for *your* password and must be configured via /etc/sudoerssudo -s # Shell for superusersudo -i # Login shell for superusersudo -u jimmy -s # Shell for user "jimmy"sudo -u jimmy -i # Login shell for user "jimmy

2020-05-18 10:06:14 100

原创 VirtualBox 中的 Debian 与 Windows 主机共享文件夹/双向拷贝

1. 安装好虚拟机增强程序vbox的安装环境:保持安装盘在的状态,调整启动顺序为 hard disk -> cdrom启动后,进入terminal,更新程序apt-get updateapt-get install build-essential linux-headers-$(uname -r)2.新增一块盘片,盘片对应VirtualBox安装目录下的VBoxGuestAdditions.iso文件(64位操作系统上路径是:C:\Program Files\Oracle\VirtualB

2020-05-11 15:13:38 982

原创 linux build kernel module

1. 安装需要的库apt install linux-headers-$(uname -r)note: 如果没安装headers,/lib/modules/$(uname -r)里面就没有build 文件夹2. 最基础的 kernel module 代码#include <linux/init.h>#include <linux/module.h>#includ...

2020-05-08 13:52:38 1104

原创 linux 初装需要安装到包 / 常用库 collection/收集

Libncurses库:用来在显示器上显示文本界面。典型例子就是Linux内核的make menuconfig配置界面。:Libssl-dev:openssl的头文件和库

2020-05-08 13:42:30 619

原创 linux kernel 编译

1.grab the kernel from kernel.orgwget https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.4.189.tar.gz2. extract filetar -xvf linux-4.4.189.tar.gzcd linux-4.4.1893. Install the required...

2020-05-08 10:47:50 443

原创 tree practice

1..树形显示目录所有内容:tree -a2..完整路径显示/full path:tree -af3..按修改时间排列:tree -aft4.. 目录深度设为2层:tree -aft -L 25.. 打印显示时间:tree -aft -L 2 -timefmt '%y-%m-%d %H:%M'...

2020-05-04 00:10:10 95

原创 快捷键/shortcut 收集/collection

mac 截图:在剪贴板里获取整个屏幕的截图:Shift+Command+3截取部分屏幕,并复制图片到剪贴板:Shift+Command+4在剪贴板里获取整个屏幕的截图:Shift+Control+Command+3截取部分屏幕,并复制图片到剪贴板:Shift+Control+Command+4...

2020-04-18 10:16:33 154

原创 linux window manager/display manager check/config

which window manager is running:wmctrl -mwindow manager config:$sudo apt-get install xfce4可用以命令显示当前系统安装的窗口管理器:$sudo update-alternatives --display x-window-managerorcat /etc/X11/default-display-...

2020-04-17 14:09:05 391

原创 linux sed -i replace text/sed 跟expression替换文本

1.生成测试文本:peng@peng:~$ cat > aa.txtaabbccddee^C2.原本的方案,用vi替换文本:aa替换成abc:%s/aa/abc/3.用sed命令替换文本:sed -e "s/aa/abc/" aa.txt

2020-04-09 19:28:25 706

原创 linux cut practice

step1:bash --versionresult:root@CN_PENGS01:/home/peng# bash --versionGNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)Copyright (C) 2016 Free Software Foundation, Inc.License GPLv3+: G...

2020-04-07 13:32:56 107

原创 linux from scratch / 从零开始生成linux

文章背景:http://www.linuxfromscratch.org/lfs/view/stable/index.html创建分区:parted /dev/sda mkpart primary ext4 50G 100%参考:https://blog.csdn.net/songpeng26/article/details/105180694格式化分区:mkfs /dev/sda3...

2020-04-06 11:16:20 1189

原创 grep command practice

1. get several lines around searching line:搜索wget --help输出文本中,带continue字段的所在行的 附近几行。grep practice 1:1 line after "continue"line ,1 line before "continue"line.command:wget --help | grep -C 1 cont...

2020-04-01 13:23:59 142

原创 缩写

NDA(Non-disclosure agreement) 保密协议NRE(Non-Recurring Engineering) NRE费用,即一次性工程费用imho -> in my humble opinion 依我愚见

2020-04-01 10:50:42 272

原创 linux 登入/登出日志

last command:-F, --fulltimes Print full login and logout times and dates.-n, --limit number Tell last how many lines to show.-f, --file file Tell last to use a specific file instead of ...

2020-03-30 15:46:38 886

原创 debian: set shortcut / 设置快捷键 -> 打开终端 / open terminal

打开终端:Ctrl + Alt + t结果:在xfce下不管用。设置快捷键:Application -> Setting -> Keyboard -> Application shortcuts 选项卡 -> Add -> Command输入:x-terminal-emulator -> Ctrl + Alt + t。结果:成功...

2020-03-30 13:46:04 608

原创 debian 设置不要锁屏/ do not lock screen / 退出登录

Setting -> Power manager -> Display 选项卡 -> 将"black after / sleep after / switch off after" 调整为Never。Setting -> Power manager -> Security 选项卡 -> 将"lock screen when system is going fo...

2020-03-30 11:44:46 1600

原创 linux: kill process/program / 杀死进程

杀死图形界面的进程:在终端输入:xkill然后点选界面通过PID杀死进程1:pidof 进程名kill 进程ID通过PID杀死进程2:获得进程ID:ps aux | grep 进程名根据进程ID杀死进程:kill 进程ID备注:从几个程序的位置,看通用性/usr/bin/xkill/bin/ps/bin/pidofps 和 pidof 位于bin文件夹里,看来通用...

2020-03-30 10:57:27 451

原创 mount point / 挂载点

挂载点定义:A mount point is a directory (typically an empty one) in the currently accessible filesystem on which an additional filesystem is mounted (i.e., logically attached).挂载点的个人理解:linux的设备挂载比较灵活,在目...

2020-03-29 18:45:17 3981

原创 primary / extended / logic 分区的区别

primary —主分区。可以做引导分区。最多不能超过四个。在主分区中,不允许再建立其他逻辑分区。extended----扩展分区,不可引导的分区称之为扩展分区。最多一个。logic----逻辑分区,需要从扩展分区中分逻辑分区。参考文献:MBR:https://blog.csdn.net/songpeng26/article/details/105181186分区的区别:htt...

2020-03-29 17:20:51 5237

原创 MBR / GPT

缩写的全文:MBR (Master Boot Record)GPT (GUID Partition Table)如果从方便记忆的角度,他们的区别是:MBR:我们原来用的“分区表”GPT:新款牛叉分区表如果从关联的角度,他们的区别是:BIOS + MBR模式UEFI + GPT模式如果从如何选择角度,他们的区别是:2T以上磁盘要用GPT,2T以下都可以。...

2020-03-29 16:41:39 251

原创 gparted 创建分区 / mkfs 格式化分区为某filesystem

1.0 创建分区gpartedmkpart part-type [fs-type] start endMake a part-type partition for filesystem fs-type (if specified), beginning at start and ending at end (by default in megabytes). part-type shou...

2020-03-29 16:34:10 1026

wget-1.11.4-1-setup.7z

没想到这么个小工具这么难下载,在官方下载很慢,一顿狂搜之后也没下来。 所以最终下载成功之后,干脆分享到这里,需要的可以拿

2020-03-02

iMX25_WinCE6.0_BSP_09年的.zip

imx25 wince6.0 bsp,09年的有点旧,不过这阵子正好用到它,顺便拿来分享下。

2019-08-10

mt29f1g08abafa.pdf

micron nand flash MT29F1G08ABAFA 1024 blocks, 8bit ecc.

2019-08-09

在CMake Qt Qml环境中,用c++加载和访问Qml里面的控件

在CMake Qt Qml环境中,用c++加载和访问Qml里面的控件. 里面两种访问方式都是成功的,供大家参考。

2018-12-13

mastering cmake

CMake书 CMAKE学习经典书籍《Mastering CMake》,网上知识讲解碎片化,还是看看文档来的快。cmake效率高效,学起来也挺简单的。

2018-12-11

CMake 生成Qt工程文件(vs2013 or vs2015)

CMake & Qt 开发 用CMake来生成和管理Qt代码,用visual studio 编译,本Sample编译后运行结果为最简单的QT对话框。

2018-12-11

H27UBG8T芯片资料

H27UBG8T的PDF手册,海力士产品,隔了几天才找到,分享下。。

2016-03-02

纯资源DLL(加载和调用)

用DLL装载资源,然后在EXE中调用。 在有多个进程进行资源共享的情况下,可以节约空间

2014-02-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除