I prefer a chroot environment over VM on linux host system.
Here few hints (mini howto)
Install debian debootstrap
now switch to root user
su - root
#cd in a directory with enough disk space i prefer home root /home
cd /home
debootstrap --arch=i386 stable ./chroot-stable http://httpredir.debian.org/debian
wait to finish the base install then
just copy paste this to a terminal
cd /home/chroot-stable/
mount -t proc none proc
mount --rbind /sys sys
mount --rbind /dev dev
# login on the debian system
linux32 env -i HOME=/root TERM=$TERM $(which chroot) . bash -l
cat <<EOF > /etc/apt/sources.list
#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#
###### Debian Main Repos
deb http://ftp.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.debian.org/debian/ jessie main contrib non-free
###### Debian Update Repos
deb http://ftp.debian.org/debian/ jessie-proposed-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ jessie-proposed-updates main contrib non-free
EOF
grep -v rootfs /proc/mounts > /etc/mtab
apt-get update
apt-get upgrade
apt-get install eatmydata bash-completion
#this speed up apt-get package install few thousand % faster ^^ if a normal hard disk is used
dpkg-divert --rename /usr/bin/dpkg
cat >/usr/bin/dpkg <<-EOT
#!/bin/sh
exec eatmydata /usr/bin/dpkg.distrib "\$@"
EOT
chmod +x /usr/bin/dpkg
apt-get install python python2.7 python3 perl imagemagick subversion git gcc g++ binutils autoconf automake libtool-bin make bzip2 libncurses5-dev libreadline-dev zlib1g-dev flex bison patch texinfo tofrodos gettext pkg-config realpath libstring-crc32-perl gawk libusb-dev unzip intltool libacl1-dev libcap-dev libc6-dev libglib2.0-dev unzip wget curl zip libssl-dev bc
then switch to a normal user
now install and build your openwrt with full host performance
For relogin after a system restart just this is needed
su - root
cd /home/chroot-stable/
mount -t proc none proc
mount --rbind /sys sys
mount --rbind /dev dev
# login on the debian system
linux32 env -i HOME=/root TERM=$TERM chroot . bash -l
su - builduser
(Last edited by trismo on 18 Jul 2017, 06:25)