Hello Corbin,
> Date: Fri, 17 Jul 2015 19:23:00 +0200
> From: Corbin Champion <
corb...@gmail.com>
>
> 1) more important: You provide directions from scratch of how you
> setup your rootfs that you do your static builds under and then I
> try do the same and build a static executable?
I've just rebuilt my build environment from scratch -- assuming the
host OS is *not* Slackware -- this way:
# Get Slackware/ARM packages:
wget -r -np
http://ftp.arm.slackware.com/slackwarearm/slackwarearm-14.1/slackware/{a,ap,d,e,l,n,tcl}/
mkdir ~/rootfs/slackwarearm-14.1
# Extract only a minimal subset (ignore errors):
ls
ftp.arm.slackware.com/slackwarearm/slackwarearm-14.1/slackware/{a,l}/*.t?z | xargs -n 1 tar -C ~/rootfs/slackwarearm-14.1 -xf
# Do a minimal post-installation setup:
mv ~/rootfs/slackwarearm-14.1/lib/incoming/* ~/rootfs/slackwarearm-14.1/lib/
mv ~/rootfs/slackwarearm-14.1/bin/
bash4.new ~/rootfs/slackwarearm-14.1/bin/bash
proot -q qemu-arm -r ~/rootfs/slackwarearm-14.1 /sbin/ldconfig
proot -q qemu-arm -r ~/rootfs/slackwarearm-14.1 ln -s /bin/bash /bin/sh
# Install all package correcty (ignore warnings):
ls
ftp.arm.slackware.com/slackwarearm/slackwarearm-14.1/slackware/*/*.t?z | xargs -n 1 proot -q qemu-arm -S ~/rootfs/slackwarearm-14.1 -b
ftp.arm.slackware.com installpkg
Now, I'm currently building PRoot as described below but it is not
finished yet, so I'll tell you if something goes wrong:
# Build PRoot/ARM statically:
cd ~/git/proot-static-build
mkdir build-arm
cd build-arm
proot -R ~/rootfs/slackwarearm-14.1 -b $(which cmake) -q qemu-arm make glibc-version=glibc-2.18 -f ../GNUmakefile proot -j4
> 2) less important, but interesting: If I give you a tar file of my
> proot src directory, can you build it and hand back the executable?
Yes, feel free to send me your sources.
> On another more upbeat point, I have a couple of new extensions
> working 1) that puts the rootfs on the sdcard (something I wanted to
> do for a while)
Awesome! :D
> and 2) one that hides files and directories that start with a
> certain and putting the rootfs on the sdcard). The one that puts
> the rootfs on the sdcard is not optimized for performance yet, but
> does work. I have a new solution, not finished coding, that will
> make the that hides files was written by the intern I have for the
> summer. I wish push all of these back on a new branch, so other
> people looking for proot extension examples can use them. The one
> that hides files is a great example of using chained system calls.
Indeed, that would be great :)
Cédric.