编程随想录
CSDN拆迁户 @2014-04-07

导航

 

2010年8月16日

摘要: http://blog.chinaunix.net/u2/68846/showart_692324.html正在移植2440, 偶然看2.6.32代码的时候, 发现smdk2440的mach-smdk2440.c中有如下结构体定义:static struct map_desc smdk2440_iodesc[] __initdata = { /* ISA IO Space map (memory space selected by A24) */ { .virtual = (u32)S3C24XX_VA_ISA_WORD, .pfn = __phys_to_pfn(S3C2410_CS2... 阅读全文
posted @ 2010-08-16 11:56 dos5gw 阅读(636) 评论(0) 推荐(0)
 

2010年8月13日

摘要: LCD背光是通过 CPU的 LCD_PWR引脚来控制的, 当LCD_PWR输出1, 亮 , 输出0则灭.以下的代码均参考mini2440的移植手册 (1)新建/drivers/video/mini2440_backlight.c #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #undef DEBUG#ifdef DEBU 阅读全文
posted @ 2010-08-13 16:07 dos5gw 阅读(174) 评论(0) 推荐(0)
 
摘要: 此篇主要对http://blog.csdn.net/dos5gw/archive/2010/08/11/5804587.aspx中的错误做修正和分析,(1) s3c2440平台关于nand flash部分的代码, " 在你弄清楚移植代码的每一个步骤是为什么之前,不要去做所谓的移植,那是毫无意义的"*****/arch/arm/plat-s3c24xx/common-smdk.c*****static struct mtd_partition smdk_default_nand_part[] = { [0] = { .name = "supervi... 阅读全文
posted @ 2010-08-13 09:27 dos5gw 阅读(177) 评论(0) 推荐(0)
 

2010年8月12日

摘要: make menuconfig后,首先读入linux-2.6.32.2/arch/arm/Kconfig ???sudu vilinux-2.6.32.2/arch/arm/Kconfig(1)找到开头的mainmenu "Linux Kernel Configuration"source "这一行, 这是整个Configure树的根, 这一行匹配最后一个"带endmenu字样的行".再找到init/Kconfig"这一行, 可以看到该行之前的都是固定选项,不会出现在Configure可选选项的,某个config的例子如下config 阅读全文
posted @ 2010-08-12 02:19 dos5gw 阅读(153) 评论(0) 推荐(0)
 

2010年8月11日

摘要: 在ubuntu上按照无数帖子无数文档搞了半天qt环境还有eclipse,最后才发现这些都是无关紧要的东西,首先能在ARM核心板上移植linux才是应该先实现的,自己瞎搞了半天移植,对着make menuconfig的复杂树型选项和添加代码迷糊不已,到了晚上下班才猛然醒悟一切都是因为自己kconfig和makefile的关系不明白,才在原地犯迷糊的。自己的理解 + 网摘, 参考:http://www.cnblogs.com/sirsunny/archive/2004/12/15/77506.htmlhttp://blog.csdn.net/windriver_hf/archive/2010/04 阅读全文
posted @ 2010-08-11 23:26 dos5gw 阅读(151) 评论(0) 推荐(0)
 
摘要: 板子用的友善的mini2440, 起初按照光盘提供的手册, 照猫画虎,,,,,,,,,但是遇到各种问题, 很多未解决.....原因是还没理解每层目录的Makefile和Kconfig的关系, 以及在Kernel Configure菜单树中对应的选项, 以及对nand_flash设备的结构体的意义没搞清楚,~ so~在http://www.kernel.org/ 下载2.6.32的源代码. 编译器用的arm-linux-gcc 4.1.2 .1 内核代码/uboot代码中中机器码的定义位置,在/root/linux-2.6.32/arch/arm/tools/mach-types 和 uboot 阅读全文
posted @ 2010-08-11 16:17 dos5gw 阅读(239) 评论(0) 推荐(0)
 

2010年8月9日

摘要: 先装JRE, sudo apt-get install sun-java6-jre下载eclipse C++的压缩包,解压开袋即食新建项目,右键属性,C/C++bulid,Setting,Configuration新添加一个,Command处填写arm-linux-gcc,编译,,,TMD又出现arm-linux-gcc not found ! 明明arm-linux-gcc -v 没问题!杀手锏,gedit /etc/profile /etc/environment /etc/bash.bashrc ~/.bashrc ~/.profile全都加上export PATH="/bin 阅读全文
posted @ 2010-08-09 19:40 dos5gw 阅读(196) 评论(0) 推荐(0)
 

2010年8月8日

摘要: 参考:http://www.arm9home.net/read.php?tid-5182.html5、安装Qt-creator-1.3.1把下载的qt-creator-linux-x86-opensource-1.3.1.bin文件拷到一个目录(如前面的/root/tmp目录),chmod 777 qt-creator-linux-x86-opensource-1.3.1.bin./qt-creator-linux-x86-opensource-1.3.1.bin直至安装完成.6、Qt-creator开发环境的配置启动Qt-creator, 为qtc配置各种编环境, 即上一篇生成的x86 PC 阅读全文
posted @ 2010-08-08 16:33 dos5gw 阅读(216) 评论(0) 推荐(0)
 

2010年8月7日

摘要: 下载 tslib1.4.tar.gz, 解压后进入目录,如果该目录下没有configure文件,先执行autogen.sh脚本生成。but~ autogen.sh执行后报错, 错误log忘了,,,,,后来一查, 原来需要"autotools", 即autoconf, automake, libtool, 这三个玩意ok~ apt-get install然后automake死活弄不下来, 然后就有了http://topic.csdn.net/u/20100807/15/872b63bd-a8e1-4121-8084-74f0b98a652c.html╮(╯_╰)╭, apt- 阅读全文
posted @ 2010-08-07 17:30 dos5gw 阅读(158) 评论(0) 推荐(0)
 
摘要: 参考:http://www.arm9home.net/read.php?tid-5161.html http://www.arm9home.net/read.php?tid-5182.html http://blog.sina.com.cn/s/blog_6541e78f0100ihoy.html?retcode=0 http://blog.sina.com.cn/s/blog_6541e78f0100ihp3.html?retcode=0 http://hi.baidu.com/jiyeqian/blog/item/f46d26a2ff3f7da6caefd0d6.html http://h 阅读全文
posted @ 2010-08-07 07:41 dos5gw 阅读(273) 评论(0) 推荐(0)