beyond-buildroot.txt 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // -*- mode:doc; -*-
  2. Beyond Buildroot
  3. ================
  4. Boot the generated images
  5. -------------------------
  6. NFS boot
  7. ~~~~~~~~
  8. To achieve NFS-boot, enable _tar root filesystem_ in the _Filesystem
  9. images_ menu.
  10. After a complete build, just run the following commands to setup the
  11. NFS-root directory:
  12. -------------------
  13. sudo tar -xavf /path/to/output_dir/rootfs.tar -C /path/to/nfs_root_dir
  14. -------------------
  15. Remember to add this path to +/etc/exports+.
  16. Then, you can execute a NFS-boot from your target.
  17. Chroot
  18. ------
  19. If you want to chroot in a generated image, then there are few thing
  20. you should be aware of:
  21. * you should setup the new root from the _tar root filesystem_ image;
  22. * either the selected target architecture is compatible with your host
  23. machine, or you should use some +qemu-*+ binary and correctly set it
  24. within the +binfmt+ properties to be able to run the binaries built
  25. for the target on your host machine;
  26. * Buildroot does not currently provide +host-qemu+ and +binfmt+
  27. correctly built and set for that kind of use.