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