beautypg.com
5
IBASE Technology Inc.
5.1.5.
Copying u-boot, kernel to SD card ............................................................................. 33
5.1.6.
Copying Filesystem to SD card .................................................................................. 33
5.1.7.
Booting with your SD card ........................................................................................ 39
6. Appendix A– I2C, GPIO, watchdog reference code Coding. .............................................. 40
6.1. How to use I2C in Linux ................................................................................................. 40
6.2. How to use GPIO in Linux.............................................................................................. 57
6.2.1.
GPIO mapping table .................................................................................................. 57
6.2.2.
GPIO sample code ..................................................................................................... 57
6.2.3.
How to use Watch dog in Linux ................................................................................. 58
7. Appendix B - i.MX6 CPU ball out Table. ........................................................................... 59
8. Appendix C : how to Flash the image to eMMC ............................................................... 66
9. Appendix D –Useful links .................................................................................................. 66