Wikia

coLinux

Sctp

238pages on
this wiki
Talk0

Debian 2.6.17.14 with sctp builtin Edit

Download the following Edit

  1. Kernel source http://www.kernel.org kernel 2.6.17.14
  2. coLinux snapshot http://www.colinux.org/snapshots http://www.colinux.org/snapshots/devel-coLinux-20061003.exe

Test snapshot Edit

  1. install the exe from the snapshot to c:\coLinux
  2. modify configure file, make sure
cobd0=c:\coLinux\debian30ext3.1gb
cofs0=c:\
eth0=slirp,,tcp:23:23

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-2.6.17.14.tar.bz2 /usr/src
bunzip2 /usr/src/linux-2.6.17.14.tar.bz2
cd /usr/src
tar -xvf linux-2.6.17.14.tar
ln -s linux-2.6.17.14 linux
  1. download colinux source http://www.henrynestler.com/colinux/testing/devel-0.8.0/20061003/devel-colinux-20061003.tar.gz

to /usr/src

  1. download colinux kernel patch

http://www.henrynestler.com/colinux/testing/devel-0.8.0/20061003/colinux-2.6.17-20061003.patch.gz 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/2.6.17.14 ~/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 127.0.0.1 -P 2222 -l&; sctp_test -H 127.0.0.1 -P 2223 -h 127.0.0.1 -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.

Around Wikia's network

Random Wiki