voyage linux是基于Debian的linux发行版,常用于嵌入式,很轻巧,由于实验室嵌入式开发板使用的就是voyage ,使用的是voyage-0.7.iso版本
使用虚拟机加载镜像就可以启动,跟Ubuntu类似,启动后是一个read-only file system。
http://linux.voyage.hk/content/getting-started-live-cd-v07x
然后再按以下教程就可以安装,
需要注意的是:
step3不一定是/dev/hda,可以cat /proc/partions查看,否则step4中需要选择 disk device会有问题
在step4中有选择安装类型,选择的是 Generic PC,其他我都是选默认的
This README.live-cd provide information on how to install Voyage Linux from the
Live CD.
==============================================================================
Installing Voyage Linux to a hard disk from Live CD
==============================================================================
Afte booting the Live CD, login as root (password: voyage)
1. Create distribution directory for installation
# mkdir /tmp/root
# mount -o loop /lib/live/mount/medium/live/filesystem.squashfs /tmp/root
# cd /tmp/root
Note: for version < 0.9~rc2, use
mount -o loop /live/image/live/filesystem.squashfs /tmp/root
2. Make a mount point for installation disk
# mkdir /tmp/cf
3. Format target disk device
# /usr/local/sbin/format-cf.sh /dev/hda
This will create /dev/hda1 ext2 partition on /dev/hda disk device.
** Note that this operation is very dangerous since it will erase your disk!
Make sure what you are doing and must do it right!
4. Start voyage.update installation script
# /usr/local/sbin/voyage.update
Following the instruction to select /tmp/root as distribution directory, and
/tmp/cf as mount point. After the installation complete, simple reboot the
board and Voyage will be started!
Note: You may get read-only file system messages after exiting installation.
This is normal because your settings cannot be updated on a mounted squashfs.
There are some additional packages installed for PXE and NFS server. After
starting Voyage, you can safely remove them by:
# remountrw
# apt-get remove syslinux atftpd nfs-kernel-server \
bzip2 sg3-utils minicom
After all, remove the last line in /etc/dnsmasq.more.conf:
conf-file=/etc/dnsmasq.pxe.conf
重启后就可以了,因为是只读文件系统,可以使用以下方法进行操作:
官网给出的方法:
首先执行
remountrw
然后在 /etc/init.d/voyage-util注释掉
echo -n "Remounting / as read-only ..."
/usr/local/bin/remountro
echo "Done."
然后配置一下网络,我修改vi /etc/network/interfaces设置静态ip,netmask,getway,dns-nameservers。
ping www.baidu.com可以ping通,然后就是配置开发环境,修改软件源等