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.
C1000使用sd/cf卡启动指南
View previous topic :: View next topic  
Author Message
joerkky



Joined: 10 Dec 2006
Posts: 75

小企鹅: 2359

PostPosted: 2006-Dec-12 Tue, pm7:49 Reply with quote
 Post subject: C1000使用sd/cf卡启动指南

一般情况下pdaxrom是安装在rom中,将rom分成bootloader(u-boot), emergency system和rootfs三个部分,其中rootfs就是文件系统。rom使用nand flash芯片,一般来说只有几千次到一万次写入寿命,很容易损坏。所以我用cf卡来代替rom来储存文件系统,这样可以提高使用寿命,而且也扩大了文件系统的空间。缺点就是占用了一个卡槽,而且卡需要格式化成ext格式,在windows下不能直接读取。
具体方法:
首先把卡分区格式化成ext2/ext3格式。
在命令行中:
umount /mnt/card(或者umount /mnt/mmcblk1)或者umount /mnt/cf
对sd卡输入fdisk /dev/mmcblk1(或者mmcblk0,根据你的机器而定,以下均是如此)
对cf卡输入fdisk /dev/hda
提示Command (m for help):
打入d,回车。意思是删除分区。一般只有一个分区,不需要选择
然后打入n,回车。建立新分区。选择primary partition(p),number选择1,然后连续回车两次,默认选择。然后打入wq写入分区表退出。
然后格式化: mkfs.ext3 /dev/mmcblk1p1或mkfs.ext3 /dev/hda1
然后挂载sd卡或者cf卡:mount -t ext3 /dev/mmcblk1p1 /mnt/card或者mount /mnt/cf
然后修改/etc/fstab,把第一行的/dev/root改成/dev/mmcblk1p1或者/dev/hda1,把jffs2改成ext3.然后把对应的/dev/mmcblk1p1行或者/dev/hda1行删除
把主系统拷贝到卡上,不要拷mnt目录。
cp -a /[^m]* /mnt/card或者cp -a /[^m] /mnt/cf/

开机按住ok,把pdaxrom-xxx-uboot-xxx.zip里面的uboot用附件里面的对应uboot文件覆盖,重刷bootloader,就可以了。



u-boot.zip
 Description:

Download
 Filename:  u-boot.zip
 Filesize:  135.48 KB
 Downloaded:  76 Time(s)



Last edited by joerkky on 2006-Dec-15 Fri, pm6:56; edited 1 time in total
Back to top
View user's profile Send private message
badog
论坛管理员


Joined: 01 Nov 2006
Posts: 1021

小企鹅: 6575

PostPosted: 2006-Dec-12 Tue, pm7:53 Reply with quote
 Post subject:

这样调用更快,而且硬盘也能安装.
如果做成双系统就更有价值了.
Back to top
View user's profile Send private message Send e-mail
badog
论坛管理员


Joined: 01 Nov 2006
Posts: 1021

小企鹅: 6575

PostPosted: 2006-Dec-12 Tue, pm7:55 Reply with quote
 Post subject:

安装软件时,也不怕/不够用了吧?
Back to top
View user's profile Send private message Send e-mail
1aaaa



Joined: 12 Nov 2006
Posts: 11

小企鹅: 400

PostPosted: 2006-Dec-12 Tue, pm11:24 Reply with quote
 Post subject:

应该是将pdaxrom操作系统这部份装在卡上了是吧,哪原来装在rom里的是否可删除呢?
Back to top
View user's profile Send private message
wowotou



Joined: 27 Nov 2006
Posts: 38

小企鹅: 1101

PostPosted: 2006-Dec-13 Wed, am10:58 Reply with quote
 Post subject:

Quote:
rom使用nand flash芯片,一般来说只有几千次到一万次写入寿命

这个是让人担心 卡坏了可以再买个 这个坏了就完了

不知道7500能不能这样弄
Back to top
View user's profile Send private message
joerkky



Joined: 10 Dec 2006
Posts: 75

小企鹅: 2359

PostPosted: 2006-Dec-13 Wed, pm4:42 Reply with quote
 Post subject:

回1aaa: rom里面的可以删除。进emergency system, flash_erase /dev/mtd2就删除了
Back to top
View user's profile Send private message
ccpaging



Joined: 07 Dec 2006
Posts: 757

小企鹅: 16604

PostPosted: 2006-Dec-13 Wed, pm6:04 Reply with quote
 Post subject:

badog wrote:
这样调用更快,而且硬盘也能安装.
如果做成双系统就更有价值了.

C1000能上2个CF接口了吗?

_________________
SL-C1000, 1G CF, 1G SD
pdaxrom 1.1beta3
Roku Wifi Card(Used in Cacko 1.23 & pdaXrom 1.1 Beta3)
http://ccpaging.blog.ubuntu.org.cn/
http://ccpaging.osall.com/
http://blog.sina.com.cn/zaurus/
Back to top
View user's profile Send private message
wowotou



Joined: 27 Nov 2006
Posts: 38

小企鹅: 1101

PostPosted: 2006-Dec-14 Thu, am8:56 Reply with quote
 Post subject:

cp -a /* /mnt/card

最后提示空间不够
发现有 /mnt/card/mnt/card/mnt/card......

哪点不对?


后来想 用tar估计不回出现这种情况 还没试 想知道
Quote:
按住2
是什么作用?
Back to top
View user's profile Send private message
badog
论坛管理员


Joined: 01 Nov 2006
Posts: 1021

小企鹅: 6575

PostPosted: 2006-Dec-14 Thu, pm12:37 Reply with quote
 Post subject:

2大约是选择,不然进到其他地方去了
Back to top
View user's profile Send private message Send e-mail
joerkky



Joined: 10 Dec 2006
Posts: 75

小企鹅: 2359

PostPosted: 2006-Dec-14 Thu, pm7:35 Reply with quote
 Post subject:

wowotou wrote:
cp -a /* /mnt/card

最后提示空间不够
发现有 /mnt/card/mnt/card/mnt/card......

哪点不对?


后来想 用tar估计不回出现这种情况 还没试 想知道
Quote:
按住2
是什么作用?



不要拷贝/mnt目录,不然会递归拷贝。
Back to top
View user's profile Send private message
ryebread



Joined: 13 Nov 2006
Posts: 107

小企鹅: 1836

PostPosted: 2006-Dec-28 Thu, pm5:42 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