“MYZR-IMX28系列评估板 Linux-2.6.35 驱动和设备”的版本间的差异

来自明远智睿的wiki
跳转至: 导航搜索
第1行: 第1行:
 
<div>
 
<div>
  
= '''文档说明(document instruction)'''=
+
= '''文档说明'''=
 
----
 
----
== '''系统环境说明(system environment instruction)'''==
+
== '''系统环境说明'''==
 
*编译主机CPU架构:64位 <br>
 
*编译主机CPU架构:64位 <br>
<span style="background:#CCCCCC">CPU architecture of compilation host:64 bit</span><br>
 
 
*编译主机系统:Linux <br>
 
*编译主机系统:Linux <br>
<span style="background:#CCCCCC">compilation host system:Linux</span><br>
 
 
*Linux发行版:Ubuntu <br>
 
*Linux发行版:Ubuntu <br>
<span style="background:#CCCCCC">release version:</span><br>
 
 
*Ubuntu版本类型:服务器版 <br>
 
*Ubuntu版本类型:服务器版 <br>
<span style="background:#CCCCCC">version type: saver version</span><br>
 
 
*Ubuntu版本号:12.04.5 <br>
 
*Ubuntu版本号:12.04.5 <br>
<span style="background:#CCCCCC">version no.:</span><br>
 
 
*Ubuntu系统类型:x86-64 <br>
 
*Ubuntu系统类型:x86-64 <br>
<span style="background:#CCCCCC">system type:</span><br>
 
 
  <span style="color:red">注意:开发主机请使用ubuntu 12.04.5 x86-64(桌面版或服务器版均可),使用其他发行版的Linux或Ubuntu的其它版本可能会遇到的不必要的问题。 <br>
 
  <span style="color:red">注意:开发主机请使用ubuntu 12.04.5 x86-64(桌面版或服务器版均可),使用其他发行版的Linux或Ubuntu的其它版本可能会遇到的不必要的问题。 <br>
<span style="background:#CCCCCC">note:for development host please use ubuntu 12.04.5 x86-64(either desktop version or server version is ok),some unneccessory problems may arise if use  Linux in other release version or Ubuntu in other versions。</span><br>
 
  
== '''操作说明 (operation instruction)'''==
+
== '''操作说明'''==
 
1)文档中以“$”开头的行,其后是Linux命令。 <br>
 
1)文档中以“$”开头的行,其后是Linux命令。 <br>
<span style="background:#CCCCCC">line start with “$”in the document,following it is  Linux command</span><br>
 
 
2)文档中所有的Linux命令建议手动输入到Linux主机执行(直接复制、粘贴到Linux主机上执行,可能会执行失败)。 <br>
 
2)文档中所有的Linux命令建议手动输入到Linux主机执行(直接复制、粘贴到Linux主机上执行,可能会执行失败)。 <br>
<span style="background:#CCCCCC">all Linux commands are recommended to enter manually to Linux host for execution(direct copy,pasting to Linux host for execution may cause failure)</span><br>
 
 
3)文档中的Linux执行命令,如果空格后的下一个字符是“-”的(如:sudo apt-get –y install之类的),请手动输入到Linux主机执行(直接复制、粘贴到Linux主机上执行,通常会执行失败)。 <br>
 
3)文档中的Linux执行命令,如果空格后的下一个字符是“-”的(如:sudo apt-get –y install之类的),请手动输入到Linux主机执行(直接复制、粘贴到Linux主机上执行,通常会执行失败)。 <br>
<span style="background:#CCCCCC">if following a space in Linux execution command is “-”(such as:sudo apt-ge t –y install and the like),please enter manually to Linux host for execution(direct copy,pasting to Linux host for execution normally cause failure)</span><br>
 
 
4)文档中所有一行没写完的Linux命令请手动输入到Linux主机执行,(因为复制、粘贴命令不能包含类似“换行符”之类的特殊字符)。 <br>
 
4)文档中所有一行没写完的Linux命令请手动输入到Linux主机执行,(因为复制、粘贴命令不能包含类似“换行符”之类的特殊字符)。 <br>
<span style="background:#CCCCCC">any uncompleted Linux command in all lines in the doucment,please enter manually to the Linux host for execution(because copy,pasting commands don't contain special charater such as“line break”)</span><br>
 
 
5)按文档输入并执行Linux命令时注意观察命令的执行结果与文档图片中的是否一致,以确认命令是否输入有误及是否执行失败。 <br>
 
5)按文档输入并执行Linux命令时注意观察命令的执行结果与文档图片中的是否一致,以确认命令是否输入有误及是否执行失败。 <br>
<span style="background:#CCCCCC">observe whether result of command execution is consistent with images in the documents after enter and execute Linux commands as per documents,to ensure whether entering of command is correct or whether there is failure of execution。</span><br>
 
 
6)第一遍编译请严格按照文档进行,否则可能出现莫名其妙的错误。<br>
 
6)第一遍编译请严格按照文档进行,否则可能出现莫名其妙的错误。<br>
<span style="background:#CCCCCC">please follow strictly the documents for the first compilation,otherwise some unexpected errors may arise。</span><br>
 
  
== '''截图说明(screenshots instruction)'''==
+
== '''截图说明'''==
 
为使视图看起来简洁整齐,截图中的命令提示符统一使用myzr$。<br>
 
为使视图看起来简洁整齐,截图中的命令提示符统一使用myzr$。<br>
<span style="background:#CCCCCC">To make the view look neat and tidy , the command prompt in the screenshot should use myzr$ uniformly</span><br>
 
  
== '''图片中的Linux命令(Linux command in images)'''==
+
== '''图片中的Linux命令'''==
 
在文档的图片中观察“linyn@u12045-serv:~$”开头的行可以直观的看到输入的<br>
 
在文档的图片中观察“linyn@u12045-serv:~$”开头的行可以直观的看到输入的<br>
 
linux命令。<br>
 
linux命令。<br>
<span style="background:#CCCCCC">In the image of the document, you can see the input Linux command visually from the lines that start with “linyn@u12045-serv:~$”<br>linux command</span><br>
 
  
= '''驱动及相关设备文件(driving and relevant device file)'''=
+
= '''驱动及相关设备文件'''=
 
----
 
----
 
评估板对应的Linux-3.14.54版本及对应的源码文件和设备见下表:<br>
 
评估板对应的Linux-3.14.54版本及对应的源码文件和设备见下表:<br>
<span style="background:#CCCCCC">source code and device corresponding to version Linux-3.14.54 for evaluation board are refered to below table:</span><br>
 
 
{| class="wikitable"
 
{| class="wikitable"
! width= "80" style="color:white; background:#003399;" |功能<br>(function)
+
! width= "80" style="color:white; background:#003399;" |功能
! width= "240" style="color:white; background:#003399;" |源码位置<br>(source code position)
+
! width= "240" style="color:white; background:#003399;" |源码位置
! width= "80" style="color:white; background:#003399;" |Linux 设备和文件夹<br>(Linux device and folder)
+
! width= "80" style="color:white; background:#003399;" |Linux 设备和文件夹
 
|-
 
|-
 
|GPIO ||drivers/gpio/gpiolib.c ||/sys/class/gpio/
 
|GPIO ||drivers/gpio/gpiolib.c ||/sys/class/gpio/
第84行: 第68行:
 
|}
 
|}
  
板级目录:arch/arm/mach-mx28/<br>
+
*板级目录:arch/arm/mach-mx28/<br>
<span style="background:#CCCCCC">board grade directory:arch/arm/mach-mx28/</span><br>
+
 
板级文件:arch/arm/mach-mx28/mx28evk.c<br>
+
*板级文件:arch/arm/mach-mx28/mx28evk.c<br>
<span style="background:#CCCCCC">board grade file:arch/arm/mach-mx28/mx28evk.c</span><br>
+
 
设备注册文件:arch/arm/mach-mx28/device.c<br>
+
*设备注册文件:arch/arm/mach-mx28/device.c<br>
<span style="background:#CCCCCC">device register file:arch/arm/mach-mx28/device.c</span><br>
+
 
管脚功能定义:arch/arm/mach-mx28/mx28evk_pins.c<br>
+
*管脚功能定义:arch/arm/mach-mx28/mx28evk_pins.c<br>
<span style="background:#CCCCCC">pin function definition:arch/arm/mach-mx28/mx28evk_pins.c</span><br>
+
 
管脚标号定义:arch/arm/mach-mx28/mx28_pins.h<br>
+
*管脚标号定义:arch/arm/mach-mx28/mx28_pins.h<br>
<span style="background:#CCCCCC">pin tab definition:arch/arm/mach-mx28/mx28_pins.h</span><br>
+
 
 
<span style="background:#ff0000;">注意:如果想详细了解驱动的相关文件,请查看“MX28_Linux_驱动参考手册.pdf”文件;想详细查看寄存器,请查看“MCIMX28RM.pdf”文件。</span><br>
 
<span style="background:#ff0000;">注意:如果想详细了解驱动的相关文件,请查看“MX28_Linux_驱动参考手册.pdf”文件;想详细查看寄存器,请查看“MCIMX28RM.pdf”文件。</span><br>
<span style="background:#CCCCCC">note: if you want to know detailedly the relevant files about driving, please check in "MX28 Linux driving refering manual.pdf";if want to view detailedly the register,please refer to "MCIMX28RM.pdf"</span><br>
 
 
</div>
 
</div>

2018年7月27日 (五) 11:15的版本

文档说明


系统环境说明

  • 编译主机CPU架构:64位
  • 编译主机系统:Linux
  • Linux发行版:Ubuntu
  • Ubuntu版本类型:服务器版
  • Ubuntu版本号:12.04.5
  • Ubuntu系统类型:x86-64

  注意:开发主机请使用ubuntu 12.04.5 x86-64(桌面版或服务器版均可),使用其他发行版的Linux或Ubuntu的其它版本可能会遇到的不必要的问题。

操作说明

1)文档中以“$”开头的行,其后是Linux命令。
2)文档中所有的Linux命令建议手动输入到Linux主机执行(直接复制、粘贴到Linux主机上执行,可能会执行失败)。
3)文档中的Linux执行命令,如果空格后的下一个字符是“-”的(如:sudo apt-get –y install之类的),请手动输入到Linux主机执行(直接复制、粘贴到Linux主机上执行,通常会执行失败)。
4)文档中所有一行没写完的Linux命令请手动输入到Linux主机执行,(因为复制、粘贴命令不能包含类似“换行符”之类的特殊字符)。
5)按文档输入并执行Linux命令时注意观察命令的执行结果与文档图片中的是否一致,以确认命令是否输入有误及是否执行失败。
6)第一遍编译请严格按照文档进行,否则可能出现莫名其妙的错误。

截图说明

为使视图看起来简洁整齐,截图中的命令提示符统一使用myzr$。

图片中的Linux命令

在文档的图片中观察“linyn@u12045-serv:~$”开头的行可以直观的看到输入的
linux命令。

驱动及相关设备文件


评估板对应的Linux-3.14.54版本及对应的源码文件和设备见下表:

功能 源码位置 Linux 设备和文件夹
GPIO drivers/gpio/gpiolib.c /sys/class/gpio/
LCD drivers/video/mxs/lcd_43wvf1g.c /dev/fb0
BACKLIGHT drivers/video/backlight/mxs_bl.c /sys/class/backlight/
UART drivers/serial/mxs-duart.c /dev/ttyAM0
drivers/serial/mxs-auart.c /dev/ttySP*
I2C drivers/i2c/i2c-dev.c /dev/i2c-0
SPI drivers/spi/spidev.c /dev/spidev1.0
MMC/SD/SDIO drivers/mmc/ /dev/mmcblk*
NAND GPMI drivers/mtd/nand/gpmi-nfc/ /dev/mtd*
TOUCH SCREEN drivers/input/touchscreen/mxs-ts.c /dev/input/event1
FEC drivers/net/fec.c eth0,eth1
PWM LED drivers/leds/leds-mxs-pwm.c /sys/class/leds/
SGTL5000 sound/soc/codec/sgtl5000.c /dev/snd/
USB drivers/usb/ NC
FLEXCAN drivers/net/can/flexcan/ can0,can1
WATCHDOG drivers/watchdog/mxs-wdt.c /dev/watchdog
  • 板级目录:arch/arm/mach-mx28/
  • 板级文件:arch/arm/mach-mx28/mx28evk.c
  • 设备注册文件:arch/arm/mach-mx28/device.c
  • 管脚功能定义:arch/arm/mach-mx28/mx28evk_pins.c
  • 管脚标号定义:arch/arm/mach-mx28/mx28_pins.h

注意:如果想详细了解驱动的相关文件,请查看“MX28_Linux_驱动参考手册.pdf”文件;想详细查看寄存器,请查看“MCIMX28RM.pdf”文件。
</div>