Wiki > Main > CoLinuxDevelopmentPlatform (compare)
Difference: CoLinuxDevelopmentPlatform (r20 vs. r19)
The 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.)
Note This that this method does not appear to has several limitations. It will work with Windows 98--it just produces "Missing DLL Export" errors. I strongly suggest you update to Windows 2k/XP. Windows 9x is not safe on the internet. 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.)
Note: Will not install for 64-bit Windows -- AlexVanderpol - 2010-02-17
First 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.
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).
Next, download a swap partition from here (the 64MB partition is plenty for this) and extract it to the coLinux install folder.
Now you are ready to go. Run
If everything is working in about 5 seconds you should be prompted to login. The installation is a success!
If you followed the instructions above and have a login prompt then you can login with either of the 2 setup accounts:
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.
This 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...
The following compilers are being used
Rockbox now uses Git instead of Subversion, so the git package needs to be installed via apt-get. Also newer arm and m68k compilers are now used, so they need to be built via tools/rockboxdev.sh.
Checking out and compiling is as easy as:
The Rockbox Debian image is set to US keyboard layout.
To change this run (as root):
- dpkg-reconfigure console-data
After 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):
This will set system and hardware time to MM/DD hh:mm, CCYY. Times are displayed in local time but hardware time uses UTC.
The 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 2008
I 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
Now either do 'mount /mnt/ipod' or restart your coLinux and you're fine to write files there directly! Note that coLinux warns that cofs is still considered experimental and filesystems have been hosed. It is intended for copying files to and from Linux only.
r20 - 30 Jan 2012 - 18:32:24 - BorisGjeneroRevision r20 - 30 Jan 2012 - 18:32 - BorisGjenero
Revision r19 - 17 Feb 2010 - 01:09 - AlexVanderpol
Copyright © by the contributing authors.