版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
ls:文中#LinuxPC指令。并且#號(hào)之后部分為用戶(hù)輸入,#只 scale:文中root@ scale~$開(kāi)頭灰底色藍(lán)色字體文字為超級(jí)終端指令。并且$號(hào) scale請(qǐng)不要用或腐蝕性液體本產(chǎn)品。 Sdxc128GiB改GPRS命令試,提供裝好環(huán)境的虛擬機(jī)。 WinCEAndroid :htt周一至周五:上 下午13:30— 注意事項(xiàng)與2 第一章i.MX6軟硬件資源一 四核i.MX6硬件資源特 雙核i.MX6硬件資源特 第二章i.MX6的資源分 第三章使用前的準(zhǔn) 第四章i.MX6平臺(tái)Linux使用 USBWIFI使 RTL8723au當(dāng)USBWIFI使 USBHOST接口測(cè) SPI測(cè) I2C測(cè) USB頭測(cè) 3G模塊實(shí)現(xiàn)IE上 GPS模塊測(cè) TTL轉(zhuǎn)rs232測(cè)試程 IP及MAC地址修 SPI轉(zhuǎn)CAN設(shè)備 GPU測(cè) IPU測(cè) FB測(cè) VPU測(cè) 1080p/mp3音頻測(cè)試 WIFI模塊測(cè) 測(cè) SPI測(cè) CMOS頭測(cè) 3G模塊測(cè) GPS模塊測(cè) 485測(cè)試程 TTL轉(zhuǎn)rs232測(cè)試程 SPI轉(zhuǎn)CAN模塊測(cè)試 第五章i.MX6平臺(tái)Linux編譯 DHCP服務(wù)器設(shè) F4.1虛擬機(jī)的安 F4.2虛擬機(jī)使用固定IP地址的網(wǎng)絡(luò)方 Linux終 第一章i.MX6 -A插座2個(gè)(2mm間距雙排插針1頭卡USB1microUSB1個(gè),RealTekRTL8723ASComboModule,IEEE802.112.4GHz1T1RWiFiwithBluetoothv2.1+EDR/Bluetooth1個(gè),microUSBUSB3.3V1 311頭11USB2.0主口、1211G12 -A插座2個(gè)(2mm間距雙排插針1頭卡USB1microUSB1RealTekRTL8723ASComboModule,IEEE802.112.4GHz1T1RWiFiwithBluetoothv2.1+EDR/Bluetooth1個(gè),microUSBUSB3.3V1 311頭11USB2.0主口、1211G12LCD USB LCD USB4254—(LxWxZ)(max)(KB)第二章i.MX6第三章12345第四章i.MX6Linux(注意:串是根據(jù)開(kāi)發(fā)板連接時(shí)在PCwindows上生成的實(shí)際串口編號(hào),串會(huì)隨著四核采用Mfgtools-Rel-13.01.00_ER_MX6Q_UPDATER燒寫(xiě)系統(tǒng)。i.MX6用戶(hù)光盤(pán)/i.MX6用戶(hù)光盤(pán)i.MX6用戶(hù)光盤(pán)/i.MX6用戶(hù)光盤(pán)(A)\tool\Mfgtools.zip(雙核開(kāi)發(fā)板otg接口與usb數(shù)據(jù)線(xiàn)連接圖如下:雙核的燒寫(xiě)工具為mfgtools\mfgtools\mfgtool2-ubuntu-mx6dl-sabresd-emmc-forlinx.vbs(ubuntu的燒寫(xiě))mfgtool2-qt-mx6dl-sabresd-emmc-forlinx.vbs(用于qt的燒寫(xiě))mfgtool2-uboot-mx6dl-sabresd-emmc-forlinx.vbs(用于uboot的燒寫(xiě))(用于有界面的燒寫(xiě))燒寫(xiě)四核時(shí),確保其燒寫(xiě)工具下\Profiles\MX6QLinuxUpdate\OSFirmware\files\linux下uImageu-boot.bin文件同時(shí)還要求\...\...\OSFirmware\files\linuxconsole\rootfs.tar.bz2文件。對(duì)應(yīng)燒寫(xiě)工具下的cfgini文件中,配置燒寫(xiě)系統(tǒng)類(lèi)型如下:GUIlinux:nameconsole-SabreSD-而燒寫(xiě)雙核時(shí),確保其燒寫(xiě)\ProfilesLinuxOSFirmware\files\linuxzImageu-boot.img文件,同時(shí)還要求\...\...\OSFirmware\fileslinuxconsole\rootfs.tar.bz2文件。使oneiric.tgz文件默認(rèn)存貯在光盤(pán)資料A盤(pán)linux\src 注意ubuntu12.04LTS系統(tǒng)登錄名字linaro 有uImage,u-boot.bin文件,同時(shí)還要求\...\...\OSFirmware\files\linux\ubuntu\下有oneiric.tgz文 下的cfg.ini文件中,配置燒寫(xiě)系統(tǒng)類(lèi)型如下: u-boot.img文件,同時(shí)還要求\...\...\OSFirmware\files\linuxubuntu\oneiric.tgz文件。使用其燒寫(xiě)四核時(shí),確保其燒寫(xiě)工具下\Profiles\MX6QLinuxUpdate\OSFirmware\files\linux下件。對(duì)應(yīng)燒寫(xiě)工具下cfgini文件中,配置燒寫(xiě)系統(tǒng)類(lèi)型如下:qt4.8.5GUIlinux:nameqt-SabreSD-燒寫(xiě)雙核時(shí),確保其燒寫(xiě)工具下\Profiles\Linux\OSFirmware\fileslinuxmfgtool2-qt-mx6dl-sabresd-emmc-forlinx.vbs燒寫(xiě)雙核時(shí),確保其燒寫(xiě)工具下\Profiles\Linux\OSFirmware\files\linuxu-bootimg燒寫(xiě)雙核時(shí),確保其燒寫(xiě)工具下\Profiles\Linux\OSFirmware\files\linuxzImage。使 \Profiles\Linux\OSFirmware\files\console\下有rootfs.tar.bz2文件,燒寫(xiě)工具 件。使用其燒寫(xiě)mfgtool2-filesystem-console-mx6dl-sabresd-emmc-forlinx.vbs和 pliantdevice)后,抬起boot鍵,點(diǎn)擊"start" 邊microusb),驅(qū)動(dòng)程序在http: /products/ICs/FT232Rh buffer,需要將qt界面kill掉。)USBWIFI步驟2:開(kāi)發(fā)板上電,啟動(dòng)Linux系統(tǒng)。 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:設(shè)置USBWIFI的IP。#ifconfigwlan0步驟9:設(shè)置 #iwconfigwlan0 “devnet” #iwconfigwlan0key 步驟11:設(shè)置網(wǎng)關(guān),命令如下。#routeadddefaultgw01自動(dòng)ip地址分配dhcp。#udhcpc- 01 RTL8723au當(dāng)USBWIFI使步驟2:開(kāi)發(fā)板上電,啟動(dòng)Linux系統(tǒng)。 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:設(shè)置USBWIFI的IP。#ifconfigwlan09:9:設(shè)置 #iwconfigwlan0 “devnet”#iwconfigwlan0key“ 步驟11:設(shè)置網(wǎng)關(guān),命令如下。#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卡設(shè)置使用格式話(huà)成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, 格式化需要一段時(shí)間,等待出現(xiàn)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盤(pán)為例進(jìn)行演示,目前U盤(pán)測(cè)試支持到32G,32G以上并未測(cè)試。1:開(kāi)發(fā)板斷電,連接USBu盤(pán)到飛凌開(kāi)發(fā)板的USBhost接口。 scale/media$ scale/media$ 熱插入usb設(shè)備測(cè)試。顯示如下的u盤(pán)信息 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設(shè) scale/media$ scale~$ifconfig scale~$ifconfig scale~$routeadddefault scale~$routeadddefaultgw scale scale scale 0CtrlC net服務(wù),設(shè)置好IP地址后就可以作為一netroot@scale~$netstat-例如,開(kāi)發(fā)板IP地址為0,在Windows令窗口下輸入 net0,用戶(hù)名輸入root,為空(開(kāi)始->運(yùn)行,輸入cmd回車(chē),Windows令窗口)boawebserverwebUnixLinuxCGI,源代碼開(kāi)放;是一個(gè)非常適合于嵌入式系統(tǒng)的單任務(wù)http服務(wù)器。網(wǎng)頁(yè)。下圖是在IE中瀏覽的截圖:系統(tǒng)啟動(dòng)時(shí)已經(jīng)自動(dòng)啟動(dòng)了ftp服務(wù),可在電腦上用ftp軟件,用戶(hù)名root,root;下圖是在PC機(jī)上用IEftp的截圖:和10腳(SPI2_MISO)短接(軟件驅(qū)動(dòng)需要客戶(hù)自己修改配置編譯內(nèi)核): scale~$spidev_test-Dspimode:0bitsperword:8maxspeed:500000Hz(500AA55AA55AA55AA55AA55AA55AA55AA55AA55AA55AA55AA55看門(mén)狗是嵌入式系統(tǒng)中經(jīng)常用到的功能,在超級(jí)終端輸入命令: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,輸入命令進(jìn)行YUV模式圖像 scale~$luvcview-d/dev/ 0-fyuv-s800x448-i25luvcviewversionv0.1sizewidth:800height:interval:25fpsstarting /dev/ getpicture!vinfo: yoffset:0bits_per_pixel:16xres:800輸入命令進(jìn)行MJPEG模式圖像 在進(jìn)行錄制,錄制的文件名為xxx.avi,保存在執(zhí)行命令的 器。 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時(shí)鐘是否同步(注意:確保板子上已經(jīng)安裝了紐扣電池)。 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說(shuō)明:dateMMDDhhmm[[YY]YY][.ssMM是月份,DDhh是小時(shí),mm2YY4YYYY,秒可以用.ss表示。hwclock scale~$hwclockBusyBoxv1.20.2(2015-05-0716:00:36CST)multi-callQueryandsethardwareclockififhardwareclockisinlocalSetin-kerneltimezone,correctsystemSethardwareclockfromsystemSetsystemtimefromhardwareShowhardwareclock-f-fFILEUsespecifieddevice(e.g.AssumehardwareclockiskeptinlocalAssumehardwareclockiskeptinhwclock-w—將系統(tǒng)時(shí)間設(shè)置到時(shí)鐘里面,此時(shí)rtc就可以使用了。如果沒(méi)有這步,下次啟動(dòng)時(shí), 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發(fā)送“abcdefg”字串給開(kāi)發(fā)板(注意: 擇HEX發(fā)送,字符串輸入框結(jié)尾輸入0d0a)i.MX6RS485RS485接UART1為調(diào)試口,不需要測(cè)試。UART2口,TTL485Linux中的設(shè)備名稱(chēng):/dev/ttymxc1UART3口,TTLLinuxUART4口,TTLGPSLinuxRS232設(shè)備,參考4.2.16節(jié)“串口測(cè)試程序”設(shè)置好波特率,可以進(jìn)行數(shù)據(jù)收發(fā)。 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轉(zhuǎn)CAN設(shè)備L端子與其它CAN設(shè)備L端子連接;到對(duì)應(yīng)板子的L,L連接到對(duì)應(yīng)板子的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測(cè)試使用 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(參數(shù)說(shuō)明:-i后面為輸入文件;-o后面為輸出文件;-f0對(duì)應(yīng)mpeg4;-f2對(duì)應(yīng)h264;-D對(duì)應(yīng)-E對(duì)應(yīng)編碼;-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:開(kāi)發(fā)板上電,啟動(dòng)Linux系統(tǒng)。 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. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 《學(xué)前教育概述》課件
- 單位管理制度集合大合集【人力資源管理篇】十篇
- 單位管理制度分享匯編【員工管理篇】十篇
- 單位管理制度分享大全【人員管理篇】
- 單位管理制度范例選集【員工管理】
- 單位管理制度范例合集【人力資源管理篇】十篇
- 單位管理制度呈現(xiàn)合集【員工管理篇】
- 單位管理制度呈現(xiàn)大合集【人事管理】十篇
- 《微點(diǎn)精析》考向19 文化常識(shí) 高考語(yǔ)文一輪復(fù)習(xí)考點(diǎn)微專(zhuān)題訓(xùn)練(原卷+解析)
- 第4單元 民族團(tuán)結(jié)與祖國(guó)統(tǒng)一(B卷·能力提升練)(解析版)
- 杭州市公共服務(wù)設(shè)施配套標(biāo)準(zhǔn)及規(guī)劃導(dǎo)則
- 教練技術(shù)CP理論P(yáng)PT課件
- 機(jī)械工程學(xué)報(bào)標(biāo)準(zhǔn)格式
- 濕法脫硫用水水質(zhì)要求
- 東南大學(xué)文科揭榜掛帥重大平臺(tái)績(jī)效考核表
- 城管局個(gè)人工作總結(jié)
- 鉑銠合金漏板.
- (完整版)建筑力學(xué)(習(xí)題答案)
- 少年宮籃球活動(dòng)教案
- 國(guó)有建設(shè)企業(yè)《大宗材料及設(shè)備采購(gòu)招標(biāo)管理辦法》
- 民間秘術(shù)絕招大全
評(píng)論
0/150
提交評(píng)論