beyond-buildroot.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // -*- mode:doc; -*-
  2. // vim: set syntax=asciidoc:
  3. == Beyond Buildroot
  4. === Boot the generated images
  5. ==== NFS boot
  6. To achieve NFS-boot, enable _tar root filesystem_ in the _Filesystem
  7. images_ menu.
  8. After a complete build, just run the following commands to setup the
  9. NFS-root directory:
  10. -------------------
  11. sudo tar -xavf /path/to/output_dir/rootfs.tar -C /path/to/nfs_root_dir
  12. -------------------
  13. Remember to add this path to +/etc/exports+.
  14. Then, you can execute a NFS-boot from your target.
  15. ==== Live CD
  16. To build a live CD image, enable the _iso image_ option in the
  17. _Filesystem images_ menu. Note that this option is only available on
  18. the x86 and x86-64 architectures, and if you are building your kernel
  19. with Buildroot.
  20. You can build a live CD image with either IsoLinux, Grub or Grub 2 as
  21. a bootloader, but only Isolinux supports making this image usable both
  22. as a live CD and live USB (through the _Build hybrid image_ option).
  23. You can test your live CD image using QEMU:
  24. -------------------
  25. qemu-system-i386 -cdrom output/images/rootfs.iso9660
  26. -------------------
  27. Or use it as a hard-drive image if it is a hybrid ISO:
  28. -------------------
  29. qemu-system-i386 -hda output/images/rootfs.iso9660
  30. -------------------
  31. It can be easily flashed to a USB drive with +dd+:
  32. -------------------
  33. dd if=output/images/rootfs.iso9660 of=/dev/sdb
  34. -------------------
  35. === Chroot
  36. If you want to chroot in a generated image, then there are few thing
  37. you should be aware of:
  38. * you should setup the new root from the _tar root filesystem_ image;
  39. * either the selected target architecture is compatible with your host
  40. machine, or you should use some +qemu-*+ binary and correctly set it
  41. within the +binfmt+ properties to be able to run the binaries built
  42. for the target on your host machine;
  43. * Buildroot does not currently provide +host-qemu+ and +binfmt+
  44. correctly built and set for that kind of use.