readme.txt 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. *******************************
  2. Freescale i.MX6 Sabre SD boards
  3. *******************************
  4. This file documents the Buildroot support for the Freescale i.MX6 Sabre SD
  5. boards based on i.MX6Q, i.MX6DL and iMX6QP.
  6. Thanks to the SPL support in U-Boot it is possible to run a single
  7. sdcard.img in all i.MX6 Sabre SD board variants.
  8. This configuration uses U-Boot mainline and kernel mainline.
  9. Build
  10. =====
  11. First, configure Buildroot for the i.MX6 Sabre SD board:
  12. make imx6-sabresd_defconfig
  13. Build all components:
  14. make
  15. You will find the following files in output/images/ :
  16. - imx6q-sabresd.dtb
  17. - imx6dl-sabresd.dtb
  18. - imx6qp-sabresd.dtb
  19. - rootfs.ext4
  20. - rootfs.tar
  21. - sdcard.img
  22. - u-boot.imx
  23. - zImage
  24. Create a bootable SD card
  25. =========================
  26. To determine the device associated to the SD card have a look in the
  27. /proc/partitions file:
  28. cat /proc/partitions
  29. Buildroot prepares a bootable "sdcard.img" image in the output/images/
  30. directory, ready to be dumped on a SD card. Launch the following
  31. command as root:
  32. dd if=output/images/sdcard.img of=/dev/<your-sd-device>
  33. *** WARNING! This will destroy all the card content. Use with care! ***
  34. For details about the medium image layout, see the definition in
  35. board/freescale/common/imx/genimage.cfg.template.
  36. Boot the i.MX6 Sabre SD board
  37. =============================
  38. To boot your newly created system:
  39. - insert the SD card in the SD3 slot of the board (close to the HDMI connector);
  40. - put a micro USB cable into the Debug USB Port and connect using a terminal
  41. emulator at 115200 bps, 8n1;
  42. - power on the board.
  43. Testing graphics on the i.MX6 Sabre SD board
  44. ============================================
  45. The imx6-sabresd_qt5_defconfig allows to quickly test the graphics
  46. capabilities of i.MX6 using the opensource Etnaviv graphics stack
  47. and kernel mainline.
  48. In order to build it:
  49. make imx6-sabresd_qt5_defconfig
  50. make
  51. Then flash the SD card as explained above.
  52. Running kmscube application:
  53. # kmscube
  54. Running Qt5 Cinematic Demo:
  55. # export QT_QPA_EGLFS_KMS_CONFIG=/root/sabresd.json
  56. # export QT_QPA_EGLFS_ALWAYS_SET_MODE=1
  57. # /usr/share/Qt5/CinematicExperience/Qt5_CinematicExperience
  58. Running gl2mark benchmark:
  59. # glmark2-es2-drm
  60. Testing video playback on the i.MX6 Sabre SD board
  61. ==================================================
  62. As the mx6sabresd has two display outputs (LVDS and HDMI), it is necessary to
  63. know what is the connector that corresponds to the HDMI output.
  64. This information can be found by running:
  65. # modetest
  66. And search for the HDMI connector number. In our case it shows up as 37.
  67. In the mx6sabresd prompt run the following Gstreamer pipeline:
  68. # gst-launch-1.0 filesrc location=/root/trailer_1080p_h264_mp3.avi ! avidemux ! \
  69. h264parse ! v4l2video1dec capture-io-mode=dmabuf ! kmssink connector-id=37 \
  70. name=imx-drm sync=0
  71. (The video used on this example was retrieved from:
  72. http://linode.boundarydevices.com/videos/trailer_1080p_h264_mp3.avi)
  73. Enjoy!