readme.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 2 B:
  18. $ make raspberrypi2_defconfig
  19. For model 3 B:
  20. $ make raspberrypi3_defconfig
  21. Build the rootfs
  22. ----------------
  23. Note: you will need to have access to the network, since Buildroot will
  24. download the packages' sources.
  25. You may now build your rootfs with:
  26. $ make
  27. (This may take a while, consider getting yourself a coffee ;-) )
  28. Result of the build
  29. -------------------
  30. After building, you should obtain this tree:
  31. output/images/
  32. +-- bcm2708-rpi-b.dtb [1]
  33. +-- bcm2708-rpi-b-plus.dtb [1]
  34. +-- bcm2709-rpi-2-b.dtb [1]
  35. +-- bcm2710-rpi-3-b.dtb [1]
  36. +-- boot.vfat
  37. +-- kernel-marked/zImage [2]
  38. +-- rootfs.ext4
  39. +-- rpi-firmware/
  40. | +-- bootcode.bin
  41. | +-- cmdline.txt
  42. | +-- config.txt
  43. | +-- fixup.dat
  44. | `-- start.elf
  45. +-- sdcard.img
  46. `-- zImage
  47. [1] Not all of them will be present, depending on the RaspberryPi
  48. model you are using.
  49. [2] This is the mkknlimg DT-marked kernel.
  50. How to write the SD card
  51. ========================
  52. Once the build process is finished you will have an image called "sdcard.img"
  53. in the output/images/ directory.
  54. Copy the bootable "sdcard.img" onto an SD card with "dd":
  55. $ sudo dd if=output/images/sdcard.img of=/dev/sdX
  56. Insert the SDcard into your Raspberry Pi, and power it up. Your new system
  57. should come up now and start two consoles: one on the serial port on
  58. the P1 header, one on the HDMI output where you can login using a USB
  59. keyboard.