当中用到一个宏定义CUDA_KERNEL_LOOP在common.hpp中有。#defineCUDA_KERNEL_LOOP(i,n) \for(inti = blockIdx.x * blockDim.x + threadIdx.x; \i __global__void mul_kernel(co...
分类:
其他好文 时间:
2014-10-29 21:02:10
阅读次数:
1037
the learning curve become longer and steeper .as the increasingly complex , the newbie or newcomers become harder .to make the source code sensible in...
分类:
系统相关 时间:
2014-10-28 23:37:36
阅读次数:
265
一,主要问题:系统在启动的时候,是怎么加载 dts的;Lk,kernel中都应调查。二:参考文字dts加载流程如下图所示:启动过程中,bootloader(默认是bootable/bootloader/lk)会根据机器硬件信息选择合适的devicetree装入内存,把地址等相关信息传给kernel。...
分类:
其他好文 时间:
2014-10-28 19:59:52
阅读次数:
196
container_of宏剖析//该宏位于include/linux/kernel.h1.定义格式/** * container_of - cast a member of a structure out to the containing structure * * @ptr: th...
分类:
其他好文 时间:
2014-10-28 19:33:33
阅读次数:
255
Linux kernel 是怎么将 devicetree中的内容生成plateform_device1,实现场景(以Versatile Express V2M为例说明其过程)以arch/arm/mach-vexpress/v2m.c 为例,在该文件中的v2m_dt_init函数的作用就是利用 dt(...
分类:
系统相关 时间:
2014-10-28 19:32:24
阅读次数:
344
Touch panel DTS 分析(MSM8994平台,Atmel 芯片)
在MSM8994平台下,Touch panel的DTS节点写在/kernel/arch/arm/boot/dts/qcom/msm8994-mtp.dtsi文件中。具体代码如下:
&soc {
i2c@f9924000 {
...
分类:
其他好文 时间:
2014-10-28 12:13:09
阅读次数:
283
源码目录系统注解 +Kernel:Android Linux内核2.6 +bionic:Android标准C运行支持库 +bootloader:Android内核加载器参考 +build:Android的Build系统 +cts:Android兼容性测试源 +dalvik:Dalvik虚拟机 +ex...
分类:
移动开发 时间:
2014-10-28 09:19:04
阅读次数:
502
编译 Android 系统源码 并烧写到开发板上去...
分类:
移动开发 时间:
2014-10-28 00:49:59
阅读次数:
390
Linux启动过程
1、启动流程(BIOS->MBR:Boot Code->引导GRUB->加载内核->执行init->runlevel)
2、/boot/grub/下有多个文件 其中stage1为MBR镜像(512字节) stage2为引导程序
3、/boot/grub/grub.conf为引导的配置文件
default=0#默认加载下边哪个系统
timeout=3#引导等待时间...
分类:
系统相关 时间:
2014-10-27 23:12:30
阅读次数:
438
修改 /etc/sysconfig/i18n 文件,如
LANG="en_US.UTF-8",xwindow会显示英文界面,
LANG="zh_CN.GB18030",xwindow会显示中文界面。
还有一种方法 cp /etc/sysconfig/i18n $HOME/.i18n
修改 $HOME/.i18n 文件,如
LANG="en_US.UTF-8",xwindow会显示英文...
分类:
系统相关 时间:
2014-10-27 23:11:51
阅读次数:
388