faq-troubleshooting.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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-module-init-tool-build-failure]]
  25. module-init-tools fails to build with 'cannot find -lc'
  26. -------------------------------------------------------
  27. If the build of +module-init-tools+ for the host fails with:
  28. ------------------------
  29. /usr/bin/ld: cannot find -lc
  30. ------------------------
  31. then probably you are running a Fedora (or similar) distribution, and
  32. you should install the +glibc-static+ package. This is because the
  33. +module-init-tools+ build process wants to link statically against the
  34. C library.
  35. [[faq-no-compiler-on-target]]
  36. Why is there no compiler on the target?
  37. ---------------------------------------
  38. It has been decided that support for the _native compiler on the
  39. target_ would be stopped from the Buildroot-2012.11 release because:
  40. * this feature was neither maintained nor tested, and often broken;
  41. * this feature was only available for Buildroot toolchains;
  42. * Buildroot mostly targets _small_ or _very small_ target hardware
  43. with limited resource onboard (CPU, ram, mass-storage), for which
  44. compiling does not make much sense.
  45. If you need a compiler on your target anyway, then Buildroot is not
  46. suitable for your purpose. In such case, you need a _real
  47. distribution_ and you should opt for something like:
  48. * http://www.openembedded.org[openembedded]
  49. * https://www.yoctoproject.org[yocto]
  50. * http://www.emdebian.org[emdebian]
  51. * https://fedoraproject.org/wiki/Architectures[Fedora]
  52. * http://en.opensuse.org/Portal:ARM[openSUSE ARM]
  53. * http://archlinuxarm.org[Arch Linux ARM]
  54. * ...
  55. [[faq-no-dev-files-on-target]]
  56. Why are there no development files on the target?
  57. -------------------------------------------------
  58. Since there is no compiler available on the target (see
  59. xref:faq-no-compiler-on-target[]), it does not make sense to waste
  60. space with headers or static libraries.
  61. Therefore, those files are always removed from the target since the
  62. Buildroot-2012.11 release.
  63. [[faq-no-doc-on-target]]
  64. Why is there no documentation on the target?
  65. --------------------------------------------
  66. Because Buildroot mostly targets _small_ or _very small_ target
  67. hardware with limited resource onboard (CPU, ram, mass-storage), it
  68. does not make sense to waste space with the documentation data.
  69. If you need documentation data on your target anyway, then Buildroot
  70. is not suitable for your purpose, and you should look for a _real
  71. distribution_ (see: xref:faq-no-compiler-on-target[]).
  72. [[faq-why-not-visible-package]]
  73. Why are some packages not visible in the Buildroot config menu?
  74. ---------------------------------------------------------------
  75. If a package exists in the Buildroot tree and does not appear in the
  76. config menu, this most likely means that some of the package's
  77. dependencies are not met.
  78. To know more about the dependencies of a package, search for the
  79. package symbol in the config menu (see xref:make-tips[]).
  80. Then, you may have to recursively enable several options (which
  81. correspond to the unmet dependencies) to finally be able to select
  82. the package.
  83. If the package is not visible due to some unmet toolchain options,
  84. then you should certainly run a full rebuild (see xref:make-tips[] for
  85. more explanations).
  86. [[faq-why-not-use-target-as-chroot]]
  87. Why not use the target directory as a chroot directory?
  88. -------------------------------------------------------
  89. There are plenty of reasons to *not* use the target directory a chroot
  90. one, among these:
  91. * file ownerships, modes and permissions are not correctly set in the
  92. target directory;
  93. * device nodes are not created in the target directory.
  94. For these reasons, commands run through chroot, using the target
  95. directory as the new root, will most likely fail.
  96. If you want to run the target filesystem inside a chroot, or as an NFS
  97. root, then use the tarball image generated in +images/+ and extract it
  98. as root.