学生时代
shixha
这个作者很懒,什么都没留下…
展开
-
mdev/udev 自动创建设备节点
设备节点创建有两种方法:1.手动创建 mknod 节点名 c 主设备号 次设备号2.自动创建Linux /dev 自动创建设备节点 http://blog.csdn.net/weed_hz/article/details/8960418udev入门 http://blog.csdn.net/ce123_zhouwei/article/details/6714970...转载 2014-04-08 16:50:50 · 787 阅读 · 0 评论 -
Compile for old-kernel Linux
Firstly, we need the suitable Glibc versionMy target Linux with kernel-2.6.9, and my host is Kernel-2.6.32, so I can use Glibc version 2.12.1Infomation from the project Readme :When working with...原创 2014-02-19 15:39:28 · 1066 阅读 · 0 评论 -
gcc: c-parse.c: No such file or directory
reprot when build gcc3.4.6solved a post by Altera Forum It can be solved by modifying file nios2-linux/gcc3/gcc/c-parse.y. From the line 1650, 1661, 1670 and 1675 modify $$ to $<ttype>$. For...原创 2014-03-07 19:50:43 · 1128 阅读 · 1 评论 -
ERROR: certificate common name
the ceritificate problem when i use wget a file from java websidereason is wget before 1.12.1 do not support the Server Alternative Names extensionwget --version //check the version so just...原创 2014-03-07 20:14:07 · 2742 阅读 · 0 评论 -
WARNING: `makeinfo' is missing on your system.
WARNING: `makeinfo' is missing on your system. You should only need it if you modified a `.texi' or `.texinfo' file, or any other file indirectly affecting the aspect of the manual....原创 2014-03-07 21:55:11 · 8006 阅读 · 0 评论 -
VMware虚拟机 ping出现 DUP!
用nat方式上网,vmnet1启用shared链接vmnet8,这样设置的原因是为了用xhshell登录虚拟机 ping 外网, 还是ping 网关都出现DUP! 解决办法也奇怪,禁用下vmnat8,然后重启, 就好了 ...原创 2014-03-12 10:54:22 · 3026 阅读 · 0 评论 -
linux驱动头文件说明
From http://blog.csdn.net/wanghanjiett/article/details/6791593#include <linux/***.h> 是在linux-2.6.29/include/linux下面寻找源文件。#include <asm/***.h> 是在linux-2.6.29/arch/arm/include/asm下面寻找源文件。...转载 2014-03-18 19:17:52 · 522 阅读 · 0 评论 -
NIOS2 uCLinux-mmu 驱动之hello_world
(1)linux-2.6/drivers/目录下,新建mymodule文件夹 (2)hello_world.c#include <linux/init.h>#include <linux/module.h> #include <linux/kernel.h> //驱动最基本的3个头文件MODULE_LICENSE("GPL"); //GP...原创 2014-03-24 19:27:40 · 716 阅读 · 0 评论 -
dev_t
description: the dev_t type in is used to hold device numbers—both the major and minor parts.header: #include <linux/types.h>constructor: MKDEV(int major, int minor);method: ...转载 2014-04-08 19:25:40 · 875 阅读 · 0 评论 -
C macros __LINE__, __FILE__ and __func__
http://www.lemoda.net/c/line-file-func/index.html转载 2014-04-08 19:34:17 · 471 阅读 · 0 评论 -
ioctl
Linux设备驱动之Ioctl控制 http://www.cnblogs.com/geneil/archive/2011/12/04/2275372.htmlioctl的实现 http://blog.chinaunix.net/uid-25014876-id-59419.html 在kernel 2.6.36 中已经完全删除了struct file_operations 中的i...转载 2014-04-08 23:14:23 · 509 阅读 · 0 评论 -
POSIX Threads Programming
点击打开链接转载 2014-02-18 19:15:02 · 536 阅读 · 0 评论 -
Error: Trying to remove "yum", which is protected
原因yum-plugin-protect-packages默认包含在yum中,避免 yum 软件包或其它 yum 所依赖的软件包被移除,它也能避免许多系统运行所必要的软件包被移除可以通过 rpm -e -nodep XXX 强行卸载 Referencehttp://docs.fedoraproject.org/en-US/Fedora/14/html/Software_Ma...原创 2014-02-18 14:44:13 · 7552 阅读 · 0 评论 -
源码安装GCC
CentOS 6.5, odd gcc4.471.download gcc-4.8.22.make sure gmp,mpfr,mpc is ready3. ./configure --prefix=/usr/local/gcc-4.8.2/ --enable-threads=posix --disable-checking --enable--long-long --ena...原创 2014-02-17 22:48:20 · 677 阅读 · 0 评论 -
SPI驱动注册
Linux SPI 驱动注册流程简析 http://blog.csdn.net/liangzhenliang/article/details/17115527转载 2014-04-16 10:44:28 · 611 阅读 · 0 评论 -
Cadence 图形界面终于可以显示了
*WARNING* X Window Display Initialization failure登HP-UX时,Xwindow总是失败,进不了cadence的GUI界面。困扰了好几天的问题,终于解决了。。。。原来时ssh的问题,看原文如下: I had the same problem when I upgraded to RHEL4. It turns out that t...原创 2013-04-07 23:08:31 · 6834 阅读 · 3 评论 -
LAMMPS安装总结
硬件: SMP服务器, 4个CPU(XeonE7450), 内存64G,ATI显卡软件:Red Hat Enterprise 4, gcc3.4.6 前言: 由于服务器比较老,而且我没有root权限,安装起来很不方便,各种软件和库都没有,都是下载后手工编译安装的,用了3天时间,除了GPU和CUDA因为是ATI显卡的原因无法安装外,成功安装了各个包Installed YES: pac...原创 2013-08-30 21:28:19 · 7398 阅读 · 0 评论 -
VASP安装总结
VASP原来很小,安装也很简单,配置好openMPI,FFTW3,GotoBLAS,和自带的lapack包,相应修改makefile,makeok! //Today is my lucky Day. 一点注意,各种lib的路径要写绝对路径,这样编译好的vasp可执行程序,可移植性好. 明天网上再找找,赝势和PAW库. ...原创 2013-09-06 22:20:59 · 1568 阅读 · 0 评论 -
段错误原因
转载 http://www.cnblogs.com/Parallel-Life/p/3174187.htmlSegmentation Fault产生根本原因前言本文译自Intel® Developer Zone上文章Determining Root Cause of Segmentation Faults SIGSEGV or SIGBUS errors。正文问题:当我运行由I...转载 2013-09-14 10:04:46 · 1647 阅读 · 0 评论 -
xshell远程登录linux主机中文乱码
[文件]-->[打开]-->在打开的session中选择连接的那个 ,点击properties -> [Terminal ] ,在右边的translation(我的是encoding,就是改个编码而已)先选择utf8就可以啦....转载 2013-12-09 21:22:00 · 622 阅读 · 0 评论 -
Centos破解root密码
Linux安装完毕后会有一个linux root用户。那么如何在不知道密码的情况下修改掉linux root用户的密码呢?本系统使用RedHat Linux 安装环境是vmware 6.0 使用GRUB引导。方法如下:1.在grub引导界面中按“e”进入grub的编辑模式。2.编辑模式下选择第二项,即:“kernel /vmlinuz-2.4.20-8 ro root=LABEL=/”...转载 2013-12-09 21:27:59 · 584 阅读 · 0 评论 -
ELF格式文件符号表全解析及readelf命令使用方法
http://blog.csdn.net/edonlii/article/details/8779075转载 2014-02-17 17:42:35 · 657 阅读 · 0 评论 -
sed的用法
转载:http://blog.csdn.net/zg_hover/article/details/1804481通过例子学习sed的用法1,sed介绍 sed可删除(delete)、改变(change)、添加(append)、插入(insert)、合、交换文件中的资料行,或读入其它档的资料到文>件中,也可替换(substuite)它们其中的字串、或转换(tranfer)其中的字母等...转载 2014-02-17 21:51:21 · 549 阅读 · 0 评论 -
awk教程
转载:http://blog.csdn.net/zg_hover/article/details/5044195 awk教程awk的基本功能是对文件进行指定规则浏览和抽取信息。基本格式:(1) awk [-F 分隔域] 'command' input-file(s)(2) 写入shell脚本中(3) awk -f awk-script-file input-file(s)注意...转载 2014-02-17 21:54:51 · 1053 阅读 · 0 评论 -
NIOS2 uCLinux-mmu驱动之LED
功能: 通过一个ioctl控制4个LED灯的开关myled.c #include <linux/init.h>#include <linux/module.h>#include <linux/kernel.h>#include <linux/fs.h>#include <linux/errno.h>#include...原创 2014-04-09 10:17:33 · 610 阅读 · 0 评论 -
ioremap
Linux内核中ioremap映射的透彻理解 http://blog.csdn.net/do2jiang/article/details/5450839转载 2014-04-09 15:49:09 · 466 阅读 · 0 评论 -
python之蟒开启理论计算化学的新时代
From http://blog.sina.com.cn/s/blog_3dbbd3c70101upyk.html 首先谈一下个人的理论化学经历。由于本人是在一个实验为主的小组做计算,所做的课题又多次更换,所以学的软件用的方法都比较杂。在使用各种软件的过程中发 现,虽然现在有很多商业的或者开源的软件可以傻瓜式完成计算任务,但有个过程还是避免不了的:数据处理以及做图。数据处理有时需要编程去...转载 2014-06-11 19:45:34 · 961 阅读 · 0 评论 -
Linux内核设备驱动注册
platform_device与platform_driver http://blog.csdn.net/zhandoushi1982/article/details/5130207 引入Devicetree后改变platform_device会由kernel自动展开,调用of_platform_bus_probe(NULL, xxx_of_bus_ids, NULL);即可...转载 2014-12-24 14:35:27 · 563 阅读 · 0 评论 -
linux应用--硬件信息查看
linux应用--硬件信息查看1, 主板信息.查看主板的序列号--------------------------------------------------#使用命令dmidecode | grep -i 'serial number'#查看板卡信息cat /proc/pci--------------------------------------------------...转载 2014-12-24 14:47:09 · 501 阅读 · 0 评论 -
让source insight 支持verilog HDL-强大,牛
转自:http://blog.csdn.net/rill_zhen/article/details/7793142 引言工欲善其事,必先利其器。最近用verilog在FPGA上做一个简易的计算器,整个工程由6个模块组成,之前写的代码都是很小的,模块也很少,一般就一两个,没感觉出别扭。但是模块多了就发现,模块之间的关系就比较复杂,例化一个module时,要反复查看模块的接口,这要反复打开...转载 2014-12-24 14:48:34 · 4022 阅读 · 0 评论 -
Shell基础
>all_result 2>& 1 重定向标准错误到标准输出>& all_result 2>/dev/null 忽略标准错误变量名不能含有 "-" 等保留字符,也不能含有空格变量赋值时,'='左右两边都不能有空格local HELLO=World 局部变量浮点运算echo "scale=3; 1.55 * 1.55 " | bc浮点比较...原创 2014-12-24 14:56:38 · 428 阅读 · 0 评论 -
linux软件安装
yum>RPM包>源码安装安装开发工具:yum groupinstall "Development Tools"yum updateyum searchyum installyum remove xxxyum list installed下载fastestmirror插件,它会自动选择最快的mirror:#yum install yum-plugin-fastestmi...原创 2014-12-24 15:07:17 · 585 阅读 · 0 评论 -
linux系统相关
ls -lah实时查看cpu:top <空格>:立刻刷新。 P:根据CPU使用大小进行排序 M:根据使用内存大小进行排序 T:根据时间、累计时间排序。 q:退出top命令。 m:切换显示内存信息。 t:切换显示进程和CPU状态信息。内存查看free -mshutdown -h/rhaltrebootpoweroffroot用户:...原创 2014-12-24 15:08:54 · 512 阅读 · 0 评论 -
grep用法
grep -A 后面几行grep -B 前面几行grep -C 前后几行grep -v 不匹配grep -e -e 多关键字匹配 ls | grep -v keep | xargs rm #删除keep文件之外的所有文件...原创 2014-12-24 15:10:07 · 437 阅读 · 0 评论 -
find用法
find . -maxdepth 1 -mtime +365 -type d |xargs rm -r原创 2014-12-24 15:11:34 · 621 阅读 · 0 评论 -
python基础
安装python模块python setup.py install --prefix=XXX原创 2014-12-24 15:12:31 · 489 阅读 · 0 评论 -
NIOS2 Linux 启动过程
概述1 BootloaderCPU上电复位, 从NOR Flash物理地址0x00000000启动拷贝内核镜像到ram高位地址传dtb给内核,传启动参数给内核跳转到压缩镜像入口2 linux/arch/nios2/boot/compressed/head.S 进入__start关闭中断使指令和数据cache无效 解压内核镜像到低地址 初始化指令和数据c...原创 2014-04-18 09:00:53 · 1079 阅读 · 0 评论 -
vmlinux.lds.S
Linux Kernel系列三:Kernel编译和链接中的linker script语法详解http://blog.csdn.net/innost/article/details/6730660转载 2014-04-17 20:52:01 · 537 阅读 · 0 评论 -
Linux内核源代码的结构
kernel v2.6.39-nios2 ?..? arch //包括了所有和体系结构相关的核心代码。它下面的每一个子目录都代表一种Linux支持的体系结构,例如i386就是Intel CPU及与之相兼容体系结构的子目录?..? block //块设备驱动. 2.6.15之后?..? COPYING?..? CREDITS?..? crypto //内核本身所用的加密API...原创 2014-04-17 15:25:40 · 587 阅读 · 0 评论 -
IO函数
open()等基本函数 http://blog.csdn.net/mybelief321/article/details/8989755转载 2014-04-10 10:20:29 · 446 阅读 · 0 评论