在shell script執行某程式之後判斷是否成功 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 12月 06, 2016 sh /etc/init.d/rcS if [ $? -ne 0 ]; then /sbin/check 1; fi $? is the exit status of the most recently-executed command; by convention, 0 means success and anything else indicates failure. 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 留言
在嵌入式linux系統中使用android adbd,PC可直接透過USB對console下指令 12月 04, 2017 可以參考這一篇 http://www.cnblogs.com/zengjfgit/p/6289873.html /* ************************************************************************ * android-tools adb for ARM Linux * 说明: * 有时候还真是系统通过USB线直接连接到ARM主板,这样就不一定需要网络才 * 能传输文件,在做系统更新的时候,有时候也是不错的。 * * 2017-1-16 深圳 南山平山村 曾剑锋 *********************************************************************** */ 一、参考文档: 1 . [Buildroot] [PATCH v4] android-tools: add new package http: // lists.busybox.net/pipermail/buildroot/2015-November/145112.html 2 . Linux modules install http: // www.cnblogs.com/helloworldtoyou/p/6180404.html 二、内核配置: .config - Linux/arm 3.0 . 35 Kernel Configuration ────────────────────────────────────────────────────────────────────────────── ┌────────────────────────── USB Gadget Support ───────────────────────────┐ │ Arrow keys navigate the menu. <Enter> selects submenus ---> . │ │ Highlig... 閱讀完整內容
UVC 1.5於linux gadget實作(1) 6月 29, 2015 目的主要是要實踐H.264 encoding在USB cam上的實作來支援skype以及lync 2013 主要可以參考microsoft-proposed-extensions-usb-video-class-h264.docx這一份文件 這份文件最重要的部分是 Appendix B Technical Decisions 以及UVC 1.5 H.264 Implementation Example Appendix B Technical Decisions裡面的3.Why 2-pin solution?解釋了一個很重要的問題 大概也是很多人從UVC 1.1要改成UVC 1.5最大的卡關之處 就是lync跟skype其實要分成兩個pin 一個是preview pin,專門給lync跟skype preview用 (似乎一定要用640x360的解析度) 另一個pin則是輸出H.264用 那要如何實作才能分成兩個pin呢? 1.encoding unit要實踐 2.output terminal要分成兩個 3.external unit for H.264最好是保留住,才可以向下相容 4.創作兩個streaming interface,將YUV、MJPG寫在其中一個 H.264自己寫成另一個 5.descriptor內的數據先照抄UVC 1.5 H.264 Implementation Example,先騙過UVC host再說 至於gadget內部要怎麼改就看自己內部是怎麼寫了 目前我自己可以實作到lync跟skype都可以抓到裝置且看到preview畫面 但是怎麼讓lync來要H.264 bitstream還是不太清楚 如果有高手知道希望可以不吝指導一下 目前計畫是用Hardware Certification Kit(HCK)來幫忙驗證Webcam H.264 不然好像也無法刻意呼叫H.264能力來使用 閱讀完整內容
解決ccache: error: execv of /opt/toolchains/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc failed: No such file or directory 6月 18, 2019 *為了解決ccache: error: execv of /opt/toolchains/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc failed: No such file or directory 有toolchains但是編譯一直失敗,想說直接執行gcc看看,但也失敗 可以使用下面的cmd去看看動態函式庫是否有少東西 https://stackoverflow.com/questions/43412649/cross-compilation-for-arm-error-no-such-file-or-directory-command-not-found readelf -l /bin/ls | grep 'program interpreter' bin/ls可置換成自己想要的執行檔 範例: readelf -l /opt/toolchains/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc | grep 'program interpreter' [Requesting program interpreter: /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/ld-linux-x86-64.so.2] 閱讀完整內容
留言
張貼留言