2011年3月24日 星期四

JDK for Win7 x64

安裝 Android_SDK(R10)時,一直說找不到 JDK 嗎??


Press back when you get the notification and then next. This time it will find the JDK.

(don't know why, but it works on Windows 7 64)

This is from the link below... Thanks~~
http://stackoverflow.com/questions/4382178/android-sdk-installation-doesnt-find-jdk

2011年3月21日 星期一

Java5 for 32 bit & Java6 for 64 bit Ubuntu

http://source.android.com/source/download.html

The Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository and indicate to the system which JDK should be used.

Java 6: for Gingerbread and newer
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo add-apt-repository "deb-src http://archive.canonical.com/ubuntu lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk
sudo update-java-alternatives -s java-6-sun

Java 5: for Froyo and older
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper main multiverse"
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper-updates main multiverse"
sudo apt-get update
sudo apt-get install sun-java5-jdk
sudo update-java-alternatives -s java-1.5.0-sun

To set up your development environment, install the following required packages:
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev

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

2011年2月9日 星期三

Some 32bit library for 64bit Ubuntu

http://www.pyoix.com/a/143.html ==> Page Lost...

錯誤1:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

解決:
sudo apt-get install libc6-dev-i386

錯誤2:
host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++

解決:
sudo apt-get install g++-multilib

錯誤3:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz

解決:
sudo apt-get install lib32z1-dev

錯誤4:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libncurses.so when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libncurses.a when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.so when searching for -lncurses
/usr/bin/ld: skipping incompatible /usr/lib/libncurses.a when searching for -lncurses
/usr/bin/ld: cannot find -lncurses

解決:
sudo apt-get install lib32ncurses5-dev

錯誤5:
In file included from external/qemu/android/skin/window.c:19:
prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:55:22: error: X11/Xlib.h: 沒有那個文件或目錄
prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:56:23: error: X11/Xatom.h: 沒有那個文件或目錄
解決:
sudo apt-get install libx11-dev

Set up sun-java6-jdk for Ubuntu 10.10 64bit for Android 2.3

http://www.cyberciti.biz/faq/howto-ubuntu-linux-install-configure-jdk-jre/

.....

I solved like this:
sudo gedit /etc/apt/sources.list
Delete the line that it is causing the mal formed line error.
Find the lines where canonical repositories are commented with #
Uncomment lines.
Save file
Execute again
sudo apt-get update

Try again installing with
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk

2010年11月10日 星期三

Android SDK 在 Ubuntu 的設定...

http://forum.cyanogenmod.com/topic/116-tutorial-ubuntu-android-sdkadbfastboot-updated/

2010年9月23日 星期四

ubuntu 9.10 , build android , java 1.5

The info below was come from http://greekclaud.blogspot.com/2009/12/ubuntu-910-build-android-java-15.html

=========================================================

1. edit /etc/apt/sources.list and add source link


deb http://tw.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse


2.
sudo apt-get update & sudo apt-get install sun-java5-jdk
3.
sudo update-alternatives --config java
4.
sudo update-java-alternatives -s java-1.5.0-sun
5. remark the previous source line at file /etc/apt/sources.list

2010年5月28日 星期五

Android BSP need Java5

The message below was from....
http://ubuntuforums.org/showthread.php?t=193018


sudo gedit /etc/apt/sources.list

## Uncomment the following two lines to fetch updated software from the network
deb http://archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted

## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu dapper universe
deb-src http://archive.ubuntu.com/ubuntu dapper universe

deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted

deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe

deb http://archive.ubuntu.com/ubuntu dapper multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper multiverse

deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse

Then run sudo aptitude update


Then run sudo apt-get install sun-jave5-jre

2010年5月20日 星期四

Ubuntu boot CMD 設定

for NFS:
CONFIG_CMDLINE="root=/dev/nfs rw nfsroot=192.168.0.10:/tftpboot/ubuntu-taiwan ip=192.168.0.20:192.168.0.10:192.168.0.1:255.255.255.0:test::off console=ttySAC1,115200"

for SD:
CONFIG_CMDLINE="root=/dev/mmcblk0p1 rootfstype=ext2 init=/init console=ttySAC1,115200"
or
CONFIG_CMDLINE="root=/dev/mmcblk0p1 rootfstype=ext3 init=/init console=ttySAC1,115200"

2010年3月17日 星期三

測試用 XP 序號!!!

以下序號皆為 VLK 大量授權序號:
HCQ9D-TVCWX-X9QRG-J4B2Y-GR2TT
MRX3F-47B9T-2487J-KWKMF-RPWBY
QC986-27D34-6M3TY-JJXP9-TBGMD
CM3HY-26VYW-6JRYC-X66GX-JVY2D
DP7CM-PD6MC-6BKXT-M8JJ6-RPXGJ
F4297-RCWJP-P482C-YY23Y-XH8W3
HH7VV-6P3G9-82TWK-QKJJ3-MXR96

所有序號只適用於 Windows XP Home及PRO的 32bits /SP1/SP2/SP3

2009年7月30日 星期四

開機畫面的選擇

首先把要開機Logo圖片(png格式)放在linux2.6.14文件中的 drivers/video/logo中,終端選擇進入drivers/video/logo目錄,進行以下操作:
(假設開機圖片名為linux.png)
# pngtopnm linux.png > linuxlogo.pnm

# pnmquant 224 linuxlogo.pnm > linuxlogo224.pnm

# pnmtoplainpnm linuxlogo224.pnm >linuxlogo224.ppm

# mv linuxlogo224.ppm logo_linux_clut224.ppm //替換原來的啟動文件


參考自:http://linux.chinaunix.net/bbs/archiver/?tid-1004697.html

2009年6月7日 星期日

參考自:http://wiki.jk2410.org/wiki/TFTP_Server_%E8%88%87_xinetd_%E7%9A%84%E5%AE%89%E8%A3%9D:_Debian/Ubuntu


安裝 tftpd-hpa 與 xinetd

在Ubuntu下,tftp是不能單獨運作的,需要xinetd這個網路管理的背景程式之支援。於是我們同時安裝這兩個套件。

$ sudo apt-get install tftpd-hpa xinetd

[編輯] xinetd.conf 設定

安裝完tftp與xinetd後,需要在xinetd的設定檔/etc/xinetd.conf中寫入相關設定。

$cat /etc/xinetd.conf
# Simple configuration file for xinetd
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
}
includedir /etc/xinetd.d

雖然我們可以將設定內容寫入此處,但還有更好的設定檔設定方法。xinetd.conf引入專門存放設定檔的資料夾includedir /etc/xinetd.d。因此更結構化的設定檔配置就是自己建立一個tftp設定檔於此資料夾內。

$sudo vim /etc/xinetd.d/tftp

存入

service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}

由於背景網路程式已經由inetd更換成xinetd,可將/etc/inetd.conf中關於tftp的部份註解以避免混淆。

#:BOOT: TFTP service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."
#tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp

完成以上設定後,還需要讓xinetd讀入新參數並重新啟動。

sudo /etc/init.d/xinetd reload
sudo /etc/init.d/xinetd restart


檢查一下tftp是否真的在運作

$ sudo netstat -anp | grep tftp
udp 0 0 0.0.0.0:69 0.0.0.0:* 5249/in.tftpd
unix 2 [ ] DGRAM 17654 5249/in.tftpd

2009年5月26日 星期二

Command to set Android IP,DNS

1. Setup IP address, this one is using DHCP
netcfg eth0 dhcp

2. Set the DNS server to HiNet DNS server
setprop net.dns1 168.95.1.1

After these setting, Android in 6410 can access internet by it's browser....

P.S.

Hinet DNS

  • 主 DNS:168.95.1.1
  • 次 DNS:168.95.92.1

So-net DNS

  • 主 DNS:61.64.127.1
  • 次 DNS:61.64.127.2

Seednet DNS

  • 主 DNS:139.175.55.244
  • 次 DNS:139.175.252.16

GIGA-Net DNS

  • 主 DNS:203.133.1.6
  • 次 DNS:203.187.0.6

2009年4月24日 星期五

RTC support in SMDK6410 Android (Linux 2.6.27)

Enable the option...
menuconfig => Device Driver => Real Time Clock =>
select all above "*** I2C RTC driver"

And you can see the /dev/rtc0 & /dev/rtc1 under console.


How to verify RTC?

Try to set date(# date -s 20090324.150000) in system, and the time will change.

2009年4月20日 星期一

Android 1.5 for SMDK6410 (環境設定篇)


1. The following files are required for building S3C6410 Android.
-Cross Tool Chain: 4.3.1-eabi-armv6-20080707.tar.bz2
-U-BOOT: s3c-u-boot-1.1.6_android.tar.bz2
-Linux Kernel: android_kernel_smdk6410.tar.gz
-Android Cupkake: cupcake.tar.bz2
-Delta File: delta.tar.gz
-Build Script: script.tar.gz

**以上所有檔案皆由 Samsung release.....


2. Ubuntu 8.1 環境設定:
JAVA
Update apt-get information before installation.
# sudo apt-get update
Install JAVA JDK
# sudo apt-get install sun-java6-jdk

FLEX
Flex is a tool for generating scanners.
# sudo apt-get install flex

BISON
Bison is a general-purpose parser generator.
# sudo apt-get install bison

gperf
gperf is a program that generates perfect hash functions.
# sudo apt-get install gperf

libsdl-dev
SDL is a library that allows programs portable low level access to a video framebuffer, audio output, mouse, and keyboard.
# sudo apt-get install libsdl-dev

libesd0-dev
This program is designed to mix together several digitized audio streams for playback by a single device.
# sudo apt-get install libesd0-dev

libwxgtk2.6-dev
This package provides files needed to compile wxWidgets programs.
# sudo apt-get install libwxgtk2.6-dev

zlib1g-dev
zlib is a library implementing the deflate compression method.
# sudo apt-get install zlib1g-dev


build-essential
This package contains an informational list of packages which are considered essential for building Debian packages.
# sudo apt-get install build-essential

libncurses5-dev
This package contains the header files, static libraries and symbolic links.
# sudo apt-get install libncurses5-dev

################################
5/18 Update : This step can't work
Uboot-mkimage
This package contains the mkimage utility.
# sudo apt-get uboot-mkimage

如何擴大Vmware 原來建立的硬盤大小

參考: http://milton.bloghome.cn/posts/103705.html

vmware安裝目錄下
vmware-vdiskmanager.exe
在dos提示符下運行,不加任何參數時,給出此程序使用方法:
---------------------------------------------------------------------
VMware Virtual Disk Manager - build 12544.
Usage: vmware-vdiskmanager.exe OPTIONS diskName | drive-letter:
Offline disk manipulation utility
Options:
-c : create disk; need to specify other create options
-d : defragment the specified virtual disk
-k : shrink the specified virtual disk
-n : rename the specified virtual disk; need to
specify destination disk-name
-p : prepare the mounted virtual disk specified by
the drive-letter for shrinking
-q : do not log messages
-r : convert the specified disk; need to specify
destination disk-type
-x : expand the disk to the specified capacity
Additional options for create and convert:
-a : adapter type (ide, buslogic or lsilogic)
-s : capacity of the virtual disk
-t : disk type id
Disk types:
0 : single growable virtual disk
1 : growable virtual disk split in 2Gb files
2 : preallocated virtual disk
3 : preallocated virtual disk split in 2Gb files
The capacity can be specified in sectors, Kb, Mb or Gb.
The acceptable ranges:
ide adapter : [100.0Mb, 950.0Gb]
scsi adapter: [100.0Mb, 950.0Gb]
ex 1: vmware-vdiskmanager.exe -c -s 850Mb -a ide -t 0 myIdeDisk.vmdk
ex 2: vmware-vdiskmanager.exe -d myDisk.vmdk
ex 3: vmware-vdiskmanager.exe -r sourceDisk.vmdk -t 0 destinationDisk.vm
dk
ex 4: vmware-vdiskmanager.exe -x 36Gb myDisk.vmdk
ex 5: vmware-vdiskmanager.exe -n sourceName.vmdk destinationName.vmdk
ex 6: vmware-vdiskmanager.exe -k myDisk.vmdk
ex 7: vmware-vdiskmanager.exe -p m:
(A virtual disk first needs to be mounted at m:
using the VMware Diskmount Utility.)
-------------------------------------------------------------

D:\VM>c:vmware-vdiskmanager.exe -x 20GB Ubuntu.vmdk
Failed to expand the disk 'Ubuntu.vmdk': An error occurred while writing a file;
the disk is full. Data has not been saved. Free some space and try again (0xd00
000008).

我試過,可是不成功...感覺像是硬碟要有新Size的空間,VM tool 幫你做 ghost 而已....

Fedora 8 可用的開機選單修改方式

參考 http://blog.nanaimoinn.com/index.php?blog=3&p=329&more=1&c=1&tb=1&pb=1

要變更fedora Core 4中 grub的開機選單,可以用文字編輯器將下列檔案打開.

/etc/grub.conf

其中

default=0 是指預設的那一個作業系統來開機的選項.

timeout=30 是指30秒後grub自動以預設的作業系統來進行開機.

title 其字串為供開機選單選擇的字串.