当前位置:首页 » 专业资讯
开发技术指南» 文章正文
    引言: 1 preparationmy board is s3c2410
 

 

 ·围棋天才的另一面    »显示摘要«
    摘要:专注的重要性本月初,中国三位棋手出征富士通杯世界围棋八强战,结果全军覆没,其中目前在国内等级分排名第一、最让人期待的古力输给了状态很差的宋泰坤,令重庆队主教练杨一非常恼火:“古力已经22岁了,可是他的性格还很不成熟。   他的爱好太多,有时候还是管不住自己。”——爱好太多不好吗?小学老师不是一直鼓励我们要爱好广泛吗?我该如何处理我的爱好?   也许古力只能自怨:为什么自己是一个“天才”而不是一个平常人?也许他和国内其他几个同样被冠为“天才”的前......
 ·software raid for linux    »显示摘要«
    摘要:software raid for linuxhttp://andyy2573.52blog.net/more.html?name=kernel&id=174024我想大家也聽過raid 吧! 它能夠保護你的資料, 或是增加讀取的效能,或是把數個硬碟結合在一起。正如大家所知道raid 也有hardware raid 和software raid 之分。hardware raid 是透過硬體的支援令os 認為它是一個device。而software ......


port linux 2.6.11.7 kernel to s3c2410(SMDK2410)
1 preparation

my board is s3c2410 smdk2410 【相关文章:惊艳>>>>红旗5

【扩展阅读:New life begin...

a>download kernel 【扩展信息:[原创]我的校园网认证之路!

http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.11.7.tar.gz

decompress and no patch is needed

b>install the gcc compiler

ftp://ftp.handhelds.org/projects/toolchain/arm-linux-gcc-3.4.1.tar.bz2

2 modify kernel source

a>add your nand flash partition information

modify the arch/arm/mach-s3c2410/devs.c file

for example:

/***********add here*************/

#include <linux/mtd/partitions.h>

#include <asm/arch/nand.h>

#include <linux/mtd/nand.h>

/***********end add*************/

...

/*****************************add here***************************/

static struct mtd_partition partition_info[] ={

{

name: "loader",

size: 0x00020000,

offset: 0,

}, {

name: "param",

size: 0x00010000,

offset: 0x00020000,

}, {

name: "kernel",

size: 0x001c0000,

offset: 0x00030000,

}, {

name: "root",

size: 0x00200000,

offset: 0x00200000,

mask_flags: mtd_writeable,

}, {

name: "user",

size: 0x03af8000,

offset: 0x00400000,

}

};

struct s3c2410_nand_set nandset ={

nr_partitions: 5 ,

partitions: partition_info ,

};

struct s3c2410_platform_nand superlpplatform={

tacls:0,

twrph0:30,

twrph1:0,

sets: &nandset,

nr_sets: 1,

};

/********************************end add****************************/

struct platform_device s3c_device_nand = {

.name = "s3c2410-nand",

.id = 0xec,

.num_resources = array_size(s3c_nand_resource),

.resource = s3c_nand_resource,

.dev = {

.platform_data = &superlpplatform //***********add here*****

}

};

b>add "&s3c_device_nand" to the __initdata in the arch/arm/mach-s3c2410/mach-smdk2410.c

c>disable the ecc

modify the drivers/mtd/nand/s3c2410.c

for example:

/**** chip->eccmode = nand_ecc_soft; **/

chip->eccmode = nand_ecc_none;

3 config the kernel

a>modify the makefile

for example:

##subarch := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \

## -e s/arm.*/arm/ -e s/sa110/arm/ \

## -e s/s390x/s390/ -e s/parisc64/parisc/ )

subarch :=arm

##cross_compile ?=


...   下一页
 ·unix下的socket编程    »显示摘要«
    摘要:一,前言 tcp(transfer control protocol)传输控制协议是一种面向连接的协议,客户端和服务端的连接是可靠的,安全的. sockets最早是作为bsd规范提出来的,并已成为unix操作系统下tcp/ip网络编程标准,但是,随着网络技术的不断进步, sockets的应用范围已不再局限于unix操作系统和tcp/ip网络,但是我这次主要介绍是基于linux上的socket编程,但所有 示例程序都在sco以及linux上编译通过,并且运行......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE