To create the rootfs contents you need an Ubuntu PC (we used an Ubuntu 14.10) with the some packages installed. Type these commands to install them:
~$ sudo apt-get install multistrap ~$ sudo apt-get install qemu ~$ sudo apt-get install qemu-user-static ~$ sudo apt-get install binfmt-support ~$ sudo apt-get install dpkg-cross
"Multistrap is a tool that automates the creation of complete, bootable, Debian root filesystems. It can merge packages from different repositories. Extra packages are added to the rootfs simply by listing them. All dependencies are taken care of.".
Create a working directory in your home directory:
~$ mkdir multistrap ~$ cd multistrap ~/multistrap$
Download the right multistrap configuration file for your board:
Read Multistrap man page to understand each directive meanings.
When your multistrap.conf file is ready launch type:
~/multistrap$ sudo multistrap -a armel -f multistrap_arietta.conf
~/multistrap$ sudo multistrap -a armhf -f multistrap_acqua.conf
At the end of this procedure the directory target-rootfs directory will contents the whole rootfs tree to be moved into the second partition of an Acme board bootable microSD.
Configure now the Debian packages using the armel CPU emulator QEMU and chroot to create a jail where dpkg will see the target-rootfs as its root (/) directory.
~/multistrap$ sudo cp /usr/bin/qemu-arm-static target-rootfs/usr/bin ~/multistrap$ sudo mount -o bind /dev/ target-rootfs/dev/ ~/multistrap$ sudo LC_ALL=C LANGUAGE=C LANG=C chroot target-rootfs dpkg --configure -a
At this prompt:
Reply with < No >.
Some other prompt will appear during the configuration. Reply to them as you like.
When finished the target rootfs will be almost ready to be moved on the target microSD but it still needs some last extra configuration file before using it.
Based on type board you are using select one of these script to create the the right configuration files:
~/multistrap$ chmod +x arietta.sh ~/multistrap$ sudo ./arietta.sh
create now the target root login password:
~/multistrap$ sudo chroot target-rootfs passwd Enter new UNIX password: type your password Retype new UNIX password: type your password again passwd: password updated successfully
If you want to take a look to the packages installed type:
~/multistrap$ sudo chroot target-rootfs dpkg --get-selections | more
Check the Debian version:
~/multistrap$ cat target-rootfs/etc/debian_version 7.9
Add more packages if needed by typing:
~/multistrap$ sudo LC_ALL=C LANGUAGE=C LANG=C chroot target-rootfs apt-get install packagename
Please note that will be possible to add packages also directly on the target board. In than case the command will be simply:
# apt-get install packagename
then remove the qemu-arm-static executable:
~/multistrap$ sudo rm target-rootfs/usr/bin/qemu-arm-static
Mount the microSD on your Ubuntu Linux PC and copy all the target-rootfs contents in the second microSD partition mounted on /media/$USER/rootfs.
~/multistrap$ sudo rsync -axHAX --progress target-rootfs/ /media/$USER/rootfs/
Unmount the microSD, insert it in your board, insert the DPI cable to see the Kernel bootstrap messages and boot.