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 其字串為供開機選單選擇的字串.