72
72
<!-- RSS -->
73
73
< link rel ="alternate " href ="/smarc/atom.xml " title ="ADLINK Industrial Pi Wiki " type ="application/atom+xml ">
74
74
<!-- Open Graph -->
75
- < meta name ="description " content ="40-Pin I/O Headers Utility on I-Pi SAMRC IMX8M Plus This document provides detailed instructions for utilizing the 40-Pin I/O Headers on I-Pi SMARC IMX8M Plus. Prerequisites GPIO libraries are i ">
75
+ < meta name ="description " content ="40-Pin I/O Headers Utility on I-Pi SMARC IMX8M Plus This document provides detailed instructions for utilizing the 40-Pin I/O Headers on I-Pi SMARC IMX8M Plus. Prerequisites GPIO libraries are i ">
76
76
< meta property ="og:type " content ="website ">
77
77
< meta property ="og:title " content ="ADLINK Industrial Pi Wiki ">
78
78
< meta property ="og:url " content ="https://docs.ipi.wiki/smarc/ipi-smarc-imx8mp/GpioUtility.html ">
79
79
< meta property ="og:site_name " content ="ADLINK Industrial Pi Wiki ">
80
- < meta property ="og:description " content ="40-Pin I/O Headers Utility on I-Pi SAMRC IMX8M Plus This document provides detailed instructions for utilizing the 40-Pin I/O Headers on I-Pi SMARC IMX8M Plus. Prerequisites GPIO libraries are i ">
80
+ < meta property ="og:description " content ="40-Pin I/O Headers Utility on I-Pi SMARC IMX8M Plus This document provides detailed instructions for utilizing the 40-Pin I/O Headers on I-Pi SMARC IMX8M Plus. Prerequisites GPIO libraries are i ">
81
81
< meta property ="og:locale " content ="en_US ">
82
- < meta property ="article:published_time " content ="2024-02-20T03:13:41.060Z ">
83
- < meta property ="article:modified_time " content ="2024-02-20T03:13:41.060Z ">
82
+ < meta property ="article:published_time " content ="2024-10-18T06:04:18.292Z ">
83
+ < meta property ="article:modified_time " content ="2024-10-18T06:04:18.292Z ">
84
84
< meta property ="article:author " content ="ADLINK Technology Inc. All Rights Reserved. ">
85
85
< meta name ="twitter:card " content ="summary ">
86
86
<!-- Google Analytics -->
@@ -114,7 +114,7 @@ <h1 id="logo-wrap">
114
114
</ nav >
115
115
116
116
< div id = "changeurl ">
117
- < script > window . onload = function ( ) { parent . postMessage ( { msg : '?page=GpioUtility.html' } , '*' ) ; } </ script >
117
+ < script > window . onload = function ( ) { parent . postMessage ( { msg : '?page=GpioUtility.html#GpioUtility.html ' } , '*' ) ; } </ script >
118
118
119
119
</ div >
120
120
@@ -142,14 +142,14 @@ <h1 class="article-title" itemprop="name"></h1>
142
142
< a href ="" class ="article-edit-link " title ="Improve this doc "> < i class ="fa fa-pencil "> </ i > </ a >
143
143
</ header >
144
144
< div class ="article-content bullets " itemprop ="articleBody ">
145
- < h1 id ="40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SAMRC -IMX8M-Plus " class ="article-heading "> < a href ="#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SAMRC -IMX8M-Plus " class ="headerlink " title ="40-Pin I/O Headers Utility on I-Pi SAMRC IMX8M Plus "> </ a > 40-Pin I/O Headers Utility on I-Pi SAMRC IMX8M Plus< a onclick =" parent.postMessage( {msg: '?page=GpioUtility.html#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SAMRC-IMX8M-Plus'}, '*'); " class ="article-anchor " href ="#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SAMRC -IMX8M-Plus " aria-hidden ="true "> </ a > </ h1 > < div class ="bullets ">
145
+ < h1 id ="40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SMARC -IMX8M-Plus " class ="article-heading "> < a href ="#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SMARC -IMX8M-Plus " class ="headerlink " title ="40-Pin I/O Headers Utility on I-Pi SMARC IMX8M Plus "> </ a > 40-Pin I/O Headers Utility on I-Pi SMARC IMX8M Plus< a class ="article-anchor " href ="#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SMARC -IMX8M-Plus " aria-hidden ="true "> </ a > </ h1 > < div class ="bullets ">
146
146
This document provides detailed instructions for utilizing the 40-Pin I/O Headers on I-Pi SMARC IMX8M Plus.
147
147
148
- < h2 id ="Prerequisites " class ="article-heading "> < a href ="#Prerequisites " class ="headerlink " title ="Prerequisites "> </ a > Prerequisites< a onclick =" parent.postMessage( {msg: '?page=GpioUtility.html#Prerequisites'}, '*'); " class ="article-anchor " href ="#Prerequisites " aria-hidden ="true "> </ a > </ h2 > < ul >
148
+ < h2 id ="Prerequisites " class ="article-heading "> < a href ="#Prerequisites " class ="headerlink " title ="Prerequisites "> </ a > Prerequisites< a class ="article-anchor " href ="#Prerequisites " aria-hidden ="true "> </ a > </ h2 > < ul >
149
149
< li > GPIO libraries are included with our image by default.</ li >
150
150
< li > Power up the targeted device with all the necessary cables such as HDMI, keyboard, mouse and ethernet cable.</ li >
151
151
</ ul >
152
- < h2 id ="Linux-Host " class ="article-heading "> < a href ="#Linux-Host " class ="headerlink " title ="Linux Host "> </ a > Linux Host< a onclick =" parent.postMessage( {msg: '?page=GpioUtility.html#Linux-Host'}, '*'); " class ="article-anchor " href ="#Linux-Host " aria-hidden ="true "> </ a > </ h2 > < h3 id ="1-Getting-Started " class ="article-heading "> < a href ="#1-Getting-Started " class ="headerlink " title ="1. Getting Started "> </ a > 1. Getting Started< a onclick =" parent.postMessage( {msg: '?page=GpioUtility.html#1-Getting-Started'}, '*'); " class ="article-anchor " href ="#1-Getting-Started " aria-hidden ="true "> </ a > </ h3 > < ul >
152
+ < h2 id ="Linux-Host " class ="article-heading "> < a href ="#Linux-Host " class ="headerlink " title ="Linux Host "> </ a > Linux Host< a class ="article-anchor " href ="#Linux-Host " aria-hidden ="true "> </ a > </ h2 > < h3 id ="1-Getting-Started " class ="article-heading "> < a href ="#1-Getting-Started " class ="headerlink " title ="1. Getting Started "> </ a > 1. Getting Started< a class ="article-anchor " href ="#1-Getting-Started " aria-hidden ="true "> </ a > </ h3 > < ul >
153
153
< li > < p > Install “hexer” for editing the binary files.</ p >
154
154
< figure class ="highlight shell "> < table > < tr > < td class ="code "> < pre > < span class ="line "> sudo apt install hexer</ span > < br > </ pre > </ td > </ tr > </ table > </ figure >
155
155
</ li >
@@ -162,7 +162,7 @@ <h2 id="Linux-Host" class="article-heading"><a href="#Linux-Host" class="headerl
162
162
< p > < strong > Note:</ strong > All the commands require administrator privileges and run as root user.</ p >
163
163
</ li >
164
164
</ ul >
165
- < h3 id ="2-Utilizing-the-Pin-Headers-with-Linux " class ="article-heading "> < a href ="#2-Utilizing-the-Pin-Headers-with-Linux " class ="headerlink " title ="2. Utilizing the Pin Headers with Linux "> </ a > 2. Utilizing the Pin Headers with Linux< a onclick =" parent.postMessage( {msg: '?page=GpioUtility.html#2-Utilizing-the-Pin-Headers-with-Linux'}, '*'); " class ="article-anchor " href ="#2-Utilizing-the-Pin-Headers-with-Linux " aria-hidden ="true "> </ a > </ h3 > < h4 id ="2-1-Voltage-Monitor " class ="article-heading "> < a href ="#2-1-Voltage-Monitor " class ="headerlink " title ="2.1 Voltage Monitor "> </ a > 2.1 Voltage Monitor< a onclick =" parent.postMessage( {msg: '?page=GpioUtility.html#2-1-Voltage-Monitor'}, '*'); " class ="article-anchor " href ="#2-1-Voltage-Monitor " aria-hidden ="true "> </ a > </ h4 > < ul >
165
+ < h3 id ="2-Utilizing-the-Pin-Headers-with-Linux " class ="article-heading "> < a href ="#2-Utilizing-the-Pin-Headers-with-Linux " class ="headerlink " title ="2. Utilizing the Pin Headers with Linux "> </ a > 2. Utilizing the Pin Headers with Linux< a class ="article-anchor " href ="#2-Utilizing-the-Pin-Headers-with-Linux " aria-hidden ="true "> </ a > </ h3 > < h4 id ="2-1-Voltage-Monitor " class ="article-heading "> < a href ="#2-1-Voltage-Monitor " class ="headerlink " title ="2.1 Voltage Monitor "> </ a > 2.1 Voltage Monitor< a class ="article-anchor " href ="#2-1-Voltage-Monitor " aria-hidden ="true "> </ a > </ h4 > < ul >
166
166
< li > < p > Open the terminal type the following command,</ p >
167
167
< figure class ="highlight shell "> < table > < tr > < td class ="code "> < pre > < span class ="line "> cd /sys/class/regulator</ span > < br > </ pre > </ td > </ tr > </ table > </ figure >
168
168
</ li >
@@ -176,7 +176,7 @@ <h3 id="2-Utilizing-the-Pin-Headers-with-Linux" class="article-heading"><a href=
176
176
177
177
< figure class ="highlight shell "> < table > < tr > < td class ="code "> < pre > < span class ="line "> cat regulator.1/name</ span > < br > </ pre > </ td > </ tr > </ table > </ figure > </ li >
178
178
</ ul >
179
- < h4 id ="2-2-GPIO " class ="article-heading "> < a href ="#2-2-GPIO " class ="headerlink " title ="2.2 GPIO "> </ a > 2.2 GPIO< a onclick =" parent.postMessage( {msg: '?page=GpioUtility.html#2-2-GPIO'}, '*'); " class ="article-anchor " href ="#2-2-GPIO " aria-hidden ="true "> </ a > </ h4 > < ul >
179
+ < h4 id ="2-2-GPIO " class ="article-heading "> < a href ="#2-2-GPIO " class ="headerlink " title ="2.2 GPIO "> </ a > 2.2 GPIO< a class ="article-anchor " href ="#2-2-GPIO " aria-hidden ="true "> </ a > </ h4 > < ul >
180
180
< li > < p > Open the terminal type the following command,</ p >
181
181
< figure class ="highlight shell "> < table > < tr > < td class ="code "> < pre > < span class ="line "> cd /sys/class/gpio</ span > < br > </ pre > </ td > </ tr > </ table > </ figure >
182
182
</ li >
@@ -199,7 +199,7 @@ <h4 id="2-2-GPIO" class="article-heading"><a href="#2-2-GPIO" class="headerlink"
199
199
< li > < p > To write the value of a pin</ p >
200
200
< figure class ="highlight shell "> < table > < tr > < td class ="code "> < pre > < span class ="line "> echo 1 > gpio497/value</ span > < br > </ pre > </ td > </ tr > </ table > </ figure > </ li >
201
201
</ ul >
202
- < h5 id ="2-2-1-GPIO-Pin-Configurations " class ="article-heading "> < a href ="#2-2-1-GPIO-Pin-Configurations " class ="headerlink " title ="2.2.1 GPIO Pin Configurations "> </ a > 2.2.1 GPIO Pin Configurations< a onclick =" parent.postMessage( {msg: '?page=GpioUtility.html#2-2-1-GPIO-Pin-Configurations'}, '*'); " class ="article-anchor " href ="#2-2-1-GPIO-Pin-Configurations " aria-hidden ="true "> </ a > </ h5 > < ul >
202
+ < h5 id ="2-2-1-GPIO-Pin-Configurations " class ="article-heading "> < a href ="#2-2-1-GPIO-Pin-Configurations " class ="headerlink " title ="2.2.1 GPIO Pin Configurations "> </ a > 2.2.1 GPIO Pin Configurations< a class ="article-anchor " href ="#2-2-1-GPIO-Pin-Configurations " aria-hidden ="true "> </ a > </ h5 > < ul >
203
203
< li > < p > On CN1001 expansion connector E_GPIO and S_GPIO is available. These GPIO pins are mapped by to following numbers:</ p >
204
204
< p > < strong > S_GPIO(MRAA) numbers are:</ strong > </ p >
205
205
< p > pin7 - 497</ p >
@@ -219,7 +219,7 @@ <h5 id="2-2-1-GPIO-Pin-Configurations" class="article-heading"><a href="#2-2-1-G
219
219
< p > pin40 - 469</ p >
220
220
</ li >
221
221
</ ul >
222
- < h4 id ="2-3-Storage " class ="article-heading "> < a href ="#2-3-Storage " class ="headerlink " title ="2.3 Storage "> </ a > 2.3 Storage< a onclick =" parent.postMessage( {msg: '?page=GpioUtility.html#2-3-Storage'}, '*'); " class ="article-anchor " href ="#2-3-Storage " aria-hidden ="true "> </ a > </ h4 > < ul >
222
+ < h4 id ="2-3-Storage " class ="article-heading "> < a href ="#2-3-Storage " class ="headerlink " title ="2.3 Storage "> </ a > 2.3 Storage< a class ="article-anchor " href ="#2-3-Storage " aria-hidden ="true "> </ a > </ h4 > < ul >
223
223
< li > < p > To read the storage area,</ p >
224
224
< p > hexdump /sys/bus/nvmem/devices/< nvmem index > /nvmem</ nvmem > </ p >
225
225
< p > For example:</ p >
@@ -232,7 +232,7 @@ <h4 id="2-3-Storage" class="article-heading"><a href="#2-3-Storage" class="heade
232
232
< p > Hexer will open a nvmem file in editor mode. To edit the data press < strong > r</ strong > (replace) and enter new data then press < strong > ESC</ strong > key and < strong > :wq</ strong > to save. Then read the same file using hexdump to check saved changes.</ p >
233
233
</ li >
234
234
</ ul >
235
- < h4 id ="2-4-Backlight " class ="article-heading "> < a href ="#2-4-Backlight " class ="headerlink " title ="2.4 Backlight "> </ a > 2.4 Backlight< a onclick =" parent.postMessage( {msg: '?page=GpioUtility.html#2-4-Backlight'}, '*'); " class ="article-anchor " href ="#2-4-Backlight " aria-hidden ="true "> </ a > </ h4 > < ul >
235
+ < h4 id ="2-4-Backlight " class ="article-heading "> < a href ="#2-4-Backlight " class ="headerlink " title ="2.4 Backlight "> </ a > 2.4 Backlight< a class ="article-anchor " href ="#2-4-Backlight " aria-hidden ="true "> </ a > </ h4 > < ul >
236
236
< li > < p > Open the terminal type the following command,</ p >
237
237
< figure class ="highlight shell "> < table > < tr > < td class ="code "> < pre > < span class ="line "> cd /sys/class/backlight</ span > < br > </ pre > </ td > </ tr > </ table > </ figure >
238
238
</ li >
@@ -262,7 +262,7 @@ <h4 id="2-4-Backlight" class="article-heading"><a href="#2-4-Backlight" class="h
262
262
</ div >
263
263
</ div >
264
264
< footer class ="article-footer ">
265
- < time class ="article-footer-updated " datetime ="2024-02-20T03:13:41.060Z " itemprop ="dateModified "> Last updated: 2024-02-20 </ time >
265
+ < time class ="article-footer-updated " datetime ="2024-10-18T06:04:18.292Z " itemprop ="dateModified "> Last updated: 2024-10-18 </ time >
266
266
< a href ="AndroidImages.html " class ="article-footer-prev " title ="Android "> < i class ="fa fa-chevron-left "> </ i > < span > Prev</ span > </ a > < a href ="SerialLogReadSER.html " class ="article-footer-next " title ="How to Read Console Output "> < span > Next</ span > < i class ="fa fa-chevron-right "> </ i > </ a >
267
267
</ footer >
268
268
@@ -272,7 +272,7 @@ <h4 id="2-4-Backlight" class="article-heading"><a href="#2-4-Backlight" class="h
272
272
< div id ="article-toc-inner ">
273
273
< div class ="article-toc-border ">
274
274
< strong class ="sidebar-title "> Contents</ strong >
275
- < ol class ="toc "> < li class ="toc-item toc-level-1 "> < a class ="toc-link " href ="#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SAMRC-IMX8M-Plus "> < span class ="toc-text "> 40-Pin I/O Headers Utility on I-Pi SAMRC IMX8M Plus</ span > </ a > < ol class ="toc-child "> < li class ="toc-item toc-level-2 "> < a class ="toc-link " href ="#Prerequisites "> < span class ="toc-text "> Prerequisites</ span > </ a > </ li > < li class ="toc-item toc-level-2 "> < a class ="toc-link " href ="#Linux-Host "> < span class ="toc-text "> Linux Host</ span > </ a > < ol class ="toc-child "> < li class ="toc-item toc-level-3 "> < a class ="toc-link " href ="#1-Getting-Started "> < span class ="toc-text "> 1. Getting Started</ span > </ a > </ li > < li class ="toc-item toc-level-3 "> < a class ="toc-link " href ="#2-Utilizing-the-Pin-Headers-with-Linux "> < span class ="toc-text "> 2. Utilizing the Pin Headers with Linux</ span > </ a > < ol class ="toc-child "> < li class ="toc-item toc-level-4 "> < a class ="toc-link " href ="#2-1-Voltage-Monitor "> < span class ="toc-text "> 2.1 Voltage Monitor</ span > </ a > </ li > < li class ="toc-item toc-level-4 "> < a class ="toc-link " href ="#2-2-GPIO "> < span class ="toc-text "> 2.2 GPIO</ span > </ a > < ol class ="toc-child "> < li class ="toc-item toc-level-5 "> < a class ="toc-link " href ="#2-2-1-GPIO-Pin-Configurations "> < span class ="toc-text "> 2.2.1 GPIO Pin Configurations</ span > </ a > </ li > </ ol > </ li > < li class ="toc-item toc-level-4 "> < a class ="toc-link " href ="#2-3-Storage "> < span class ="toc-text "> 2.3 Storage</ span > </ a > </ li > < li class ="toc-item toc-level-4 "> < a class ="toc-link " href ="#2-4-Backlight "> < span class ="toc-text "> 2.4 Backlight</ span > </ a > </ li > </ ol > </ li > </ ol > </ li > </ ol > </ li > </ ol >
275
+ < ol class ="toc "> < li class ="toc-item toc-level-1 "> < a class ="toc-link " href ="#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SMARC-IMX8M-Plus "> < span class ="toc-text "> 40-Pin I/O Headers Utility on I-Pi SMARC IMX8M Plus</ span > </ a > < ol class ="toc-child "> < li class ="toc-item toc-level-2 "> < a class ="toc-link " href ="#Prerequisites "> < span class ="toc-text "> Prerequisites</ span > </ a > </ li > < li class ="toc-item toc-level-2 "> < a class ="toc-link " href ="#Linux-Host "> < span class ="toc-text "> Linux Host</ span > </ a > < ol class ="toc-child "> < li class ="toc-item toc-level-3 "> < a class ="toc-link " href ="#1-Getting-Started "> < span class ="toc-text "> 1. Getting Started</ span > </ a > </ li > < li class ="toc-item toc-level-3 "> < a class ="toc-link " href ="#2-Utilizing-the-Pin-Headers-with-Linux "> < span class ="toc-text "> 2. Utilizing the Pin Headers with Linux</ span > </ a > < ol class ="toc-child "> < li class ="toc-item toc-level-4 "> < a class ="toc-link " href ="#2-1-Voltage-Monitor "> < span class ="toc-text "> 2.1 Voltage Monitor</ span > </ a > </ li > < li class ="toc-item toc-level-4 "> < a class ="toc-link " href ="#2-2-GPIO "> < span class ="toc-text "> 2.2 GPIO</ span > </ a > < ol class ="toc-child "> < li class ="toc-item toc-level-5 "> < a class ="toc-link " href ="#2-2-1-GPIO-Pin-Configurations "> < span class ="toc-text "> 2.2.1 GPIO Pin Configurations</ span > </ a > </ li > </ ol > </ li > < li class ="toc-item toc-level-4 "> < a class ="toc-link " href ="#2-3-Storage "> < span class ="toc-text "> 2.3 Storage</ span > </ a > </ li > < li class ="toc-item toc-level-4 "> < a class ="toc-link " href ="#2-4-Backlight "> < span class ="toc-text "> 2.4 Backlight</ span > </ a > </ li > </ ol > </ li > </ ol > </ li > </ ol > </ li > </ ol >
276
276
< a href ="# " id ="article-toc-top "> Back to Top</ a >
277
277
</ div >
278
278
</ div >
0 commit comments