![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工具集合
文章平均质量分 73
Konwledging
这个作者很懒,什么都没留下…
展开
-
Makefile compile Error Debug
my work directory and original MakefileAfter I run it, error will happenI added the CFLAGS = -c, then it successed.原创 2021-07-30 16:18:36 · 158 阅读 · 0 评论 -
KGDB调试内核
1 环境Ubuntu 20.04VMware Worksation 16 PlayerLinux Kernel 5.4.02 设置虚拟机2.1 准备两台虚拟机准备一台虚拟机,然后克隆一台虚拟机,下面以左边为客户端和右边为目标机展示.2.2 配置虚拟机配置串口配置客户机(左边客户端)和目标机(右边服务器端)\.\pipe\com_1配置好后,请使用如下图方式验证2.3 配置服务器端grub配置好串口后请打开服务器端grub,添加如下的信息.sudo原创 2021-07-14 23:14:50 · 472 阅读 · 4 评论 -
vim使用手册
Vim 使用方法1 vimrc 配置(1)打开vimrcvim ~/.vimrc(2)填入下面的配置信息set nocompatiblefiletype offset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()Plugin 'VundleVim/Vundle.vim'call vundle#end()filetype plugin indent on"scope---------------------------------原创 2021-03-23 17:35:15 · 145 阅读 · 0 评论 -
Makefile
Makefile 常用规则wildcardone use of the wildcard function is to get a list of all the C source files in a directory.//获取当前目录下全部.c文件-test.c hello.c$(wildcard *.c)patsubstwe can change the list of c source files into a list of object files by replacing原创 2021-03-21 12:37:48 · 184 阅读 · 3 评论 -
Install QEMU 5.1.50
1 Compile glib-2.48tar -xzvf pcre-8.20.tar.gzcd pcre-8.20./configure --enable-unicode-properties --enable-utf8make && make installtar -zxvf libffi-3.3.tar.gzcd libffi-3.3./configuremake && make installcd glib-2.48.0./autogen.sh --原创 2020-10-16 19:44:27 · 349 阅读 · 0 评论 -
git 常用操作
1 git diffgit @@ -2,3 +2,4 @@•-开头的行,只出现在源文件中的行•+开头的行,只出现在目标文件中的行•空格开头的行,是源文件和目标文件中都出现的行•差异按照差异小结进行组织,每个差异小结的第一行都是定位语句,由@@开头,@@结尾。-2,3 +2,4在源文件( a/LICENSE)第二行开始的三行, 和目标文件(b/LICENSE)第二行开始的四行不同。 ...原创 2020-06-16 16:14:57 · 392 阅读 · 0 评论 -
Three simple cases by using makefile---2
3.make_testmake_test-|----Makefile |----top_main.c |----print_hello |----hello.c |----Makefile |----print_world ...原创 2019-06-10 22:09:15 · 116 阅读 · 0 评论 -
How to compile and install Linux-kernel(4.18.0) and U-Boot(2017.11)
How to compile and install Linux-kernel(4.18.0)1.Choose linux kernel (1)sudo apt-cache search linux-source (2)sudo apt-get install linux-source-4.18.0(default path:/usr/src)2.Install ne...原创 2019-02-25 12:29:41 · 675 阅读 · 3 评论 -
How to configure Vim on Linux Platform
mkdir .vimcd .vim/mkdir bundlegit clone https://github.com/VundleVime/Vundle.vim.gitgit clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vimvim .vimrc #add Vundle ...原创 2019-05-08 21:50:22 · 193 阅读 · 0 评论 -
how to use file name to get path of file and copy the files from srv to the local by using python
(1)we need to talk about the os.path.join(...)print("1:",os.path.join('aaaa','/bbbb','ccccc.txt'))==>1: /bbbb\ccccc.txtprint("1:",os.path.join('aaaa','bbbb','ccccc.txt'))==>1: aaaa\bb...原创 2019-05-24 15:17:01 · 194 阅读 · 0 评论 -
How to initiate a register by using struction and use the container_of(...)/offsetof(...)
1. About offsetof(...) and container_of(...)1)offsetof(type, member) #define offsetof(type, member) (size_t)&(((type*)0)->member) (1)offsetof is defined in the stddef.h of standard li...原创 2019-05-21 16:32:56 · 128 阅读 · 0 评论 -
How to install a function in section and to call the function
1) __attribute__((section("section_name")))fuctions: put the functions and datas into in the section pointed by "section_name"#define STR(x) (#x)#define ERIC_ATTRIB_SECTION(setction) __attribu...原创 2019-05-22 20:18:31 · 1098 阅读 · 0 评论 -
How to use python to write the specific value to the specific address in the binary file
(1) we need a binary file and use symbols(Ericconfig_Bin) to token the address in the binary file, maybe need some assembly knowledge to understand the following codes. .align 8 ...原创 2019-05-23 16:45:28 · 145 阅读 · 0 评论 -
Useful Test farmework
AceUnitAceUnit (Advanced C and Embedded Unit) bills itself as a comfortable C code unit test framework. It tries to mimick JUnit 4.x and includes reflection-like capabilities. AceUnit can be used i...转载 2019-05-31 15:02:16 · 109 阅读 · 0 评论 -
Three simple cases by using makefile---1
I use three parts(make_test0, make_test1, make_test) to progressive introduction simple makefiles apply for project1.make_test0(directory)make_test0 ----Makefile |----top_main.c ...原创 2019-06-10 21:44:01 · 95 阅读 · 0 评论