分析okmx6q-c、okmx6dl linux用戶okmx6x手冊_第1頁
分析okmx6q-c、okmx6dl linux用戶okmx6x手冊_第2頁
分析okmx6q-c、okmx6dl linux用戶okmx6x手冊_第3頁
分析okmx6q-c、okmx6dl linux用戶okmx6x手冊_第4頁
分析okmx6q-c、okmx6dl linux用戶okmx6x手冊_第5頁
已閱讀5頁,還剩115頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

ForlinxEmbeddedTechnologyCo.注意事項(xiàng)與1、注意 2、售后服務(wù)政策:參見說明 址:河北省保定市高開區(qū)向陽街2699號保定飛凌嵌入式新樓5層售后維修部聯(lián)系人:售后維修部 話 技術(shù)支持與定制1、技術(shù)支持范圍2、技術(shù)討論范圍3、技術(shù)支持方式:3.2 3.3 3.4知識庫 4、技術(shù)支持時間周一至周五:9:00—11:30,13:30—5、定制開發(fā)服務(wù) 資料更新與獲取1、資料的更新2、更新后如何通知 3、資料如何獲取 更新記錄

OKMX6X-C-linux3.0.35用戶手冊第一版增加了ov5640-mipi,i2c3下設(shè)備,SD卡燒寫。板與底V1.3及其V1.1及其Imx6q/dl的支持豐富uboot菜單的功能Imx6q/dlubootLCD、MIPILVDSLOGO的功能添加Ubootwatchdog的功添加了對音頻WM8960的支持,并兼容WM8962,通uboot菜單可選,默認(rèn)支WM8960;添加了USB轉(zhuǎn)百兆以太網(wǎng)功能添加ov5640、對ov5640、ov5640mipiuboot添加菜單可直接tftpnfs啟動ubootlogoLogo添加電阻屏驅(qū)動,能自動選擇觸摸屏,按gt9xx,ft5x06,tsc2007的順序添加TW6865支添加了對EC204Gubootcmdline更改為只能通過按下空格鍵進(jìn)添加ssh、sshd、python2.7目錄注意事項(xiàng)與-1--2--3--4--4- 錄5-8- 8- 9- 9-- - -- - --3.2.2Ubuntu12.04LTSlinux(供大家學(xué)習(xí)參考-3.2.3Qt4.8.5GUIlinux- - - - - - - - - - - - - - - - - - - - - - - - FlexCAN-- SPICAN設(shè)備(MCP2515)-- GPU-- IPU-- FB-- VPU-- -- -- -- 1080p/mp3音頻測試-- -- -- WifiHostAp-- EIM WIFI-- -- -- SPI-- -- 放/測試-- CMOS頭測試-- RTC-- 3G-- GPS-- GPRS-- -- -- TTLRS232-- FlexCAN-- SPICAN模塊測試(MCP2515)-- -- -- -- -- -- ubootwatchdog1-- 選擇使用的音頻-- u-boot的Logo-- 99100101u-boot101rootfsqt4.8.5103附 - - DHCP服務(wù)器設(shè) - 無線口WEP/2-PSKAES加密設(shè) ..- - - - - - - - -附錄7:TFTP服務(wù)搭 - - - - - Uboot使用 ..-附錄8:NFS服務(wù)搭 - - - ..- ..-第一章OKMX6X-C軟件資源Linux3.0.35系統(tǒng)軟件資源特性LCDUSB接口UUSBLCDUSBeMMC器分區(qū)信--四核與雙核的差異42內(nèi)部DRAM54無Packagedimension(LxWxZ)MainCPU:L2Cache(max)1EMMC啟動:1OFF,2、3、42SD燒寫系統(tǒng):1、3、4OFF,2第三章OKMX6X-C平臺Linux使用查看串口打印信息使用燒寫工具燒寫鏡若要燒寫2GB內(nèi)存的板子,需要將2GB內(nèi)存對應(yīng)的uboot映像放到相應(yīng) mx6用戶資料\Linux\首先將燒寫工具拷貝到windows下解壓,燒寫工具用戶資料路徑如下所示:mx6用戶資料\Linux\工具1microusbotgpc的usbmfgtool2-ubuntu-OKMX6-C-emmc.vbs(1gubuntu的燒寫)mfgtool2-qt-OKMX6-C-emmc.vbs(用于1g內(nèi)存qt的燒寫)mfgtool2-2g-ubuntu-OKMX6-C-emmc.vbs(2gubuntu的燒寫)mfgtool2-2g-qt-OKMX6-C-emmc.vbs(用于2g內(nèi)存qt的燒寫)燒寫無GUI 時還要求\...\...\OSFirmware\files\linux\console\rootfs.tar.bz2文件。1g內(nèi)存使用燒寫工具下的mfgtool2-console-OKMX6-C-emmc.vbs進(jìn)行燒寫,2g內(nèi)存使用燒寫工具下的mfgtool2-2g-console-OKMX6-C-emmc.vbs進(jìn)行燒寫,此時已經(jīng)將燒寫文本配置好,直接燒寫即可。注意:linux系統(tǒng)登錄用戶名root燒寫Ubuntu12.04LTSlinux(供大家學(xué)習(xí)參考o(jì)neiric.tgz文件默認(rèn)存貯在用戶資料mx6用戶資料\Linux\源碼 注意:ubuntu12.04LTS系統(tǒng)登錄名字linaro 同時還要求\...\...\OSFirmware\files\linux\ubuntu\下有oneiric.tgz文件。1g內(nèi)存使用燒寫工具燒寫Qt4.8.5GUI 下\Profiles\Linux\OSFirmware\files\linux\下有uImage,logo.bmp,u-boot-q.bin(四核),u-boot-dl.bin(雙核),u-boot-q_2g.bin(四核2g),u-boot-dl_2g.bin(雙核2g)文件,同時還要求\\...\OSFirmware\files\linux\qt4\下有rootfs.qt4.tar.bz2文件。 pliantdevice)后,抬起boot鍵,點(diǎn)擊"start",如下圖所示:點(diǎn)擊stop,再點(diǎn)擊exit退出即可。.SD燒寫鏡像 路徑:OKMX6Q-C用戶資料\Linux\工具步驟1:使用USB把SD卡插入到電腦的USB端口(VMware虛擬機(jī)用戶如果優(yōu)盤沒有被虛擬機(jī)識步驟四 雙 #注意:判定自己的優(yōu)盤是sda/sdb/sdc可以根據(jù)容量進(jìn)行判斷,比如自己的優(yōu)盤容量為4G,則其size為 卡制作完成后可以看到里面有速度sdrun和 ,sdrun里面的內(nèi)容不要更改注意:卡只需要做一次,如果以后更換自己的編譯的系統(tǒng)鏡像,只需將新編譯的鏡像拷貝uImage、u-boot.bin、rootfs.tar.bz2、logo.bmp直換system 4:1、3、4OFF,2ON,重新上電或重啟,開始燒寫系統(tǒng)。串口有燒寫過程本節(jié)測試所用到的測試程序在飛凌提供的Demo中已有集成,故不做文件來源說明,直接進(jìn)行命OKMX6Q-C用戶資料\Linux\測試程序\test.rar 或使用屏幕的測試?yán)又腥绻聊缓谄翆僬,F(xiàn)象,觸摸屏幕或按電源鍵即可WIFI置成。步驟2:開發(fā)板上電,啟動Linux系統(tǒng)。 說明:-s表示wifi熱點(diǎn)的名稱-p表示,如果沒有請輸入-p scale:#./wifi.sh-i8723-sbjforlinx-p wifi8723bjforlinx IPv6:ADDRCONF(NETDEV_UP):eth0:linkisnotreadyRTL871X:moduleinitstartRTL871X:RTL871X:rtl8723bu RTL871X:rtl8723buBT-Coexversion=BTCOEX random:nonblockingpoolisinitialized nch RTL871X:rtw_ndev_init(wlan0)if1mac_addr=cc:79:cf:08:4d:b5RTL871X:rtw_ndev_init(p2p0)if2mac_addr=ce:79:cf:08:4d:b5usbcore:registerednewinterfacedriverrtl8723buRTL871X:moduleinitIPv6:ADDRCONF(NETDEV_UP):wlan0:linkisnotreadyRTL871X:nolinkedpowersaveenterSuccessfullyinitialized rfkill:CannotopenRFKILLcontroldeviceRTL871X:nolinkedpowersaveleavewlan0:TryingtoassociatewithcRTL871X:rtw_set_802_11_connect(wlan0) c:34:29:8c:4a:26( RTL871X:startauthRTL871X:authsuccess,startRTL871X:rtw_cfg80211_indicate_connect(wlan0)BSSnotfound!!RTL871X:assocsuccessIPv6:ADDRCONF(NETDEV_CHANGE):wlan0:link esreadyudhcpc(v1.24.1)startedSendingdiscover...RTL871X:recveapolRTL871X:sendeapolpacketRTL871X:recveapolpacketRTL871X:sendeapolpacketwlan0: :Keynegotiationcompletedwithcc:34:29:8c:4a:26[PTK=CCMPGTK=TKIP]wlan0:CTRL-EVENT-CONNECTED-Connectiontocc:34:29:8c:4a:26completed[id=0id_str=]RTL871X:setpairwisekeycamid:4,addr:cc:34:29:8c:4a:26,kid:0,type:AESRTL871X:setgroupkeycamid:5,addr:cc:34:29:8c:4a:26,kid:1,type:TKIPSendingdiscover...SendingselectforLeaseof21obtained,leasetime/etc/udhcpc.d/50default:AddingDNS注本小節(jié)中是一 連接路由的示例。由于網(wǎng)絡(luò)環(huán)境的不同,所以在您做本實(shí)驗(yàn)時,請根據(jù)實(shí)際情況進(jìn)行設(shè)置SDHC/SDXC卡驅(qū)動測試開發(fā)板支持SD卡和microSD卡熱插拔。插上卡后系統(tǒng)會自動將其掛載到/media scale~$mmc2:newhighspeedSDHCcardataddressaaaammcblk1:mmc2:aaaaSS08G7.40GiBmmcblk1:p1mmcblk1:p1p2EXT3-fs:barriersnotkjournaldstarting. Commitinterval5secondsEXT3-fs(mmcblk1p2):usinginternaljournalEXT3-fs(mmcblk1p2):recoverycomplete scale/$ls/media 查看SD卡中的文件,命令如下:root@scale/media$ls-l 2 4096May 2015 2 4096Nov 2014 1 22612Jan 2015 1root 3236Jan15 2015app 2root 4096May15 往SD卡中寫入文件,命令如下,1到test.txt文件中: scale/$echo1> scale/$sync scale/$cat/media/mmcblk1p1/test.txt scale scale/$ls-l 2root 4096Sep22 2013bin 2root 4096Apr 2013dev 26root 4096Jan13 2015etc 7root 4096Jun16 2014forlinx 4root 4096May20 8root 4096May20 2014lib 13root 4096Jan132015media 3root 4096Apr52013mnt 3rootroot4096May212014optdrwxr-sr-x2rootroot4096Apr52013procdrwxr-sr-x2rootroot4096May202014sbindrwxr-sr-x2rootroot4096Jan22014srvdrwxr-sr-x2rootroot4096Apr52013sys 1root 8Sep17 2013tmp->/var/tmp 9root 4096Jan 2014usr 8root 4096May20 往microSD卡中寫入文件,命令如下,寫2到test2.txt文件中: scale/$echo2> scale/$microSD卡中test2.txt文件,命令如下: scale/$cat/media/mmcblk2p1/test2.txt scale 請把/dev/mmcblk1p1改成相應(yīng)的此處多出的設(shè)備名。sdxc卡設(shè)置使用格式化成ext2或ext3或ext4 scale/$mkfs.ext2/dev/mmcblk1p1Filesystemlabel=OStype:Blocksize=4096(log=2)Fragmentsize=4096(log=2) 784576blocks(5%) forthesuperuserFirstdatablock=0umumfilesystemblockblock32768blockspergroup,32768fragmentspergroup8192inodespergroupSuperblockbackupsstoredon32768,32768,98304,163840,229376,294912,819200, mmc2:newhighspeedSDXCcardataddress59b4mmcblk1:mmc2:59b4 59.8mmcblk1: scale/media$cdmmcblk1p1/ scale/media/mmcblk1p1$lsmmc2:newhighspeedSDXCcardataddress59b4mmcblk1:mmc2:59b4SDU1 119GiBmmcblk1:EXT2-fs(mmcblk1p1):warning:mountinguncheckedfs,runninge2fsckis scale~$cd/media/ scale/media$ls scale/media$cdmmcblk1p1/ scale/media/mmcblk1p1$lsUSBHOST接口測的熱插拔。這里用掛載U盤為例進(jìn)行演示,目前U盤測試支持到32G,32G以上并未測試。1:開發(fā)板斷電,連接USB接口u盤到飛凌開發(fā)板的USBhost接口。步驟3:查看usb設(shè)備 scale/media$cd/media/ scale/media$ls 顯示如下的u盤信息 scalelogin:root#登錄用戶名login[3361rootloginonttymxc0' scale~$usb2-1.3:newhighspeedUSBdevicenumber4usingfsl-ehciscsi0:usb-storage2-1.3:1.0scsi0:0:0:0:Direct-Access STORAGEDEVICE 0207PQ:0ANSI:0sd0: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:barriersnotenabledkjournaldstarting. Commitinterval5secondsEXT3-fs(sda2):usinginternaljournalEXT3-fs(sda2):recoveryEXT3-fs(sda2):mountedfilesystemwithwritebackdata步驟2:查看usb設(shè) scale/media$cd/media/ scale/media$ls 以太網(wǎng)驅(qū)動測試開發(fā)板IP:20 scale~$ifconfig 20(將eth0設(shè)置IP為20) scale~$ifconfig scale~$routeadddefaultgw - - /etc/resolv.conf文件中有dns服務(wù)器信息會被自動添加。步驟2:網(wǎng)絡(luò)連通測試 scale scale按鍵盤的CtrlC以太網(wǎng)相關(guān)服務(wù)OKMX6X-C開發(fā)板在/etc/inetd.conf文件中已經(jīng)啟動了net服務(wù),設(shè)置好IP地址后就可以作為一臺net服務(wù)器了。 名輸入root,為空(開始->運(yùn)行,輸入cmd回車, Web我們在開發(fā)板上移植了一個webserver:boaboawebserverwebUnixLinuxCGI,源代碼開放;是一個非常適合于嵌入式系統(tǒng)的單任務(wù)http服務(wù)器。系統(tǒng)啟動時已經(jīng)自動啟動了boa服務(wù),在IE中輸入開發(fā)板的IP地址即可瀏覽開發(fā)板webserver中的網(wǎng)頁。下圖是在IE中瀏覽的截圖:FTP服系統(tǒng)啟動時已經(jīng)自動啟動了ftp服務(wù),可在電腦上用tp軟件,用戶名root,root;下圖是在PC機(jī)上用IEftp的截圖:使用FTPPCssh服 scale/$sshTheauthenticityofhost'49(49)'can'tbeECDSAkeyfingerprintisAreyousureyouwanttocontinueconnecting(yes/no)?Warning:Permanentlyadded'49'(ECDSA)tothelistofknownhosts.lixinguo@49'spassword: * 504packagescanbeupdated.402updatesaresecurityupdates.Newrelease'16.04.5LTS'available.Run'do-release-upgrade'toupgradetoLastlogin:TueNov608:32:382018from0sshd scale/$adduserforlinxChangingpasswordforforlinxNewpassword:Badpassword:similartousernameRetypepassword:Passwordforforlinxchangedbybashforlinx/setuptools-0.6c11- Creating/lib/python2.7/site-packages/site.pyCopyingsetuptools-0.6c11-py2.7.eggto/lib/python2.7/site-packagesAddingsetuptools0.6c11toeasy-install.pthfileInstallingeasy_installscriptto//binInstallingeasy_install-2.7scriptto//binProcessingdependenciesforsetuptools==0.6c11Finishedprocessingdependenciesfor然后就可以安裝第模塊了,如安裝web.py(注:請確保板子的時間正確 scale/$easy_installweb.pySearchingforweb.pyReading Bestmatch:web.py0.40.dev1 Processingweb.py-0.40.dev1.tar.gzzip_safeflagnotset; yzingarchivecontents...web.debugerror:modulereferencesfile web.application:modulereferencesfile Addingweb.py0.40-dev1toeasy-install.pthfileProcessingdependenciesforweb.py Python2.7.13(default,Apr162018,11:43:14)[GCC4.6.2 (prerelease)]onlinux2Type"help","copyright","credits"or"license"formore>>> etoPython ThisistheonlinehelpIfthisisyourfirsttimeusingPython,youshoulddefini ycheckoutthetutorialontheInternetat Enterthenameofanymodule,keyword,ortopictogethelponwritingPythonprogramsandusingPythonmodules. Toquitthishelputilityandreturntotheinterpreter,justtype"quit".Togetalistofavailable ,ortopics,type ",or"topics". Eachmodulealsocomeswithaone-linesummaryofwhatitdoes;tolistthemoduleswhosesummariescontainagivenwordsuchas"spam",type"modulesspam".SPI(SPI2_MOSI)10腳(SPI2_MISO)短接(軟件驅(qū)動需要客戶自己修改配置編譯內(nèi)核): scale~$spidev_test-D/dev/spidev1.0spimode:0bitsperword:maxspeed:500000Hz(500AA55AA55AA55AA55AA55AA55AA55AA55AA55AA55AA55AA看門狗測試后重啟。測試程序中打開了/dev/watchdogWatchdog,程序進(jìn)入循環(huán)狀態(tài),由于沒有喂狗,60秒后系統(tǒng)復(fù)位。執(zhí)行60s復(fù)位命令watdogrestart U-Boot2009.08-dirty4292015U-Bootcode:278006E0-> BSS:- CPU: scalei.MX6familyTO1.5at792MHzThermalsensorwithratio=181 scale/$watchdogrestart1driversetouttimeis60usersetouttimeis1 WatchdogTickingAway!I2COKMX6X-C開發(fā)板提供了的插針I(yè)2C接口(I2C2&I2C3),使用/system/bin/i2c-test程序測試i2c2接口,s scale~$i2c-test–f放/測注意:目前底板支持wm8962和wm8960,默認(rèn)焊接wm8960ALSAdevicelist:ALSAdevicelist:#0:wm8962-audio#1:#1: scale~$cd scale~$ln-s y scale/usr/bin$amixersset'MIXINRIN3R'on Simplemixercontrol'MIXINRIN3R',0Capabilities:volumevolume-joinedpswitchpswitch-joinedpenumybackchannels:MonoCapturechannels:Limits:0-Mono:7[100%][6.00dB] yback scale/usr/bin$amixersset'INPGARIN3R'on Simplemixercontrol'INPGARIN3R',0Capabilities:pswitchpswitch-joinedpenumybackchannels:MonoMono: yback scale/usr/bin$amixercsetname='HeadphoneVolume'127,127 numid=22,iface=MIXER,name='HeadphoneVolume': scale/usr/bin$amixercsetname='DigitalCaptureVolume' 設(shè) :scale amixercsetybackVolume"127,127yback;type=INTEGER,access=rwR--:|dBscale-min=- scale/$amixercsetname="Speaker ybackVolume"127,127設(shè)置speaker放音音量numid=11,iface=MIXER,name='Speaker ybackVolume': scale/$amixercsetname=" ybackVolume"255,255 ybackVolume';type=INTEGER,access=rwR--:|dBscale-min=- scale/$amixercsetname="CaptureVolume"23,23設(shè)置 ;type=INTEGER,access=rwR--: scale scaleusr/bin$ y yingWAVE'/forlinx/sound/wo.wav':Signed16bitLittleEndian,Rate22050Hz,Stereo 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$a y[-Dplughw:0,0]record.wav yingWAVE'[-Dplughw:0,0]':Signed16bitLittleEndian,Rate44100Hz,SteryingWAVE'record.wav':Signed16bitLittleEndian,Rate44100Hz, scaleUSB頭測注意:本產(chǎn)品目前支持以下USB頭,測試程序是開源的,客戶可以根據(jù)自己需求更改:C270 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/ 2-Lluvcviewversionv0.1starting 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=480Timeintervalbetweenframe: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, scale~$luvcview-d/dev/ 2-fyuv-s800x448-i25luvcviewversionv0.1sizewidth:800height:interval:25fpsstarting getpicturevinfo: 時也在進(jìn)行錄制,錄制的文件名為xxx.avi,保存在執(zhí)行命令的 scale~$luvcview-d 2-fjpg-s800x448-i30luvcviewversionv0.1sizewidth:800height:interval:30fpsstarting recordingto.avikillherself!Restart...startingprocess/dev/recordingto getpicture!vinfo: RTC時鐘驅(qū)動測RTCdatehwclock工具設(shè)置軟、硬件時間,測試當(dāng)板子斷電再上電的時候,軟件時鐘RTC時鐘是否同步(注意:確保板子上已經(jīng)安裝了紐扣電池)。 scale~$dateUsage:date[OPTIONS][+FMT] ytime(using+FMT),orset [-s,--set]TIMESettimeto WorkinUTC(don'tconverttolocal - OutputISO-8601compliantdate SPEC='date'(default)fordate 'hours','minutes',or'seconds'fordate timetotheindicated ylastmodificationtimeof yTIME,not -DFMT UseFMTfor-dTIMEconversionRecognizedTIMEformats: scale/$date-s2015.05.29-09:47:13FriMay2909:47:13UTC2015說明:dateMMDDhhmm[[YY]YY][.ssMM是月份,DDhh是小時,mm是分鐘,年份可以寫2位的YY或4位YYYY,秒可以用.ss表示。 scale/$FriMay2909:47:24UTChwclock scale~$hwclockUsage:hwclock[-r|--show][-s|--hctosys][-w|--systohc][-t|--systz][-l|--localtime][-u|--utc][-f|--rtcQueryandsethardwareclock - Showhardwareclock - Setsystemtimefromhardware - Sethardwareclockfromsystem - Setin-kerneltimezone,correctsystem ifhardwareclockisinlocal Assumehardwareclockiskeptin - Assumehardwareclockiskeptinlocal -fFILEUsespecifieddevice(e.g.hwclock-w—將系統(tǒng)時間設(shè)置到時鐘里面,此時rtc就可以使用了。如果沒有這步,下次啟動時, scale~$hwclock- scale/$FriMay2909:54:47UTCcpu內(nèi)部RTCcpu內(nèi)部RTC,需要在調(diào)整硬件焊接的器件(方法請參考硬件手冊)的同時修改內(nèi)核配置,修改源碼根的arch/arm/configs/imx6_defconfig文件3G模塊實(shí)現(xiàn)上網(wǎng) scale~$vi/etc/ppp/peers/wcdma-mf210user"card" connect'/opt/3G/bin/chat-s-v-f/etc/ppp/peers/chat-wcdma-connect'disconnect'/opt/3G/bin/chat-s-v-f/etc/ppp/peers/chat-wcdma-disconnect'插入中興MF2103G模塊后,啟動開發(fā)板,在超級終端使用命令:pppdcallwcdma-mf210& scale~$pppdcallwcdma-mf210&aborton(NOCARRIER)aborton(ERROR)aborton(NODIALTONE)aborton(BUSY)aborton(NOANSWER)send(AT^M)expect(OK)--gotexpect(OK)--gotexpect(OK)--gotsendexpect--gotexpect--gotsendUsinginterfaceppp0Connect:ppp0<-->/dev/ttyUSB2CHAPauthenticationsucceededCHAPauthenticationsucceededCouldnotdetermineremoteIPaddress:defaultingto4 IPaddress28remoteIPaddress DNSaddress8secondaryDNSaddress連接成功可以嘗 root@scale 64bytesfrom21:seq=1ttl=51time=68.605ms64bytesfrom21:seq=2ttl=51time=78.753ms64bytesfrom21:seq=3ttl=51time=68.195ms scale~$ifconfigeth0 scale~$ifconfigwlan0注 模塊為選配模塊,需求請向銷售人員咨詢GPS模塊測 scale~$ scale~$tty_test etoTTYtest!PressCtrl+'c'to Y門FF枂V6c門門6c門?門門門 門門GPRS模塊測GPRSGPRS模塊,也可以使用自己的串口GPRS模塊。root@scale~$pppdcallgprs timeoutsetto15secondsaborton(\nDELAYED\r)aborton(\nBUSY\r)aborton(\nERROR\r)aborton(\nNOCARRIER\r)send(^MAT^M)expect(OK)--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>]rcvd[PAPAuthAckid=0x1"LoginOK"]Remotemessage:LoginOKsent[IPCPConfReqid=0x1<compressVJ0f01><addr><ms-dns><ms-dns3sent[IPCPConfReqid=0x1<compressVJ0f01><addr><ms-dns><ms-dns3rcvd[IPCPConfReqid=0x1<addr1>]sent[IPCPConfAckid=0x1<addr1>]rcvd[IPCPConfRejid=0x1<compressVJ0f01>]sent[IPCPConfReqid=0x2<addr><ms-dns><ms-dns3rcvd[IPCPConfNakid=0x2<addr12><ms-dns18><ms-dns3sent[IPCPConfReqid=0x3<addr12><ms-dns18><ms-dns3rcvd[IPCPConfAckid=0x3<addr12><ms-dns18><ms-dns3 IPaddress12remoteIPaddress1 DNSaddress8secondaryDNSaddress連接成功可以嘗 root@scale 64bytesfrom21:seq=1ttl=51time=2467.756ms64bytesfrom21:seq=2ttl=51time=4864.425ms64bytesfrom21:seq=3ttl=51time=4007.484ms注意:假如命令不通,可能是之前測試以太網(wǎng)或無線網(wǎng)絡(luò)接口時的一些配置的影響,此時需要先執(zhí)行以下命令測試模塊: scale~$ifconfigeth0 scale~$ifconfigwlan0注 模塊為選配模塊,需求請向銷售人員咨詢4G模塊實(shí)現(xiàn)上網(wǎng)4G模塊支持ME909SEC20 scale/$cat echo"ATE0">ifconfigusb0upudhcpc-iusb0ifconfigeth0up scale/$cd/root/ scale/$./me909s.sh&udhcpc(v1.20.2)startedSendingdiscover...SendingselectforLeaseof41obtained,leasetime518400Deletingroutersaddingdnseth0: 連接成功測試一下root@scale 64bytesfrom08:seq=0ttl=52time=92.070ms64bytesfrom08:seq=1ttl=52time=68.891ms64bytesfrom08:seq=2ttl=52time=63.791ms64bytesfrom08:seq=3ttl=52time=68.689ms64bytesfrom08:seq=4ttl=52time=68.658msecho"AT^NDISDUP=1,1,\"3gnet\"">/dev/ttyUSB2為echo"AT^NDISDUP=1,1,\"ctnet\"">/dev/ttyUSB2為電信 scale/$ -CM[1] -CMprofile[1]=(null)/(null)/(null)/0,pincode=[01-01_00:19:47:998]Find/sys/bus/usb/devices/2-1.4idVendor=2c7cidProduct=0125[01-01_00:19:47:998]Find/sys/bus/usb/devices/2-1.4:1.4/net/eth1[01-01_00:19:47:999]Findqmichannel=/dev/qcqmi1 WDS= scale/$[01-01_00:19:48:063]Get DMS=8[01-01_00:19:48:095]Get NAS=9[01-01_00:19:48:127]Get UIM=10 [01-01_00:19:48:287]requestGetSIMStatusSIMStatus:SIM_READY[01-01_00:19:48:351]requestRegistrationState2MCC:460,MNC:0,PS:Attached,D ap:LTE[01-01_00:19:48:383]requestQueryD allIPv4ConnectionStatus:DISCONNECTED[01-01_00:19:48:447]requestRegistrationState2MCC:460,MNC:0,PS:Attached,D ap:LTE[01-01_00:19:48:480]requestSetupD allWdsConnectionIPv4Handle:0xe178f700[01-01_00:19:48:575]requestQueryD allIPv4ConnectionStatus:CONNECTED[01-01_00:19:48:607]ifconfigeth1up[01-01_00:19:48:635]busyboxudhcpc-f-n-q-t5-ieth1[01-01_00:19:48:652]udhcpc(v1.20.2)started[01-01_00:19:49:017]Leaseof24obtained,leasetime7200[01-01_00:19:49:040]Deletingrouters[01-01_00:19:49:058]addingdns scale 6464bytesfrom08:seq=1ttl=52time=68.89164bytesfrom08:seq=2ttl=52time=63.791ms64bytesfrom08:seq=3ttl=52time=68.689ms64bytesfrom08:seq=4ttl=52time=68.658ms64bytesfrom08:seq=5ttl=52time=68.511ms64bytesfrom08:seq=7ttl=52time=68.092ms串口測使用TTL232 scale~$tty_test scale~$tty_test etoTTYtest!PressCtrl+'c'to /dev/ttymxc2,creatthread PC端使用 3.2,波特率設(shè)為9600,發(fā)送“abcdefg”字串給開發(fā)板(注意: 3.2一定要選擇發(fā)送新行,如果選擇HEX發(fā)送,字符串輸入框結(jié)尾輸入0d0a)。RS485測試程OKMX6X-CRS485的掛載設(shè)備。文檔中提供兩種測試方式,用戶可以選擇方便的A+(轉(zhuǎn)換模塊)A(開發(fā)板)B+(轉(zhuǎn)換模塊)B(開發(fā)板)。測試方法請參考串口測試章節(jié)注意:UART5/dev/ttymxc4ttlrs485TTLRS232測試程UART4,UART5。其中UART1為調(diào)試口,不需要測試。到RS232設(shè)備,參考“串口測試程序”設(shè)置好波特率,可以進(jìn)行數(shù)據(jù)收發(fā)。UART5設(shè)備名字/dev/ttymxc4不能直接連接TTL轉(zhuǎn)RS232TTL轉(zhuǎn)RS232模塊為選配模塊,需求請向銷售人員咨詢按鍵測 scale~$key_testkey116Pressedkey115Pressedkey114Pressed數(shù)據(jù)庫測試 scale~$ version201210-0419:37:12Enter".help"forEnterSQLstatementsterminatedwitha>createtabletbl1(onevarchar(10),twosmallint);>insertintotbl1values(' >insertintotbl1values('goodbye',20);>select*fromtbl1;>IPMAC地址修 scale~$ifconfigeth0 scale~$ifconfigeth0hwether08:90:90:90:90:90 scale~$ifconfigeth0upeth0: rc.local scale~$viforiin012if[-e/sys/class/graphics/fb$i];odod0666ifconfigeth0ifconfigeth0hwether08:90:90:90:90:90ifconfigeth0upFlexCAN設(shè)FlexCANCAN總線有兩個物理連線,CAN的HCAN設(shè)備H設(shè)置客戶端開發(fā)板can scale~$iplinksetcan0uptypecanbitrate125000triple-samplingon scale~$ifconfigcan0up設(shè)置服務(wù)端開發(fā)板can scale~$iplinksetcan0uptypecanbitrate125000triple-samplingon scale~$ifconfigcan0up interface=can0,family=29,type=3,proto=<0x010>[8]11223344556677 scale~$cansendcan0-i0x100x110x220x330x440x550x660x770x88interface=can0,family=29,type=3,proto=1SPICAN設(shè)備SPI轉(zhuǎn)CAN模塊為選配模塊,需求請向銷售人員咨詢MCP2515SPICANSPI2V1.0HLH連接到對應(yīng)板子的L,L連接到對應(yīng)板子的H。能有兩個can設(shè)備(can0和can1),請注意區(qū)分。配置菜單參考編譯Linux-3.0.35GPU scale~$vi scale~$vi#./fluidlauncher-qws& scale~$cd/unit_tests 10000framesin4461ticks->2241.65010000framesin3110ticks->3215.434 1]libGAL:Performingasoftwareresolve!Rendered10000framesin25243milliseconds:396.15fpsfps:1259.84fps:fps:fps:fps:fps:fps:fps:fps:fps:fps:fps:fps:fps:pressESCtoIPU scale~$vi scale~$vi#./fluidlauncher-qws& ===============teststartfromFriJan200:51:51UTC1970Checkingfordevnode:Runningtestcase:./mxc_ipudev_test.out-c1-i1024,768,RGBP,0,0,0,0,0,0-O800,480,RGBP,0,0,0,0,0-s0-ffullsize.rgbpwall-1024x768-565.rgbpasscmdline12,newoption:cframecountset1FB scale~$vi scale~$vi#./fluidlauncher-qws& Checkingfordevnode:/dev/fb0FBBlanktestScreenshouldbeoffFBColortestSettingFBto16-bppSettingFBto24-bppSettingFBto32-bppFBpanningtestVPU scale~$vi scale~$vi#./fluidlauncher-qws&器測 scale/unit_tests$ ./mxc_vpu_test.out-D"-ih264.avi-f2" VPUtestprogrambuiltonApr23201513:51:27 ProductInfo: VPUfirmwareversion:2.3.10_r40778 VPUlibraryversion:5.4.16 Inputfile"h264.avi" bitstreamMode1,chromaInterleave1,mapType0,tiled2LinearEnable0 H.264Profile:100Level:30Interlace:0 Decoder:width=624,height=416,frameRateRes=60,frameRateDiv=1,count=3 CROPleft/top/right/bottom0000 yfpswillbe30 v4loutputto/dev/ yto800480,topoffset0,leftoffset y: 781framestook decfps=467.87 totalfps= scale/unit_tests$./mxc_vpu_test.out-D"-ih264.avi-f2-oout.yuv" VPUtestprogrambuiltonApr23201513:51:27 ProductInfo: VPUfirmwareversion:2.3.10_r40778 VPUlibraryversion:5.4.16 Inputfile"h264.avi" Outputfile"out.yuv" bitstreamMode1,chromaInterleave1,mapType0,tiled2LinearEnable0 H.264Profile:100Level:30Interlace:0 Decoder:width=624,height=416,frameRateRes=60,frameRateDiv=1,count=3 CROPleft/top/right/bottom0000 yfpswillbe 781framestook decfps=478.20 totalfps= scale/unit_tests$./mxc_vpu_test.out-D"-iakiyo.mp4-f0" VPUtestprogrambuiltonApr23201513:51:27 ProductInfo: VPUfirmwareversion:2.3.10_r40778 VPUlibraryversion:5.4.16 Format:STD_MPEG4 Inputfile"akiyo.mp4" bitstreamMode1,chromaInterleave1,mapType0,tiled2LinearEnable0 Mpeg4Profile:0Level:3Interlaced:0 Decoder:width=176,height=144,frameRateRes=15,frameRateDiv= count=4 CROPleft/top/right/bottom0000 yfpswillbe30 v4loutputto yto800480,topoffset0,leftoffset y: 150framestook decfps=2004.89 totalfps= scale/unit_tests$./mxc_vpu_test.out-D"-iakiyo.mp4 -oakiyo.yuv-f0" VPUtestprogrambuiltonApr23201513:51:27 ProductInfo: VPUfirmwareversion:2.3.10_r40778 VPUlibraryversion:5.4.16 Format:STD_MPEG4 Inputfile"akiyo.mp4" Outputfile"akiyo.yuv" bitstreamMode1,chromaInterleave1,mapType0,tiled2LinearEnable0 Mpeg4Profile:0Level:3Interlaced:0 Decoder:width=176,height=144,frameRateRes=15,frameRateDiv= count=4 CROPleft/top/right/bottom0000 yfpswillbe30 150framestook461390microseconds decfps=216

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論