237pages on
this wiki
Add New Page
Add New Page Talk0

Debian with sctp builtin Edit

Download the following Edit

  1. Kernel source kernel
  2. coLinux snapshot

Test snapshot Edit

  1. install the exe from the snapshot to c:\coLinux
  2. modify configure file, make sure

Configure Apt, and prep system Edit

  1. in /etc/network/interface, iface eth0 inet dhcp
  2. in shell, export http_proxy=http://some-proxy.address:8000
apt-setup ;to choose some better download sources
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install gcc-3.4
apt-get install gcc
apt-get install wget
apt-get install build-essential
apt-get install xlibs-dev
apt-get install libncurses5-dev
apt-get install unzip bzip2
rm /usr/bin/gcc
ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
mv ~/linux- /usr/src
bunzip2 /usr/src/linux-
cd /usr/src
tar -xvf linux-
ln -s linux- linux
  1. download colinux source

to /usr/src

  1. download colinux kernel patch to /usr/src

cd /usr/src
gunzip colinux-2.6.17-20061003.patch.gz
gunzip devel-colinux-20061003.tar.gz
tar -xvf devel-colinux-20061003.tar
cd /usr/src/linux
patch -p1 < ../colinux-2.6.17-20061003.patch
  1. fix mm/filemap.c
  2. fix arch/i386/Kconfig

Build the kernel Edit

  1. make mrproper
  2. copy the devel-colinux-20061003/conf/linux-2.6.17-config to /usr/src/linux/.config
  3. run: make menuconfig
    • enable SCTP as builtin module(*) but not a loadable moduele(m)
    • disable IPv6
  4. run: make dep vmlinux
    • go get some coffee. You should have a vmlinux file ~2.9MB at the top level directory ( /usr/src/linux/vmlinux).
  5. run: make modules modules_install
    • get more coffee if you need it.

Get it running Edit

  1. copy the vmlinux file from /usr/src/linux to windows host(* not good to overwrite the running copy *).
  2. run: cd; mkdir lib; mkdir lib/modules
  3. run: cp -r /lib/modules/ ~/lib/modules/.
  4. run: cd; tar cvf vmlinux-modules.tar lib;gzip vmlinux-modules.tar
  5. copy vmlinux-modules.tar.gz to windows host
  6. now you can stop coLinux, then repalce vmlinux and vmlinux-modules.tar.gz with the newly created.
  7. rerun your coLinux
  8. to test sctp
  9. apt-get install lksctp-tools
  10. run: sctp_test -H -P 2222 -l&; sctp_test -H -P 2223 -h -p 2222 -s

Known incompatibilities Edit

Building tips Edit

Related Pages Edit

BuildingWithDebian Building_a_custom_kernel Rebuilding co Linux with fuse-compatibility Explains how to rebuild the coLinux kernel to be compatible with fuse.

Also on Fandom

Random Wiki