readme.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. Intro
  2. =====
  3. This default configuration will allow you to start experimenting with the
  4. buildroot environment for the Rock64. With this default configuration you
  5. can log in into board via uart and look around.
  6. Board homepage: https://www.pine64.org/?page_id=7147
  7. Build
  8. =====
  9. First, load rock64 config for buildroot
  10. $ make rock64_defconfig
  11. Optionally make changes to buildroot config (to install more programs)
  12. $ make menuconfig
  13. And then build everything
  14. $ make
  15. When completed, following files will be generated in output/images directory:
  16. .
  17. ├── Image
  18. ├── bl31.bin
  19. ├── bl31.elf
  20. ├── rk3328-rock64.dtb
  21. ├── rootfs.ext2
  22. ├── rootfs.ext4 -> rootfs.ext2
  23. ├── rootfs.tar
  24. ├── sdcard.img
  25. ├── u-boot-spl.bin
  26. ├── u-boot-tpl-spl.img
  27. ├── u-boot-tpl.bin
  28. ├── u-boot-tpl.img
  29. ├── u-boot.bin
  30. └── u-boot.itb
  31. Creating bootable SD card
  32. =========================
  33. !!! THIS COMMAND MAY WIPE YOUR DISK!
  34. !!! MAKE SURE YOU PASSED CORRECT DEVICE!
  35. !!! OR IT THIS WILL WIPE YOUR DISK!
  36. Simply invoke (as root)
  37. # dd if=output/images/sdcard.img of=/dev/sdX && sync
  38. Where X is your SD card device (not partition), of= argument may also be
  39. /dev/mmcblk0 if you are using built-in sd card reader.
  40. Runtime
  41. =======
  42. Login
  43. -----
  44. By default, buildroot has no password, just type 'root' as login user, and
  45. you will be logged in.
  46. Serial console
  47. --------------
  48. Serial console needs to be connected to pins (into 40pin rpi compatible part)
  49. pin 6: gnd
  50. pin 8: tx
  51. pin 10: rx
  52. Pin numbers are printed on board.
  53. Uart configuration is not standard. Rock64 uses 1500000 (1,5M) baudrate
  54. with standard 8n1.
  55. Ethernet
  56. --------
  57. To enable ethernet you need to load modules for it:
  58. # modprobe stmmac
  59. # modprobe dwmac-rk
  60. and since by default there is no dhcp installed, you need to configure ip
  61. address, remember to change address to fit your network.
  62. # ifconfig eth0 up
  63. # ip addr add 10.1.1.180/24 dev eth0
  64. # ping 10.1.1.1
  65. PING 10.1.1.1 (10.1.1.1): 56 data bytes
  66. 64 bytes from 10.1.1.1: seq=0 ttl=64 time=0.695 ms