|
||||||||||||||||||||||||||||||
coLinux Development Platform for RockboxIntroductionThe coLinux development platform is yet another way to get you hacking away at the Rockbox code under windows quickly. coLinux allows you to run a full Linux installation along side windows, unlike VMware where Linux is run under an emulated computer, and cygwin which isn't really Linux. (coLinux also appears to be faster than VMware.) This method has several limitations. It will work on a multi-core CPU, but Linux will only be able to access one CPU core. Compiles from within Linux won't be able to take advantage of multiple cores by running multiple jobs in parallel. CoLinux will not work on 64-bit Windows. It also won't work on Windows 9x or Me. (It should work on Windows 2000, although an upgrade to Windows XP or later is recommended because earlier versions do not receive security updates and are not safe for the Internet.)InstructionsFirst you need to go to coLinux and download the latest version. Uncheck the box asking if you want to install a root filesystem image. Run the installer and when Windows asks you if you wish to download the TAP network driver say yes. When the installer is done, download my premade disc image from here or here (335MB self extracting 7-zip, unzips to about 1.3GB) and extract it to the coLinux installation folder. Now download Toporesize from here and run the .bat file. Select the uncompressed root_fs file and resize it to as large as you need. (1.3GB should be plenty until/unless you need to run rockboxdev.sh).
example.conf file and modify the 2 lines with the locations of the root_fs and the swap file.
Now you are ready to go. Run colinux-daemon.exe @e:\colinux\example.conf (change e:\colinux\example.conf to the location of the file for you).
If everything is working in about 5 seconds you should be prompted to login. The installation is a success!
Using coLinuxIf you followed the instructions above and have a login prompt then you can login with either of the 2 setup accounts:username: rockdev password: rb
or
username: root password: qwe (Although it is not recommended to log in as root) Like the cygwin devkit, you have 2 aliases to make life easier: getsvn will download the entire SVN repository (after you set up the network, naturally) and rbconf will run ../tools/configure. Installed programsThis is basically a Debian installation, so if you need something not installed yet, run aptitude or apt-get to install what you need.. I have installed the following...
CompilingChecking out and compiling is as easy as:
Keyboard layout configurationThe Rockbox Debian image is set to US keyboard layout. To change this run (as root): - dpkg-reconfigure console-dataTime zone configurationAfter installing it is a good idea to check that the image is set to the correct time and timezone. To set the timezone run: base-config Use "date" to show the time. And to change the hardware clock (or actually the virtual hardware clock):
NetworkingThe network settings should work out of the box with Internet Connection Sharing enabled on your primary network connection. Make sure to tell your firewall that the TAP Adaptor is a trusted network. You will also need to update DNS server settings in /etc/resolv.conf. Using a version of coLinux after 0.6.4 and Windows XP I could not successfully configure my network so that coLinux could use it. -- MarcGuay - 17 Dec 2008Advanced stuffI suggest installing coLinux as a system service so it starts up when Windows does. (I have it set to use 64MB RAM, and its running now with me logged in, using a total of 6MB RAM over the 2 processes). do so by running E:\coLinux\colinux-daemon.exe -c e:\colinux\colinux.xml --install-service "CoLinux" and make sure you change the paths.. then go start-> run > services.msc and change the coLinux service to start automatically... then start it and your all set. I don't see a need to have X, since with samba your Linux install is just like a network drive. If you want X I suggest installing it and connecting by VNC, its bloody fast because its on the local comp, and you can always login over the net without needing a X server installed at your remote comp... follow this guide to install x and vnc (don't bother with the XDM), then this one to get vnc running at startup (follow the Debian steps...) You can also mount your music device in coLinux. The newest versions support direct writing to Windows filesystems. You will need to add this line to your colinux.xml file: <cofs_device index="0" type="flat" path="\DosDevices\H:\" enabled="true" /> where H is whatever drive letter your music device is. Then create a mount point in coLinux, eg., /mnt/ipod by first creating the directory and adding this line to /etc/fstab
Comments and stuff
External Linkshttp://colinux.wikia.com/wiki/Getting_Started_with_coLinux_-_Long_manualr21 - 02 Apr 2021 - 20:46:06 - UnknownUser
Copyright © by the contributing authors.
|