readme.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Raspberry Pi
  2. Intro
  3. =====
  4. These instructions apply to all models of the Raspberry Pi:
  5. - the original models A and B,
  6. - the "enhanced" models A+ and B+,
  7. - the model B2 (aka Raspberry Pi 2)
  8. - the model B3 (aka Raspberry Pi 3).
  9. How to build it
  10. ===============
  11. Configure Buildroot
  12. -------------------
  13. There are two RaspberryPi defconfig files in Buildroot, one for each
  14. major variant, which you should base your work on:
  15. For models A, B, A+ or B+:
  16. $ make raspberrypi_defconfig
  17. For model Zero (model A+ in smaller form factor):
  18. $ make raspberrypi0_defconfig
  19. For model 2 B:
  20. $ make raspberrypi2_defconfig
  21. For model 3 B and B+:
  22. $ make raspberrypi3_defconfig
  23. Build the rootfs
  24. ----------------
  25. Note: you will need to have access to the network, since Buildroot will
  26. download the packages' sources.
  27. You may now build your rootfs with:
  28. $ make
  29. (This may take a while, consider getting yourself a coffee ;-) )
  30. Result of the build
  31. -------------------
  32. After building, you should obtain this tree:
  33. output/images/
  34. +-- bcm2708-rpi-b.dtb [1]
  35. +-- bcm2708-rpi-b-plus.dtb [1]
  36. +-- bcm2709-rpi-2-b.dtb [1]
  37. +-- bcm2710-rpi-3-b.dtb [1]
  38. +-- bcm2710-rpi-3-b-plus.dtb [1]
  39. +-- boot.vfat
  40. +-- rootfs.ext4
  41. +-- rpi-firmware/
  42. | +-- bootcode.bin
  43. | +-- cmdline.txt
  44. | +-- config.txt
  45. | +-- fixup.dat
  46. | +-- start.elf
  47. | `-- overlays/ [2]
  48. +-- sdcard.img
  49. `-- zImage
  50. [1] Not all of them will be present, depending on the RaspberryPi
  51. model you are using.
  52. [2] Only for the Raspberry Pi 3 Model (overlay pi3-miniuart-bt is needed
  53. to enable the RPi3 serial console otherwise occupied by the bluetooth
  54. chip). Alternative would be to disable the serial console in cmdline.txt
  55. and /etc/inittab.
  56. How to write the SD card
  57. ========================
  58. Once the build process is finished you will have an image called "sdcard.img"
  59. in the output/images/ directory.
  60. Copy the bootable "sdcard.img" onto an SD card with "dd":
  61. $ sudo dd if=output/images/sdcard.img of=/dev/sdX
  62. Insert the SDcard into your Raspberry Pi, and power it up. Your new system
  63. should come up now and start two consoles: one on the serial port on
  64. the P1 header, one on the HDMI output where you can login using a USB
  65. keyboard.