- 博客(156)
- 资源 (2)
- 收藏
- 关注
翻译 Notes for 《C Traps and Pitfalls》
1. 如果一个整型常量的第一个字符是数字0,那么该常量将被视作八进制数。2. 用单引号引起的一个字符实际上代表的是一个整数。整数值对应于该字符在编译器采用的字符集中的序列值。 用双引号引起的字符串,代表的却是却是一个指向无名数组起始字符的指针,该数组被双引号之间的字符及一个额外的二进制为零的字符‘\0'初始化。
2015-11-02 16:07:56
931
翻译 ubuntu command line add sudoer
1. Add a normal user $ sudo adduser 2. Add the new normal user as sudoer $ sudo adduser sudo
2015-10-29 16:34:41
1110
翻译 GCC Variadic Macros
http://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html
2015-10-15 14:49:18
804
原创 设置Adobe Reader为default的PDF阅读工具
$ sudo vim /etc/gnome/defaults.list将 application/pdf=evince.desktop 改为 application/pdf=acroread.desktop即可。
2015-07-08 15:18:09
3345
原创 cross compile the libusb and examples
Cross compile libusb and examples for ARM SoC
2014-12-02 17:28:13
2405
原创 Some useful environment for u-boot
1. autoloadautoload: if set to "no" (or any string beginning with 'n'), the rarpb, bootp or dhcp commands will perform only a configuration lookup from the BOOTP / DHCP server, but not try to
2014-09-16 15:53:13
757
原创 ubuntu add not available key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
2014-05-08 22:13:41
811
原创 local_irq_disable
[Author: Bo Shen ][Linux kernel: git: 0c0bd34]local_irq_disable如果定义CONFIG_TRACE_IRQFLAGS_SUPPORT 91 #define local_irq_disable() \ 92 do { raw_local_irq_disable(); trace_hardirqs
2014-03-06 22:36:30
1533
原创 cgroup_init_early
[Author: Bo Shen ][Linux kernel: git: 0c0bd34]由于没有定义CONFIG_CGROUPS, 所以暂时不表。
2014-03-06 22:21:49
1156
原创 boot_init_stack_canary
[Author: Bo Shen ][Linux kernel: git: 0c0bd34] 1 /* 2 * GCC stack protector support. 3 *
2014-03-06 22:15:46
2818
原创 debug_objects_early_init
[Author: Bo Shen ][Linux kernel: git: 0c0bd34]由于没有定义CONFIG_DEBUG_OBJECTS, 所以暂时不表。
2014-03-06 22:10:19
1928
原创 smp_setup_processor_id
[Author: Bo Shen ][Linux kernel: git: 0c0bd34] 470 void __init smp_setup_processor_id(void) 471 { 472 int i; 473 u32 mpidr = is_smp() ? read_cpuid_mpidr() & MPIDR_HWID_BIT
2014-03-06 22:07:13
2696
原创 arch/arm/boot/compressed/vmlinux生成过程
arch/arm/boot/compressed/vmlinux的生成过程
2014-01-02 23:19:52
6997
原创 u-boot中SPL源代码分析
u-boot SPL源代码分析。使用Atmel sama5d3xek做为例子进行分析。源代码:https://github.com/voiceshen/u-boot/tree/sama5d3xek_spl_spi_nand
2013-12-17 11:59:21
19260
原创 u-boot Makefile -- make xxx_config
u-boot中make xxx_config命令执行过程分析。具体以sama5d3xek_nandflash_config例子来说明。
2013-12-16 14:44:45
3514
原创 u-boot Makefile 分析 -- 清除
[Author: Bo Shen [u-boot: 2014.01-rc1]u-boot的Makefile中包括以下几个清除命令:unconfig, clean, tidy, clobber, mrproper, distclean。另外,涉及一个backup命令。下面具体分析每一个清除所做的工作。1. unconfig766 unconfig:767
2013-12-15 22:04:18
2918
原创 u-boot Makefile分析 -- (2)
[Author: Bo Shen ][u-boot: 2014.01-rc1, e03c76c30342797a25ef9350e51c8daa0b56f1df]1. 一些参数的export101 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))102 SPLTREE := $(OBJ
2013-12-13 17:32:28
3053
原创 u-boot Makefile分析 -- (1)
[Author: Bo Shen ][u-boot: 2014.01-rc1, e03c76c30342797a25ef9350e51c8daa0b56f1df]下面进行u-boot Makefile分析1. u-boot的固定版本信息,与编译时生成的时间与动态版本信息。 1 # 2 # (C) Copyright 2000-2013 3 # Wolfgang Den
2013-12-13 17:20:42
2001
原创 Cross Compile lmbench
[Author: Bo Shen ]Original Page: http://www.bitmover.com/lmbench/1. get the source code $ wget http://www.bitmover.com/lmbench/lmbench3.tar.gz2. cross compile it $ tar -zxvf lmbench
2013-10-28 18:21:24
3693
转载 Shell colors: colorizing shell scripts
原始文章出处:http://www.bashguru.com/2010/01/shell-colors-colorizing-shell-scripts.html
2013-10-19 15:57:04
935
原创 ffmpeg convert audio
The ffmpeg option for audio is as following----------------------------------------------------------Audio options:-aframes number set the number of audio frames to record-aq quality
2013-10-16 11:52:12
2586
原创 Remove one known host in ubuntu
Remove one known host in ubuntu@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2013-07-23 09:46:19
1325
原创 u-boot中memory(SDRAM/DDR)相关命令 -- mw
[u-boot: v2013.07-rc2][Author: Bo Shen ]1. 使能mw命令通过定义:CONFIG_CMD_MEMORY, 就可以使能mw命令。注:由于在include/config_cmd_default.h>里面已经有此定义,在板子相关的configure文件中(位于),默认情况下,都会include此文件。所以,u-boot默
2013-06-30 17:29:19
2043
原创 u-boot中memory(SDRAM/DDR)相关命令 -- md
[u-boot: v2013.07-rc2][Author: Bo Shen ]1. 使能md命令通过定义:CONFIG_CMD_MEMORY, 就可以使能md命令。注:由于在include/config_cmd_default.h>里面已经有此定义,在板子相关的configure文件中(位于),默认情况下,都会include此文件。所以,u
2013-06-30 17:19:48
4277
原创 u-boot中memory(SDRAM/DDR)相关命令 -- base
[u-boot: v2013.07-rc2][Author: Bo Shen ]1. 使能base命令通过定义:CONFIG_CMD_MEMORY, 就可以使能base命令。注:由于在include/config_cmd_default.h>里面已经有此定义,在板子相关的configure文件中(位于),默认情况下,都会include此文件。所以,u-boo
2013-06-30 16:34:54
1757
原创 u-boot中memory(SDRAM/DDR)相关命令 -- meminfo
[u-boot: v2013.07-rc2][Author: Bo Shen ]1. 使能meminfo命令通过定义:CONFIG_CMD_MEMINFO, 就可以使用meminfo命令。例:在板子相关的configure文件中(位于)加入:#define CONFIG_CMD_MEMINFO, 重新编译,此命令即被加入。其源代码:common/cm
2013-06-30 16:17:26
2087
原创 where bond0 device come from
When debug Linux kernel, there is one more network device with "ifconfig -a", it show a bond0 device. detail information as following:-----------------------------------------------------bond0 -
2013-05-11 21:55:20
1019
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人