自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (8)
  • 收藏
  • 关注

原创 ***没有规则可以创建“XXX”需要的目标“XXX”问题的解决方案

在第4季 上学期  专题2-U-Boot新手入门中,1,在Linux中解压uboot_tq2440.tar.gz2,tar xvzf uboot_tq2440.tar.gz3,进入 uboot_tq2440/ 4,make TQ2440_config  (对TQ2440开发板进行配置)5,make ARCH=arm CROSS_COMPILE=arm-linux-   (进行编

2015-06-29 19:44:47 20470

转载 时间编程--gettimeofday(获取高精度时间)

#include <stdio.h>#include <sys/time.h>/***********************name:gettimeofday.c*author:QG*time:2015-05-13*description:***********************/int main(){ //struct timeval *tv; struct

2015-06-21 19:19:56 861

转载 时间编程--asctime(以字符串方式显示时间)

#include <stdio.h>#include <time.h>/*************************name:asctime.c*author:QG*time:2015-05-13*description:****************************/int main(){ struct tm *c_tm; time_t c_time

2015-06-21 19:18:54 455

转载 时间编程 --localtime(获取本地时间)

#include <stdio.h>#include <time.h>/**************************name:localtime.c*author:QG*time:2015-05-13*description:**************************/int main(){ struct tm *c_tm; time_t c_time

2015-06-21 19:17:56 708

转载 时间编程--获取格林威治时间 gmtime

#include <stdio.h>#include <time.h>/***********************name:gmtime.c*author:QG*time:2015-05-12*description:**********************/int main(){ time_t c_time; struct tm *c_tm; c_t

2015-06-21 19:16:41 1105

转载 时间编程--time

#include <stdio.h>#include <time.h>/************************name:time.c*author:QG*time:2015-05-12*description:***************************/int main(){ time_t c_time; c_time = time(NULL);

2015-06-21 19:15:53 314

转载 库函数调用 --综合实例(文件copy)

#include <stdio.h>/******************name:file_cp.c*author:QG*time:2015-05-12*description:********************/int main(int arge,char **argv){ FILE *fp_in; FILE *fp_out; char buf[1024

2015-06-21 19:13:48 458

转载 库函数调用 5--fseek

#include <stdio.h>/****************************name:fseek.c*author:QG*time :2015-05-12*description:****************************/int main(){ FILE *fp_in; char *in_file_name = "./123.txt";

2015-06-21 19:12:53 312

转载 库函数调用 4--fwrite

#include <stdio.h>/*************************name:fwrite.c*author:QG*time:2015-05-12*description:***************************/int main(){ FILE *fp_in; FILE *fp_out; char *in_file_name =

2015-06-21 19:12:06 368

转载 库函数调用 3--fread

#include <stdio.h>/********************name:fread.c*author:QG*time:2015-05-12*description:read a item from a file.********************/int main(){ FILE *fp; char c_buf[11]; int a = 1

2015-06-21 19:11:21 401

转载 库函数调用 2--fclose

#include <stdio.h>/************************name:fclose.c*author:QG*time:2015-05-12*description:************************/int main(){ FILE *fp; char *file_name = "./123.txt"; int a

2015-06-21 19:10:31 336

转载 库函数调用 1--fopen

#include <stdio.h>/********************name:fopen.c*author:QG*time :2015-05-12*description:try to open a file for reading and writing,the file will be created if it does not exist. **************

2015-06-21 19:09:53 366

转载 系统调用 8--综合实例(txt_to_txt)

#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>/************************file:txt_to_txt.c*author:QG*time:2015-05-11*description:read datas fro

2015-06-21 19:08:22 325

转载 系统调用 7--综合实例1(文件复制)

#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>/*********************************file:file_cp.c*author:QG*time:2015-05-11*description:******

2015-06-21 19:07:20 478

转载 系统调用 6--lseek

#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>/**********************file: lseek.c*author:QG*time:2015-05-11*description:*******************

2015-06-21 19:04:54 422

转载 系统调用 5--write

#include <stdio.h>#include <sys/stat.h>#include <sys/types.h>#include <fcntl.h>#include <unistd.h>/**************************file:write.c*author:QG*time:2015-05-11*description:***************

2015-06-21 19:04:03 439

转载 系统调用 4--read

#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>/***********************************file:read.c*author:QG*time:2015-05-10*description:********

2015-06-21 19:02:51 407

转载 系统调用3--close

#include #include #include #include #include /*******************************file:close.c*author:QG*time:2015-05-10*note:********************************/int main(){ char *pt = ".

2015-06-21 18:59:32 347

转载 系统调用2 --creat

#include #include #include #include /************************************fie:creat.c*author:QG*time:2015-05-10*note:exercise the function of creat***********************************/int

2015-06-21 18:58:36 478

转载 系统调用1--open函数的使用

#include #include #include #include /************************************fie:open.c*author:QG*time:2015-05-10*note:exercise the function of open***********************************/void main(){ //char

2015-06-21 18:55:34 377

原创 试题1

Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference between nums[i] andnums[j] is at most t and the difference between i and

2015-06-01 18:02:42 386

Flex_&_Bison.zip

介绍Flex及Bison使用的高清pdf。

2021-04-21

Linux’s IPsec implementation.pdf

描述IPsec 在Linux下的实现及背景内容,包含Linux下IPsec工具,内核IPsec支持等内容。

2021-04-21

the java programming language fourth editionArnoldGoslingHolmes06

the java programming language fourth editionArnoldGoslingHolmes06 Direct from the creators of the Java™ programming language, the completely revised fourth edition of The Java™ Programming Language is an indispensable resource for novice and advanced programmers alike. <br/> <br/>Developers around the world have used previous editions to quickly gain a deep understanding of the Java programming language, its design goals, and how to use it most effectively in real-world development. Now, Ken Arnold, James Gosling, and David Holmes have updated this classic to reflect the major enhancements in Java™ 2 Standard Edition 5.0 (J2SE™ 5.0). <br/> <br/>The authors systematically cover most classes in Java's main packages, java.lang.*, java.util, and java.io, presenting in-depth explanations of why these classes work as they do, with informative examples. Several new chapters and major sections have been added, and every chapter has been updated to reflect today's best practices for building robust, efficient, and maintainable Java software.

2014-08-30

vivi-boot loader

初始化本阶段要使用到的硬件设备。 检测系统内存映射(memory map)。 将 kernel 映像和根文件系统映像从 flash 上读到 RAM 空间中。 为内核设置启动参数。 调用内核。 1.1 Boot Loader 的 stage1 1.1.1 基本的硬件初始化 这是 Boot Loader 一开始就执行的操作,其目的是为 stage2 的执行以及随后的 kernel 的执行准备好一些基本的硬件环境。它通常包括以下步骤(以执行的先后顺序): 1. 屏蔽所有的中断。为中断提供服务通常是 OS 设备驱动程序的责任,因此在 Boot Loader 的执行全过程中可以不必响应任何中断。中断屏蔽可以通过写 CPU 的中断屏蔽寄存器或状态寄存器(比如 ARM 的 CPSR 寄存器)来完成。 2. 设置 CPU 的速度和时钟频率。 3. RAM 初始化。包括正确地设置系统的内存控制器的功能寄存器以及各内存库控制寄存器等。 4. 初始化 LED。典型地,通过 GPIO 来驱动 LED,其目的是表明系统的状态是 OK 还是 Error。如果板子上没有 LED,那么也可以通过初始化 UART 向串口打印 Boot Loader 的 Logo 字符信息来完成这一点。 5. 关闭 CPU 内部指令/数据 cache。 VIVI在第一阶段完成以下任务

2014-08-30

BootLoader技术内幕

本文详细地介绍了基于嵌入式系统中的 OS 启动加载程序 ―― Boot Loader 的概念、软 件设计的主要任务以及结构框架等内容。 一、引言 在专用的嵌入式板子运行 GNU/Linux 系统已经变得越来越流行。一个嵌入式 Linux 系统 从软件的角度看通常可以分为四个层次: 1. 引导加载程序。包括固化在固件(firmware)中的 boot 代码(可选),和 Boot Loader 两大部分。 2. Linux 内核。特定于嵌入式板子的定制内核以及内核的启动参数。 3. 文件系统。包括根文件系统和建立于 Flash 内存设备之上文件系统。通常用 ram disk 来作为 root fs。 4. 用户应用程序。特定于用户的应用程序。有时在用户应用程序和内核层之间可能还会包 括一个嵌入式图形用户界面。常用的嵌入式 GUI 有:MicroWindows 和 MiniGUI 懂。 引导加载程序是系统加电后运行的第一段软件代码。回忆一下 PC 的体系结构我们可以知 道,PC 机中的引导加载程序由 BIOS(其本质就是一段固件程序)和位于硬盘 MBR 中的 OS Boot Loader(比如,LILO 和 GRUB 等)一起组成。BIOS 在完成硬件检测和资源分配后 ,将硬盘 MBR 中的 Boot Loader 读到系统的 RAM 中,然后将控制权交给 OS Boot Load er。Boot Loader 的主要运行任务就是将内核映象从硬盘上读到 RAM 中,然后跳转到内核 的入口点去运行,也即开始启动操作系统。

2014-08-30

ascii-码表

ASCII码使用指定的7位或8位二进制数组合来表示128或256种可能的字符。标准ASCII码也叫基础ASCII码,使用7位二进制数来表示所有的大写和小写字母,数字0到9、标点符号,以及在美式英语中使用的特殊控制字符(这里需要特别注意:ASCII码与标准ASCII码的位数上的区分,标准ASCII码是7位二进制表示)。 十进制编码 (对应)缩写字符(或功能/解释) 0 NUL(null) 空字符 1 SOH(start of headline) 标题开始 2 STX (start of text) 正文开始 3 ETX(end of text) 正文结束 4 EOT (end of transmission) 传输结束 5 ENQ (enquiry) 请求 6 ACK (acknowledge) 收到通知 7 BEL (bell) 响铃 8 BS (backspace) 退格 9 HT (horizontal tab) 水平制表符 10 LF (NL line feed, new line) 换行键 11 VT (vertical tab) 垂直制表符 12 FF (NP form feed, new page) 换页键 13 CR (carriage return) 回车键 14 SO (shift out) 不用切换 15 SI (shift in) 启用切换 16 DLE (data link escape) 数据链路转义 17 DC1 (device control 1) 设备控制1 18 DC2 (device control 2) 设备控制2 19 DC3 (device control 3) 设备控制3 20 DC4 (device control 4) 设备控制4 21 NAK (negative acknowledge) 拒绝接收 22 SYN (synchronous idle) 同步空闲 23 ETB (end of trans. block) 传输块结束 24 CAN (cancel) 取消 25 EM (end of medium) 介质中断 26 SUB (substitute) 替补 27 ESC (escape) 换码(溢出) 28 FS (file separator) 文件分割符 29 GS (group separator) 分组符 30 RS (record separator) 记录分离符 31 US (unit separator) 单元分隔符 32 space 空格 33 ! 34 " 35 # 36 $ 37 %

2014-08-30

国嵌_嵌入式Linux入门班实验手册

l 实验1(1-1-1):Linux定制安装 l 实验2(1-1-2):Linux常见命令使用 l 实验3(1-1-3):Vi使用 l 实验4(1-2-1):tftp服务器 l 实验5(1-2-2):NFS服务器 l 实验6(1-2-3):Samba服务器 l 实验7(1-2-4):防火墙设置 l 实验8(1-2-5):wireshark网络分析 l 实验9(1-2-6):脚本编程-脚本参数 l 实验10(1-2-7):脚本编程-统计文件 l 实验11(1-2-8):脚本编程-倒序输出 l 实验12(1-2-9):脚本编程-监视文件 l 实验13(1-2-10):脚本编程-qcd l 实验14(1-3-1):Gcc程序编译 l 实验15(1-3-2):GDB程序调试 l 实验16(1-3-3):Makefile 第二阶段 应用程序设计 l 实验17(2-1-1):文件编程-文件创建 l 实验18(2-1-2):文件编程综合实例-文件拷贝 l 实验19(2-1-3):时间编程-获取本地时间 l 实验20(2-2-1):fork创建子进程 l 实验21(2-2-2):vfork创建子进程 l 实验22(2-2-3):exec函数族 l 实验23(2-2-4):进程等待 l 实验24(2-3-1):无名管道 l 实验25(2-3-2):有名管道 l 实验26(2-3-3):信号处理 l 实验27(2-3-4):共享内存 l 实验28(2-4-1):消息队列 l 实验29(2-5-1):创建线程 l 实验30(2-5-2):线程等待 l 实验31(2-5-3):线程退出保护设计 l 实验32(2-6-1):TCP程序设计 l 实验33(2-6-2):UDP程序设计 l 实验34(2-6-3):并发服务器设计 第三阶段 ARM程序设计 l 实验35(3-1-1):ARM汇编编程-寄存器访问 l 实验36(3-1-2):ARM汇编编程-算术运算 l 实验37(3-1-3):ARM汇编编程-寻址方式 l 实验38(3-1-4):ARM汇编编程-逻辑控制 l 实验39(3-1-5):ARM汇编编程-模式切换 l 实验40(3-1-6):ARM/C混合编程 l 实验41(3-2-1):ARM综合实验-跑马灯设计 l 实验42(3-2-2):ARM综合实验-控制LED 第四阶段 Linux内核开发 l 实验43(4-1-1):内核裁剪与安装 l 实验44(4-1-2):内核模块设计 l 实验45(4-1-3):内核模块参数 l 实验46(4-1-4):内核符号输出 l 实验47(4-2-1):交叉工具链 l 实验48(4-2-2):U-Boot编译 l 实验49(4-2-3):U-Boot命令 l 实验50(4-2-4):U-Boot芯片级移植 l 实验51(4-2-5):U-Boot网卡驱动设计 l 实验52(4-2-6):U-Boot Flash驱动设计 l 实验53(4-3-1):嵌入式内核制作 l 实验54(4-3-2):根文件系统制作 l 实验55(4-3-3):NFS启动内核 l 实验56(4-3-4):Ramdisk启动内核 l 实验57(4-3-5):InitRamFS启动内核 l 实验58(4-3-6):U-Boot自主启动 l 实验59(4-4-1):内核内存分配 l 实验60(4-4-2):内核链表 l 实验61(4-4-3):内核定时器 l 实验62(4-5-1):实现系统调用 l 实验63(4-5-2):Proc文件系统 l 实验64(4-5-3):Oops 异常分析 第五阶段 Linux驱动程序设计 l 实验65(5-1-1):字符设备驱动程序设计 l 实验66(5-1-2):竞争控制 l 实验67(5-2-1):Ioctl设备控制 l 实验68(5-2-3):阻塞型设备驱动 l 实验69(5-2-3):Poll设备操作 l 实验70(5-2-4):自动创建设备文件 l 实验71(5-3-1):Mmap设备操作 l 实验72(5-3-2):LED驱动程序设计 l 实验73(5-4-1):Sys 文件系统 l 实验74(5-4-2):总线设备驱动模型-总线操作 l 实验75(5-4-2):总线设备驱动模型-设备操作 l 实验76(5-4-3):总线设备驱动模型-驱动操作 l 实验77(5-4-4):platform模式按键驱动设计 l 实验78(5-5-1):DM9000网卡驱动分析 l 实验79(5-5-2):回环网卡驱动设计 l 实验80(5-5-3):输入型(input)按键驱动 l 实验81(5-5-4):触摸屏驱动设计 l 实验82(5-6-1):RTL-8139 PCI网卡驱动设计

2014-08-30

空空如也

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

TA关注的人

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