自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(56)
  • 收藏
  • 关注

原创 glib wpa_supplicant Unix上库编译错误解决与总结

编译Linux下的库是一件痛苦的事情,这里主要阐述glib和wpa_supplicant库的编译,因各自的依赖关系,另外一些库要事先编译。glib依赖libffi和zlib,而wpa_supplicant依赖dbus和openssl。总结下交叉编译几个常见的逻辑:1. 指定CC为交叉编译器2. 指定--prefix,如果不指定,会将宿主机PC上相应的库给覆盖了,如果是系统关键的

2013-08-05 16:39:25 4892

转载 android adb devices no permission

在ubuntu(9.10)下执行adb devices命令, 返回的结果是:List of devices attached ???????????? no permissions   这意味着,USB连接的设备是能够被识别的。Google之后,得知adb server需要以root的权限启动,于是有了如下命令:brian@brian-laptop:~/Dev/Java/And

2012-03-13 21:40:54 974

转载 External SD Card & Internal Flasher Media in ICS

Two methods:1. indicate external sd card based on internal flasher media(NAND or SD/MMC)http://stackoverflow.com/questions/6156649/is-there-a-documented-way-in-android-2-x-to-inspect-multiple-

2012-03-01 15:38:06 1217

原创 Android 4.0 UI for Tablet and Handset

Android 4.0(ICS) merge handset and tablet UI together, make customer flexible to use which UI they want. On marketing nowdays, phone use phone mode directly and other product like tablet/MID/PND use t

2012-02-29 10:36:55 3447

原创 rtc sync with system time

hwclock --systohc: sync hardware time to system timehwclock --hctosys: sync system time to hardware time

2012-02-03 17:30:39 1021

原创 uboot Linux machine_arch_type辨析

markuboot和Linux kernel中均有对machine_arch_type的定义和使用。假设有这样的应用场景:一个bsp需要支持不同的板子,可能是同一个芯片的不同参考设计。在此情况下,bsp的大多数代码可以复用,只有极少数的板级配置不同。可以使用类似与machine_is_xx()的函数调用来区分。uboot和Linux kernel下都有一个脚本文件gen_m

2012-01-18 15:53:25 4453

转载 [转]Page Cache, the Affair Between Memory and Files

Previously we looked at how the kernel managesvirtual memory for a user process, but files and I/O were left out. Thispost covers the important and often misunderstood relationship between filesand memory and its consequences for performance.Two se

2011-03-18 10:24:00 885

原创 dmabounce investment

Phenomenon:Some internal or external DMA controllerhas address limitation, for example, which could only access lower 128MBphysical memory. While not all driver will alloc proper physical memory to meetthis limitation. How could Linux kernel do then?

2011-03-16 16:54:00 1625

原创 PIO Cache Coherency Issue on Cortex A9

<br />Phenomenon:<br />1)       PIO read sdmmc mbr magic number error, prompt “unknown partition table” in Prima-II FPGA with new sdhci 2.0 driver, no error in sdhci 1.0 driver. DMA is OK for all.<br />2)       Porting sdhci 2.0 to Prima EVB, OK for both P

2011-03-11 11:38:00 1639

原创 [转]关于VIPT cache alias 的一封经典邮件

http://mail-index.netbsd.org/port-sh3/2006/09/07/0000.html<br /><br />[email protected] wrote:<br /><br />> I'd be interested in hearing ideas of how to fix this properly.<br />> <br />> PR has more information. Essentially the symptom is that certain

2011-03-09 15:19:00 6325

原创 release包分割

split -b 200m output_file_name

2011-03-07 17:34:00 524

原创 Android touch screen Calibrate with Intent

<br />screen coordinate(Xs) VS device coordinate(Xd)<br />screen coordinate is related to screen rotation, which could be change after orietation. But device coordinate is fixed, left up is original point.<br /> <br />Xs= Xd*A+Yd*B+C<br />Ys= Yd*D+Yd*E

2011-03-03 16:09:00 1496

转载 [转]一个优秀的研发团队应该具备什么特征

<br />1、计划执行:计划安排得当,不要老加班,不要老是现实和计划不匹配。不要做到哪儿计划就推后到哪儿。<br />2、研发成果:成功产出几个重影响力级别的、完整成块的、有成就感自豪感的产品或项目<br />3、团队氛围:这个团队每个人都相处的很融洽<br />4、团队协作:每个人都能找到自己擅长并喜欢做的事情。团队允许发出不同声音,不打击不反击。团队允许各种性格和背景的人都能存在并融洽存在。<br />5、团队协作:团队不要造成老是关键几个人忙死,其他人都在等这几个关键人完成核心事情后

2011-01-24 09:47:00 501

原创 Question From QA/TEST Team

<br />DIfferent QA/Test team membere have different capacity and knowledge, questions from them is not same as that from RD or AE teams. If RD quality is satisfied enough, QA's questions maybe simple to solve, not suppose to be hard. Try whatever simple wa

2010-12-31 11:33:00 486

原创 2010-12-1st

1. common usage macro for kernel list.list_for_each_entry(pos, head, member)@pos: the type * to use as a loop cursor@head: the head for your list@member: the name of the list_struct within the struct2. error macro for driver common usageERR_PTR -> set er

2010-12-08 17:52:00 499

原创 Thinking About "Unable to handle kernel paging request at virtual address ffc05000"

<br /><br />How tothink about issue like this? Maybe come back to original code modifiations, andtry to refine code just input. Unfortunately, it can't track the base reasonwhy this error occur, which could just enumerate possible answers and try to

2010-12-06 16:23:00 1677

原创 Thinking About "Unable to handle kernel paging request at virtual address ffc05000"

<br />How to think about issue like this? Maybe come back to original code modifiations, and try to refine code just input. Unfortunately, it can't track the base reason why this error occur, which could just enumerate possible answers and try to get the p

2010-12-06 16:01:00 1249

原创 [转]Linux查找和替换

<br />在当前目录下的.c文件中查找字符串"password"<br />grep "password" *.c<br /><br />在当前目录及其多个子目录中查找文件test.c<br />find . -name "test.c" -print<br /><br />在当前目录及其多个子目录中查找.vbs文件并删除之<br />find . -name "*.vbs" -exec rm {} /;<br /><br />在当前目录及其多个子目录下的.c文件中查找字符串"pa

2010-12-02 11:35:00 468

原创 Online Favorite

<br />Online Favorite

2010-11-02 09:34:00 493

原创 cross compiler sourcery

http://www.codesourcery.com/sgpp/lite/arm/portal/package1786/public/arm-none-linux-gnueabi/arm-2007q3-51-arm-none-linux-gnueabi.src.tar.bz2[issue 1]phenomenon:cc1: warnings being treated as errors524: error: ignoring return value of 'asprintf', dec

2010-10-27 15:34:00 1774

原创 glibc compile

<br />get three packages from http://ftp.gnu.org/gnu/glibc/.<br />glibc-2.12.1.tar.bz2<br />glibc-linuxthreads-2.5.tar.bz2()<br />glibc-ports-2.9.tar.bz2<br /> <br />1. CC=arm-none-linux-gnueabi-gcc CFLAGS="-mfloat-abi=softfp -O2" /home/ben/Works/Software/

2010-10-27 10:47:00 4235 1

原创 WindowManager Layer

<br />Window view has multi-layers wallpaper for display.<br /> <br />toolbar, wallpaper, lockscreen...

2010-10-22 17:36:00 547

原创 Android verbose debug enable

<br />#define LOG_NDEBUG 0 in each source code file header, which before #include <utils/Log.h>

2010-10-21 14:48:00 1365

原创 ALSA Initialization

<br />snd_pcm_hw_params_t *hardwareParams;<br /> <br />Steps:<br />snd_pcm_hw_params_malloc(&hardwareParams) -- allocate ALSA hardware parameters<br />                  ||<br />                  //<br />snd_pcm_hw_params_any(handle->handle, hardwareParams)

2010-10-21 13:49:00 908

原创 bluetooth synergy new board support

<br />PLL1分频24MHz给pwm4, init.rc中的配置相应做出修改-F 24000。

2010-10-21 10:12:00 530

原创 Android Key Layout Map

详细内容转贴:http://www.kandroid.org/android_pdk/keymaps_keyboard_input.html Key layout maps are installed in /system/usr/keylayout and /data/usr/keylayout. Key layout maps are stored on the devic

2010-10-14 15:20:00 3035

原创 RTC,system timer, android时间日期管理

<br />Guess Android SystemClock keeps system timer and rtc count sync.<br /> <br />power on reset -> reserve rtc power only<br />command reboot (system software reset) -> reserve PM, RSC, RTC, GPIO<br /> <br />For keep time for situations as sleep/wakeup,

2010-10-13 15:23:00 2004

原创 [转]用配置文件制作镜像,并直接烧入UBI image

<br />写配置文件,好处是将多个.img合并成一个.img然后一起烧进去.单个.img用mkfs.ubifs就可以了<br />配置文件ubinize.cfg的内容为: (配置文件写法,可从ubinize -help得知)<br />[ubifs1]<br />mode=ubi<br />image=ubifs1.img<br />vol_id=0<br />vol_size=20MiB<br />vol_type=dynamic<br />vol_name=test1<

2010-09-08 11:54:00 1942

原创 modac HP or Speaker记录

<br />assume:<br /> <br />1) 硬件把modac jack pin(gpio18)断开了,l28中modac_startup()时读取到默认值0,jackin,从耳机播放。<br />2)l32中,gpio_request()将gpio18作为gpio功能,x_usclk无效,播放不成功。gpio18改为gpio3[18],硬件上接3.3伏,连接x_sda_0, jackin为高,从speaker出。<br /> <br />modac声音轻的原因,modac driver中将双声

2010-09-03 19:17:00 564

原创 译文:10 个最流行的 Linux 服务器发行版

<br />原文:The Top 10 Linux Server Distributions 作者: Kenneth Hess <br />部分翻译来自于: 51 CTO ( 盘点十大热门Linux服务器发行版,哲婷 译)<br /> <br />就像你所知道的,很多的数据中心服务器上都运行着 Linux ,这样可以节省大量的许可证费用及维护费用。但面对储多的 Linux 发行版,随之而来的问题是,你会选择哪个 Linux 发行版作为服务器的操作系统呢?这里列出了前 10 个最流行的

2010-08-31 13:45:00 462

原创 SD/MMC tips

<br />High/Full/Low speed根据clock来说,50Mhz/25Mhz/...<br /> <br />MMC卡支持8bit/4bit/1bit,SD卡支持4bit/1bit

2010-08-30 11:07:00 401

原创 取得当前时间给变量

<br />dat=$(date +%H:%M:%S)

2010-08-09 18:52:00 483

原创 udev创建设备别名

<br />udev是Linux下的应用程序,它的作用是根据sys文件系统的结构和变化,在/dev/下创建节点。udev文件有语法规则,可以根据从内核中读取到的信息来创建定制的节点。<br /> <br />比如有两个即插即用设备,不同的插入顺序会导致系统生成的节点不一致,sda和sdb。udev可以依据设备的vendor信息来固定创建节点,这样对于上层应用程序来说,就屏蔽掉了底层的缺陷。

2010-07-30 09:56:00 974

原创 VirtualBox中使用U盘的方法

<br />最近需要运行一个windows的u盘修复工具,在Ubuntu上使用VirtualBox安装Windows,插入U盘总是mount在Ubuntu上,VirtualBox中无法识别。<br /> <br />System->Administration->Users and Groups->Unlock->Your Account Name->Manage Groups->vboxusers->click your account->OK->reboot.<br /> <br />即使vboxuse

2010-07-26 10:22:00 1756

原创 kxte9应用局限

<br />kxte9应用在转屏上绰绰有余,如果是Android的一些精细游戏上,就显得力不从心了。网上查了下,有一家公司实现了掷筛子游戏。<br /> <br />它的特点有二方面:<br />1) 节能20微安,一般的要200-700微安。<br />2) 内部集成ASIC单元,无须x,y,z轴计算当前方位,直接转屏。因Android有代码计算,这个功能基本用不上。<br /> <br />Labyrinth Lite游戏玩起来,感觉球滚动很快,过关难度很高,这个我想和sensor的精度有关。kxte9

2010-07-23 15:12:00 1298

原创 G-sensor On Android

<br /> What's G-sensor?<br />An g-sensor (or accelerometer) is a device that measures proper acceleration, the acceleration experienced relative to freefall.<br />Single- and multi-axis models are available to detect magnitude and direction of the accelera

2010-07-22 13:07:00 2439 3

原创 Linux Kernel patch升级

<br />kernel 2.6.32.13版本的kernel,现要升级到2.6.32.16。<br /> <br />1) kernel.org上下载patch-2.6.32.13.bz2和patch-2.6.32.16.bz2两个patch压缩包文件,分别解压得到两个patch文件。<br /> <br />2)进入到本地kernel 2.6.32.13目录中,执行patch -R -p1 < ../patch-2.6.32.13将当前版本恢复到kernel 2.6.32。<br /> <br />3)

2010-07-16 09:47:00 3333

原创 Android hardware module

eclair versionhardware/libhardware/hardware.cint hw_get_module(const char *id, const struct hw_module_t **module)存取并且加载hardware module,存放在/system/lib/hw下形如..so的共享库。

2010-07-12 14:30:00 669

转载 Forward [To: Android Beginners ]

Thinking deeply......creativity---------- Forwarded message ---------- From: Robert Lin Date: Fri, Jul 2, 2010 at 2:50 PM Subject: [android-beginners] 95% of Chinese android developer earns not a penn To: Android Beginners It takes on

2010-07-11 14:03:00 507

原创 mkconfig脚本

<br />uboot根目录下的makefile中会有类似<br /> <br />**board_config: unconfig<br />@./mkconfig $(@:_config) arm arm1136 board_name NULL board_name<br /> <br />如需在编译整个uboot之前另外做些事情,可在一个路径下定义一个脚本文件,把上述mkconfig语句加入进去,再添加自己想做的事情。(board/board_name/**.sh)<br /> <br />**boa

2010-06-29 15:11:00 429

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除