国产毛片a精品毛-国产毛片黄片-国产毛片久久国产-国产毛片久久精品-青娱乐极品在线-青娱乐精品

米爾Remi Pi 實時系統(tǒng)與EtherCAT移植

發(fā)布時間:2024-4-30 18:44    發(fā)布者:swiftman
關(guān)鍵詞: 米爾 , 瑞米派 , Remi Pi , 瑞薩 , 嵌入式
1.概述
Remi Pi采用瑞薩RZ/G2L作為核心處理器,該處理器搭載雙核Cortex-A55@1.2GHz+Cortex-M33@200MHz處理器,其內(nèi)部集成高性能3D加速引擎Mail-G31 GPU(500MHz)和視頻處理單元(支持H.264硬件編解碼),16位的DDR4-1600 / DDR3L-1333內(nèi)存控制器、千兆以太網(wǎng)控制器、USB、CAN、SD卡、MIPI-CSI等外設(shè)接口,在工業(yè)、醫(yī)療、電力等行業(yè)都得到廣泛的應(yīng)用。
2.實時內(nèi)核設(shè)計
  • 實時補丁我們選擇RT-Preempt來實現(xiàn)


RT補丁可以從RT官網(wǎng)下載5.10.83對應(yīng)的補丁
  • 把補丁放到自己的工作目錄下,然后解壓,如圖2-1:


  1. hjx@myir-server:~/renesas/04_Sources$ tar -xvf patches-5.10.83-rt58.tar.gz
復(fù)制代碼


圖2-1. 內(nèi)核源碼
  • 進入到內(nèi)核源碼打補丁,如圖2-2:


  1. hjx@myir-server:~/renesas/04_Sources/myir-renesas-linux$ for p in `ls -1 ../patches/*.patch`; do patch -p1 < $p; done
復(fù)制代碼


圖2-2. 打?qū)崟r補丁
  • 編譯內(nèi)核源碼


  1. hjx@myir-server:~/renesas/04_Sources/myir-renesas-linux$ /opt/remi-sdk/environment-setup-aarch64-poky-linux
  2. hjx@myir-server:~/renesas/04_Sources/myir-renesas-linux$ make ARCH=arm64 mys_g2lx_defconfig
  3. hjx@myir-server:~/renesas/04_Sources/myir-renesas-linux$ make ARCH=arm64 Image dtbs   -j16
復(fù)制代碼



2.2. 其他影響性能的配置
3.實時性測試
  • 空載測試


  1. cyclictest -p 99 -t 1 -d 100 -i 1000 -D 24h -m -a -n
復(fù)制代碼



圖3-1.空載測試
  • CPU&內(nèi)存滿載


  1. cyclictest -p 99 -t 1 -d 100 -i 1000 -D 24h -m -a -n
復(fù)制代碼


  • 增加壓力


  1. stress-ng --cpu 4 --cpu-method all --io 4 --vm 50 -d 5 --fork 4 --timeout 36000s
復(fù)制代碼


圖3-2.滿載測試
表3-1.數(shù)據(jù)信息
4.1. 下載EtherCAT IGH源碼
https://gitlab.com/etherlab.org/ethercat/-/tree/stable-1.5?ref_type=heads
圖4-1. 下載源碼
  • 解壓EtherCAT源碼


  1. hjx@myir-server:~/renesas/04_Sources$ tar -xvf ethercat-stable-1.5.tar.bz2
  2. hjx@myir-server:~/renesas/04_Sources$ cd ethercat-stable-1.5
復(fù)制代碼


  • 加載sdk環(huán)境變量


  1. hjx@myir-server:~/renesas/04_Sources/myir-renesas-linux$ source /opt/remi-sdk/environment-setup-aarch64-poky-linux
復(fù)制代碼



編譯通過會對應(yīng)生成ethercat-stable-1.5/devices/ec_generic.ko和ethercat-stable-1.5/master/ec_master.ko
安裝成功后前面指定/home/hjx/renesas/04_Sources/ethercat-stable-1.5/output目錄下有編譯生成的各種用戶空間的文件。
  1. hjx@myir-server:~/renesas/04_Sources/ethercat-stable-1.5$ make install
  2. Making install in include
  3. make[1]: Entering directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5/include'
  4. make[2]: Entering directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5/include'
  5. make[2]: Nothing to be done for 'install-exec-am'.
  6. /bin/mkdir -p '/home/hjx/renesas/04_Sources/ethercat-stable-1.5/output/include'/
  7. usr/bin/install -c -m 644 ecrt.h ectty.h '/home/hjx/renesas/04_Sources/ethercat-stable-1.5/output/include'
  8. make[2]: Leaving directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5/include'
  9. make[1]: Leaving directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5/include'
  10. Making install in script
  11. make[1]: Entering directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5/script'
  12. Making install in init.d
  13. make[2]: Entering directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5/script/init.d'
  14. make[3]: Entering directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5/script/init.d'
  15. make[3]: Nothing to be done for 'install-exec-am'
  16. ............
  17. ..........
  18. make[3]: Leaving directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5/examples'
  19. make[2]: Leaving directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5/examples'
  20. make[1]: Leaving directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5/examples'
  21. make[1]: Entering directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5'
  22. make[2]: Entering directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5'
  23. make[2]: Nothing to be done for 'install-exec-am'.
  24. make[2]: Nothing to be done for 'install-data-am'.
  25. make[2]: Leaving directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5'
  26. make[1]: Leaving directory '/home/hjx/renesas/04_Sources/ethercat-stable-1.5'
復(fù)制代碼
4.4. 將EtharCAT相關(guān)文件打包
至此IGH交叉編譯完成,下面是在對應(yīng)arm目標(biāo)板上的操作。
將上面制作好的output.tar.bz2傳到開發(fā)板上,然后解壓出來。
  1. root@myir-remi-1g:~# tar -xvf output.tar.bz2output/
  2. output/
  3. etc/output/
  4. etc/ethercat.conf
  5. output/etc/init.d/
  6. output/etc/init.d/ethercat
  7. output/etc/sysconfig/
  8. output/etc/sysconfig/ethercat
  9. output/sbin/
  10. output/sbin/ethercatctl
  11. output/include/
  12. output/include/ectty.h
  13. output/include/ecrt.h
  14. output/modules/
  15. output/modules/ec_master.ko
  16. output/modules/ec_generic.ko
  17. output/share/
  18. output/share/bash-completion/
  19. output/share/bash-completion/completions/
  20. output/share/bash-completion/completions/ethercat
  21. output/bin/
  22. output/bin/ethercat
  23. output/lib/
  24. output/lib/libethercat.so
  25. output/lib/pkgconfig/
  26. output/lib/pkgconfig/libethercat.pc
  27. output/lib/libethercat.so.1.2.0
  28. output/lib/cmake/
  29. output/lib/cmake/ethercat/
  30. output/lib/cmake/ethercat/ethercat-config.cmake
  31. output/lib/libethercat.a
  32. output/lib/libethercat.la
  33. output/lib/libethercat.so.1
復(fù)制代碼
將output目錄下各文件目錄的內(nèi)容復(fù)制到板子根文件系統(tǒng)根目錄下相應(yīng)目錄下,例如:cp bin/ethercat /bin/(include目錄不用復(fù)制)
  1. root@myir-remi-1g:~/output# ls
  2. bin etc  include  lib  modules  sbin  share
  3. root@myir-remi-1g:~/output# cp bin/ethercat /bin/
  4. root@myir-remi-1g:~/output# cp etc/ethercat.conf /etc/
  5. root@myir-remi-1g:~/output# cp etc/init.d/*  /etc/init.d
  6. root@myir-remi-1g:~/output# cp -r etc/sysconfig/ /etc/
  7. root@myir-remi-1g:~/output# cp  lib/libethercat.* /lib64/
  8. root@myir-remi-1g:~/output# cp -r lib/pkgconfig /lib64/
  9. root@myir-remi-1g:~/output# cp modules/ec_master.ko /lib/modules/5.10.83-cip1-yocto-standard/
  10. root@myir-remi-1g:~/output# cp sbin/ethercatctl  /sbin/
復(fù)制代碼
4.6. 啟動EtherCAT
4.6.2. 啟動EtherCAT
  1. root@myir-remi-1g:~# /etc/init.d/ethercat start
  2. Starting EtherCAT master 1.5.2 done
復(fù)制代碼

至此所有步驟完成。


米爾瑞米派 Remi Pi
瑞薩第一款MPU生態(tài)板卡,兼容樹莓派擴展模塊
采用瑞薩RZ/G2L工業(yè)級處理器,便于企業(yè)客戶產(chǎn)品開發(fā);
Remi Pi兼容樹莓派所有配件,方便產(chǎn)品原型搭建和創(chuàng)新應(yīng)用;
更多的工業(yè)接口,兼顧開發(fā)、學(xué)習(xí)和實際應(yīng)用;
軟件系統(tǒng)豐富,支持Debian/Ubuntu/Linux等。

2.png (6.66 KB)

2.png

3.png (29.02 KB)

3.png

4.png (14.01 KB)

4.png

5.png (73.36 KB)

5.png

6.png (89.69 KB)

6.png
本文地址:http://www.qingdxww.cn/thread-856334-1-1.html     【打印本頁】

本站部分文章為轉(zhuǎn)載或網(wǎng)友發(fā)布,目的在于傳遞和分享信息,并不代表本網(wǎng)贊同其觀點和對其真實性負(fù)責(zé);文章版權(quán)歸原作者及原出處所有,如涉及作品內(nèi)容、版權(quán)和其它問題,我們將根據(jù)著作權(quán)人的要求,第一時間更正或刪除。
您需要登錄后才可以發(fā)表評論 登錄 | 立即注冊

廠商推薦

  • Microchip視頻專區(qū)
  • 安靜高效的電機控制——這才是正確的方向!
  • 5分鐘詳解定時器/計數(shù)器E和波形擴展!
  • 基于CEC1712實現(xiàn)的處理器SPI FLASH固件安全彈性方案培訓(xùn)教程
  • 無線充電基礎(chǔ)知識及應(yīng)用培訓(xùn)教程2
  • 貿(mào)澤電子(Mouser)專區(qū)

相關(guān)視頻

關(guān)于我們  -  服務(wù)條款  -  使用指南  -  站點地圖  -  友情鏈接  -  聯(lián)系我們
電子工程網(wǎng) © 版權(quán)所有   京ICP備16069177號 | 京公網(wǎng)安備11010502021702
快速回復(fù) 返回頂部 返回列表
主站蜘蛛池模板: 久久精品久久久久 | 日韩亚洲人成在线综合日本 | 两个人日本免费完整版在线观看1 | 四虎精品久久 | 99九九成人免费视频精品 | 在线观看免费日本 | 久久黄视频 | 特黄日韩免费一区二区三区 | 日韩1| 久久精品视频99精品视频150 | 五月天社区 | 久久免费精品高清麻豆 | 欧美成人亚洲高清在线观看 | 成人免费一级在线播放 | 手机在线播放av | 91精品福利久久久 | 极品色综合 | 麻豆精品传媒成人精品 | 69黄色| 天海翼在线观看亚洲一区 | 亚洲视频在线播放 | 欧美日韩一区二区三区久久 | 免费在线一级毛片 | 黑人毛片| 99欧美 | 国产亚洲欧美另类专区 | 国产99视频精品免视看9 | 日韩天堂 | 日本不卡视频一区二区 | 久久国产资源 | 污污的网站在线免费观看 | h漫免费 | 天堂网在线最新版www | 亚洲影视在线观看 | 毛片高清一区二区三区 | 亚洲日本欧美产综合在线 | 国产深夜福利在线观看网站 | 成年人网站免费在线观看 | 一区二区三区欧美 | 九九色网 | 色妞色综合久久夜夜 |