自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

win9

他们不是Linux的粉丝,他们是某种信念、某种价值观、某种理想、某种人生态度的粉丝,他们参与开源社区,是因为能从中感受到这些东西

  • 博客(11)
  • 资源 (36)
  • 收藏
  • 关注

转载 51 C语言与汇编语言混编

1.在C中内嵌汇编语句   在#pragma asm 与#pragma endasm 中加入要内嵌的汇编语句例子:    #include    void main()  {     P0^1=1;    #pragma asm    汇编延时程序    #pragma endasm     P0^1=0;} 2.C程序调用汇编 (1)C

2017-06-28 13:45:21 2309

原创 Error: invalid constant after fixup

用arm-linux-gcc编译的时候碰到了这个错误:led_on.S:5: Error: invalid constant (5C012) after fixup网上搜了一下,有如下解释:MOV    R1,#0x0005C012 最好改成LDR R1,=0x0005c012 用mov的话只要立即数大于0x100后有些数可以编译通过但是有些数就不能编译通过 从上面的解

2017-06-23 05:36:37 2902

原创 USB设备的VID与PID

PID/VID唯一标识一个设备,HardwareID是为了给系统识别的 ,他是根据PID/VID而生成的。这个与序列号没什么关系,序列号一般都是厂家固化到芯片中的信息而已。GUID只是为了标志你安装的设备是属于一个什么类当中,这个类可以显示再设备管理器中。比如:你可以定义一个类,当然这个类有与系统中任何类都不同的GUID,然后选择一个图标和类名,就可以同网卡等其他设备一起显示在设备管理器下的根目录

2017-06-21 12:26:09 1748

原创 inittab

要写自己的inittab,需要理解busybox的inittab文件格式。busybox的inittab文件与通常的inittab不同,它没有runlevel的概念,语句功能上也有限制。inittab语句的标准格式是::: 各字段的含义如下:id字段与通常的inittab中的含义不同,它代表的是这个语句中process执行所在的tty设备,内容就是/dev目录中

2017-06-21 08:59:16 1219

原创 platform_driver注册时probe被调用关系

涉及到的结构体:struct platform_driver { int (*probe)(struct platform_device *); int (*remove)(struct platform_device *); void (*shutdown)(struct platform_device *); int (*suspend)(struct platform_dev

2017-06-20 13:38:30 1777

原创 虚拟机VMware上Ubuntu与主机windows之间互相复制与粘贴

1、在虚拟机VMware的菜单栏选择 虚拟机-->安装VMware Tools...      2、在/media/VMware Tools目录中找到安装软件压缩包      3、把VMwareTools-10.0.0-2977863.tar.gz拷贝到/tmp目录下      4、在进入/tmp目录下解压VMwareTools-10.0.0-2977863.t

2017-06-18 16:48:44 2815

原创 __devexit_p

.remove = __devexit_p(s3c2410wdt_remove),进入init.h,/* Functions marked as __devexit may be discarded at kernel link time, dependingon config options. Newer versions of binutils detect references f

2017-06-18 14:12:47 1278

原创 Linux时钟管理clk

硬件资源越来越庞大和复杂,内核的另一个挑战就是要便捷的管理这些资源。同时,面对如此之多的平台不同的CPU,管理机制需要统一适用,这就需要对资源的管理抽象到更加通用的层次。CPU中各个模块都需要时钟驱动,内核需要一种机制能通用所有的平台,方便的管理CPU上所有的clk资源。这里分析Linux对clk的管理。1. clk通用接口内核定义了一套标准的接口(include/linux/clk.

2017-06-12 04:02:29 2450

原创 WATCHDOG驱动框架

看门狗的框架是在include/linux/watchdog.h中涉及到的结构体:struct watchdog_device { const struct watchdog_info *info; const struct watchdog_ops *ops; unsigned int bootstatus; unsigned int timeout; unsigned int

2017-06-12 01:41:41 2129

原创 linux中readl()和writel()函数

writel() 往内存映射的 I/O 空间上写数据,wirtel()  I/O 上写入 32 位数据 (4字节)。  原型:#include  void writel (unsigned char data , unsigned short addr )  readl() 从内存映射的 I/O 空间读取数据,readl 从 I/O 读取 3

2017-06-11 23:00:50 1759

原创 github常用操作

初次配置:git config --global user.name "TinyWindzz"git config --global user.email 2304083234@qq.com克隆:git clone https://github.com/lizuobin/linux-3.4.2-jz2440 查看状态:git status

2017-06-11 14:39:44 1187

stm32f103超声波测距

trig b12 echo b13 你只需要提供一个 10uS以上脉冲触发信号,该模块内部将发出8个 40kHz周期电平并检测回波。一旦检测到有回波信号则输出回响信号。回响信号的脉冲宽度与所测的距离成正比。 由此通过发射信号到收到的回响信号时间间隔可以计算得到距离。 公式: uS/58=厘米或者uS/148=英寸; 或是: 距离=高电平时间*声速( 340M/S) /2; 建议测量周期为 60ms以上, 以防止发射信号对。

2017-12-22

VMwareTools-9.6.0-1294478.tar.gz

vmware tools 9.6.0 是vmware player 6.0.0 (VMware@Player 6.0.0 build - 1295980) 所带的tools,安装之后可以实现xp共享目录被ubuntu访问,实现资源共享,vmware player全屏等 使用方法: - 拷贝至Linux系统中(可以用U盘,也可以直接下载到Linux系统中) - $ tar xzf VMwareTo ols-9.6.0-1294478.tar.gz - $ cd vmware-tools-distrib - $ sudo ./vmware-install.pl 一路打Enter

2017-10-16

mkbooting和unpackbootimg适用于ubuntu

Android开发时,最标准的做法是重新编译于内核和根文件系统,然后调用Android给的命令行文件mkbootimg(out/host/linux-x86/bin/)来打包。 在制作手机ROM时,有时会单独编译内核或抽出根文件进行修改内容,比如我只编译内核,其余的地方不变。这样重新安装巨大的Android开发环境实在不划算。因此很多boot.img解包工具被人开发出来,这一些工具都是把内核和根文件系统从一个现成的boot.img抽取出来,修发后再次打包还原。

2017-10-11

dragon board 410c 中文开发文档

高通骁龙410C开发板是基于高通400系列处理器的第一块开发板,性能优异,方便调试。它包含先进的电源管理,WIFI 蓝牙,GPS等等,所有都集成在一张信用卡大小的PCB板上。基于64位的410处理器,该开发板支持快速软件开发,可作为样机设计学习参考,并符合消费者96Boards 规范(就是ARM联合Linaro定义的一个以Cortex-A系列处理器开发板为主的ARM开放平台规范,取名96Boards)。这使得它非常易于实现物联网产品的嵌入式计算,包含下一代的机器人,相机,医疗设备,自动售货机,智能建筑,数字标牌,游戏机,等等。 性能特征:支持众多操作系统:安卓5.1&Linux; Kernel3.1,Linux Debian8.0,与WINDOWS 10基于移动物联网核心;性能优异的CPU核心:4核A53能达到1.2GHz,并支持32位与64位;内存存储:1GB LPDDR3 533MHz,8GB eMMC 4.5,SD3.0;图像处理部分:Adreno 306 GPU,支持先进的应用编程接口包含OpenGL ES 3.0, OpenCL, DirectX, 与 content security;视频部分:支持1080P 30帧的高清播放与H.264与H.265 720P的播放与捕获;相机集成ISP能达到13MP;无线部分:支持WIFI 802.11/b/g/n 2.4GHz,蓝牙4.1,Qualcomm® IZat™ Gen8C定位技术,板载WIFI,BT与GPS天线;还拥有丰富的外设有TYPEA HDMI连接器,一个micro usb连接器(只能用在设备模式),两路usb2.0(只能用在主机模式),micro SD卡。

2017-10-11

tiny4412内核补丁dm9621

补丁文件适用于tiny4412 博客链接http://blog.csdn.net/qq_33160790/article/details/77727411

2017-08-31

tiny4412可用的文件系统

ramdisk

2017-08-29

tiny4412 dnw

dnw工具

2017-08-28

dnw工具,配合tiny4412

dnw配合4412使用

2017-08-22

tiny4412 1611uboot

uboot

2017-08-21

安卓框架揭秘

安卓 框架

2017-08-13

SecureCRT8.0 破解版

SecureCRT8.0 破解版

2017-08-10

STM32F10x_StdPeriph_Lib_V3.5.0.rar

STM32F10x_StdPeriph_Lib_V3.5.0.rar

2017-08-05

四轴飞控源码 四元素算法

四轴飞控源码 四元素算法

2017-08-03

4412iROM启动指南

4412iROM启动

2017-07-29

4412用户手册

4412用户手册

2017-07-29

2440英文手册

2440英文手册

2017-07-29

2440中文手册

三星2440的中文手册

2017-07-29

qemu内核调试环境文件系统

BusyBox 是一个集成了三百多个最常用Linux命令和工具的软件。BusyBox 包含了一些简单的工具,例如ls、cat和echo等等,还包含了一些更大、更复杂的工具,例grep、find、mount以及telnet。有些人将 BusyBox 称为 Linux 工具里的瑞士军刀。简单的说BusyBox就好像是个大工具箱,它集成压缩了 Linux 的许多工具和命令,也包含了 Android 系统的自带的shell。

2018-07-25

vim配置for ubuntu

Vim是一个类似于Vi的著名的功能强大、高度可定制的文本编辑器,在Vi的基础上改进和增加了很多特性。 [1] VIM是自由软件。 Vim普遍被推崇为类Vi编辑器中最好的一个,事实上真正的劲敌来自Emacs的不同变体。1999 年Emacs被选为Linuxworld文本编辑分类的优胜者,Vim屈居第二。但在2000年2月Vim赢得了Slashdot Beanie的最佳开放源代码文本编辑器大奖,又将Emacs推至二线, 总的来看, Vim和Emacs在文本编辑方面都是非常优秀的。

2018-07-22

build root 2016

这个工具是build root 2016.05版本,在编译arm linux gcc 6.1时,有一个安装包下载不到,该文件已附上

2018-06-10

linux串口编程

,在Linux系统中设备被以作文件形式存在,所以我们以打开文件的方式访问设备。这里要注意的是普通用户一般不能直接访问设备,需要root权限。

2018-03-23

keil5——51

目前我们通常编写51程序使用的是keil4,而好多编写STM32等单片机程序的使用keil5。那么如何在keil5中兼容51和STM32程序编写,省去切换版本的繁琐呢?

2018-03-22

ucosii demo for stm32f103

ucosii demo for stm32f103 ucosii demo for stm32f103

2018-03-10

STM32F103VET6 usart demo

STM32F103VET6 usart demoSTM32F103VET6 usart demoSTM32F103VET6 usart demoSTM32F103VET6 usart demo

2018-03-10

Micrium_STM32xxx_uCOS-II

μC/OS-II由Micrium公司提供,是一个可移植、可固化的、可裁剪的、占先式多任务实时内核,它适用于多种微处理器,微控制器和数字处理芯片(已经移植到超过100种以上的微处理器应用中)。同时,该系统源代码开放、整洁、一致,注释详尽,适合系统开发。 μC/OS-II已经通过联邦航空局(FAA)商用航行器认证,符合航空无线电技术委员会(RTCA)DO-178B标准。

2018-03-08

Cortex™ -A Series Version: 3.0 Programmer’s Guide

This Cortex-A Series Programmer’s Guide is protected by copyright and the practice or implementation of the information herein may be protected by one or more patents or pending applications. No part of this Cortex-A Series Programmer’s Guide may be reproduced in any form by any means without the express prior written permission of ARM. No license, express or implied, by estoppel or otherwise to any intellectual property rights is granted by this Cortex-A Series Programmer’s Guide. Your access to the information in this Cortex-A Series Programmer’s Guide is conditional upon your acceptance that you will not use or permit others to use the information for the purposes of determining whether implementations of the information herein infringe any third party patents. This Cortex-A Series Programmer’s Guide is provided “as is”. ARM makes no representations or warranties, either express or implied, included but not limited to, warranties of merchantability, fitness for a particular purpose, or non-infringement, that the content of this Cortex-A Series Programmer’s Guide is suitable for any particular purpose or that any practice or implementation of the contents of the Cortex-A Series Programmer’s Guide will not infringe any third party patents, copyrights, trade secrets, or other rights. This Cortex-A Series Programmer’s Guide may include technical inaccuracies or typographical errors. To the extent not prohibited by law, in no event will ARM be liable for any damages, including without limitation any direct loss, lost revenue, lost profits or data, special, indirect, consequential, incidental or punitive damages, however caused and regardless of the theory of liability, arising out of or related to any furnishing, practicing, modifying or any use of this Programmer’s Guide, even if ARM has been advised of the possibility of such damages. The information provided herein is subject to U.S. export control laws, including the U.S. Export Administration Act and its associated regulations, and may be subject to export or import regulations in other countries. You agree to comply fully with all laws and regulations of the United States and other countries (“Export Laws”) to assure that neither the information herein, nor any direct products thereof are; (i) exported, directly or indirectly, in violation of Export Laws, either to any countries that are subject to U.S. export restrictions or to any end user who has been prohibited from participating in the U.S. export transactions by any federal agency of the U.S. government; or (ii) intended to be used for any purpose prohibited by Export Laws, including, without limitation, nuclear, chemical, or biological weapons proliferation. Words and logos marked with ® or ™ are registered trademarks or trademarks of ARM Limited, except as otherwise stated below in this proprietary notice. Other brands and names mentioned herein may be the trademarks of their respective owners. Copyright © 2011, 2012 ARM Limited, 110 Fulbourn Road Cambridge, CB1 9NJ, England This document is Non-Confidential but any disclosure by you is subject to you providing notice to and the

2018-03-08

i2c-tools-distrotech-i2c-tools

I2C TOOLS FOR LINUX =================== This package contains an heterogeneous set of I2C tools for the Linux kernel. These tools were originally part of the lm-sensors project but were finally split into their own package for convenience. They compile, run and have been tested on GNU/Linux. CONTENTS -------- The various tools included in this package are grouped by category, each category has its own sub-directory: * eeprom Perl scripts for decoding different types of EEPROMs (SPD, EDID...) These scripts rely on the "eeprom" kernel driver. They are installed by default. * eepromer Tools for writing to EEPROMs. These tools rely on the "i2c-dev" kernel driver. They are not installed by default. * include C/C++ header files for I2C and SMBus access over i2c-dev. Installed by default. * py-smbus Python wrapper for SMBus access over i2c-dev. Not installed by default. * stub A helper script to use with the i2c-stub kernel driver. Installed by default. * tools I2C device detection and register dump tools. These tools rely on the "i2c-dev" kernel driver. They are installed by default. INSTALLATION ------------ There's no configure script, so simply run "make" to build the tools, and "make install" to install them. You also can use "make uninstall" to remove all the files you installed. By default, files are installed in /usr/local but you can change this behavior by editing the Makefile file and setting prefix to wherever you want. You may change the C compiler and the compilation flags as well. Optionally, you can run "make strip" prior to "make install" if you want smaller binaries. However, be aware that this will prevent any further attempt to debug the programs. If you wish to include sub-directories that are not enabled by default, then just set them via the EXTRA make variable. For example, to build py-smbus, do: $ make EXTRA="py-smbus" DOCUMENTATION ------------- The main tools have manual pages, which are installed by "make install". See these manual pages for command line interface details and tool specific information. The other tools come with simple text documentation, which isn't installed. QUESTIONS AND BUG REPORTS ------------------------- Please post your questions and bug reports to the linux-i2c mailing list: linux-i2c@vger.kernel.org For additional information about this list, see: http://vger.kernel.org/vger-lists.html#linux-i2c

2018-03-07

2440根文件系统

根文件系统首先是内核启动时所mount的第一个文件系统,内核代码映像文件保存在根文件系统中,而系统引导启动程序会在根文件系统挂载之后从中把一些基本的初始化脚本和服务等加载到内存中去运行。

2018-02-07

glibc-2.23.tar.bz2

The GNU C Library version 2.23 is now available From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org> To: GNU C Library <libc-alpha at sourceware dot org> Date: Fri, 19 Feb 2016 10:47:20 -0200 Subject: The GNU C Library version 2.23 is now available Authentication-results: sourceware.org; auth=none The GNU C Library ================= The GNU C Library version 2.23 is now available. The GNU C Library is used as *the* C library in the GNU system and in GNU/Linux systems, as well as many other systems that use Linux as the kernel. The GNU C Library is primarily designed to be a portable and high performance C library. It follows all relevant standards including ISO C11 and POSIX.1-2008. It is also internationalized and has one of the most complete internationalization interfaces known.

2018-02-05

QEMU使用手册

QEMU是一套由法布里斯·贝拉(Fabrice Bellard)所编写的以GPL许可证分发源码的模拟处理器,在GNU/Linux平台上使用广泛。Bochs,PearPC等与其类似,但不具备其许多特性,比如高速度及跨平台的特性,通过KQEMU这个闭源的加速器,QEMU能模拟至接近真实电脑的速度。 目前,0.9.1及之前版本的qemu可以使用kqemu加速器。在qemu1.0之后的版本,都无法使用kqemu,主要利用qemu-kvm加速模块,并且加速效果以及稳定性明显好于kqemu。

2018-02-03

jz2440 u'boot

U-Boot,全称 Universal Boot Loader,是遵循GPL条款的开放源码项目。U-Boot的作用是系统引导。U-Boot从FADSROM、8xxROM、PPCBOOT逐步发展演化而来。其源码目录、编译形式与Linux内核很相似,事实上,不少U-Boot源码就是根据相应的Linux内核源程序进行简化而形成的,尤其是一些设备的驱动程序,这从U-Boot源码的注释中能体现这一点。

2018-01-21

工程文件....

Linux的第一个公开版本是1991年10月的0.02版本,两个月以后,在1991年12月,Linux发布了0.11版本,这是第一个可以不依赖于Minix就可以使用的独立内核。 0.12版本发布一个月以后,在3月,版本号跳到了0.95,反映出系统正变得成熟,不仅如此,直到两年后,也就是1994年3月,具有里程碑意义的1.0.0才完成。 大约从这时起开始使用两“路”编号方法标注内核的开发,偶数号的内核 理解linux内核 理解linux内核 (比如1.0、2.2、2.4、2.6)是稳定的,“产品”型号,同时,奇数号的内核版本(1.1、2.3)是前沿的或者“发展中的”内核。一个稳定的内核发布以后几个月就开始新内核的开发工作。然而,2.5的开发工作是在2.4完成后几十个月以后才开始的。[

2018-01-13

jz2440使用的kernel

内核是操作系统最基本的部分。它是为众多应用程序提供对计算机硬件的安全访问的一部分软件,这种访问是有限的,并且内核决定一个程序在什么时候对某部分硬件操作多长时间。内核的分类可分为单内核和双内核以及微内核。严格地说,内核并不是计算机系统中必要的组成部分。

2018-01-13

Jz2440v2对应的uboot

在嵌入式操作系统中,BootLoader是在操作系统内核运行之前运行。可以初始化硬件设备、建立内存空间映射图,从而将系统的软硬件环境带到一个合适状态,以便为最终调用操作系统内核准备好正确的环境。在嵌入式系统中,通常并没有像BIOS那样的固件程序(注,有的嵌入式CPU也会内嵌一段短小的启动程序),因此整个系统的加载启动任务就完全由BootLoader来完成。在一个基于ARM7TDMI core的嵌入式系统中,系统在上电或复位时通常都从地址0x00000000处开始执行,而在这个地址处安排的通常就是系统的BootLoader程序。

2018-01-13

空空如也

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

TA关注的人

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