readme.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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:
  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. +-- boot.vfat
  39. +-- rootfs.ext4
  40. +-- rpi-firmware/
  41. | +-- bootcode.bin
  42. | +-- cmdline.txt
  43. | +-- config.txt
  44. | +-- fixup.dat
  45. | +-- start.elf
  46. | `-- overlays/ [2]
  47. +-- sdcard.img
  48. `-- zImage
  49. [1] Not all of them will be present, depending on the RaspberryPi
  50. model you are using.
  51. [2] Only for the Raspberry Pi 3 Model (overlay pi3-miniuart-bt is needed
  52. to enable the RPi3 serial console otherwise occupied by the bluetooth
  53. chip). Alternative would be to disable the serial console in cmdline.txt
  54. and /etc/inittab.
  55. How to write the SD card
  56. ========================
  57. Once the build process is finished you will have an image called "sdcard.img"
  58. in the output/images/ directory.
  59. Copy the bootable "sdcard.img" onto an SD card with "dd":
  60. $ sudo dd if=output/images/sdcard.img of=/dev/sdX
  61. Insert the SDcard into your Raspberry Pi, and power it up. Your new system
  62. should come up now and start two consoles: one on the serial port on
  63. the P1 header, one on the HDMI output where you can login using a USB
  64. keyboard.