2006/03/28 

參與OLPC專案

透過參與"The Fedora OLPC Project",你可以關心OLPC或參與設計
Join Mail List: olpc-software

References

 

網站參考:"Engadget.com"-OLPC模型機及首次在聯合國的資訊社會世界峰會上首次亮相的照片

這個網站有OLPC模型機及首次在聯合國的資訊社會世界峰會上首次亮相的照片
標題:"Engadget @ MIT 之 100 美元筆記型電腦全記錄"
Engadget chiness
照片Link到http://chinese.engadget.com

2006/03/23 

Linux 連上Windows的遠端桌面連線方法-使用tsclient

Linux 連上Windows的遠端桌面連線方法-使用tsclient
Fedora 4 須以下套件及其相關套件(請到rpm.pbone.net查詢)
rdesktop-1.4.0-2.i386.rpm
tsclient-0.132-6.i386.rpm
安裝完執行#tsclient 設定以下內容
Computer:
User Name:
連上

2006/03/22 

Fedora 5的網路芳鄰(檔案分享/Samba/cifs)

Fedora 5的網路芳鄰(檔案分享/Samba/cifs)
smbfs在Fedora 5中預設已經由cifs取代了
看它預設的/boot/config-2.6.15-1.2054_FC5.img可以看出來
#CONFIG_SMB_FS is not set
反而是
CONFIG_CIFS_FS=m
在Fedora 4時,這二個選項都是=m
所以以前一直習慣於使用samba來mount,例如
#mount -t samba -o username='martin' //192.168.1.x/martin /mnt
現在需要改為
#mount -t cifs -o username='martin' //192.168.1.x/martin /mnt

#mount.cifs //yourIP/sharename /mnt -o username='domain\name',password='passwd'
註1:如果cifs沒有被自動載入,請先執行#modprobe cifs再執行mount
註2:mount -t cifs可改用mount.cifs(/sbin/mount.cifs不存在時,可能會無法mount,請安裝之samba-client套件)

2006/03/21 

gcin安裝經驗(Fedora 4)

gcin安裝經驗(Fedora 4)
完成於2006/3/20 Fedora 5 Release Day (Download ...)

環境:Fedora 4
Gnome 2.10.0

gcin所需裝件
必須要安裝以下RPM套件
qt-3.3.4-14
qt-devel-3.3.4-14
pkgconfig-0.15.0-6

及以下二個手動Make套件
gcin-1.1.7.tar.bz2
gtk+-2.4.14.tar.bz2


安裝步驟
1.所有.rpm
#rpm -ivh xxxx-x.x.x-xx.rpm

2.所有tar檔
解 #tar jxvf xxx-x.x.x.tar.bz2
用以下指令
#./configure
#make
#make install
個人曾經在 make gtk+發生二個 ld link不到lib的事
例如 /usr/bin/ld -lqt-mt .... 未發現之類的錯誤
遇到這種錯誤很容易解決的
請注意 -lqt-mt 這指的是 -l = link 之後的gt-mt指的就是libqt-mt
使用以下指令找到 libqt-mt*的路徑
#find / -name libqt-mt
/usr/lib/qt-3.3/lib/libqt-mt.so....
只要在compiler(gcc或g++)的參數加上 -I/usr/lib/qt-3.3/lib 即可
#g++ -g -I.. ....... -I/usr/lib/qt-3.3/lib ....-lqt-mt
但要注意執行時的路徑(請看錯誤訊息下方第一次出現Leaving directory '/aaa/bbb/ccc',即表示你可以使用#cd /aaa/bbb/ccc後執行gcc或g++)
3.設定
#vi /etc/sysconfig/i18n
LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"
SUPPORTED="en_US.UTF-8:en_US:en"
GTK_IM_MODULE=gcin
QT_IM_MODULE=xim
XIM_PROGRAM=gcin
LC_CTYPE="zh_TW"
#export XMODIFIERS=@im=gcin
#export GTK_IM_MODULE=gcin
#gcin-setup 設定你想要的輸入法,個人是用"大易"
#gcin &
4.可能的問題與解決方式
4.1 gcin &執行時發生 gcin:IMOpenIM failed. Maybe another XIM server is running.
請刪除process
#ps -A|grep gcin看看process是否重覆(用killall gcin刪除)
4.2 gcin &如果還是有錯誤
建議你Login到中文化的gnome中,再試試
5.完成畫面

2006/03/20 

MY OLPC

每個兒童都有一台筆記型電腦"(One Laptop per Child,簡稱OLPC)是個新成立的非盈利性組織。
最早由OLPC現任主席Nicholas Negroponte于2005年1月在瑞士達沃斯(Davos)舉辦的世界經濟論壇(World Economic Forum)會議上首次宣佈。
希望致力于研發100美元低價筆記型電腦,以幫助全世界兒童提供更好的教育。
給予全世界的兒童進行探索(explore),實驗(experiment)和表達(express)他們心聲的機會。
註:100美元,應該是個理想的目標,也許一開始還達不到。

2006/03/15 

在RDC上使用Microwindows

在RDC上使用Microwindows

環境說明

硬體
CPU:RDC:R3210G ( 32-BIT RISC MICROPROCESSOR)
http://www.rdc.com.tw
VGA:XGI Z7

軟體
OS:Linux Kernel 2.6.11
BootLoader:redboot
VGA:Z7 frame buffer Driver並建立/dev/fb0
Compiler環境:
Package: Fedora 4
Compiler:gcc 4.0 (uclibc)
路徑/opt/bin/i386-linux-uclibc-gcc

步驟:
1. 由於microwindows的xconfigure需要/bin/wish所以安裝
#rpm -ivh tk-8.4.9-1_2.rhfc4.at.i386.rpm
2.下載 microwindows-src-0.91.tar.gz 工作目錄 /work
# tar -zxvf microwindows-src-0.91.tar.gz -C /work
3.修改config
建議使用/work/microwindows-0.91/src/Configs/config.uclibc
#cp config.uclibc ../config
#vi /work/microwindows-0.91/src/config
修改內容如下
NATIVETOOLSPREFIX = /opt/bin/i386-linux-uclibc- #指定compiler
SHAREDLIBS = N #microwindows本身的Lib不使用Share (但uclibc還是dynamic)
FBVGA = N
HAVETEXTMODE = N #無/dev/ttys0
GPMMOUSE = N #無mouse
NOMOUSE = Y
SCANKBD = N #無keyboard
NOKBD = Y
4.修正部份gcc版本問題
4.1 file: src/demos/nanowm/wlist.c 修改
//static win *windows = NULL;
win *windows = NULL;
4.2 file: src/mwin/winevent.c 修改
//static int
int
abs(int n)
實在非常不習慣這種GUN code style :p
5. make
6. 完成
試試將 bin/mdemo放到target board上試試

完整config如下
####################################################################
# Microwindows and Nano-X configuration file
#
# This package can be configured to run on Linux (MIPS, ARM, POWERPC or x86)
# UNIX, ELKS, DJGPP, or RTEMS.
# On Linux, we've got drivers for Linux 2.x framebuffers, X11, or,
# svgalib for VGA hardware.
# In addition, a gpm or direct serial mouse driver can be configured.
# On ELKS, the bios screen driver and serial mouse driver are always used.
#
# Either Microwindows and/or Nano-X can be built.
# Microwindows and Nano-X have several demos.
#
# For MSDOS makes, see mcmwin.mak and mcnanox.mak
####################################################################

####################################################################
#
# build target platform
#
# Valid ARCH values are:
#
# LINUX-NATIVE
# LINUX-TCC
# LINUX-ARM
# LINUX-MIPS
# LINUX-POWERPC (BIGENDIAN=Y)
# LINUX-SPARC (BIGENDIAN=Y)
# LINUX-SH
# FREEBSD-X86
# SOLARIS (BIGENDIAN=Y)
# TRIMEDIA
# RTEMS
# DJGPP
# ELKS
#
# note: ELKS can't build client/server nano-X, nor widget lib
#
####################################################################
ARCH = LINUX-NATIVE
BIGENDIAN = N
NATIVETOOLSPREFIX = /opt/bin/i386-linux-uclibc-
ARMTOOLSPREFIX = arm-linux-
MIPSTOOLSPREFIX = mipsel-linux-
POWERPCTOOLSPREFIX = powerpc-linux-
SHTOOLSPREFIX = sh-linux-gnu
RTEMSTOOLSPREFIX = i386-rtemself-

####################################################################
#
# Compiling options
#
####################################################################
OPTIMIZE = Y
DEBUG = N
VERBOSE = N
THREADSAFE = Y
GPROF = N

####################################################################
#
# Libraries to build: microwin, nano-X, nanowidget, object frameworks
#
####################################################################
MICROWIN = Y
NANOX = Y
SHAREDLIBS = N
OBJFRAMEWORK = N


####################################################################
#
# Demos to build
#
####################################################################
MICROWINDEMO = Y
NANOXDEMO = Y

####################################################################
#
# Applications to build
#
####################################################################
NANOWM = Y

####################################################################
#
# The pixeltype of the native hardware or underlying graphics library.
# This definition defines the PIXELVAL to be 32, 16 or 8 bits wide.
# If using Linux framebuffer, set to MWPF_TRUECOLOR0888, and use fbset.
# It also enables GdArea/GrArea for this particular pixel packing format.
#
# define MWPF_PALETTE /* pixel is packed 8 bits 1, 4 or 8 pal index*/
# define MWPF_TRUECOLOR8888 /* pixel is packed 32 bits 8/8/8/8 truecolor w/alpha*/
# define MWPF_TRUECOLOR0888 /* pixel is packed 32 bits 8/8/8 truecolor*/
# define MWPF_TRUECOLOR888 /* pixel is packed 24 bits 8/8/8 truecolor*/
# define MWPF_TRUECOLOR565 /* pixel is packed 16 bits 5/6/5 truecolor*/
# define MWPF_TRUECOLOR555 /* pixel is packed 16 bits 5/5/5 truecolor*/
# define MWPF_TRUECOLOR332 /* pixel is packed 8 bits 3/3/2 truecolor*/
#
####################################################################
SCREEN_PIXTYPE = MWPF_TRUECOLOR0888

####################################################################
#
# NanoX: Put Y to the following line to link the nano-X application
# with the server. This is required for ELKS, if no network is present,
# or for speed or debugging. This affects the nano-X server only.
#
####################################################################
LINK_APP_INTO_SERVER = N

####################################################################
# Shared memory support for Nano-X client/server protocol speedup
####################################################################
HAVE_SHAREDMEM_SUPPORT = N

####################################################################
#
# File I/O support
# Supporting either below drags in libc stdio, which may not be wanted
#
####################################################################
HAVE_FILEIO = Y

####################################################################
# BMP, GIF reading support
####################################################################
HAVE_BMP_SUPPORT = Y
HAVE_GIF_SUPPORT = Y
HAVE_PNM_SUPPORT = Y
HAVE_XPM_SUPPORT = Y

####################################################################
# JPEG support through libjpeg, see README.txt in contrib/jpeg
####################################################################
HAVE_JPEG_SUPPORT = N
INCJPEG = .
LIBJPEG = /usr/lib/libjpeg.so

####################################################################
# PNG support via libpng and libz
####################################################################
HAVE_PNG_SUPPORT = N
INCPNG = .
LIBPNG = /usr/lib/libpng.a
LIBZ = /usr/lib/libz.a

####################################################################
# TIFF support through libtiff
####################################################################
HAVE_TIFF_SUPPORT = N
INCTIFF = .
LIBTIFF = /usr/lib/libtiff.a

####################################################################
# native .fnt loadable font support
####################################################################
HAVE_FNT_SUPPORT = Y
HAVE_FNTGZ_SUPPORT = N
FNT_FONT_DIR = "fonts/bdf"

####################################################################
# T1 adobe type1 font support thru t1lib
####################################################################
HAVE_T1LIB_SUPPORT = N
INCT1LIB = .
LIBT1LIB = /usr/lib/libt1.a

####################################################################
# TrueType font support thru FreeType 1.x
####################################################################
HAVE_FREETYPE_SUPPORT = N
INCFTLIB = /usr/include/freetype1
LIBFTLIB = /usr/lib/libttf.so
FREETYPE_FONT_DIR = "fonts/truetype"

####################################################################
# Support for many kinds of font thru FreeType 2.x
# Must also set FREETYPE_FONT_DIR in the Freetype 1.x section
####################################################################
HAVE_FREETYPE_2_SUPPORT = N
INCFT2LIB = .
LIBFT2LIB = /usr/lib/libfreetype.a

####################################################################
# PCF font support
# Selecting HAVE_PCFGZ_SUPPORT will allow you to directly read
# .pcf.gz files, but it will add libz to the size of the server
####################################################################
HAVE_PCF_SUPPORT = Y
HAVE_PCFGZ_SUPPORT = N
PCF_FONT_DIR = "fonts/pcf"

####################################################################
# Chinese Han Zi Ku loadable font support
####################################################################
HAVE_HZK_SUPPORT = N
HZK_FONT_DIR = "fonts/chinese"

####################################################################
# Chinese BIG5 compiled in font support (big5font.c)
####################################################################
HAVE_BIG5_SUPPORT = N

####################################################################
# Chinese GB2312 compiled in font support (gb2312font.c)
####################################################################
HAVE_GB2312_SUPPORT = N

####################################################################
# Japanese JISX0213 compiled in font support (jisx0213-12x12.c)
####################################################################
HAVE_JISX0213_SUPPORT = N

####################################################################
# Korean HANGUL font support (jo16x16.c)
####################################################################
HAVE_KSC5601_SUPPORT = N

####################################################################
# Japanese EUC-JP support using loadable MGL font
####################################################################
HAVE_EUCJP_SUPPORT = N
EUCJP_FONT_DIR = "fonts/japanese"

####################################################################
# Generate screen driver interface only with no fonts or clipping
####################################################################
NOFONTSORCLIPPING = N

####################################################################
#
# Window move algorithms for Microwindows
# Change for tradeoff between cpu speed and looks
# ERASEMOVE repaints only backgrounds while window dragging, quicker.
# Otherwise an XOR redraw is used for window moves only after button up,
# quickest (should set for ELKS)
# UPDATEREGIONS paints in update clipping region only for better look and feel
#
####################################################################
ERASEMOVE = Y
UPDATEREGIONS = Y

####################################################################
#
# Link with Gray Palette (valid only for 4bpp modes)
#
####################################################################
GRAYPALETTE = N

####################################################################
#
# If the platform is running UNIX, Linux or RTEMS...
#
####################################################################
ifneq ($(ARCH), ELKS)

# X Window screen, mouse and kbd drivers
X11 = N

ifeq ($(X11), Y)
# startup screen width, height, (depth for palette mode only)
SCREEN_WIDTH = 640
SCREEN_HEIGHT = 480
SCREEN_DEPTH = 4

# You may want to turn this on for XFree86 4.x or if your backing store
# isn't functioning properly
USE_EXPOSURE = Y

else

# framebuffer screen driver (linear and/or vga 4 planes)
# set VTSWITCH to include virtual terminal switch code
# set FBREVERSE to reverse bit orders in 1,2,4 bpp
FBVGA = N
FRAMEBUFFER = Y
FBVGA = N
VTSWITCH = N
FBREVERSE = N

# set HAVETEXTMODE=Y for systems that can switch between text & graphics.
# On a graphics-only embedded system, such as Osprey and Embedded
# Planet boards, set HAVETEXTMODE=N
HAVETEXTMODE = N

# svgalib screen driver
VGALIB = N

# direct VGA hardware access screen driver
HWVGA = N

####################################################################
# Mouse drivers
# GPMMOUSE gpm mouse
# SERMOUSE serial Microsoft, PC, Logitech, PS/2 mice (/dev/psaux)
# SUNMOUSE Sun Workstation mouse (/dev/sunmouse)
# NOMOUSE no mouse driver
#
# Touchscreen drivers
# IPAQMOUSE Compaq iPAQ, Intel Assabet (/dev/h3600_tsraw)
# ZAURUSMOUSE Sharp Zaurus (/dev/sharp_ts)
# TUXMOUSE TuxScreen (/dev/ucb1x00-ts)
# ADSMOUSE Applied Data Systems GC+ (/dev/ts)
# ADS7846MOUSE ADS7846 chip, PSI OMAP Innovator (/dev/innnovator_ts)
# EPMOUSE Embedded Planet (/dev/tpanel)
# VHMOUSE Vtech Helio (/dev/tpanel)
# MTMOUSE MicroTouch serial (/dev/ttyS1)
# PSIONMOUSE Psion 5 (/dev/touch_psion)
# YOPYMOUSE Yopy (/dev/yopy-ts)
# HARRIERMOUSE NEC Harrier (/dev/tpanel)
####################################################################
GPMMOUSE = N
SERMOUSE = N
SUNMOUSE = N
NOMOUSE = Y
IPAQMOUSE = N
ZAURUSMOUSE = N
TUXMOUSE = N
ADSMOUSE = N
ADS7846MOUSE = N
EPMOUSE = N
VHMOUSE = N
MTMOUSE = N
PSIONMOUSE = N
YOPYMOUSE = N
HARRIERMOUSE = N
LIRCMOUSE = N

# keyboard or null kbd driver
TTYKBD = N
SCANKBD = N
PIPEKBD = N
IPAQKBD = N
LIRCKBD = N
NOKBD = Y

endif

# Secondary keyboard drivers.
# You may have a normal keyboard driver in addition to these
# drivers, e.g. for both normal keyboard and IR input.
LIRCKBD2 = N

####################################################################
# Screen driver specific configuration
# SA1100_LCD_LTLEND 4bpp driver with arm SA1100 LCD controller
# INVERT4BPP 4bpp inverted pixel driver for VTech Helio
####################################################################
SA1100_LCD_LTLEND = N
INVERT4BPP = N

####################################################################
#
# If the platform is a RTEMS box ....
#
####################################################################
ifeq ($(ARCH), RTEMS)

# Location & BSP information of the RTEMS build
RTEMS_BUILD = /tools/build-i386-elf-rtems
RTEMS_BSP = pc386
LINK_APP_INTO_SERVER = Y

endif

endif

####################################################################
#
# If the platform is an ELKS box ...
#
####################################################################
ifeq ($(ARCH), ELKS)

# Higher speed asm driver, c driver of hercules screen driver
ASMVGADRIVER = Y
CVGADRIVER = N
HERCDRIVER = N
DBGDRIVER = N

# Mouse support
SERMOUSE = Y

endif

2006/03/13 

查詢某檔案,屬於那個RPM

查詢某檔案,屬於那個RPM
#rpm -qf /bin/ls
coreutils-5.2.1-48
#rpm -ql coreutils 查這個RPM安裝了那些檔案

2006/03/08 

Fedora/Linux: cp為何一直出現 overwrite ?

Fedora/Linux: cp為何一直出現 overwrite ?
實際情況:
在Fedora 4中
#cp 1 2
cp: overwrite '2'?
就算用 -f force也是出現overwrite ?
原因:
cp預設被 alias cp='cp -i'
因為 -i是interactive
解決方法:
所以建議指定/bin/cp 1 2或
cp 1 2 --reply=yes

2006/03/07 

BIOS相關網路資源

BIOS相關網路資源
http://www.we-link.com.tw/forum/archive/
http://www.bioscentral.com/
http://www.bios-drivers.com/
http://en.wikipedia.org/wiki/BIOS

google search keyword
bios site:www.phoenix.com/NR/

Phoenix
Boot spec

2006/03/02 

Make的預設規則

Make的預設規則
使用使用make -p列出預計規則
可以看到預設為 cc = CC
LD = ld
...

 

The Linux Kernel API

The Linux Kernel API
kernel API手冊

http://www.kernelnewbies.org/documents/kdoc/kernel-api/linuxkernelapi.html

部份中文化
http://vovo2000.com/type-lab/linux/kernel-api/linux-kernel-api.html

About me

  • I'm Martin's blog 馬汀的部落格
  • From 中壢市, 桃園縣, Taiwan
  • -----BEGIN GEEK CODE BLOCK----- Version: 3.1 Comment: For info see http://www.geekcode.com GC/CS/CC/E/IT/TW d- s a C++++ L++++ P+ L++++ E--- W+++ N++ o+ K- w+++ O- M- V- PS+ PE++ Y+ PGP+ t 5- X++ R- tv- b+++ DI+ D-- G e+++ h+ r+ y+ z? ------END GEEK CODE BLOCK------ /**************************** 旅行是我生命的動力 它的樂趣從計劃旅行開始 我樂於分享旅行及Linux Kernel上的每一件事. ****************************/
My profile