Causes
I usually use a virtual machine (like VMware) to installing Ubuntu compile, it works very well
but the limitations are also high, it takes up a lot of space on your hard disk, already up to 15G.! Running efficiency N!* it is not very good, it uses the host part of the assigned hardware to work.
Yes, if native Linux on my computer that would work better, but I'm not ready to get out of Windows, Mac.
this is not well suited to me
An Wired ideas
I have been using the DigitalOcean VPS service, it uses a very fast SSD boot time, disk performance is also very high, its servers in the United States, allows for very fast downloads of various software packages (in China, we are not always quickly access to foreign Web sites resources, sometimes even can not open)
the most important of all, it is not expensive! 20G, 512M minimum memory configuration only requires $ 5 a month, when your build is complete, no longer needs, it has even created a mirror and then remove the host, this eliminates the deduction fees.
so I started trying to use a VPS host compiles, it unfortunately successful, and looking good.
Tries to build firmware for the first time
first try again when I try to compile Avalon firmware
System build
builds for Ubuntu 64-bit mirror
Room for system initialization
root@Openwrt-Compiled:/openwrt# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/vda 20G 639M 18G 4% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 242M 4.0K 242M 1% /dev
tmpfs 50M 220K 49M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 246M 0 246M 0% /run/shm
none 100M 0 100M 0% /run/user
Started making
Installing dependent
these probably are used to rely on
sudo apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils subversion libncurses5-dev ncurses-term zlib1g-dev subversion git-core gawk asciidoc libz-dev
Look does not need so many rely on
all installed automatically
requires a few minutes of your time
let's check the space
root@Openwrt-Compiled:/openwrt# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/vda 20G 2.7G 16G 15% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 242M 4.0K 242M 1% /dev
tmpfs 50M 220K 49M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 246M 0 246M 0% /run/shm
none 100M 0 100M 0% /run/user
There is no GUI Linux is too much small
You can either clean up cache
root@Openwrt-Compiled:/openwrt# apt-get clean
root@Openwrt-Compiled:/openwrt# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/vda 20G 1.9G 17G 11% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 242M 4.0K 242M 1% /dev
tmpfs 50M 220K 49M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 246M 0 246M 0% /run/shm
none 100M 0 100M 0% /run/user
Obtained source code
account of Avalon's recommendations
mkdir avalon
cd avalon
svn co svn://svn.openwrt.org/openwrt/trunk@35097 openwrt
git clone https://github.com/BitSyncom/cgminer-openwrt-packages.git
git clone https://github.com/BitSyncom/luci.git
git clone https://github.com/BitSyncom/cgminer.git cgminer-20130108
The remaining build
did some slightly modified, on the path
make thread [-j] is set to 2, 4 is crazy.
cp -R cgminer-openwrt-packages/cgminer openwrt/package
tar -zcvf cgminer-20130108-HEAD.tar.gz cgminer-20130108
python -m SimpleHTTPServer&
cd openwrt
ln -s package/cgminer/root-files files
ln -s package/cgminer/data/feeds.conf
cp package/cgminer/data/config .config
sed -i 's/ck.kolivas.org\/apps\/cgminer\//localhost:8000\//g' package/cgminer/Makefile
./scripts/feeds update -a && ./scripts/feeds install -a
cp package/cgminer/data/config .config #overwrite again
make -j2
cd ../luci
git checkout cgminer-webui
cp -R applications/luci-cgminer ../openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/luci/applications/
cd ../openwrt
make -j2
Some changes needed source packages that also made a change to the package, as this may kernel problem was in complete disorder
if already compiled, modified only for feeds.conf, otherwise, it is feeds.CONF.default
vim feeds.conf
Compile
compiled for the first time after the completion of the space occupied
root@Openwrt-Compiled:/avalon/openwrt# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/vda 20G 6.9G 12G 38% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 242M 4.0K 242M 1% /dev
tmpfs 50M 220K 49M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 246M 0 246M 0% /run/shm
none 100M 0 100M 0% /run/user
amazing, fast, faster than Ubuntu in a virtual machine can be described as great, may also be the data of the marine power
Fun part
this simple file services can easily accomplish tasks
python -m SimpleHTTPServer&