readme.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. SiFive HiFive Unleashed
  2. =======================
  3. This file describes how to use the pre-defined Buildroot
  4. configuration for the SiFive HiFive Unleashed board.
  5. Further information about the HiFive Unleashed board can be found
  6. at https://www.sifive.com/boards/hifive-unleashed
  7. Building
  8. ========
  9. Configure Buildroot using the default board configuration:
  10. $ make hifive_unleashed_defconfig
  11. Customise the build as necessary:
  12. $ make menuconfig
  13. Start the build:
  14. $ make
  15. Result of the build
  16. ===================
  17. Once the build has finished you will have the following files:
  18. output/images/
  19. +-- fw_jump.bin
  20. +-- fw_jump.elf
  21. +-- fw_payload.bin
  22. +-- fw_payload.elf
  23. +-- Image
  24. +-- rootfs.ext2
  25. +-- rootfs.ext4
  26. +-- rootfs.tar
  27. +-- sdcard.img
  28. Creating a bootable SD card with genimage
  29. =========================================
  30. Buildroot builds a SD card image for you. All you need to do is dd the
  31. image to your SD card, which can be done with the following command:
  32. $ sudo dd if=output/images/sdcard.img of=/dev/mmcblk0 bs=4096
  33. Booting the SD card on the board
  34. ================================
  35. Make sure that the all DIP switches are set to the off position for
  36. default boot mode (MSEL mode = 1111), insert the SD card and power
  37. up the board.
  38. Connect the USB cable and open minicom (/dev/ttyUSB1, 115200, 8N1).
  39. See the 'SiFive HiFive Unleashed Getting Started Guide' for
  40. more details (https://www.sifive.com/documentation).
  41. You will get a warning reported by fdisk when you examine the SD card.
  42. This is because the genimage.cfg file doesn't specify the SD card size
  43. (as people will naturally have different sized cards), so the
  44. secondary GPT header is placed after the rootfs rather than at the end
  45. of the disk where it is expected to be.
  46. You will see something like this at boot time:
  47. [ 2.318722] GPT:Primary header thinks Alt. header is not at the end of the disk.
  48. [ 2.325390] GPT:190496 != 122142719
  49. [ 2.328843] GPT:Alternate GPT header not at the end of the disk.
  50. [ 2.334824] GPT:190496 != 122142719
  51. [ 2.338302] GPT: Use GNU Parted to correct GPT errors.
  52. [ 2.343456] mmcblk0: p1 p2