/// Building a Cross Development Environment for Windows /// The following explains how to build a Linux cross development environment on Windows by utilizing "coLinux". Compatible Operating Systems are: - WindowsXP - Windows2000 Table of Contents: 1. coLinux version confirmation 2. Installing coLinux 3. Windows network settings 4. Preparing the related development environment files 5. Starting coLinux 6. Creating a user 7. Windows - coLinux file sharing 8. Readying the cross development environment Appendix coLinux network settings References 1. coLinux version confirmation ====================== Both version 0.6.2 (coLinux-0.6.2) and the newer development version (coLinux-0.6.3-rc2.exe) have been prepared for use. Version 0.6.2 should be used in most cases. Only attempt to use the development version if you specifically want to use a newly added feature or are having problems using version 0.6.2. 2. Installing coLinux ===================== 1) Execute coLinux-0.6.2.exe 2) Change the install destination folder to c:\colinux and follow through the install procedure keeping all other settings at their defaults. Note: If specifying a different install destination folder, please edit the default.colinux.xml file downloaded in step 4 to reflect the change. 3. Windows Network Settings =========================== Bridge Connection - WindowsXP only ---------------------------------- 1) Open Network Connections from the Start menu, Control Panel. 2) Select both the external network connection and the connection with the device name "TAPI-Win ... " (Using the ctrl key) 3) Select Bridge Connections from the Advanced menu. (If an error message appears, change the appropriate properties as according to the message) Note: If in an environment without a LAN, it may not be possible to create a bridge connection. If so, use a router connection as described below. Router Connection ----------------- 1) Open Network Connections from the Start menu, Control Panel. (Start menu, Settings, Network and Dial-up Connections) 2) Right click the external network connection and choose Properties. 3) From the Advanced (Sharing) tab, check the allow Internet connection sharing box to share the connection. Note: Instructions in the brackets show the Windows2000 menu names. 4. Preparing the Related Development Environment Files ====================================================== 1) Download the following files from http://armadillo.atmark-techno.com/download/colinux/ - root_fs.lzh (Root file system) - swap_device_256M.lzh (Swap file system) - home_fs_2G.lzh (The file system mounted to /home) - default.colinux.xml.lzh (Device configuration file) Note: The numbers in the swap_device_... and home_fs... files represent the file size after decompression. Please download your preferred file size. Note2: Some decompression software can fail to properly decompress the files. (LHA Utility 32 Ver1.46 has been confirmed to decompress the files properly) 2) Decompress the downloaded files. 5. Starting coLinux =================== 1) Open a DOS prompt window and move to the install directory (c:\colinux) 2) Enter the following command: colinux-daemon.exe -c default.colinux.xml 3) After the boot log and then "colinux login: " is displayed, login as "root" 6. Creating a User ================== [coLinux ~]# adduser [user name] Example: Making a user named "somebody" [coLinux ~]# adduser somebody 7. Windows - coLinux File Sharing ================================= Use the smbmount command to assign the Windows shared folder to a coLinux directory. [coLinux ~#] smbmount //[IP address]/[shared folder name]/[mount location] Example: Here, the Windows shared folder named "shared" is mounted to /mnt/smb and the Windows IP address in 192.168.1.100 [coLinux ~]# mkdir /mnt/smb [coLinux ~]# smbmount //192.168.1.100/shared Data can now be transfered between the "shared" directory and /mnt/smb 8. Readying the Cross Development Environment ============================================= Please follow the instructions in the appropriate product manual to build the necessary cross development environment on coLinux. (Any files need for the development environment can be copied to the shared folder used in the previous step and then be accessed from coLinux) Supplement - coLinux network settings ===================================== The following describes how to change the network configuration set to DHCP at install to a fixed IP address. Note: The change to a fixed IP address is necessary if the eth0 device IP address is not shown after entering the ifconfig command. [Settings Example] IP Address: 192.168.0.40 Network Mask: 255.255.255.0 Gateway: 192.168.0.1 DNS: 192.168.0.1 1) Edit the /etc/network/interfaces file to show the following: auto lo eth0 iface lo inet loopback iface eth0 inet static address 192.168.0.40 gateway 192.168.0.1 netmask 255.255.255.0 2) Edit the /etc/resolv.conf file to show the following nameserver 192.168.0.1 3) To put the changes into effect: [coLinux ~]# /etc/init.d/networking restart References ========== http://www.colinux.org/ http://www.geocities.jp/error_storm/ http://iwa.ath.cx/colinux/ http://ehe.s57.xrea.com/index.php?coLinux Note: The above URLs include instructions such as how to increase the working disk space and mount a CD-ROM in coLinux