在s3c2410上运行linux的方法
1. 准备工作:
开发板的ip设置
gzsd> net set ipaddr 192.168.0.11 设置开发板的IP
gzsd> net set serverip 192.169.0.10 设置tftp server的IP
gzsd> net set netmask 255.255.255.0 设置子网掩码
gzsd> net save 保存设置
gzsd> net ping XXX 测试连接状况
安装tftp服务器
windows下
运行光盘工具目录下的TFTPSRV.exe
c:\>TFTPSRV.exe dc:\
用d参数来设置根目录。
linux下
#setup
在System services中选择tftp,保存重启。
tftp server的配置文件为/etc/xinetd.d/tftp,可以在里面设置tftp server的根目录
另外需要关闭防火墙
#chkconfig iptables off (重启后生效)
#service iptables stop (即时生效,重启后失效)
安装NFS服务器
/etc/exports
+ /home/s3c2410/nfs 192.168.0.11(rw,sync,no_root_squash)
参数含义:首先是指定nfs的目录,ip地址为可以访问这个目录的ip地址
rw,可以读写。
编辑完那个文件后运行命令:
#exportfs -rav
#/etc/init.d/nfs start|restart
挂接方法:
mount -t nfs 192.168.0.12:/home/s3c2410/nfs /tmp
2. 分区
gzsd> part add kernel 0x00030000 0x001c0000 0
该文区存放内核
gzsd> part add root 0x00200000 0x00200000 0
该分区存放根文件系统
gzsd> part add usr 0x00400000 0x03cf8000 0
该分区存放应用程序,usr分区我们挂载的是可写的yaffs文件系统
gzsd> part save
保存分区信息
3. 设置lcd输出模式和系统自动启动的操作系统模式
gzsd> param set distype 1
gzsd> param set ostype 1
gzsd> param save
ostype: 1 linux 2 wince
distype: 0 lcd 1 vga 2 tv 640X400 3 tv 640X480
4. 将内核和根文件系统烧入flash
tftp server ip: 192.168.0.10
开发板ip: 192.168.0.12
本文不介绍内核与根文件系统的编译,所以直接使用光盘中提供的内核与根文件系统文件
将光盘linux/image中的root_china.cramfs和zImage拷贝到PC tftp根目录下。
然后下载到开发板并烧入
gzsd> net tftp 192.168.0.10 30008000 zImage
gzsd> net flash kernel
gzsd> net tftp 192.168.0.10 30008000 root_china.cramfs
gzsd> net flash root
此时升级vivi也可以通过tftp方式:
gzsd> net tftp 192.168.0.10 30008000 vivi
gzsd> net flash vivi
最后设置下linux的启动参数:
gzsd> param set linux_cmd_line "noinitrd
相关文档:
例一:发送Signaling Packet:
Signaling Command是2个Bluetooth实体之间的L2CAP层命令传输。所以得Signaling Command使用CID 0x0001.
多个Command可以在一个C-frame(control frame)中发送。
如果要直接发送Signaling Command.需要建立SOCK_RAW类型的L2CAP连接Socket。这样才有机会自己填充Command Code,Identi ......
一:前言
最近在研究android的sensor driver,主要是E-compass,其中用到了Linux input子系统.在网上也看了很多这方面的资料,感觉还是这篇分析的比较细致透彻,因此转载一下以便自己学习,同时和大家分享!
(这篇博客主要是以键盘驱动为例的,不过讲解的是Linux Input Subsystem,可以仔细的研究一下!)
键盘驱动将检 ......
Filename
:
[Linux]GNU
自动化工具(
automake
工具链)
Version
:
V1.0
Date
:
12/01/2009
Author
:
S.C.Leon <leonsc@126.com>
=====================================================================
GNU
自动化工具(
automake
工具链)
一、
Makefile
介绍
Makefile
是 ......
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <time.h>
#include <unistd.h>
#include <signal.h>
static char *runStatusFile = "/syscfg/etc/runStatusFile";
FILE *pFile = NUL ......