2012-11-11 04:15:01 +01:00
|
|
|
// -*- mode:doc; -*-
|
2013-02-13 13:59:02 +01:00
|
|
|
// vim: set syntax=asciidoc:
|
2012-11-11 04:15:01 +01:00
|
|
|
|
|
|
|
Beyond Buildroot
|
|
|
|
================
|
|
|
|
|
|
|
|
Boot the generated images
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
NFS boot
|
|
|
|
~~~~~~~~
|
|
|
|
|
|
|
|
To achieve NFS-boot, enable _tar root filesystem_ in the _Filesystem
|
|
|
|
images_ menu.
|
|
|
|
|
2012-11-16 05:54:19 +01:00
|
|
|
After a complete build, just run the following commands to setup the
|
2012-11-11 04:15:01 +01:00
|
|
|
NFS-root directory:
|
|
|
|
|
|
|
|
-------------------
|
|
|
|
sudo tar -xavf /path/to/output_dir/rootfs.tar -C /path/to/nfs_root_dir
|
|
|
|
-------------------
|
|
|
|
|
2012-11-27 12:59:17 +01:00
|
|
|
Remember to add this path to +/etc/exports+.
|
|
|
|
|
2012-11-11 04:15:01 +01:00
|
|
|
Then, you can execute a NFS-boot from your target.
|
|
|
|
|
|
|
|
Chroot
|
|
|
|
------
|
|
|
|
|
|
|
|
If you want to chroot in a generated image, then there are few thing
|
|
|
|
you should be aware of:
|
|
|
|
|
|
|
|
* you should setup the new root from the _tar root filesystem_ image;
|
|
|
|
|
|
|
|
* either the selected target architecture is compatible with your host
|
|
|
|
machine, or you should use some +qemu-*+ binary and correctly set it
|
|
|
|
within the +binfmt+ properties to be able to run the binaries built
|
|
|
|
for the target on your host machine;
|
|
|
|
|
|
|
|
* Buildroot does not currently provide +host-qemu+ and +binfmt+
|
|
|
|
correctly built and set for that kind of use.
|