ls -l /mnt/runimg/ total 39259852 -rwxrwxrwx+ 1 systemd-network users 1939865600 Dec 21 22:50 2012-07-15-wheezy-raspbian.img -rwxrwxrwx+ 1 systemd-network users 1939865600 Dec 21 00:08 2013-02-09-wheezy-raspbian.img -rwxrwxrwx+ 1 systemd-network users 2962227200 Dec 20 23:26 2013-12-20-wheezy-raspbian.img -rwx------+ 1 99 99 8956451117 Jan 8 23:31 2017-07-05-raspbian-jessie_compile-armel.img -rwxrwxrwx+ 1 99 99 4555014144 Jan 7 22:32 2019-04-08-raspbian-stretch_chroot.img -rwxrwxrwx+ 1 systemd-timesync 98 3481272320 Jan 2 10:18 2019-04-08-raspbian-stretch-make-new.img -rwxrwxrwx+ 1 root root 3481272320 Dec 30 09:55 2019-04-08-raspbian-stretch-make-old.img -rw-rw-rw-+ 1 pi pi 8589934592 Jan 13 09:44 armel_debian_setup_test.img -rw-rw-rw-+ 1 99 99 2122317824 Jan 12 15:23 armel_readynas_compile_test.img drwxrwxrwx+ 1 root root 160 Dec 19 22:41 bak -rw-rw-rw-+ 1 99 99 2173698048 Jan 8 23:25 readynas_compile_tool.img pi@raspberrypi4:~ $ sudo mkdir -p ~/rpi_mnt pi@raspberrypi4:~ $ sudo losetup -f -P --show /mnt/runimg/armel_debian_setup_test.img /dev/loop0 pi@raspberrypi4:~ $ sudo mount /dev/loop0p2 -o rw ~/rpi_mnt pi@raspberrypi4:~ $ cd ~/rpi_mnt pi@raspberrypi4:~/rpi_mnt $ sudo mount --bind /dev ~/rpi_mnt/dev/ pi@raspberrypi4:~/rpi_mnt $ sudo mount --bind /sys ~/rpi_mnt/sys/ pi@raspberrypi4:~/rpi_mnt $ sudo mount --bind /proc ~/rpi_mnt/proc/ pi@raspberrypi4:~/rpi_mnt $ sudo mount --bind /dev/pts ~/rpi_mnt/dev/pts pi@raspberrypi4:~/rpi_mnt $ sudo mkdir -p /media/netdir/source/raspberrypi/4-09 pi@raspberrypi4:~/rpi_mnt $ sudo mkdir -p ~/rpi_mnt/mnt/compile pi@raspberrypi4:~/rpi_mnt $ sudo mount --bind /media/netdir/source/raspberrypi/4-09 ~/rpi_mnt/mnt/compile pi@raspberrypi4:~/rpi_mnt $ cd ~/rpi_mnt pi@raspberrypi4:~/rpi_mnt $ sudo chroot . bin/bash root@raspberrypi4:/# root@raspberrypi4:/# cd /mnt/compile root@raspberrypi4:/mnt/compile# git clone git://github.com/ariya/phantomjs.git Cloning into 'phantomjs'... fatal: unable to connect to github.com: github.com: Name or service not known root@raspberrypi4:/mnt/compile# cd phantomjs bash: cd: phantomjs: No such file or directory root@raspberrypi4:/mnt/compile# git checkout 2.1.1 fatal: Not a git repository (or any parent up to mount point /mnt/compile) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). root@raspberrypi4:/mnt/compile# git submodule init fatal: Not a git repository (or any parent up to mount point /mnt/compile) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). root@raspberrypi4:/mnt/compile# git submodule update fatal: Not a git repository (or any parent up to mount point /mnt/compile) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). root@raspberrypi4:/mnt/compile# echo "date > BUILD_START" > ./make_cmd.sh root@raspberrypi4:/mnt/compile# echo "python ./build.py -c --release" >> ./make_cmd.sh root@raspberrypi4:/mnt/compile# echo "##--git-clean-qtbase --git-clean-qtwebkit --jobs 2" >> ./make_cmd.sh root@raspberrypi4:/mnt/compile# echo "date > BUILD_END" >> ./make_cmd.sh root@raspberrypi4:/mnt/compile# chmod 751 ./make_cmd.sh root@raspberrypi4:/mnt/compile# ./make_cmd.sh python: can't open file './build.py': [Errno 2] No such file or directory root@raspberrypi4:/mnt/compile# echo 00:00:00 00:00:00 root@raspberrypi4:/mnt/compile# date Mon Jan 13 00:45:23 UTC 2020 root@raspberrypi4:/mnt/compile# cat /re  etc/s resolv.conf # Generated by resolvconf domain 192-168-1 nameserver raspberry1 root@raspberrypi4:/mnt/compile# cat /etc/resolv.conf vi "/etc/resolv.conf" 3 lines, 65 characters# Generated by resolvconf domain 192-168-1 nameserver raspberry1 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ nameserver aspberry1spberry1pberry1berry1erry1rry1ry1y11 192.168.1.1:wq"/etc/resolv.conf" 3 lines, 66 characters written root@raspberrypi4:/mnt/compile# root@raspberrypi4:/mnt/compile# root@raspberrypi4:/mnt/compile# root@raspberrypi4:/mnt/compile# vi /etc/resolv.conf "/etc/resolv.conf" 3 lines, 66 characters# Generated by resolvconf domain 192-168-1 nameserver 192.168.1.1 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ nameserver 192.168.1..251:wq"/etc/resolv.conf" 3 lines, 68 characters written root@raspberrypi4:/mnt/compile# root@raspberrypi4:/mnt/compile# root@raspberrypi4:/mnt/compile# root@raspberrypi4:/mnt/compile# compile ni  finish bash: compile: command not found root@raspberrypi4:/mnt/compile# o  root@raspberrypi4:/mnt/compile# compile finish bash: compile: command not found root@raspberrypi4:/mnt/compile# exit exit pi@raspberrypi4:~/rpi_mnt $ cd pi@raspberrypi4:~ $ sudo umount ~/rpi_mnt/mnt/compile pi@raspberrypi4:~ $ sudo umount ~/rpi_mnt/dev/pts pi@raspberrypi4:~ $ sudo umount ~/rpi_mnt/proc pi@raspberrypi4:~ $ sudo umount ~/rpi_mnt/sys pi@raspberrypi4:~ $ sudo umount ~/rpi_mnt/dev pi@raspberrypi4:~ $ sudo umount ~/rpi_mnt pi@raspberrypi4:~ $ sudo losetup -d /dev/loop0 pi@raspberrypi4:~ $