自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(41)
  • 收藏
  • 关注

原创 5. My forever valentine

The traditional holidays in our house when I was a child were spent timing elaborate meals around football games. My father tried to make pleasant chitchat and eat as much as he could during halftime. At Christmas he found time to have a cup or two of holi

2021-05-16 23:30:48 1088

原创 FFmpeg 逐行扫描和隔行扫描转换命令

input.ts转换成隔行扫描:ffmpeg -i input.ts -flags +ilme+ildct -alternate_scan 1 -top 0 output.tsinput.ts转换成逐行扫描:ffmpeg -i input.ts -deinterlace output.ts

2021-05-16 21:02:45 1878

原创 FFmpeg学习笔记01-搭建开发环境

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档搭建window + FFmepg环境。文章目录前言 一、下载FFmpeg安装包 二、使用步骤 1.引入库 2.读入数据 总结前言提示:这里可以添加本文要记录的大概内容:例如:随着人工智能的不断发展,机器学习这门技术也越来越重要,很多人都开启了学习机器学习,本文就介绍了机器学习的基础内容。提示:以下是本篇文章正文内容,下面案例可供参考一、下载FFmepg安装包1. 官网:http...

2021-05-09 23:12:16 319 1

原创 4. My most unforgettable character

Mama’s face was radiant with pride. I knew that everything we had achieved or would be achieve was because of my parents. When we were young children, my mother was, especially, our mentor. Not until I became an adult did I realize how special she was.De

2021-04-30 00:45:50 960

原创 01-最简单的驱动

目标:实现一个简单的字符设备驱动,实现读写字符串功能。驱动程序:#include <linux/module.h>#include <linux/fs.h>#include <linux/errno.h>#include <linux/miscdevice.h>#include <linux/kernel.h>#include <linux/major.h>#include <linux/mutex.h&g

2021-04-24 22:14:49 156

原创 3.The American way: family

“Please pass the turkey and dressing.” What does this simple request make you think about? If you are an American, you think about Thanksgiving. A turkey dinner symbolizes Thanksgiving for Americans. What does Thanksgiving remind American of? Their famili.

2021-04-23 23:52:44 335

原创 嵌入式Linux题目搜集

你做的xx项目遇到了那些问题,如何解决的?移植uboot,只做了移植吗?用的那个文件系统?移植过程中,网卡驱动做了那些工作?写过那些驱动,讲一个你熟悉的?写驱动过程中,遇到过什么问题,如何解决的?对网络设备驱动有了解吗?SPI是什么?有几条线?几种模式?使用IO模拟过SPI吗?堆和栈有什么区别?调用函数时,有那些内容需要压栈?uboot启动流程uboot启动前还需要做那些事情?uboot启动时使用的是物理地址还是虚拟地址?MMU要开启吗?x86汇编和A

2021-04-23 12:20:39 97

原创 2-Three types of parents

It is universally true that all parents in the world love their children. However, as parents’ views of life vary, they show their love in different ways. Generally speaking, parents can be classified into three types: the monarch type, the servan...

2021-04-13 00:04:24 769

原创 rt-smart 资料下载和环境搭建

资料下载git clone https://e.coding.net/weidongshan/rt-smart/doc_and_source_for_rt-smart.gitgit clone https://e.coding.net/weidongshan/noos/doc_and_source_for_mcu_mpu.git

2021-04-11 23:21:34 267

原创 1-Ideas of home have changed

A great many people, when they speak of home, tend to associate it with a certain atmosphere, certain physical surroundings, and certain emotional attitudes within themselves. This sentimentality towards home is something that has come down to us from ...

2021-04-11 10:20:24 168

原创 Imx6ull 板子linux开发环境搭建

Ubuntu操作1.安装软件( tftp, nfs, vim等)wget --no-check-certificate -O Configuring_ubuntu.shhttps://weidongshan.coding.net/p/DevelopmentEnvConf/d/DevelopmentEnvConf/git/raw/master/Configuring_ubuntu.shsudo chmod +x Configuring_ubuntu.shsudo ./Configuring_.

2021-04-09 21:34:43 416

原创 10-多线程编程

1. 创建线程#include <stdio.h>#include <unistd.h>#include <pthread.h>static void *my_thread_func(void *data){ while(1) { printf("my pthread\n"); sleep(4); }}int main(int argc, char **argv){ pthread_t tid; int ret; //creat

2021-04-07 23:32:43 51

原创 09-异步通知方式获取输入设备状态

同步方式:应用程序主动去查询驱动设备状态异步方式:驱动设备程序主动通知应用程序#include <linux/input.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <sys/ioctl.h>#include <stdio.h>#include <string.h>#include <unistd

2021-04-07 23:15:40 67

原创 08-Poll方式获取输入设备状态

#include <sys/ioctl.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <stdio.h>#include <unistd.h>#include <linux/input.h>#include <string.h>#include <poll.h>int main...

2021-04-07 23:03:08 119

原创 07-查询和休眠方式获取输入设备状态

#include <sys/ioctl.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <stdio.h>#include <unistd.h>#include <linux/input.h>#include <string.h>int main(int argc, char **argv){ .

2021-04-07 22:48:47 92

原创 06-获取输入设备信息

代码#include <sys/ioctl.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <stdio.h>#include <unistd.h>#include <linux/input.h>char *ev_names[] = { "EV_SYN ", "EV_KEY ", "EV_REL ",

2021-04-07 22:38:27 207 2

原创 05-Frame buffer应用编程

实现在LCD上显示一条线/* 2021-03-26 22:00*/#include <stdio.h>#include <sys/mman.h>#include <linux/fb.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <sys/ioctl.h>#include <string.h>#

2021-04-07 21:58:29 61

原创 04-文件IO基本函数使用

#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <stdio.h>/* ./copy a.txt b.txt argc = 3 argv[0] = "./copy" argv[1] = "a.txt" argv[2] = ...

2021-04-06 23:23:44 107

原创 03-Makefile的写法

Makefile的格式:目标:依赖 命令最简单的Makefilehello:hello.c gcc -o hello hello.cclean: rm -f hello$@ : 目标$<: 第一个依赖$^: 所有依赖hello:hello.c gcc -o $@ $<clean: rm -f $@...

2021-04-06 23:07:05 45

原创 02-GCC编译器的常用选项

1.指定输出文件 -ogcc -o hello hello.c2. 预处理 -Egcc -E -o hello.i hello.c3. 预处理+编译 -Sgcc -S -o hello.s hello.c4.预处理+编译+汇编 -cgcc -c -o hello.o hello.c5. 将预处理结果打印出来gcc -E hello.c6.将预处理的宏定义打印出来gcc -E -dM hello.c7.将编译警告信息打印出来gcc -...

2021-04-06 23:00:23 126

原创 01-最简单的Hello world程序

1. 代码/* 打印人见人爱的Hello world! 也可以打印你自己的Hello xxx (执行时加参数xxx)*/#include <stdio.h>int main(int argc, char **argv){ int i; if(argc >= 2){ printf("Hello, %s!\n",argv[1]); }else{ printf("Hello world!\n"); } return 0;}2. 编译 gcc .

2021-04-06 21:49:30 287

原创 VBI简介

VBI是Vertical Blanking Interval的缩写,中文意思是场消隐期,也叫场逆程,而电视节目称为正程信号。在电视处理中,图像数据垂直扫描完成后,从屏幕底部回到屏幕顶部的时间是没有收到任何的video信息,可以利用这期间来传输一些VBI信息。因此,通过VBI可以将数据放到电视节目的场逆程中(ATV/AV) ,实现相关功能。 VBI 有以下几种常见类型 TT Teletext 传送电视文本信息 Line .

2021-04-06 18:59:59 2543

原创 VI 常用命令

执行 vi text.c或者 vi test.c +n ,则可以打开text.c后直接跳到第n行, 比如vi test.c +5 ,则跳到第5行移动到第n行:nG , 1G就是移动到第1行,G是移动到最后一行移动到行首 : 0移动到行尾: $往下移动n行: n+往上移动n行: n-翻页: Ctrl + f 往下翻, Ctrl + b 往上翻删除n行: ndd , 比如dd是删除一行, 5dd是删除往下5行复制n行 : nyy粘贴: p撤销: u查找: /...

2021-04-01 22:36:50 98

原创 Ubuntu下创建github仓库详细步骤

在Linux下下载git设置名字和邮箱创建git文件目录初始化目录在https://github.com/下登录自己的账号创建远程仓库填写仓库名字并创建会看到用法提示linux下添加仓库添加文件touch test.txtgit add test.txtgit comit -m "first add"git push -u origin main输入github账号密码就可以push成功了常用git命令:...

2021-03-31 22:13:59 578

原创 从零开始写bootloader

Bootloader 的目标是启动内核,最简单的bootloader编写步骤:1.初始化硬件:关看门狗,设置时钟,设置sdram,初始化nand flash;2.把内核从nand flash读到sdram3.设置要传给内核的参数4.跳转执行内核      ...

2018-08-28 23:57:14 262

原创 Linux设置开机为命令行启动

不同发布版linux操作如下:Ubuntu1. cd etc/default2. sudo vi grub 修改 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" 为 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"3. sudo update-grub4. sudo rebo...

2018-08-26 14:05:57 3562

原创 嵌入式Linux系统移植之U-boot 启动源码分析

第一阶段1. 设SVC模式2.关watch dog3.屏蔽中断4.初始化sdram5.设置栈6.设置时钟7.代码重定位8.清bss段9.调用start_armboot    (board.c) 第二阶段start_armboot    (board.c)             main_loop ()     (main.c)       ...

2018-08-26 13:50:43 170

原创 嵌入式Linux系统移植之U-boot Makefile分析

执行make 100ask24x0_config Makefile100ask24x0_config    :    unconfig    @$(MKCONFIG) $(@:_config=) arm arm920t 100ask24x0 NULL s3c24x0其中 MKCONFIG    := $(SRCTREE)/mkconfigmkconfig 100ask24x0...

2018-08-26 10:26:11 163

原创 嵌入式Linux学习笔记之U-boot 编译初体验

准备文件:u-boot-1.1.6.tar.bz2   (源码)u-boot-1.1.6_jz2440.patch   (补丁) 1. 解压 tar -xvf u-boot-1.1.6.tar.bz2 2. 打补丁在u-boot-1.1./下面执行patch -p1 &lt; ../u-boot-1.1.6_jz2440.patch 3. 配置make 100a...

2018-08-26 09:35:23 203

原创 S3C2440裸板程序之UART

本实例功能是在串口上输入一个字符,板子收到后让它的ASCII值加1后,从串口输出。head.S.extern main.text.global _start_start: ldr sp, =4096 bl disable_watch_dog bl clock_init bl memsetup bl copy_steppingstone_to_sdram ldr pc, ...

2018-08-25 23:42:32 223

原创 S3C2440裸板程序之定时器

本实例首先启动MPLL提高系统时钟,初始化内存控制器,使SDRAM工作在新的HCLK下,然后将定时器0设为0.5秒产生一次中断,在中断程序里改变LED的状态。 head.S .extern main.text .global _start _start: b Reset@ 0x04: HandleUndef: b Han...

2018-08-25 23:32:39 347

原创 S3C2440裸板程序之中断

本实例实现按键中断来控制LED的亮灭。head.S.extern main .text.global _start_start: b Reset HandleUndef: b HandleUndefHandleSWI: b HandleSWIHandlePrefetchAbort: b HandlePrefetchAbortHandleDataAbort:...

2018-08-25 23:15:12 226

原创 S3C2440裸板程序之MMU

        本实例将开启MMU, 将虚拟地址0xA0000000~0xA00010000映射到 物理地址 0x56000000~0x56100000,这样就可以通过操作地址0xA0000050,0xA0000054来控制3个LED的亮灭。head.S.text.global _start_start: ldr sp, =4096 @ 设置栈指针,调用C函数之前要设好栈 b...

2018-08-25 22:31:25 278

原创 make时遇到File `Makefile' has modification time 4e+04 s in the future的解决办法

1. 原因是虚拟机时间和电脑时间不匹配造成。2. 解决办法在VMware 菜单虚拟机(M)--&gt;设置(S)--&gt;选项下设置开启时间同步然后重启虚拟机3. 若还出现 warning:  Clock skew detected.  Your build may be incomplete.再执行find . -type f | xargs -n 5 touc...

2018-08-25 19:16:04 12173 3

原创 S3C2440裸板程序之SDRAM

       S3C2440从Nand Flash启动CPU时, CPU会通过硬件动作将Nand Flash开始的4KB数据复制到称为Setppingstone的4KB的内部RAM中,然后跳到地址0开始执行。        本实例先使用汇编语言设置好存储控制器,使外接的SDRAM可用,然后把程序本身从Steppingstone复制到SDRAM ,最后跳到SDRAM中执行。head.S...

2018-08-25 17:13:14 174

原创 S3C2440裸板程序之Nand Flash

 head.S.text .global _start_start: ldr sp, =4096 @ 运行C函数之前要设置栈指针 bl disable_watch_dog @ 关掉看门狗,否则CPU会不断重启 bl memsetup @ 使能sdram bl nand_init @ 初始化nand flash ldr r0, =0x30000000 ...

2018-08-25 15:18:13 278

原创 嵌入式Linux基础知识之ARM汇编指令及ATPCS

1.  相对跳转指令:b , bl... b fun1...fun1: bl fun2...fun2:...bl相对于b的不同之处是,跳转之后会返回bl的下一条指令的地址,将其保存在lr寄存器中。这两条指令是位置无关指令。2.数据传送指令mov, 地址读取伪指令ldrmov r1,r2 /*把寄存器r2的值赋值给寄存器r1*/mov r1,...

2018-08-25 13:44:56 568

原创 嵌入式Linux 基础知识之Makefile

1. Makefile 规则一个Makefile文件内容由若干规则组成, 规则的格式如下:目标 : 依赖    命令:这里举一个简单示例:hello:hello.c gcc -o hello hello.cclean: rm -f hello2.Makeflie 自动变量$@ : 表示规则的目标文件名$^   :表示所有依赖的名字$&lt;...

2018-08-25 11:52:22 353

原创 S3C2440裸板程序之GPIO

本文介绍如何点亮裸板上的一个LED。一. 硬件原理LED1 电路图如下nLED_1接的GPF4引脚 可知, nLED_1接的GPF4引脚, nLED_1输出低电平,灯亮; nLED_1输出高电平,灯灭。下面来设置GPF4为输出引脚, 且输出低电平。将GPFCON 的GPF4 bit[9:8] 设置为01 = Output 将GPFDAT 的bit[4] 设为...

2018-08-25 11:16:50 179

原创 S3C2440裸板程序之第一个程序

 一. 编写实现点亮一个LED1. 汇编程序代码 led_on.s:@目标: 点亮一个LED@功能: GPF4 输出低电平@时间: 2018/06/07.text.global _start_start: ldr r0, =0x56000050 @GPFCON 寄存器 mov r1, #0x00000100 @[9:8] = 01 ,设置GPF4为输出功能 str ...

2018-08-24 21:57:19 283

空空如也

空空如也

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

TA关注的人

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