2010年9月14日 星期二

ubuntu 登入鑰匙圈

<應用程式><附屬應用程式><密碼及加密金鑰>
裡面會有密碼,按滑鼠右鍵選「變更密碼」輸入舊密碼(應該是你系統帳號的密碼)
密碼與確認的地方保持空白!!!
這樣以後就不會再跑出叫你輸入了

2010年9月12日 星期日

repo sync經常斷線

1. 修改repo

將REPO_URL中的git:修改為http:
2. repo init -u http://~
3. 修改 .repo/manifest.xml
將Fetch…中的git:修改為http:
repo sync ~~

proxy 密碼設定

exec ~/bin/corkscrew proxy.lib.mcu.edu.tw 3128 $* ~/bin/myauth

2010年5月30日 星期日

qualnet makefile

all:
cd main
nmake -f Makefile-windows-vc9
rebuild:
clean
nmake -f Makefile-windows-vc9
clean:
cd main
nmake -f Makefile-windows-vc9 clean

前面要空格.......UNIX格式

2010年3月17日 星期三

USB host 權限檔案修改

在vendor/neo/freerunner/init.gta02.rc

on boot底下加入兩行

chmod 0777 /sys/class/i2c-adapter/i2c-0/0-0073/neo1973-pm-host.0/hostmode
chmod 0777 /sys/devices/platform/s3c-ohci/usb_mode

mokoid.jar的權限設定

在vendor/neo/freerunner/AndroidBoard.mk中

新增一行
PRODUCT_COPY_FILE += \
$(LOCAL_PATH)/com.mokoid.server.xml:system/etc/permissions/com.mokoid.server.xml

當然要先複製XML檔到freerunner底下。

USB-RS232 node 預設權限

修改system/core/init/devices.c

找到 mode_t_get_device_perm 的function

最後一行改成return 0777;

2010年2月27日 星期六

VIMRC的設定


$vi .vimrc
set nu
set backspace=2
set nocompatible

2010年2月26日 星期五

2010年2月25日 星期四

下載android source code

Installing Repo
Repo is a tool that makes it easier to work with Git in the context of Android. For more information about Repo, see Using Repo and Git. To install, initialize, and configure Repo, follow these steps:
Make sure you have a ~/bin directory in your home directory, and check to be sure that this bin directory is in your path:
$ cd ~
$ mkdir bin
$ echo $PATH

Download the repo script and make sure it is executable:

$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a+x ~/bin/repo


Initialise your repository, linking it to the cupcake branch where current development is focused.

  
$ repo init -u git://gitorious.org/android-on-freerunner/freerunner_platform_manifest.git -b cupcake

You will be asked for your name & email during the initialisation. These are used for stamping your commits later.

Now each time you issue a Git or Repo command in this directory it will automatically be referring to the Cupcake branch.

Synchronise the repository. This step will take a very long time for the first sync.

 
$ repo sync

如果你在防火牆後,可以按照以下方法:

I successfully 'GIT' android source through http proxy. Here is my steps:
Download a tool corkscrew from http://www.google.com/url?sa=D&q=http://www.agroman.net/corkscrew/&usg=AFQjCNH80ZnHJCws2QE4Zj6IAISoIMClhQ

$tar zxvf corkscrew-2.0.tar.gz

$cd corkscrew-2.0

$./configure

$make

$cp corkscrew ~/bin

# or to any directory in your $PATH
Create a shell script named 'git-proxy' in ~/bin, include following content:

#!/bin/sh exec ~/bin/corkscrew proxy port $*

Replace ~/bin/ and <...> with your own information.
and then run following command:

$git config --global core.gitproxy ~/bin/git-proxy

2010年2月24日 星期三

Android on freerunner ubuntu環境建置

首先按照android get source 網站的說明安裝

Ubuntu Linux (32-bit x86)
Required Packages:



$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev

You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.

$ sudo apt-get install valgrind
Now verify if you have package fakeroot installed. If not, install it by doing:


$ sudo apt-get install fakeroot



Karmic users can install sun-java5-jdk by adding the following lines to /etc/apt/sources.list:


deb http://us.archive.ubuntu.com/ubuntu/ dapper main restricted
deb http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse
In addition gcc-4.3, g++-4.3, liblzo2-dev and uboot-mkimage are needed:


# sudo aptitude install gcc-4.3 g++-4.3 liblzo2-dev uboot-mkimage sun-java5-jdk
You need to have sun-java5-jdk installed, as noted above, and you need to point the Android Java variables to the correct location. Something like:


$ export JAVA_HOME= /usr/lib/jvm/java-1.5.0-sun
$ export ANDROID_JAVA_HOME=$JAVA_HOME
Set your environment variables:


$ export CC=gcc-4.3
$ export CXX=g++-4.3
And go:


$ make -j 4 TARGET_PRODUCT=fr





The -j parameter will try to optimise the compilation process. The number should represent the double of the amount of cores on your system. In this example, the source is compiled on a dual core system. NOTE: If you are building the Cupcake branch then you need to specify 'freerunner' as the TARGET_PRODUCT, if you are using a newer branch then use 'fr'

也可以編寫一個shell


$vi start.sh
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
export ANDROID_JAVA_HOME=$JAVA_HOME
export CC=gcc-4.3
export CXX=g++-4.3
make -j 4 TARGET_PRODUCT=freerunner

190搞笑

190灌了NOD32....

它的防火牆擋住了我= =

想用VM上網卻被擋住