自kernel.org遭受攻击,android.git.kernel.org梦见了电子羊,到kernel.org linux.com?linux.org 停机维护,android.git.kernel.org直接连域名解析都关了
这导致repo拼命想连接android.git.kernel.org,然后一次一次失败

但是repo还得继续用啊,默认情况下 都是从 android.git.kernel.org ?下载全套的repo工具集到.repo/repo目录下,再用这套工具集去下载git服务器上的源码库。

网上有个办法 http://carltao.blog.51cto.com/856514/667469 但我确实没找出作者修改了什么地方

于是继续google,总算被我找到完美的解决办法了继续阅读

在编译Tom3q所写s3c6410 android 图形驱动模块(g2d,g3d)时,遇到如下错误

红字部分是主要错误,“kmalloc”,“kfree”错误是由于缺少头文件引起的

#include <linux/slab.h>

添加后解决

问题是由于2.6.36内核之后 去掉了原来的ioctl,添加两个新的成员,所以会出错

  1. long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
  2. long (*compat_ioctl) (struct file *, unsigned int, unsigned long);

所以修改源文件中file_operations内

.ioctl 改为 .compat_ioctl 即可

OK,编译通过,警告咱就忽略了?:mrgreen:

如何为代码选择开源许可证,这是一个问题。世界上的开源许可证,大概有上百种。很少有人搞得清楚它们的区别。即使在最流行的六种—-GPLBSDMITMozillaApacheLGPL—-之中做选择,也很复杂。

乌克兰程序员Paul Bagwell,画了一张分析图,说明应该怎么选择。只用两分钟,你就能搞清楚这六种许可证之间的最大区别。下面是阮一峰先生制作的中文版。继续阅读

Directspace 的Debian 6因为缺少LBS,安装软件时会提示一下错误:
insserv: warning: script ‘S10vzquota’ missing LSB tags and overrides
insserv: warning: script ‘vzquota’ missing LSB tags and overrides
insserv: There is a loop between service vzquota and rmnologin if started
insserv:??loop involving service rmnologin at depth 3
insserv:??loop involving service vzquota at depth 2
insserv:??loop involving service rsyslog at depth 1
insserv: Starting vzquota depends on rmnologin and therefore on system facility $all' which can not be true!
insserv: There is a loop between service vzquota and rmnologin if started
insserv: Starting vzquota depends on rmnologin and therefore on system facility
$all’ which can not be true!
insserv: Starting vzquota depends on rmnologin and therefore on system facility $all' which can not be true!
insserv: Starting vzquota depends on rmnologin and therefore on system facility
$all’ which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing screen (–configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports

解决方法:
编辑/etc/init.d/vzquota
在start(){? ?前面添加如下内容:继续阅读

上一篇中,介绍了如何编译、运行arm-linux-gdb 和 gdbserver,这一篇中介绍怎样结合Eclipse-cdt进行图形化编译调试

首先当然是使用CDT创建项目并添加源文件。

  1. 在左侧 Project Explorer 的项目名上点右键->Properties 进入项目属性设置
  2. 选择 C/C++ Build->Settings 在Tool Settings中,将Toolchain修改为arm版本

    其他选项默认就好,有需要自己修改



    继续阅读

做嵌入式Linux开发也不用再羡慕windows程序员VS集成开发环境的强大,我们同样能够搭建出给力的IDE。

今天在这里记录一下我使用Eclipse-cdt,gdb,gdbserver搭建远程arm调试的过程。

首先介绍下,嵌入式Linux的GDB调试环境由Host和Target两部分组成,Host端可以理解为本机,Target端为嵌入式设备。
Host端使用arm-linux-gdb,Target 端使用gdbserver。
调试时,应用程序在嵌入式目标系统上通过运行,而gdb调试在Host端。

  1. 编译gdb
    在GNU官网下载最新版GDB ,我这里下载的是7.2版本gdb-7.2.tar.gz

可以通过export命令将/home/aliang/arm-gdb/bin目录加入PATH,使arm-linux-gdb可以直接使用,也可以直接拷贝到/usr/bin 或arm-linux-gcc同目录继续阅读

  1. 安装tftpd
  2. 创建 /etc/xinetd.d/tftp文件,填写以下内容
  3. 创建 /tftpboot 目录
  4. 重启xinetd服务
  5. 在本机测试
  6. 在开发板上测试

yaourt-Yet AnOther User Repository Tool

Yaourt是archlinux方便使用的关键部件之一,但没有被整合到系统安装中的工具。建议在装完系统重启之后,更新完pacman和基本系统之后,就安装这个工具。

简便的安装

最简单安装Yaourt的方式是添加Yaourt源至您的 /etc/pacman.conf:继续阅读