faq-troubleshooting.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // -*- mode:doc; -*-
  2. // vim: set syntax=asciidoc:
  3. Frequently Asked Questions & Troubleshooting
  4. ============================================
  5. [[faq-boot-hang-after-starting]]
  6. The boot hangs after 'Starting network...'
  7. ------------------------------------------
  8. If the boot process seems to hang after the following messages
  9. (messages not necessarily exactly similar, depending on the list of
  10. packages selected):
  11. ------------------------
  12. Freeing init memory: 3972K
  13. Initializing random number generator... done.
  14. Starting network...
  15. Starting dropbear sshd: generating rsa key... generating dsa key... OK
  16. ------------------------
  17. then it means that your system is running, but didn't start a shell on
  18. the serial console. In order to have the system start a shell on your
  19. serial console, you have to go into the Buildroot configuration, +System
  20. configuration+, and modify +Port to run a getty (login prompt) on+ and
  21. +Baudrate to use+ as appropriate. This will automatically tune the
  22. +/etc/inittab+ file of the generated system so that a shell starts on
  23. the correct serial port.
  24. [[faq-no-compiler-on-target]]
  25. Why is there no compiler on the target?
  26. ---------------------------------------
  27. It has been decided that support for the _native compiler on the
  28. target_ would be stopped from the Buildroot-2012.11 release because:
  29. * this feature was neither maintained nor tested, and often broken;
  30. * this feature was only available for Buildroot toolchains;
  31. * Buildroot mostly targets _small_ or _very small_ target hardware
  32. with limited resource onboard (CPU, ram, mass-storage), for which
  33. compiling does not make much sense.
  34. If you need a compiler on your target anyway, then Buildroot is not
  35. suitable for your purpose. In such case, you need a _real
  36. distribution_ and you should opt for something like:
  37. * http://www.openembedded.org[openembedded]
  38. * https://www.yoctoproject.org[yocto]
  39. * http://www.emdebian.org[emdebian]
  40. * https://fedoraproject.org/wiki/Architectures[Fedora]
  41. * http://en.opensuse.org/Portal:ARM[openSUSE ARM]
  42. * http://archlinuxarm.org[Arch Linux ARM]
  43. * ...
  44. [[faq-no-dev-files-on-target]]
  45. Why are there no development files on the target?
  46. -------------------------------------------------
  47. Since there is no compiler available on the target (see
  48. xref:faq-no-compiler-on-target[]), it does not make sense to waste
  49. space with headers or static libraries.
  50. Therefore, those files are always removed from the target since the
  51. Buildroot-2012.11 release.
  52. [[faq-no-doc-on-target]]
  53. Why is there no documentation on the target?
  54. --------------------------------------------
  55. Because Buildroot mostly targets _small_ or _very small_ target
  56. hardware with limited resource onboard (CPU, ram, mass-storage), it
  57. does not make sense to waste space with the documentation data.
  58. If you need documentation data on your target anyway, then Buildroot
  59. is not suitable for your purpose, and you should look for a _real
  60. distribution_ (see: xref:faq-no-compiler-on-target[]).
  61. [[faq-why-not-visible-package]]
  62. Why are some packages not visible in the Buildroot config menu?
  63. ---------------------------------------------------------------
  64. If a package exists in the Buildroot tree and does not appear in the
  65. config menu, this most likely means that some of the package's
  66. dependencies are not met.
  67. To know more about the dependencies of a package, search for the
  68. package symbol in the config menu (see xref:make-tips[]).
  69. Then, you may have to recursively enable several options (which
  70. correspond to the unmet dependencies) to finally be able to select
  71. the package.
  72. If the package is not visible due to some unmet toolchain options,
  73. then you should certainly run a full rebuild (see xref:make-tips[] for
  74. more explanations).
  75. [[faq-why-not-use-target-as-chroot]]
  76. Why not use the target directory as a chroot directory?
  77. -------------------------------------------------------
  78. There are plenty of reasons to *not* use the target directory a chroot
  79. one, among these:
  80. * file ownerships, modes and permissions are not correctly set in the
  81. target directory;
  82. * device nodes are not created in the target directory.
  83. For these reasons, commands run through chroot, using the target
  84. directory as the new root, will most likely fail.
  85. If you want to run the target filesystem inside a chroot, or as an NFS
  86. root, then use the tarball image generated in +images/+ and extract it
  87. as root.