十大招标网站排行榜/河北seo网络优化培训
Linux开发者手册
MaxWit Linux开发者手册
第1卷
MaxWit开放实验室
2009年7月1日
目 录
1Host端发行版的选择及软件安装4
1.1关于Linux发行版4
1.2安装软件包4
2Host端设置4
2.1安装NFS Server4
2.2安装kermit5
2.3安装TFTP Server5
3使用MaxWit Linux源码6
3.1获取MaxWit Linux最新源码6
3.2MaxWit Linux 源码目录介绍6
3.3MaxWit Linux生成目录介绍8
3.4安装Toolchain8
3.5编译MaxWit Linux基本系统9
4运行MaxWit Linux(基于实际硬件平台)9
4.1编译Bootloader9
4.2编译Linux Kernel10
4.3烧录images10
4.4启动MaxWit Linux11
Host端发行版的选择及软件安装
关于Linux发行版
目前已测试通过的发行版有(包括64位版):Debian5.0、Ubuntu 9.04、Ubuntu 8.10、Fedora Core 10,推荐使用Debian5.0。若有人有兴趣测试并支持其他Linux发行版,欢迎把patch发给MaxWit项目维护者:
Conke Huconke.hu@ Tiger Yutigerflying.yu@ Fleya Houfleya.hou@
安装软件包
必须安装的软件包:
gcc、g++、make、subversion、git-core、tftpd-hpa、tftp-hpa、nfs-kernel-server, qemu
64位系统上需要额外安装的软件包:
libc6-dev-i386
debian或ubuntu系统上可通过如下命令安装有软件包:
# apt-get install gcc g++ make subversion git-core
注:Ubuntu 用户还需执行以下操作
dpkg-reconfigure dash(Don’t Install dash as /bin/sh)
Host端设置
安装NFS Server
第一步,安装NFS server软件包
# apt-get install nfs-kernel-server
第二步,编辑/etc/exports文件,添加下面两行:
/root/maxwit/rootfs *(rw,sync,no_root_squash,no_subtree_check)
第三步,重启NFS Server:
# /etc/init.d/nfs-kernel-server restart
第四步,测试NFS Server:
# mount -t nfs 11: /root/maxwit/rootfs /mnt/
(假定本机IP为11)
安装kermit
第一步,从源码安装kermit(若前面已安装kermit,则略过这一步)
make linux && make install
wget /files/kermrc
cp –v kermrc ~/.kermrc
第二步,打开~/.kermrc,修改“set line”一行,确认你所用的串口设备,若用的是USB-to-Serial转接器,可以改成:“set line /dev/ttyUSB0”
安装TFTP Server
第一步,编译tftp软件(如果前面已经通过apt方式安装了tftp,则跳过这一步)
# tar jxvf tftp-hpa-0.40.tar.bz2
# cd tftp-hpa-0.40
# ./configure –prefix=/usr
# make && make install
第步,更改tftpd下载载目录
tftp服务器的默认下载目录是/tftpboot,我们要改为maxwit/images。打开/etc/inetd.conf,找到以“tftpd”开头的一行,将其中的/tftpboot改为maxwit/images:
tftpd dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd –smaxwit/images
第,# tftp 11(假定本机IP为11)
> get test
> quit
# cat test
# rm test ~/images/test
使用MaxWit Linux源码
获取MaxWit Linux最新源码
在MaxWit开放实验室的开源项目主页()的“Source”页面上可以下载到全部源码。google提供的默认下载方式是:
# cd
# svn checkout /s