readme.txt 2.4 KB

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