Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Zaurus 中文论坛 Forum Index » pdaXrom & debain & openBSD

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
r198安装过程
View previous topic :: View next topic  
Author Message
joerkky



Joined: 10 Dec 2006
Posts: 75

小企鹅: 2359

PostPosted: 2007-Apr-27 Fri, pm3:56 Reply with quote
 Post subject: r198安装过程

首先从
http://distro.ibiblio.org/pub/linux/distributions/pdaxrom/download/r198/c1000-c3x00/
下载r198的rom文件:
pdaXrom-1.1.0r198-Kathrin-akita-current.zip及pdaXrom-1.1.0r198-Kathrin-akita-uboot.zip,把pdaXrom-1.1.0r198-Kathrin-akita-uboot.zip解压到fat16格式的SD卡或CF卡上,进入ok模式,安装u-boot。安装完之后会重启,重启过程中请按住ok键,这时候会进入uboot的ok模式。提示"Proceed with pdaxrom installation or boot to emergency system? [y/n]"出现之后,把pdaXrom-1.1.0r198-Kathrin-akita-current.zip的文件解压到卡上,选y,则会进一步安装文件系统。安装重启动完毕后就可以使用r198了。
在rom里面的文件读写速度太慢,而且rom容量有限制,所以下一步的工作就是把rom里面的文件系统移到cf卡上去(C1k)。插上cf卡,fdisk成linux分区,然后mkfs.ext3 /dev/hda1,把cf卡格式化成ext3格式。执行如下命令:
cp -a /bin /mnt/cf
cp -a /sbin /mnt/cf
cp -a /usr /mnt/cf
cp -a /lib /mnt/cf
cp -a /etc /mnt/cf
cp -a /var /mnt/cf
cp -a /home /mnt/cf
cp -a /root /mnt/cf
mkdir -p /mnt/cf/tmp
mkdir -p /mnt/cf/sys
mkdir -p /mnt/cf/proc
mkdir -p /mnt/cf/dev
就在cf卡上建立了root文件系统。
startx进入X,会要求校正屏幕。如果出现误操作也没关系,按ctrl+alt(ctrl旁边那个)+backspace回到控制台,输入rm /etc/pointercal,然后再startx就可以重新校正了。
下一步是将主分区的挂载点改为cf卡。用leafpad打开/etc/fstab,将文件改为:
/dev/hda1 / ext3 auto,rw 1 1
/dev/mmcblk0p1 /mnt/card auto auto,owner 0 0
none ...
就可以了。
接下来我们要改动u-boot,使得开机自动用cf卡启动。在windows中用ultraedit打开u-boot.bin,找到mtdblock2 rootfstype=jffs2字样, 改成hda1,多余的字符用空格覆盖。然后将这个改动过后的uboot刷进机器,就可以自动用cf卡启动了。

建立虚拟内存文件(根据你的实际需要改动/.swap):
dd if=/dev/zero of=/.swap bs=1M count=128
mkswap /.swap

添加开机自启动脚本:
在/etc/init.d下建立local文件,内容如下:
#!/bin/sh
start()
{
#开启虚拟内存
swapon /.swap
#亮度调成最暗,省电
echo 1 > /sys/class/backlight/corgi-bl/brightness
#把绿色指示灯做为cf卡指示灯来用
echo ide-disk > /sys/devices/platform/spitz-led\:spitz\:green/trigger
}

stop()
{
#关闭虚拟内存
swapoff -a
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "xxx"
exit 1
esac
exit 0
然后chmod 700 /etc/init.d/local,然后再ln -s /etc/init.d/local /etc/rc.5/S99local就可以了

另外我没有蓝牙设备,所以开机不用启动蓝牙服务,rm /etc/rc.5/S50bluetooth就可以了
Back to top
View user's profile Send private message
plum



Joined: 03 Jan 2007
Posts: 129
Location: 河南 郑州
小企鹅: 3482

PostPosted: 2007-Apr-28 Sat, pm12:24 Reply with quote
 Post subject:

扬扬这种方法是把系统安装到CF卡上了是吗?
如果是高速CF卡速度提升很明显么?

_________________
http://www.imobile365.com
Zaurus C1k+4G CF+Cell CF wifi+2G SD
ubuntu 7.10
WIndows XP Which in the VBOX under the ubuntu
Back to top
View user's profile Send private message Visit poster's website AIM Address30332348 MSN Messenger
joerkky



Joined: 10 Dec 2006
Posts: 75

小企鹅: 2359

PostPosted: 2007-Apr-28 Sat, pm12:32 Reply with quote
 Post subject:

速度和耗电都很明显
Back to top
View user's profile Send private message
Display posts from previous:     
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Zaurus 中文论坛 Forum Index » pdaXrom & debain & openBSD All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

[ 页面生成时间: 秒 ] :: [ 次查询 ] :: [ ]
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional