- 博客(128)
- 收藏
- 关注
原创 linux kernel printk syslog
The kernel also provides some helper functions for logging that can simplify their use. Each log level has its own function, which expands as a macro for theprintk function. For example, when using printk with the KERN_EMERG log level, you can use the pr_e
2011-03-26 13:43:00
750
原创 linux IRQ handler
<br /> <br />Handle.c (kernel/irq)130432011-1-19<br /> /** * __do_IRQ - original all in one highlevel IRQ handler * @irq:the interrupt number * * __do_IRQ handles all normal device IRQ's (the special * SMP cross-CPU interrupts have their own specific * han
2011-03-19 14:42:00
660
原创 linux 12.27 home
<br /> <br />http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/p/29363/102101.aspx<br /> <br />http://lxr215.javaeye.com/blog/771241<br /> <br />mkdir u-boot<br />cd u-boot<br />git-init-db<br />git-pull -a -k http://www.denx.de/git/u-boot.gi
2010-12-27 22:44:00
286
原创 linux 12.24 ehci-oamp
<br />http://marc.info/?l=linux-omap&m=126116404100791&w=2<br /> <br />>Subject: Re: Anyone using an ISP1505?<br />><br /><snip><br />><br />>> If it's with the EHCI controller, you need to take care of a couple of<br />>> issues on the board (due to the i
2010-12-24 21:44:00
351
原创 linux 12.19
<br />at91 linux patchs:<br />http://maxim.org.za/at91_26.html<br /> <br />http://www.linux-arm.org/LinuxKernel/LinuxNewPlatformPort<br /> <br />http://elinux.org/Android_Kernel_Versions<br />http://elinux.org/Android_Kernel_Download<br /> <br />http://www
2010-12-19 22:49:00
197
原创 linux 12.15
<br />But, note that most Linux Kernel developers have already createda copy of Linus Torvalds' upstream kernel tree for reference:<br />$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6<br />The Linux ACPI is based on Linus' t
2010-12-17 09:42:00
292
原创 linux 12.15
<br />linux内核线程的创建及在QEMU上的测试方法<br />http://www.embedu.org/Column/Column334.htm<br /> <br />$ qemu-system-arm -M versatilepb -usb -usbdevice wacom-tablet -kernel zImage -initrd initramfs.gz -nographic -append 'console=ttyAMA0 console=ttyS0 root=/dev/ram' -g
2010-12-15 12:42:00
240
原创 linux 12.13-1
<br />QEMU<br />http://files.meetup.com/1590495/debugging-with-qemu.pdf<br />http://blog.csdn.net/iamljj/archive/2010/06/08/5655169.aspx<br /> <br /> <br />Kernel panic - not syncing: Attempted to kill init!<br />用arm-linux-gcc 4.00以上的编译器文件系统老是报这个错 ,<br />
2010-12-13 14:22:00
704
原创 linux 12.10-2
<br />$sudo aptitude install build-essential<br />That installs g++, gcc, make, etc.<br /> <br /> git-svn: what's the equivalent to `svn switch --relocate`?<br />http://stackoverflow.com/questions/268736/git-svn-whats-the-equivalent-to-svn-switch-relocate<
2010-12-10 12:42:00
270
原创 linux 12.10
<br />Pro Git<br />http://progit.org/book/zh/<br /> <br />$ git log --pretty=format:"%h %s" HEAD~3..HEAD <br />8d0814c support camera ov3640<br />055c5ff patch Inc3.4P3<br />1b47e15 patch TI_Inc3.4P2<br /> <br />$ git log --pretty=format:"%h %s"<br /
2010-12-10 10:45:00
273
原创 linux 12.08
<br />http://git.omapzoom.org/?p=kernel/omap.git;a=shortlog;h=refs/heads/p-android-omap-2.6.32<br /> <br /> <br />usb_modeswitch<br />http://www.draisberghof.de/usb_modeswitch/<br />http://hi.baidu.com/boinc/blog/item/c35beeadb19723004a36d656.html<br /> <b
2010-12-08 17:03:00
238
原创 linux 12.06
<br />$ git svn fetch <br />Remote ref refs/remote/git-svn is tracked by<br /> "svn-remote.svn.fetch=:refs/remotes/git-svn"<br />and<br /> "svn-remote.svn.fetch=:refs/remotes/git-svn"<br />Please resolve this ambiguity in your git configuration
2010-12-06 11:33:00
228
原创 linux 12.05
Undo git-rm without commit:git fsck --lost-foundand then poke around .git/lost-found/other for your missing content.$ git commit --amend修改上个commit的内容和信息。$ git blame FILE标注出一个指定的文件里每一行内容的最后修改者,和最后修改时间。$ git reset ORIG_HEADGit保存原先的Head为一个叫ORGI_HEAD的标记,你可以安
2010-12-05 14:19:00
262
原创 linux 12.03
<br />http://groups.google.com/group/androidporting/<br />browse_thread/thread/c8dddc9028750f6/94bfea9fea486a41?lnk=gst&q=enum#94b<br />fea9fea486a41
2010-12-03 15:51:00
302
原创 linux 11.30-1
<br /># cat session.conf | head -n 3<br /><!-- This configuration file controls the per-user-login-session message bus.<br /> Add a session-local.conf and edit that rather than changing this <br /> file directly. --><br />bash-3.2# cat sess
2010-11-30 11:06:00
234
原创 linux 11.29-2
<br />Ftrace<br />http://www.uini.net/2010/06/linux-kernel-debug-using-the-ftrace-part-3.html<br />http://www.uini.net/2010/06/linux-kernel-debug-using-the-ftrace-part-2.html<br /><br />高级点的使用技巧:<br />Secrets of the Ftrace function tracer<br />http:/
2010-11-29 16:10:00
522
原创 linux 11.29-1
<br />$ diff -puN .config arch/arm/configs/android_zoom3_defconfig>tmp.patch<br />-r 是一个递归选项,设置了这个选项,diff会将两个不同版本源代码目录中的所有对应文件全部都进行一次比较,包括子目录文件。<br />-N 选项确保补丁文件将正确地处理已经创建或删除文件的情况。<br />-u 选项以统一格式创建补丁文件,这种格式比缺省格式更紧凑些。<br />-u -U NU
2010-11-29 10:58:00
243
原创 linux 11.29
<br />static struct kprobe kp[] = {<br /> {<br /> .symbol_name = "soc_pcm_open",<br /> .pre_handler = handler_pre,<br /> .post_handler = handler_post,<br /> },<br /> {<br /> .symbol_name = "soc_pcm
2010-11-29 10:10:00
93
原创 linux 11.26-3
<br />from the command line run uname -rto find your current running kernel version<br />$ uname -r<br />2.6.31-14-generic<br /> I/O Memory Access<br /><br />Unlike on most typical embedded systems, accessing I/O memory on Linux cannot be done directly. Th
2010-11-26 15:46:00
318
原创 linux 11.26-2
<br />编译systemtap-1.3<br />$ ./configure --exec-prefix=/home/xxx/systemtap-1.0-ubuntu --prefix=/home/xxx/systemtap-1.0-ubuntu --with-elfutils=/home/xxx/elfutils-0.143/<br />checking for grep that handles long lines and -e... configure: error: no acceptab
2010-11-26 14:32:00
221
原创 linux 11.26
Translate Kernel Call TraceGeneral setup ---> <br /> [*] Configure standard kernel features (for small systems) ---><br /> --- Configure standard kernel features (for small systems)<br /> [*] Load all symbols for debugging/ksymoops<br />
2010-11-26 09:52:00
391
原创 linux 11.25-2
<br />LXR-- the Linux Cross Referencer<br />http://lxr.linux.no/+trees<br />http://lxr.linux.no/#linux+v2.6.32/<br />http://kernelnewbies.org/KernelHackingTools<br /> <br /> <br />$ sudo apt-get install ctags<br />$ sudo apt-get install lxr (0.31版本)<br />h
2010-11-25 10:54:00
203
原创 linux 11.25
<br />Kernel oops<br />-----------<br />If the kernel has oopsed or BUG'd, there will be crash information left on<br />the console. If you're debugging over a serial port, cut and paste the oops data<br />into a file. If the system was stable eno
2010-11-25 10:12:00
217
原创 linux 11.24-3
<br />[*] /sys/class/gpio/... (sysfs interface) <br />There are three kinds of entry in /sys/class/gpio:<br /><br /> - Control interfaces used to get userspace control over GPIOs;<br /><br /> - GPIOs themselves; and<br /><br /> - GPI
2010-11-24 15:41:00
413
原创 linux 11.24-2
<br />[*] Tracers ---><br />[*] Enable dynamic printk() support<br />Dynamic debug is designed to allow you to dynamically enable/disable kernel<br />code to obtain additional kernel information. Currently, if<br />CONFIG_DYNAMIC_DEBUG is set, the
2010-11-24 13:34:00
242
原创 linux 11.24
<br />This manual page documents briefly the xmltex, and pdfxmltex commands. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. Instead, it has documentation in HTML and PS
2010-11-24 09:48:00
243
原创 linux SDRC
<br />/**<br /> * struct omap_sdrc_params - SDRC parameters for a given SDRC clock rate<br /> * @rate: SDRC clock rate (in Hz)<br /> * @actim_ctrla: Value to program to SDRC_ACTIM_CTRLA for this rate<br /> * @actim_ctrlb: Value to program to SDRC_A
2010-11-23 18:39:00
75
原创 linux 11.23
<br />To use binfmt_misc you have to mount it first. You can mount it with<br />"mount -t binfmt_misc none /proc/sys/fs/binfmt_misc" command, or you can add<br />a line "none /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0" to your<br />/etc/fstab
2010-11-23 13:08:00
239
原创 linux git web
gitweb on ubuntuhttp://chunzi.me/post/322<br />通过web访问,project的名字是 .git 能否有办法改变?<br />试试看修改这个文件的内容:<br />$ cat *.git/description<br />Unnamed repository; edit this file to name it for gitweb.<br /> <br />设置多个git web:<br />$ sudo gedit /etc/gitweb.conf<
2010-11-22 13:34:00
88
原创 linux 11.19
mount -t usbfs none /proc/bus/usb<br />cat/proc/bus/usb/devices<br /> <br />http://blog.chinaunix.net/u1/34474/showart.php?id=418515<br /><br /> <br /> <br />static ssize_t disable_store(struct kobject *kobj, struct kobj_attribute *attr,<br />
2010-11-19 09:44:00
78
原创 linux home 11.17
<br />http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commitdiff;h=301fe8eeee02c570c5bd30537aff9456f7f7955c<br /> <br /> <br />http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commitdiff;h=f9551d2b47ce903e552514ee
2010-11-17 23:20:00
166
原创 linux 11.16
<br />头文件include/linux/kernel.h包含了一些宏,你应该使用它们,而不要自己写一些它们的<br />变种。比如,如果你需要计算一个数组的长度,使用这个宏<br /><br /> #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))<br /><br />类似的,如果你要计算某结构体成员的大小,使用<br /><br /> #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f
2010-11-16 14:49:00
214
原创 mount & format
<br />mkfs.vfat /dev/block/mmcblk1<br />mkdir /local<br /><br />mount -t vfat /dev/block/mmcblk1 /local/<br /> <br /> Linux下有一条mkfs命令,相当于format,可以对磁盘进行文件系统制作操作(或者说格式化)。命令的语法为:<br /> mkfs -t 文件系统类型 /dev/设备名<br /> 如要把/dev/sda1格式为reiserfs格式,使用以下命令:<b
2010-11-16 09:37:00
321
原创 USB-serial:usb exchange
<br />static int storage_probe(struct usb_interface *intf,<br /> const struct usb_device_id *id)<br /> <br />result = usb_stor_probe1(&us, intf, id,<br /> (id - usb_storage_usb_ids) + us_unusual_dev_list);<br /> <br />struct usb_
2010-11-15 15:05:00
130
原创 android 2.6.32 SOUND 移植 OMAP3630
<br />1.VDD_SIM 一定要有1.8V的电源(需要1.8V是根据gpio127输出电平为1.8V)<br />2.PBIAS 必须正确设置,设置VDDS_SIM电压,PWRDNZ和VMODE,检测VMODEERROR<br />3.寄存器地址必须设置正确,源码的地址设置是错误的<br />#define OMAP3_CONTROL_PADCONF_SDMMC1_DAT5_OFFSET 0x122(0xa24)<br />#define OMAP3_CONTROL_PADCONF_SIM_CLK_
2010-11-10 14:49:00
88
原创 ALSA DMA 传输
<br />wav音频文件大小计算:要测试录音是否丢祯,就必然要计算文件大小,通常的方法是:根据录音时间,用公式:录音时间(单位s)x采样率x(采样位数/8)x通道数。比如,录音时间5秒,采样率8kHz,位数16位,通道数1,那么5x8000x(16/8)x1=80k,实际的wav文件大小稍大于80k就对了。还有一种计算文件大小的方法:通常音频系统要用dma,也会用到dma中断,可以在dma中断中打印计数,次数xdma中断周期字节就行了。<br /> <br />http://blog.csdn.net/A
2010-11-06 21:20:00
389
原创 linux 11.06
<br />printk("offset = %lu;runtime->buffer_size = %lu/n",offset,runtime->buffer_size);<br />%lu -------> unsigned long int U64<br />printk("runtime->frame_bits = %u;ptr = %u;runtime->dma_addr = %u/n",runtime->frame_bits,ptr,runtime->dma_addr);<br />
2010-11-06 15:18:00
245
原创 linux 11.05
<br />调试CMMB测试程序:<br />检查service ID, 把ServiceId 指定为605.<br />Calling SmsHostApiCmmbStartService_Req(pAsyncData->DevHandle, (0xFFFFFFFFU), 0xFFFFFFFF, ServiceId, &pAsyncData->ServiceHandle)<br /> <br />#define SMS_INTR_PIN 16 /* 0 for
2010-11-05 11:01:00
73
原创 linux 11.04
<br />source insight增加新类型:<br />[*]include when adding to projects<br /> Ftrace Function Graph ARM<br />http://elinux.org/Ftrace_Function_Graph_ARM<br /><br /><br /> <br />quilt patch管理工具<br /><br />This tar archive contains a patches directory, with a ser
2010-11-04 14:42:00
349
原创 linux home 11.03
http://www.wanglianghome.org/blog/2006/10/chm-viewer-on-linux.htmlchm viewhttp://embedlinux.ycool.com/post.2814860.htmlbusyboxA "ps -A -Xunix" will show just the Interix processes (Active and zombies). ftrace - Function TracerFtrace.txt (documentation)
2010-11-03 21:27:00
501
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人