版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
ls:文中#LinuxPC指令。并且#号之后部分为用户输入,#只 scale:文中root@ scale~$开头灰底色蓝色字体文字为超级终端指令。并且$号 scale请不要用或腐蚀性液体本产品。 Sdxc128GiB改GPRS命令试,提供装好环境的虚拟机。 WinCEAndroid :htt周一至周五:上 下午13:30— 注意事项与2 第一章i.MX6软硬件资源一 四核i.MX6硬件资源特 双核i.MX6硬件资源特 第二章i.MX6的资源分 第三章使用前的准 第四章i.MX6平台Linux使用 USBWIFI使 RTL8723au当USBWIFI使 USBHOST接口测 SPI测 I2C测 USB头测 3G模块实现IE上 GPS模块测 TTL转rs232测试程 IP及MAC地址修 SPI转CAN设备 GPU测 IPU测 FB测 VPU测 1080p/mp3音频测试 WIFI模块测 测 SPI测 CMOS头测 3G模块测 GPS模块测 485测试程 TTL转rs232测试程 SPI转CAN模块测试 第五章i.MX6平台Linux编译 DHCP服务器设 F4.1虚拟机的安 F4.2虚拟机使用固定IP地址的网络方 Linux终 第一章i.MX6 -A插座2个(2mm间距双排插针1头卡USB1microUSB1个,RealTekRTL8723ASComboModule,IEEE802.112.4GHz1T1RWiFiwithBluetoothv2.1+EDR/Bluetooth1个,microUSBUSB3.3V1 311头11USB2.0主口、1211G12 -A插座2个(2mm间距双排插针1头卡USB1microUSB1RealTekRTL8723ASComboModule,IEEE802.112.4GHz1T1RWiFiwithBluetoothv2.1+EDR/Bluetooth1个,microUSBUSB3.3V1 311头11USB2.0主口、1211G12LCD USB LCD USB4254—(LxWxZ)(max)(KB)第二章i.MX6第三章12345第四章i.MX6Linux(注意:串是根据开发板连接时在PCwindows上生成的实际串口编号,串会随着四核采用Mfgtools-Rel-13.01.00_ER_MX6Q_UPDATER烧写系统。i.MX6用户光盘/i.MX6用户光盘i.MX6用户光盘/i.MX6用户光盘(A)\tool\Mfgtools.zip(双核开发板otg接口与usb数据线连接图如下:双核的烧写工具为mfgtools\mfgtools\mfgtool2-ubuntu-mx6dl-sabresd-emmc-forlinx.vbs(ubuntu的烧写)mfgtool2-qt-mx6dl-sabresd-emmc-forlinx.vbs(用于qt的烧写)mfgtool2-uboot-mx6dl-sabresd-emmc-forlinx.vbs(用于uboot的烧写)(用于有界面的烧写)烧写四核时,确保其烧写工具下\Profiles\MX6QLinuxUpdate\OSFirmware\files\linux下uImageu-boot.bin文件同时还要求\...\...\OSFirmware\files\linuxconsole\rootfs.tar.bz2文件。对应烧写工具下的cfgini文件中,配置烧写系统类型如下:GUIlinux:nameconsole-SabreSD-而烧写双核时,确保其烧写\ProfilesLinuxOSFirmware\files\linuxzImageu-boot.img文件,同时还要求\...\...\OSFirmware\fileslinuxconsole\rootfs.tar.bz2文件。使oneiric.tgz文件默认存贮在光盘资料A盘linux\src 注意ubuntu12.04LTS系统登录名字linaro 有uImage,u-boot.bin文件,同时还要求\...\...\OSFirmware\files\linux\ubuntu\下有oneiric.tgz文 下的cfg.ini文件中,配置烧写系统类型如下: u-boot.img文件,同时还要求\...\...\OSFirmware\files\linuxubuntu\oneiric.tgz文件。使用其烧写四核时,确保其烧写工具下\Profiles\MX6QLinuxUpdate\OSFirmware\files\linux下件。对应烧写工具下cfgini文件中,配置烧写系统类型如下:qt4.8.5GUIlinux:nameqt-SabreSD-烧写双核时,确保其烧写工具下\Profiles\Linux\OSFirmware\fileslinuxmfgtool2-qt-mx6dl-sabresd-emmc-forlinx.vbs烧写双核时,确保其烧写工具下\Profiles\Linux\OSFirmware\files\linuxu-bootimg烧写双核时,确保其烧写工具下\Profiles\Linux\OSFirmware\files\linuxzImage。使 \Profiles\Linux\OSFirmware\files\console\下有rootfs.tar.bz2文件,烧写工具 件。使用其烧写mfgtool2-filesystem-console-mx6dl-sabresd-emmc-forlinx.vbs和 pliantdevice)后,抬起boot键,点击"start" 边microusb),驱动程序在http: /products/ICs/FT232Rh buffer,需要将qt界面kill掉。)USBWIFI步骤2:开发板上电,启动Linux系统。 scale~$ scale~$ Used scale scale~$rmmod scale~$cd scale~$ Used scale~$ifconfig Linkencap:Ethernet HWaddrE8:4E:06:13:0F:E8BROADCASTMULTICASTMTU:1500 RXpackets:0errors:0dropped:0overruns:0frame:0TXpackets:0errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:0(0.0B)TXbytes:0(0.0 scale~$ifconfig scale~$ifconfigeth0 scale~$ifconfigwlan0 scale~$iwlistwlan0 Cell04-Address: Protocol:IEEE Frequency:2.437GHz(Channel Encryption BitRates:54 Signal步骤8:设置USBWIFI的IP。#ifconfigwlan0步骤9:设置 #iwconfigwlan0 “devnet” #iwconfigwlan0key 步骤11:设置网关,命令如下。#routeadddefaultgw01自动ip地址分配dhcp。#udhcpc- 01 RTL8723au当USBWIFI使步骤2:开发板上电,启动Linux系统。 scale~$ Used scale~$rmmod scale scale~$cd scale/lib/modules/wifi$insmod8723au scale~$ Used scale~$ifconfig Linkencap:Ethernet HWaddr8C:18:D9:2B:F1:64BROADCASTMULTICASTMTU:1500 RXpackets:0errors:0dropped:0overruns:0frame:0TXpackets:0errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:0(0.0B)TXbytes:0(0.0 scale~$ifconfigeth0 scale~$ifconfigwlan0 scale~$iwlistwlan0 Cell04-Address: Protocol:IEEE Frequency:2.437GHz(Channel Encryption BitRates:54 Signal步骤8:设置USBWIFI的IP。#ifconfigwlan09:9:设置 #iwconfigwlan0 “devnet”#iwconfigwlan0key“ 步骤11:设置网关,命令如下。#routeadddefaultgw#udhcpc-## scale~$mmc2:newhighspeedSDHCcardataddressaaaammcblk1:mmc2:aaaaSS08G7.40GiBmmcblk1:p1mmcblk1:p1p2EXT3-fs:barriersnotkjournaldstarting. Commitinterval5secondsEXT3-fs(mmcblk1p2):usinginternaljournalEXT3-fs(mmcblk1p2):recoverycompleteEXT3-fs(mmcblk1p2):mountedfilesystemwithwritebackdata scale/$ls/media 查看SD卡中的文件,命令如下: scale/media$ls-l 2 4096May 2015 2 4096Nov 2014 1 22612Jan 2015 1 3236Jan 2015 2root 4096May15 2015ok335-s scale/media$ls-l/media/mmcblk1p2/ 2root 4096Sep22 2013bin 2root 4096Apr 2013dev 26root 4096Jan13 2015etc 7root 4096Jun16 2014forlinx 4root 4096May20 2014home 8root 4096May20 2014lib 13root 4096Jan13 2015media 3root 4096Apr52013mntdrwxr-xr-x3rootroot4096May212014optdrwxr-sr-x2rootroot4096Apr52013procdrwxr-sr-x2rootroot4096May202014sbindrwxr-sr-x2rootroot4096Jan22014srvdrwxr-sr-x2rootroot4096Apr52013sys 1root 8Sep17 2013tmp->/var/tmp 9root 4096Jan 2014usr 8root 4096May20 2014varsdxc卡设置使用格式话成ext2ext3ext4 scale/$mkfs.ext2/dev/mmcblk1p1Filesystemlabel=OStype:Blocksize=4096(log=2)Fragmentsize=4096(log=2) 784576blocks(5%) forthesuperuserFirstdatablock=0 block32768blockspergroup,32768fragmentspergroup8192inodespergroupSuperblockbackupsstoredon 32768,98304,163840,229376,294912,819200, 格式化需要一段时间,等待出现root@ mmc2:newhighspeedSDXCcardataddress59b4mmcblk1:mmc2:59b4 59.8mmcblk1: scale/media/mmcblk1p1$ls128Gsdxcmmc2:newhighspeedSDXCcardataddress59b4mmcblk1:mmc2:59b4SDU1 119GiBmmcblk1:EXT2-fs(mmcblk1p1):warning:mountinguncheckedfs,runninge2fsckis scale~$cd/media/ scale/media$ls scale/media/mmcblk1p1$ls热插拔。这里用挂载U盘为例进行演示,目前U盘测试支持到32G,32G以上并未测试。1:开发板断电,连接USBu盘到飞凌开发板的USBhost接口。 scale/media$ scale/media$ 热插入usb设备测试。显示如下的u盘信息 scale scalelogin:rootlogin[3361]:rootloginon scale~$usb2-1.3:newhighspeedUSBdevicenumber4usingfsl-scsi0:usb-storage2-scsi0:0:0:0:Direct-Access STORAGEDEVICE sd0:0:0:0:[sda] 512-bytelogicalblocks:(3.96GB/3.69GiB)sd0:0:0:0:[sda]WriteProtectissd0:0:0:0:[sda]NoCachingmodepagesd0:0:0:0:[sda]Assumingdrivecache:writethroughsd0:0:0:0:[sda]NoCachingmodepagepresentsd0:0:0:0:[sda]Assumingdrivecache:writesda:sda1sd0:0:0:0:[sda]NoCachingmodepagesd0:0:0:0:[sda]Assumingdrivecache:writethroughsd0:0:0:0:[sda]AttachedSCSIremovablediskEXT3-fs:barriersnotenabledkjournald Commitinterval5EXT3-fs(sda2):usinginternaljournalEXT3-fs(sda2):recoverycompleteEXT3-fs(sda2):mountedfilesystemwithwritebackdata步骤2:查看usb设 scale/media$ scale~$ifconfig scale~$ifconfig scale~$routeadddefault scale~$routeadddefaultgw scale scale scale 0CtrlC net服务,设置好IP地址后就可以作为一netroot@scale~$netstat-例如,开发板IP地址为0,在Windows令窗口下输入 net0,用户名输入root,为空(开始->运行,输入cmd回车,Windows令窗口)boawebserverwebUnixLinuxCGI,源代码开放;是一个非常适合于嵌入式系统的单任务http服务器。网页。下图是在IE中浏览的截图:系统启动时已经自动启动了ftp服务,可在电脑上用ftp软件,用户名root,root;下图是在PC机上用IEftp的截图:和10脚(SPI2_MISO)短接(软件驱动需要客户自己修改配置编译内核): scale~$spidev_test-Dspimode:0bitsperword:8maxspeed:500000Hz(500AA55AA55AA55AA55AA55AA55AA55AA55AA55AA55AA55AA55看门狗是嵌入式系统中经常用到的功能,在超级终端输入命令:watdogrestart60秒后 scale~$U-Boot2009.08-dirty4292015U-Bootcode:278006E0-> BSS:- CPU:CPU: scalei.MX6familyTO1.5at792Thermalsensorwithratio=root@scale~$watdogtestWatchdogTickingAway!I2C(I2C2&I2C3 scale~$cdscale~$ln-sy scale/usr/bin$amixersset'MIXINRIN3R'on Simplemixercontrol'MIXINRIN3R',0Capabilities:volumevolume-joinedpswitchpswitch-joinedpenumybackchannels:MonoCapturechannels:Limits:0-Mono:7[100%]Mono:7[100%] scaleusr/bin$amixerssetINPGARIN3R Simplemixercontrol'INPGARCapabilities:pswitchpswitch-joinedybackybackchannels: yback scale/usr/bin$amixercsetname='HeadphoneVolume'127,127 numid=22,iface=MIXER,name='HeadphoneVolume': scale/usr/bin$amixercsetname='CaptureVolume' numid=9,iface=MIXER,name='Capture: scale scaleusr/bin$ y yingWAVE'/forlinx/sound/wo.wav':Signed16bitLittleEndian,Rate22050z, scale/usr/bin$arecord[-Dplughw:0,0]-r44100-fS16_LE-c2-d10record.wav RecordingWAVE'[-Dplughw:0,0]':Signed16bitLittleEndian,Rate44100Hz,StRecordingWAVE'record.wav':Signed16bitLittleEndian,Rate44100Hz, scale/usr/bin$ y[-Dplughw:0,0] yingWAVE'[-Dplughw:0,0]':Signed16bitLittleEndian,Rate44100Hz,Ster yingWAVE'record.wav':Signed16bitLittleEndian,Rate44100Hz, scaleC270 scale~$Bus001Device001:ID1d6b:0002Bus002Device001:IDBus002Device002:IDBus002Device003:ID0bda:0724Bus002Device005:ID19d2:0117root@scale~$Bus001Device001:ID1d6b:0002Bus002Device001:ID1d6b:0002Bus002Device002:ID05e3:0608Bus002Device003:ID0bda:0724Bus002Device004:ID046d:0825Bus002Device005:ID19d2:0117 scale~$ls 其中 scale~$luvcview-d/dev/ 0-Lluvcviewversionv0.1starting /dev/ 0doesnotsupportread{pixelformat='YUYV',description='YUV4:2:2(YUYV)'{discrete:width=640,height=480 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=160,height=120 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=176,height=144 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=320,height=176 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=320,height=240 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=352,height=288 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=432,height=240 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=544,height=288 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=640,height=360 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=752,height=416 Timeintervalbetweenframe:1/25,1/20,1/15,1/10,{discrete:width=800,height=448 Timeintervalbetweenframe:1/25,1/20,1/15,1/10,{discrete:width=800,height=600 Timeintervalbetweenframe:1/20,1/15,1/10,{discrete:width=864,height=480 Timeintervalbetweenframe:1/20,1/15,1/10,{discrete:width=960,height=544 Timeintervalbetweenframe:1/15,1/10,{discrete:width=960,height=720 Timeintervalbetweenframe:1/10,{discrete:width=1024,height=576 Timeintervalbetweenframe:1/10,{discrete:width=1184,height=656 Timeintervalbetweenframe:1/10,{discrete:width=1280,height=720 Timeintervalbetweenframe:1/10,{discrete:width=1280,height=960 Timeintervalbetweenframe:2/15,{pixelformat='MJPG',description='MJPEG'{discrete:width=640,height=480 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=160,height=120 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=176,height=144 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=320,height=176 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=320,height=240 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=352,height=288 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=432,height=240 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=544,height=288 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=640,height=360 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=752,height=416 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=800,height=448 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=800,height=600 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=864,height=480 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10, Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10, Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=960,height=720 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=1024,height=576 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=1184,height=656 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=1280,height=720 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,{discrete:width=1280,height=960 Timeintervalbetweenframe:1/30,1/25,1/20,1/15,1/10,输入命令进行YUV模式图像 scale~$luvcview-d/dev/ 0-fyuv-s800x448-i25luvcviewversionv0.1sizewidth:800height:interval:25fpsstarting /dev/ getpicture!vinfo: yoffset:0bits_per_pixel:16xres:800输入命令进行MJPEG模式图像 在进行录制,录制的文件名为xxx.avi,保存在执行命令的 器。 scale~$luvcview-d 0-fjpg-s800x448-i30luvcviewversionv0.1sizewidth:800height:interval:30fpsstarting /dev/ recordingto killherself!Restart...startingprocess recordingto getpicture!vinfo: yoffset:0bits_per_pixel:16xres:800钟RTC时钟是否同步(注意:确保板子上已经安装了纽扣电池)。 scale~$dateBusyBoxv1.20.2(2015-05-0716:00:36CST)multi-callUsage:date[OPTIONS][+FMT] ytime(using+FMT),orset [-s,--set]TIMESettimeto WorkinUTC(don'tconverttolocal OutputRFC-2822compliantdate SPEC='date'(default)fordate 'hours','minutes',or'seconds'fordate timetotheindicated ylastmodificationtimeof yTIME,not -D UseFMTfor-dTIMERecognizedTIME scale~$date-s2015.05.29-09:47:13WedMay1314:15:30UTC2015说明:dateMMDDhhmm[[YY]YY][.ssMM是月份,DDhh是小时,mm2YY4YYYY,秒可以用.ss表示。hwclock scale~$hwclockBusyBoxv1.20.2(2015-05-0716:00:36CST)multi-callQueryandsethardwareclockififhardwareclockisinlocalSetin-kerneltimezone,correctsystemSethardwareclockfromsystemSetsystemtimefromhardwareShowhardwareclock-f-fFILEUsespecifieddevice(e.g.AssumehardwareclockiskeptinlocalAssumehardwareclockiskeptinhwclock-w—将系统时间设置到时钟里面,此时rtc就可以使用了。如果没有这步,下次启动时, scale~$reboot3GIE scale~$pppdcallwcdma-mf210&aborton(NOCARRIER)abortonaborton(BUSY)send(AT^M)--gotexpect(OK)--gotexpect(OK)--gotsendexpect--gotexpect(CONNECT)--gotsendUsinginterfaceppp0CHAPauthenticationsucceededCHAPauthenticationsucceededCouldnotdetermineremoteIPaddress:defaultingto4 IPaddress28remoteIPaddress4 secondaryDNSaddress root@scale (21):56data64bytesfrom21:seq=1ttl=51time=68.605ms64bytesfrom21:seq=2ttl=51time=78.753ms64bytesfrom21:seq=3ttl=51time=68.195ms scale~$ scale~$tty_test etoTTYtest!PressCtrl+'c'to/dev/ttymxc3,creat /dev/ttymxc3,creatthread YFF枂V6c6c? 己的串口GPRS模块。UART3okroot@scale~$pppdcallgprs timeoutsetto15aborton(\nBUSY\r)aborton(\nERROR\r)aborton(\nNOCARRIER\r)send(^MAT^M)--gotexpect(OK)--gotexpect(OK)--gotsendexpect--gotexpect(CONNECT)--gotsendusingchannel1UsinginterfaceConnect:ppp0<-->Warning-secretfile/etc/ppp/pap-secretshasworldand/orgroupsent[LCPConfReqid=0x1<asyncmap0x0><magic0x488b1dc9><pcomp>< rcvd[LCPConfReqid=0x1<asyncmap0xa0000><authpap>]sent[LCPConfAckid=0x1<asyncmap0xa0000><authrcvd[LCPConfRejid=0x1<magic0x488b1dc9><pcomp>< sent[LCPConfReqid=0x2<asyncmap0x0>]rcvd[LCPConfAckid=0x2<asyncmapWarning-secretfile/etc/ppp/pap-secretshasworldand/orgroupaccesssent[PAPAuthReqid=0x1user="cmnet"password=<hidden>]Remotemessage:LoginOKsent[IPCPConfReqid=0x1<compressVJ0f01><addr><ms-dns><ms-dns>]sent[IPCPConfReqid=0x1<compressVJ0f01><addr><ms-dns><ms-dns>]rcvd[IPCPConfReqid=0x1<addr1>]sent[IPCPConfAckid=0x1<addr1>]rcvd[IPCPConfRejid=0x1<compressVJ0fsent[IPCPConfReqid=0x2<addr><ms-dns><ms-dns3rcvd[IPCPConfNakid=0x2<addr12><ms-dns18><ms-dns3>]sent[IPCPConfReqid=0x3<addr12><ms-dns18><ms-dns3>]rcvd[IPCPConfAckid=0x3<addr12><ms-dns18><ms-dns3>]localIPaddress12remoteIPaddress1 secondaryDNSaddress root@scale (21):56data64bytesfrom21:seq=1ttl=51time=2467.756ms64bytesfrom21:seq=2ttl=51time=4864.425ms64bytesfrom21:seq=3ttl=51time=4007.484ms scale~$tty_test scale~$tty_test etoTTYtest!PressCtrl+'c'to/dev/ttymxc2,creat /dev/ttymxc2,creatthread PC端使用 3.2发送“abcdefg”字串给开发板(注意: 择HEX发送,字符串输入框结尾输入0d0a)i.MX6RS485RS485接UART1为调试口,不需要测试。UART2口,TTL485Linux中的设备名称:/dev/ttymxc1UART3口,TTLLinuxUART4口,TTLGPSLinuxRS232设备,参考4.2.16节“串口测试程序”设置好波特率,可以进行数据收发。 key116Pressedkey115Pressedkey114Pressedkey114 scale~$ version201210-04Enter".help"forEnterSQLstatementsterminatedwitha >createtabletbl1(onevarchar(10),two >insertintotbl1 >insertintotbl1values('goodbye', >select*from >.quit IP及MAC scale~$ifconfigeth0 scale~$ifconfigeth001netmask scale scale~$ifconfigeth0 scale~$ifconfigeth0hwether scale~$ifconfigeth0 scale~$vi scale~$vi在foriin012;if[-e/sys/class/graphics/fb$i];od0666ifconfigeth0ifconfigeth0hwether08:90:90:90:90:90ifconfigeth0upcan scale~$iplinksetcan0uptypecanbitrate125000triple-samplingon scale~$ifconfigcan0upcan scale~$iplinksetcan0uptypecanbitrate125000triple-samplingon scale~$ifconfigcan0up: scale~$candumpinterface=can0,family=29,type=3,proto=<0x010>[8]11223344556677 scale~$cansendcan0-i0x100x110x220x330x440x550x660x770x88interface=can0,family=29,type=3,proto=1SPI转CAN设备L端子与其它CAN设备L端子连接;到对应板子的L,L连接到对应板子的H。can1 scale~$cd/unit_tests /unit_tests10000framesin4461ticks->2241.650fps10000framesin3110ticks->3215.434fps 1]libGAL:Performingasoftwareresolve!Rendered10000framesin25243milliseconds:396.15fpsfps:1259.84fps:fps:fps:fps:fps:fps:fps:fps:fps:fps:fps:fps:fps:pressESCtoIPU FB测试使用 scale/unit_tests$./autorun-fb.shCheckingfordevnode:/dev/fb0FBBlanktestScreenshouldbeoffFBColortestSettingFBto16-bppSettingFBto24-bppSettingFBto32-FBpanningautorun-fb.sh:Exiting scale ./mxc_vpu_test.out-D scale ./mxc_vpu_test.out-D"-ih264.avi-f VPUtestprogrambuiltonApr23201513:51:27 ProductInfo:i.MX6Q/D/S VPUlibraryversion:5.4.16 Inputfile"h264.avi" H.264Profile:100Level:30Interlace: Decoder:width=624,height=416,frameRateRes=60,frameRateDiv=1,count=3 CROPleft/top/right/bottom0000[INFO]Dis yfpswillbe30[INFO] yto800480,topoffset0,leftoffset0 y:NV12 781framestook decfps=467.87 totalfps= scale/mnt$./mxc_vpu_test.out-D"-ih264.avi-f2-o VPUtestprogrambuiltonApr23201513:51:27 ProductInfo:i.MX6Q/D/S VPUlibraryversion:5.4.16 Inputfile"h264.avi" H.264Profile:100Level:30Interlace: Decoder:width=624,height=416,frameRateRes=60,frameRateDiv=1,count=3 CROPleft/top/right/bottom0000 Disyfpswillbe 781framestook decfps=478.20 totalfps= scale/unit_tests$./mxc_vpu_test.out scale/unit_tests$./mxc_vpu_test.out-D"-iakiyomp4-f VPUtestprogrambuiltonApr23201513:51:27 ProductInfo:i.MX6Q/D/S VPUlibraryversion:5.4.16 Format:STD_MPEG4 MPEG4class: Inputfile"akiyo.mp4" Mpeg4Profile:0Level:3Interlaced:0 AspectRatioTableindex:1 Decoder:width=176,height=144,frameRateRes=15,frameRateDiv= ,count=4 CROPleft/top/right/bottom0000[INFO]Dis yfpswillbe30[INFO] yto800480,topoffset0,leftoffset y: 150framestook decfps=2004.89 totalfps= scale/unit_tests$./mxc_vpu_test.out-D"-iakiyo -oakiyo.yuv-f VPUtestprogrambuiltonApr23201513:51:27 ProductInfo:i.MX6Q/D/S VPUlibraryversion:5.4.16 Format:STD_MPEG4 MPEG4class: Inputfile"akiyo.mp4" Mpeg4Profile:0Level:3Interlaced:0 AspectRatioTableindex:1 Decoder:width=176,height=144,frameRateRes=15,frameRateDiv= ,count=4 CROPleft/top/right/bottom0000 Disyfpswillbe decfps=2161.79编码为h264 scale/unit_tests$./mxc_vpu_test.out-E"-iout.yuv-w624-h416-f2-ofile.264-t VPUtestprogrambuiltonApr23201513:51:27 ProductInfo:i.MX6Q/D/S VPUlibraryversion:5.4.16 Inputfile"out.yuv"opened. Outputfile"file.264"opened. Capture/Encodefpswillbe Finishedencoding:123frames[INFO]encfps=321.87[INFO]totalfps=252.93编码为mpeg4 scale/unit_tests$./mxc_vpu_test.out-E"-iout.yuv-w624-h416-f0-ofile.mpeg4-t VPUtestprogrambuiltonApr23201513:51:27 ProductInfo:i.MX6Q/D/S VPUlibraryversion:5.4.16 Format:STD_MPEG4 MPEG4class: Inputfile"out.yuv"opened. Capture/Encodefpswillbe30 Finishedencoding:123frames encfps=320.76 totalfps= scale/unit_tests$./mxc_vpu_test.out-T"-ifile.mpeg4-f0-w624-h416-o VPUtestprogrambuiltonApr23201513:51:27 ProductInfo:i.MX6Q/D/S VPUlibraryversion:5.4.16 Format:STD_MPEG4 MPEG4class: Inputfile"file.mpeg4" 4"opened. Mpeg4Profile:0Level:4Interlaced:0 AspectRatioTableindex:1 Decoder:width=624,height=416,frameRateRes=30,frameRateDiv= ,count=4 CROPleft/top/right/bottom0000[INFO]Disyfpswillbe30[INFO] Disyto624416,topoffset0,leftoffset0 Disy:NV12[INFO]Capture/Encodefpswillbe[INFO]chromaInterleave1,mapType0,linear2TiledEnable0[INFO]123framestook [INFO]averagefpsfordecalone(nodisp):fps=474.58[INFO]averagefpsforenc(withdisp): fps=32.29[INFO]averagefpsfortranscodewithdisp:fps=30.23[INFO]averagefpsfortotalwithdisp: fps=30.21(参数说明:-i后面为输入文件;-o后面为输出文件;-f0对应mpeg4;-f2对应h264;-D对应-E对应编码;-w宽度;-h高度;高度宽度必须和保持一致 scale~$ y(gst-plugin-scanner:3302):GStreamer-CRITICAL**:gst_pad_tem te_new:assertion`caps!=NULL' te: (gst-plugin-scanner:3302):GStreamer-CRITICAL**:gst_pad_tem te_new:assertion`caps!=NULL' te: MAXresolution800x480 ybin2is audio pressed16-bitPCM ytheoperation [a]Pausewhen ying, ywhen [m]Switchtomuteor ynext yprevious [r]Switchtorepeatedmodeor [f]Setfullscreenor [z]resizethewidthand [c]Setting y ythe get 步骤2:开发板上电,启动Linux系统。 scale/media$ scale/$ scale scale/$ scalescale/$echo248>scale/$ scale/$g ysamplemp4ybin2isemployed! yer_set_media_location():filename=sample.mp4 Core: buildonJun182013 Content Idx : Movie : : : : :Track00 _000000] Duration: Language: 080, vpudecversions:) plugin: vpulib: firmware:0778 Language: languagecode:containerformat: encoder:MFW_GST_V4LSINK_PLUGIN3.0.7buildonApr23201513:53:39.FOUNDGST_MESSAGE_TAG! codec:languagecode:undBeep:3.0.7Core:AACdecoder buildonMar152013mime:audio/mpeg,CODEC:BLN_MAD-MMCODECS_AACD_ARM_03.07.00 buildonJul17201217:47:46.FOUNDGST_MESSAGE_TAG!numberofchannels: bitrate: audiocodec:AAC hardwarebuffer: softwarebuffer:get ;fullscreen[V4LUpdateDis y]:left=0,top=0,
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- GB/T 41780.2-2024物联网边缘计算第2部分:数据管理要求
- 2024年特许权使用合同:矿山设备租赁与技术支持2篇
- 青春广播稿15篇
- 折线统计图教学设计
- 浙江省台州市2023-2024学年四年级上学期语文期末试卷(含答案)
- 设计成果迭代合同
- 诚信售后服务保证书范文
- 语文大专考试指导卷
- 语文课堂教学方法探讨
- 货物订购协议实例
- 一氧化碳化学品安全技术说明书
- 超声切割止血刀技术参数
- 三级医院呼吸学科医疗服务能力指南(2020年版)
- 朝花夕拾之二十四孝图
- 体育心理学课后参考答案
- 计算机组成原理期末考试试题及答案904
- 德育主题班会课件 红岩精神 永放光芒
- 英语演讲-机器人发展
- 坚持以人民为中心发展思想
- 中学300米塑胶运动场建设项目初步设计
- 国家开放大学电大《小学数学教学研究》大作业形考任务试题及答案
评论
0/150
提交评论