OpenWrt Forum Archive

Topic: [HOWTO]Compile Kamikaze in Windows with andLinux

The content of this topic has been archived on 16 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Yes I know windows is evil but I don't always have access to a Linux machine

Version 1.1

Installing andlinux
-------------------------
#Download and Install minimal / XFCE version
http://www.andlinux.org/downloads.php

#Required install steps if required
http://www.andlinux.org/install.php

When ask to reboot click "no"

Setting up internet connection in andLinux
---------------------------------------------------
in your Windows TAP-Colinux TCP setting:
change the Mask to 255.255.0.0

Add a DNS NameServer
OpenDNS will work for now
208.67.222.222 or 208.67.220.220


Making dedicated 4GB drive for compile code
--------------------------------------------------
Open command prompt (Start->run->cmd)
cd "C:\Program Files\andLinux\Drives"
fsutil file createnew code.drv 4294967296


Add the following line in C:\Program Files\andLinux\Setting.txt
cobd2=Drives\cod.drv

restart windows

Starting andlinux terminal
------------------------
In toolbar there should be a yin-yang symbol right clicki-right and click "Terminal"
If ask for login username is root and no password
Tip:Inside the windows you can use shift-insert to paste


Format code drive and mount and start script
---------------------------------------------------
fdisk /dev/cobd2
mke2fs -b 1024 -j -v /dev/cobd2
e2fsck -f /dev/cobd2
mkdir /mnt/code
mount -t ext3 /dev/cobd2 /mnt/code
chmod 777 /mnt/code
echo mount -t ext3 /dev/cobd2 /mnt/code > S50mount-code-drive
chmod a+x S50mount-code-drive


Install required apps for compiling
------------------------------------
apt-get update
apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils subversion libncurses5-dev ncurses-term zlib1g-dev gawk


Change to the drive made for code and use su command which is important it will not compile as root
-------------------------------------------------------------
cd /mnt/code
su cobuntu


Ready to Compile in Linux
------------------------------
At this point you can follow the wiki entry "OpenWrtDocs/BuildingKamikazeHowTo" use Google for link
any case I list the steps below.


Get Kamikaze Packages
-------------------------------------
svn co svn://svn.openwrt.org/openwrt/trunk kamikaze
svn co svn://svn.openwrt.org/openwrt/packages packages
cd kamikaze/package
ln -s ../../packages/*/* .
cd ..

Building Kamikaze
Call the configuration menu, set the desired target, select the wanted packages and save. Then start building with make.
-----------------------------------------------------------------------------------------------------------------------
make menuconfig                           # Select your target, packages and other options. Only select the packages you need.
make V=99 ; echo -e '\a'                  # The echo is a bell/beep/alert in BASH (here Debian GNU/Linux), when make finishes will take ~1.5 hour


Hope I got everything....And good luck
hvymetal

Version
1.0 Original
1.1 Add mounting script on startup

(Last edited by hvymetal on 3 Apr 2009, 03:16)

How safe is it to use the openwrt trunk vs the 8.09 branch? If 8.09 si stable, is trunk more like Debian testing or unstable?

The discussion might have continued from here.