From: Henry N. <Hen...@Ar...> - 2008-01-10 23:36:36
|
jitubhai ambani wrote: > > thanks a lot!! > I recompiled my host with CONFIG_REGPARM off and the module inserted all > right... :-) > but.. how do i run the daemon (with linux as a host) > what do i pass for the following parameters: > cobd0= > root= Configure is the same way as under Windows: cobd0=root.fs root=/dev/cobd0 > if someone can send me a sample configuration file for linux as a host, > it'll be really great... [ For 'someone' should mail "answer all", not send to me only. ;-) ] This is my debian.cfg under Linux as host: >>> cat debian.cfg >>> kernel=vmlinux # mem=200 # initrd=initrd.gz cobd0=Debian-3.0r0.ext3.100mb.img cobd1=/tmp/swap256m eth0=slirp eth1=tuntap,host0 root=/dev/cobd0 <<< end <<< This is my start script under Linux with network: >>> cat run.sh >>> export COLINUX_CONSOLE_FONT=:12 export LD_LIBRARY_PATH=$HOME/colinux/mingw32/i686-co-linux/lib export PATH=.:$PATH if [ ! -f /tmp/swap256m ] then dd if=/dev/zero of=/tmp/swap256m bs=1k count=256 || exit 1 mkswap /tmp/swap256m || exit 1 chown hn.users /tmp/swap256m fi sync ; sleep 1 echo "Install colinux module now" insmod colinux.ko colinux-daemon @debian.cfg & PID=$! # Waits spawning net daemon, before config host side of net sleep 3 ifconfig host0 192.168.200.1 netmask 255.255.255.0 echo "coLinux PID=$PID" wait $PID <<< end <<< Please read also current doc/building, section "For Linux as host" in http://colinux.wikia.com/wiki/BuildingColinux0.8.0 and http://colinux.svn.sourceforge.net/svnroot/colinux/branches/devel/doc/building -- Henry N. |