自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 connect HTTP with glib socket api

HTTP request header from clientGET / HTTP/1.1Host: www.baidu.comConection: CloseHTTP receive content from websiteHTTP/1.1 200 OKDate: Tue, 20 Dec 2016 06:41:33 GMTContent-...

2016-12-20 14:43:00 273

转载 LED driver and test on QQ2440 arm9 board

Driver for linux-2.6.38tree├── led_misc_drv.c├── Makefile├── my_led_cmd.h└── test.c1. my_led_cmd.h#ifndef __MY_LED_CMD_H__#define __MY_LED_CMD_H__#define MY_MAGIC 0x5...

2016-09-04 10:24:00 157

转载 Uncompressing Linux... done, booting the kernel

MACHINE_START(QQ2440, "QQ2440") .atag_offset = 0x100, .map_io = qq2440_map_io, .init_machine =...

2016-09-02 16:41:00 195

转载 Open /dev/ttyUSB* with not a root user method

sudo vim /etc/udev/rules.d/70-ttyusb.rulesKERNEL=="ttyUSB[0-9]*",MODE="0666"转载于:https://www.cnblogs.com/kozmers/p/5150870.html

2016-01-22 13:00:00 143

转载 Gdk-DirectFB-Message: unhandled DirectFB windowing event 0x01000000

gtk+-2.19.2/gdk/directfb/gdkevents-directfb.c775 default: 776 //g_message ("unhandled DirectFB windowing event 0x%...

2016-01-17 20:50:00 122

转载 basic misc driver

#include <linux/init.h>#include <linux/module.h>#include <linux/fs.h>#include <linux/miscdevice.h>/////////////////////////////////////////////////MODULE_LICEN...

2015-05-26 12:02:00 91

转载 struct timeval

struct timeval{__time_t tv_sec; /* Seconds. */__suseconds_t tv_usec; /* Microseconds. */};/* Get the current time of day and timezone information, putting it int...

2015-05-09 11:52:00 129

转载 struct input_event

#inlcude <linux/input.h>struct input_event { struct timeval time; __u16 type; __u16 code; __s32 value;};type:#define EV_SYN 0x00#...

2015-05-09 11:49:00 142

转载 A simple charactor device driver code using sysfs and udev

/* test.c * use "insmod test.ko" * can see "/dev/test" * and "test" in "/proc/devices" */#include <linux/init.h>#include <linux/module.h>#include <linux/sche...

2015-04-29 11:21:00 109

转载 Makefile and hello.c for driver programming

#Makefileifneq ($(KERNELRELEASE),) obj-m := module.o module-objs := file1.o file2.o#obj-m:=hello.oelse KERNELDIR := /lib/modules/$(shell uname -r)/build...

2015-04-22 13:10:00 106

转载 HEX as SIZE

1KB = 1024 B = 2^10B=BIN 100 0000 0000B=HEX 4 0 0 BSZ_1K = 0x400/*handysizes*/#defineSZ_1K0x00000400#defineSZ_4K0x00...

2015-01-10 18:11:00 183

转载 Port gtk2.12.9 with directfb1.4.17 as backend for arm (21M on board)

I have all the tar packages in netdisk gtk_dfb_arm_src.tar.xzI download them from below links:http://ftp.gnome.org/pub/gnome/sourcesglib-2.19.0 :ftp://ftp.gtk.org/pub/glib/2.19/pango...

2015-01-06 15:01:00 264

转载 Port directfb for arm

I test below in my qemu-mini2440 virtual board.http://directfb.org/downloads/Core/DirectFB-1.7/DirectFB-1.7.2.tar.xzTo test first, I disable all picture libs and only open fbdev support, I ...

2015-01-05 13:43:00 458

转载 Control my qemu in telnet (system_reset, system_powerdown)

Make sure the terminal size if large enough for qemu. If not, "Floating point exception" error occurs.$ qemu-system-arm xxxxxxxx \ -monitor telnet::5555,server,nowaitDuring the ...

2015-01-02 14:22:00 328

转载 Shotcuts in linux terminal for typing commands

SHOTCUTSDescriptionhistory显示命令历史列表Ctrl+p显示上一条命令Ctrl+n显示下一条命令!num执行命令历史列表的第num条命令!!执行上一条命令!?string?执行含有string字符串的最新命令Ctrl+r然后输入若干...

2015-01-02 11:05:00 134

转载 ts_calibrate: Couldnt open tslib config file: No such file

# /etc/profileexport TSLIB_CONFFILE=/etc/ts.conf转载于:https://www.cnblogs.com/kozmers/p/4198192.html

2015-01-02 10:41:00 732

转载 Couldnt load module input, no modules loaded

# /etc/profileexport TSLIB_FBDEVICE=/dev/fb0export TSLIB_PLUGINDIR=/usr/lib/ts# /usr/lib/ts is where the "input.so" located转载于:https://www.cnblogs.com/kozmers/p/4198191.html...

2015-01-02 10:39:00 1925

转载 tslib configuration files in armlinux root filesystem

./autogen.sh./configure --prefix=/path/to/tslib-build/ --host=arm-linux ac_cv_func_malloc_0_nonnull=yes makemake install# /etc/profileexport TSLIB_ROOT=/export TSLIB_TSDEV...

2015-01-02 10:38:00 102

转载 A general "Hello World" src code for linux3.0 driver programing

/* hello.c */#include <linux/kernel.h>#include <linux/module.h>static int hello_init(void){ printk(KERN_ALERT "hello init"\n); return 0;}static void hello_e...

2015-01-02 10:30:00 104

转载 A general "About" dialog src code paragraph in Gtk+ programming

GTK_CALLBACK void on_toolbutton_about_clicked(GtkWidget *btn, gpointer user_data){ GtkWidget *about_dialog; GdkPixbuf *logo; GError *error=NULL; const gchar *author[]={"...

2015-01-02 10:14:00 99

转载 A general messagebox src code paragraph for debug in Gtk+ programming

#define debug_msg_box() \{ \ GtkWidget *msg_dlg = gtk_message_dialog_new(NULL, \ GTK_DIALOG_DESTROY_WITH_PARENT, \ GTK_MESSAGE_INFO, \ ...

2015-01-02 10:10:00 88

转载 Cross compiling Tiny-X (XFree86-4.8) for arm

As a preparation I build the tslib for touchscreen functional in this application, so do it first.If the tslib was built and the export of tslib paths was declared, then the cursor can move ...

2014-07-02 21:50:00 183

转载 Build gdb for remote debug ARM app

GDB: The GNU Project Debuggerhttp://www.gnu.org/software/gdb/Download from: ftp://sourceware.org/pub/gdb/releases/Build:PC side:cd /opt/crosstool/src/gdb-7.7.1/./configure --target...

2014-06-29 17:21:00 96

转载 error "`ft2build.h' hasn't been included yet!

Add include to "freetype.h"/* add this line */#include <ft2build.h>#ifndef FT_FREETYPE_H#error "`ft2build.h' hasn't been included yet!"#error "Please always use macros to incl...

2014-06-29 08:08:00 498

转载 Gtk+-2.1.5 has maintianed recently in 2013

http://ftp.gnome.org/pub/gnome/sources/gtk+/2.1/ gtk+-2.1.5.tar.gz 2013-02-22 14:03 8.6M 转载于:https://www.cnblogs.com/kozmers/p/3814522.html

2014-06-29 08:07:00 86

转载 The directfb backend was supported together with linux-fb backend in GTK+2.10

From gtk+-2.10.2 configure --help we can see (I just only view the 2.10.2, not know other 2.10.x):--with-gdktarget=[x11/linux-fb/win32/quartz/directfb] select non-default GDK targetWe ...

2014-06-28 22:10:00 83

转载 The directfb backend has been removed from GTK+ 2.90.6 to 2.90.7

From gtk+-2.90.7 configure --help we can see:--with-gdktarget=[x11/win32/quartz] select non-default GDK targetThere is no directfb in the gdktarget as in gtk+-2.90.6:--with-gdktarget=...

2014-06-28 16:06:00 132

转载 Error: Selected device is not a touchscreen I understand

selected device is not a touchscreen I understandarm交叉编译工具中的头文件库中的linux/input.h中的EV_VERSION定义为#define EV_VERSION 0x010000而linux内核include/linux/input.h中的EV_VERSION定义为#...

2014-06-27 19:35:00 75

转载 Cross-compiling Gtk+-3.12.2 with Wayland-1.3.39 backend for ARM

Author: kozmers@gmail.comServer: [OpenSuSE 13.1 x86_64]Target: [arm-linux]cross-complie tool: [arm-linux-gcc 4.4.3]I firstly log my compiling journal on http://www.cnblogs.com/kozmers...

2014-06-24 22:23:00 660

空空如也

空空如也

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

TA关注的人

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