⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 colinux.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>  <title></title>  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="clear"><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#colinux" class="toc">CoLinux</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#colinux_installation" class="toc">CoLinux Installation</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#colinux_basics" class="toc">CoLinux Basics</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#colinux_root_pasword" class="toc">CoLinux Root Pasword</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#colinux_configuration" class="toc">CoLinux Configuration</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#colinux_disk_images" class="toc">CoLinux Disk Images</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#starting_a_colinux_session" class="toc">Starting a Colinux Session</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#stopping_a_colinux_session" class="toc">Stopping a Colinux Session</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#more_about_debian" class="toc">More about Debian</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#debian_package_layout" class="toc">Debian Package Layout</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#networking" class="toc">Networking</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#samba" class="toc">Samba</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#xwindows_with_colinux" class="toc">XWindows with CoLinux</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#starting_with_blackfin_development_on_colinux" class="toc">Starting with Blackfin Development on coLinux</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#troubleshooting" class="toc">Troubleshooting</a></span></div></li></ul></li></ul></li></ul></div></div><h2><a name="colinux" id="colinux">CoLinux</a></h2><div class="level2"><p> <a href="http://www.colinux.org" class="urlextern" title="http://www.colinux.org"  rel="nofollow">Colinux</a> Cooperative Linux is a relatively new means to provide Linux services on a Linux or Windows host.</p><p>CoLinux is <strong>not</strong> an emulator or virtual machine. A real Linux kernel will run on your system <strong>alongside</strong> Windows. CoLinux is a system that consists of a Windows kernel driver, a Linux kernel and  some userspace daemon programs. When the colinux-daemon.exe is started, it will parse the given config file, load the linux.sys (Windows) kernel driver and tell it to reserve the specified amount of RAM for the Linux system. Then the daemon loads the Linux kernel in the reserved RAM area and starts it. The Linux kernel is a slightly modified version of the standard x86 kernel. It has been stripped of all parts that directly access the hardware. Instead the kernel uses (with the help of linux.sys) either defined APIs in the Windows kernel or user space programs to access needed resources like storage or network. </p><p>This approach has the advantage, that there is no need for virtualization or emulation. The system behaves (from the user space point of view) like a normal Linux system, because there is one.</p><p>There are of course also some disadvantages:</p><p>The biggest disadvantage is that coLinux runs aside the Windows kernel. It runs on the same hardware abstraction layer that is also called ring0. Inside this CPU abstraction layer, there is no hardware memory protection. This is the same situation as between the Linux or Windows kernel and their device drivers. So a problem in the Linux kernel can bring the Windows kernel down, if Linux violates the Windows address space. Also there are security implications. If a malice user gains root access inside coLinux he can compromise the security of the Windows system as well. Also to load and use coLinux the user has to have administrator rights. (There is the possibility to start coLinux as a service, so it is possible to start coLinux as a normal user, if the user has been granted the right to start the service)</p></div><!-- SECTION [1-2036] --><h3><a name="colinux_installation" id="colinux_installation">CoLinux Installation</a></h3><div class="level3"><p> If you have something different, than an Intel compatible CPU with either a Windows XP or a Windows 2000 based operating system, <strong>coLinux will not work</strong>. You should also have the latest service pack installed.</p><p> <strong>Disclaimer!</strong></p><p> </p><p>The CoLinux system comes as a <strong>tar</strong> file that contains a basic subset of components. </p><ul><li class="level1"><div class="li"> The Windows CoLinux driver</div></li><li class="level1"><div class="li"> A linux kernel vmlinux</div></li><li class="level1"><div class="li"> One or more file system images.</div><ul><li class="level3"><div class="li"> Root file system</div></li><li class="level3"><div class="li"> Swap file</div></li><li class="level3"><div class="li"> Other file systems</div></li></ul></li><li class="level1"><div class="li"> A configuration file.</div></li><li class="level1"><div class="li"> A program that creates empty files of arbitrary size: <strong>mkFile.exe</strong></div></li></ul><p>  &rsquo; </p><p> <a href="http://blackfin.uclinux.org/projects/bfin-colinux" class="urlextern" title="http://blackfin.uclinux.org/projects/bfin-colinux"  rel="nofollow">http://blackfin.uclinux.org/projects/bfin-colinux</a> </p><p>On the Windows machine in which CoLinux is being installed create a root folder(e.g. colinux) where the proper files and subdirectories will be located.  Now make sure that you have the following files located in these specific directories: </p><pre class="code">/colinux/coLinux_setup_rc6.exe/colinux/readme.doc/colinux/extra/PuTTY-setup.exe/colinux/extra/Xming-setup.exe/colinux/sources/colinux-0.7.1-hn4.src/colinux/sources/file-utils/colinux/images/tardump.tgz</pre><p>  </p><p>Now to start the installation procedure, double click the coLinux_setup_rc6.exe icon in the colinux directory.  You should receive a welcome screen that looks like this:</p><p><a href="media/colinxwelcome.png" class="media" target="_blank" title="colinxwelcome.png"><img src="media/colinxwelcome.png" class="media" alt="" /></a></p><p>Now Click on the <strong>Next</strong> button.</p><p>You will then be brought to the coLinux Licenses agreement screen.  </p><p><a href="media/colinuxterms.png" class="media" target="_blank" title="colinuxterms.png"><img src="media/colinuxterms.png" class="media" alt="" /></a></p><p>Here you should read the documentation and <strong>accept the agreement</strong> and then click <strong>Next</strong> if you wish to continue.</p><p>You will then be brought to an information screen which provides the following warning: </p><pre class="code">You should know, that this software installs a Windows kernel driver, that loads a Linux kernel to run aside the Windows kernel. This software can destabilize or crash your system!!You should therefore not use software or edit data, that is vital for you or your business, while running coLinux.</pre><p>After you have read this click the <strong>Next</strong> button to continue the installation.</p><p>You will then be prompted for the directory that you want bfin-colinux installed in (the default is C:\bfin-coLinux).    <acronym title="Gigabyte">GB</acronym>&rsquo;    After entering this information click the <strong>Next</strong> button.</p><p>Next you will be brought to the <strong>Ram and block size selection screen</strong>.</p><p><a href="media/colinuxram.png" class="media" target="_blank" title="colinuxram.png"><img src="media/colinuxram.png" class="media" alt="" /></a></p><p>Here you have to select the size of the actual installation and the amount of RAM, coLinux should use. The coLinux RAM is <strong>exclusively</strong> used by coLinux and will no longer be available for Windows (only as long as coLinux runs). You should reserve as much as possible, where a <strong>minimum</strong> should be <strong>128MB</strong>. You have to remember, that Windows also needs RAM and it should have <strong>at least 128MB</strong> left. For example if you have 256MB, you could try to use 128MB (It is possible, that Windows would not allow coLinux to use that much RAM. If that is the case, try 96MB). If you have 512MB then 256MB or 320MB would be a good idea. Also you should remember that if Windows does not have enough RAM for smooth operation then it will slow coLinux down and could destabilize your system. <strong>Also you should not run unnecessary Windows software, while working with coLinux</strong>. You should also select a bigger swap size than you have selected the RAM size.</p><p>The coLinux standard installation uses about <strong>750MB</strong> space on the rootfs. So you should <strong>at least</strong> select <strong>1GB</strong> for the root file system. If you want to install additional software, you should select it bigger. For the home filesystem, you should select <strong>at least</strong> select <strong>1.8GB</strong>, since you will be installing the uClinux distribution here.</p><p> The next step is to select an IP address for coLinux and install the tuntap driver. </p><p><a href="media/colinuxtap.png" class="media" target="_blank" title="colinuxtap.png"><img src="media/colinuxtap.png" class="media" alt="" /></a></p><p>If this is your first coLinux installation, you should check the <strong>Install a TAP driver</strong> box and select an IP address for the Windows side of the TAP. It should be an address in a not yet routed class C subnet in the address space of 10.xxx.xxx.xxx or 172.16.xxx.xxx or 192.168.xxx.xxx. (An example of a class C network is 10.12.12.xxx).</p><p>There is also an option for serial support. If you activate it, you should also select the right COM port. You should also know, that the console will block, while using the serial port. So you have to use a xterm or PuTTY, while working with the serial port. Now you may hit the <strong>Next</strong> button to move on with the installation.</p><p>In the next step you can select a different start menu folder name.  After you have done this hit <strong>Next</strong>.</p><p>The final step allows you to select additional tasks to install. If this is your first installation, you should select the <strong>PuTTY</strong> ssh client and the <strong>Xming X-Server</strong> to be installed. You can also select the profile for PuTTY and the service if you want.</p><p><a href="media/colinuxputty.png" class="media" target="_blank" title="colinuxputty.png"><img src="media/colinuxputty.png" class="media" alt="" /></a></p><p>If you confirm the installation by hitting <strong>Next</strong> and then <strong>Install</strong>, the setup starts. You can see how the installer installs some files. After a few seconds a new window opens. This is the coLinux console. This is part of the installation process. You are now seeing a small Linux system that installs the main system. <strong>This will take some time</strong>. After a few minutes the window closes and the setup continues with the PuTTY and Xming installation. Maybe Windows asks you if you want to install a driver which is not certified by Microsoft. You should answer this with <strong>Yes</strong>. When the additional software components have been installed, the coLinux setup shows some information and then goes to the login in screen.  Now you have successfully installed coLinux. </p></div><!-- SECTION [2037-8822] --><h3><a name="colinux_basics" id="colinux_basics">CoLinux Basics</a></h3><div class="level3"><p> The system consists of a set of Windows drivers linux.sys. The following command will set up the Windows system.</p><pre class="code">colinux-daemon.exe --install-driver</pre><p> </p><p></p><p> </p><p>Then a CoLinux executable can be run to start the linux virtual machine. This system requires the folowing:</p><ul><li class="level1"><div class="li"> A config file</div></li><li class="level1"><div class="li"> A Linux Kernel</div></li><li class="level1"><div class="li"> An initial Ram Disk.</div></li></ul><p> A full system will also need some disk images:</p><ul><li class="level1"><div class="li"> A root file system image</div></li><li class="level1"><div class="li"> A swap partition</div></li><li class="level1"><div class="li"> One or more additional images.</div></li></ul><p> In this example system the images are compressed and will have to be uncompressed using a &ldquo;stand alone&rdquo; CoLinux boot.</p></div><!-- SECTION [8823-9525] --><h3><a name="colinux_root_pasword" id="colinux_root_pasword">CoLinux Root Pasword</a></h3><div class="level3"><p>The CoLinux root password is <strong>bf533</strong>.</p></div><!-- SECTION [9526-9596] --><h3><a name="colinux_configuration" id="colinux_configuration">CoLinux Configuration</a></h3><div class="level3"><p>A typical configuration file looks like the following example:</p><pre class="code">kernel=vmlinuxmem=120initrd=.\initrd.gzcobd0=.\root.imgcobd1=.\home.imgcobd2=.\swap.imgcofs0=c:\root=/dev/cobd0eth0=slirp,&quot;&quot;,tcp:333:22/tcp:1000:1000/udp:69:69eth1=tuntapcofs1=.cofs2=d:\</pre><p>Once again, this time with comments: </p><pre class="code">kernel=vmlinux#  this specifies the kernel to be usedmem=120#  this is the system virtual memoryinitrd=.\initrd.gz#  this is the initial ram diskcobd0=.\root.img#  specify partition /dev/cobd0 to point to this filecobd1=.\home.img#  specify partition /dev/cobd1 to point to this filecobd2=.\swap.img#  specify partition /dev/cobd2 to point to this filecofs0=c:\#  specify device /dev/cofs0 to point to the c: driveroot=/dev/cobd0#  specify the mounted root file system.#  this can be overridden in the example shown.eth0=slirp,&quot;&quot;,tcp:333:22/tcp:1000:1000/udp:69:69#  set up an ethernet connection using the windows host.#  devices on ports#	tcp 333:22 (ssh)#	tcp 1000:1000 (webmin)#	udp 69:69 (tftp)#  are assigned to services running under the CoLinux virtual machine.eth1=tuntap#  set up ether1 to work with the tap controllercofs1=.#  set up cofs01 to be the current working directorycofs2=d:\#  set up cofs02 to be the CD# You can just add additional cofs entries for other drives or directories.# But you should know, that if you add a directory like cofsxx=j:\somepath you must# not add a trailing backslash. Only if you reference a drive like cofsxx=j:\ then you# have to add a trailing backslash</pre><p>This config file has to work with the <strong>/etc/fstab</strong> on the root file system image.</p><p>Here is a typical example: </p><pre class="code"># &lt;file system&gt; &lt;mount point&gt; &lt;type&gt; &lt;foptions&gt;/dev/cobd0 	/ 		ext3 	defaults 	 0 	0proc 		/proc 		proc 	defaults	 0	0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -