查看: 846|回復: 0
打印 上一主題 下一主題

[供應] 米爾更新面向工業(yè)產(chǎn)品的軟件系統-基于瑞米派(Remi Pi)

[復制鏈接]
跳轉到指定樓層
樓主
發(fā)表于 2024-3-15 18:38:36 | 只看該作者 |只看大圖 回帖獎勵 |倒序瀏覽 |閱讀模式
關(guān)鍵詞: Remi Pi , 米爾 , 瑞米派 , 樹(shù)莓派

米爾電子發(fā)布的瑞薩第一款MPU生態(tài)板卡——瑞米派(Remi Pi)自上市當天200套售罄,獲得不少新老用戶(hù)的青睞。為感謝大家的支持,米爾加推300套瑞米派活動(dòng),以補貼價(jià)回饋大家,搶完即止!

不僅如此,此次瑞米派發(fā)布myir-image-core系統,相比上次發(fā)布適用于HMI場(chǎng)景的全面型myir-image-full系統,myir-image-core系統則更輕量,非常適用于各種工業(yè)場(chǎng)景應用,如專(zhuān)為工業(yè)控制場(chǎng)景移植的RT-Linux實(shí)時(shí)補丁和Ethercat主站,專(zhuān)為輕量級工業(yè)顯示場(chǎng)景移植的LVGL,專(zhuān)為工業(yè)實(shí)時(shí)性場(chǎng)景移植的FreeRTOS實(shí)時(shí)操作系統。瑞米派支持的系統會(huì )不斷更新,下個(gè)月還會(huì )持續推出瑞米派的Ubuntu和Debian系統,敬請期待!


一、系統概述
Remi Pi的myir-image-core系統是基于 Yocto 構建的帶有LVGL界面的鏡像,包含完整的硬件驅動(dòng),常用的系統工具,調試工具等,包含RT-Linux實(shí)時(shí)補丁和Ethercat 主站,支持使用 Shell, C/C++進(jìn)行應用開(kāi)發(fā)。
類(lèi)別
名稱(chēng)
描述
源碼
Flash-Writer
Flash-Writer 1.06
TF-A
Arm Trusted Firmware 2.6
Bootloader
U-boot 2021.10
Kernel
Linux Kernel 5.10.83
Yocto
Yocto 3.1.20
文件系統
myir-image-core
yocto構建的文件系統
工具
開(kāi)發(fā)工具
sdk.tar.bz2、e2 studio
燒錄工具
Win32DiskImager teraterm
文檔
Remi Pi_Linux軟件開(kāi)發(fā)指南
包含源碼編譯,燒錄等
Remi Pi FreeRTOS應用開(kāi)發(fā)筆記
包含環(huán)境搭建,工程創(chuàng )建等
Remi Pi實(shí)時(shí)系統與Ethercat移植應用筆記
包含rtlinux、ethercat移植

二、功能介紹
1. LVGL顯示
從04_Sources目錄下獲取lvgl.tar.bz2源碼包,解壓源碼包。
  1. PC:~/renesas/04_Sources$ tar -xvf lvgl.tar.gz
復制代碼
編譯源碼包,拷貝lvgl_demo可執行文件到開(kāi)發(fā)板運行即可。
  1. PC:~/renesas/04_Sources/lvgl$ source /opt/remi-sdk/environment-setup-aarch64-poky-linux
  2. PC:~/renesas/04_Sources/lvgl$ make
復制代碼
米爾-瑞米派的LVGL顯示效果
[color=rgba(0, 0, 0, 0.9)]
2. LVGL顯示
從RT官網(wǎng)獲取L5.10.83內核版本對應的補丁,鏈接如下:
[color=rgba(0, 0, 0, 0.9)]https://cdn.kernel.org/pub/linux/kernel/projects/rt/5.10/older/
[color=rgba(0, 0, 0, 0.9)]把補丁包解壓到自己的工作目錄下。
  1. PC:~/renesas/04_Sources$ tar -xvf patches-5.10.83-rt58.tar.gz
復制代碼
到內核源碼目錄下打補丁。
  1. PC:~/renesas/04_Sources/myir-renesas-linux$ for p in `ls -1 ../patches/*.patch`;do patch -p1 < $p;done
復制代碼
修改mys_g2lx_defconfig配置文件

  1. PC:~/renesas/04_Sources/myir-renesas-linux$ vi arch/arm64/configs/mys_g2lx_defconfig
  2. CONFIG_EXPERT=y
  3. CONFIG_ARCH_SUPPORTS_RT=y
  4. CONFIG_PREEMPT_RT=y
  5. #CONFIG_PREEMPT=y
  6. #CONFIG_KVM=y
復制代碼
編譯內核源碼,更新Image文件即可。
  1. PC:~/renesas/04_Sources/myir-renesas-linux$ source /opt/remi-sdk/environment-setup-aarch64-poky-linux
  2. PC:~/renesas/04_Sources/myir-renesas-linux$ make ARCH=arm64 mys_g2lx_defconfig
  3. PC:~/renesas/04_Sources/myir-renesas-linux$ make ARCH=arm64 Image dtbs   -j16
復制代碼

3. IGH Ethercat 主站
到官網(wǎng)下載1.5版本的Ethercat源碼,鏈接如下:
[color=rgba(0, 0, 0, 0.9)]https://gitlab.com/etherlab.org/ethercat/-/tree/stable-1.5?ref_type=heads
把Ethercat源碼包解壓到自己的工作目錄下。
  1. PC:~/renesas/04_Sources$ tar -xvf ethercat-stable-1.5.tar.bz2
  2. PC:~/renesas/04_Sources$ cd ethercat-stable-1.5
復制代碼
加載環(huán)境變量。
  1. PC:~/renesas/04_Sources/ethercat-stable-1.5$ source /opt/remi-sdk/environment-setup-aarch64-poky-linux
復制代碼
生成configure文件。
  1. PC:~/renesas/04_Sources/ethercat-stable-1.5$ ./bootstrap
復制代碼
configure設置。
  1. PC:~/renesas/04_Sources/ethercat-stable-1.5$ mkdir output
  2. PC:~/renesas/04_Sources/ethercat-stable-1.5$ ./configure --prefix=/home/renesas/04_Sources/ethercat-stable-1.5/output --with-linux-dir=/home/renesas/04_Sources/myir-renesas-linux  --enable-8139too=no  --enable-generic=yes   --host=aarch64-poky-linux
復制代碼
編譯和安裝。
  1. PC:~/renesas/04_Sources/ethercat-stable-1.5$ make
  2. PC:~/renesas/04_Sources/ethercat-stable-1.5$ make modules
  3. PC:~/renesas/04_Sources/ethercat-stable-1.5$ make install
復制代碼
編譯和安裝完成后,生成的ec_generic.ko驅動(dòng)文件位于devices目錄,ec_master.ko驅動(dòng)文件位于master目錄,生成的庫相關(guān)文件位于output目錄。
  1. PC:~/renesas/04_Sources/ethercat-stable-1.5$ ls devices/en_genric.ko
  2. devices/ec_generic.ko
  3. PC:~/renesas/04_Sources/ethercat-stable-1.5$ master/ec_master.ko
  4. devices/ec_master.ko
  5. PC:~/renesas/04_Sources/ethercat-stable-1.5$ ls output/
  6. bin  etc  include  lib  sbin  share
復制代碼
將上面output目錄下的相關(guān)文件和ec_master.ko拷貝到開(kāi)發(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-rt58-yocto-standard/
  10. root@myir-remi-1g:~/output# cp sbin/ethercatctl  /sbin/
復制代碼
啟動(dòng)Ethercat。
  1. root@myir-remi-1g:~# depmod
  2. root@myir-remi-1g:~# modprobe ec_master main_devices=1E:ED:19:27:1A:B3
  3. root@myir-remi-1g:~# /etc/init.d/ethercat start
  4. Starting EtherCAT master 1.5.2  done
復制代碼
4. Freertos
首先要下載e2 studio工具并搭建好環(huán)境和到04_Sources目錄獲取GPIO.zip工程包,打開(kāi)e2 studio工具后,點(diǎn)擊File->Import->General-> Existing Projects into Workspace來(lái)導入GPIO工程,導入工程后點(diǎn)擊Project->Build Project進(jìn)行工程的編譯,詳細請參考《Remi Pi  FreeRTOS應用開(kāi)發(fā)筆記》。
編譯成功會(huì )生成一個(gè)debug目錄,生成的如下文件拷貝到sd卡上,用于在uboot進(jìn)行CM33工程調用。
  1. GPIO_non_secure_code.bin
  2. GPIO_non_secure_vector.bin
  3. GPIO_secure_code.bin
  4. GPIO_secure_vector.bin
復制代碼
把sd卡插入到開(kāi)發(fā)板的sd卡槽,啟動(dòng)板子并在uboot階段執行如下調用,查看sd卡里面的內容,如下:
  1. => switch_sdhi1 sdcard
  2. switch to sdcard
  3. => ls mmc 1:1
  4.             System Volume Information/
  5.        64   GPIO_secure_vector.bin
  6.     16926   GPIO_non_secure_code.bin
  7.      1984   GPIO_non_secure_vector.bin
  8.       480   GPIO_secure_code.bin
  9. 4 file(s), 1 dir(s)
復制代碼
加載編譯出來(lái)的固件,如下:
  1. => dcache off
  2. => mmc dev 1
  3. switch to partitions #0, OK
  4. mmc1 is current device
  5. => fatload mmc 1:1 0x0001FF80 GPIO_secure_vector.bin
  6. 64 bytes read in 24 ms (2 KiB/s)
  7. => fatload mmc 1:1 0x42EFF440 GPIO_secure_code.bin
  8. 480 bytes read in 25 ms (18.6 KiB/s)
  9. => fatload mmc 1:1 0x00010000 GPIO_non_secure_vector.bin
  10. 1984 bytes read in 26 ms (74.2 KiB/s)
  11. => fatload mmc 1:1 0x40010000 GPIO_non_secure_code.bin
  12. 16926 bytes read in 29 ms (569.3 KiB/s)
  13. => cm33 start_debug 0x1001FF80 0x00010000
復制代碼
當加載完以上命令之后可以看到藍燈在閃爍。
米爾-瑞米派的加載效果展示

三、內核清單
為了方便用戶(hù)進(jìn)行內核的移植,下面將內核驅動(dòng)各個(gè)模塊的源碼路徑整理如下:
模塊
描述
源碼路徑
MMC
EMMC驅動(dòng)程序
drivers/mmc/host/renesas_sdhi_internal_dmac.c
SD
SD卡驅動(dòng)程序
drivers/mmc/host/renesas_sdhi_internal_dmac.c
QSPI
MTD驅動(dòng)程序
drivers/memory/renesas-rpc-if.c
SPI
SPI 驅動(dòng)程序
drivers/spi/spidev.c
I2C
I2C驅動(dòng)程序
drivers/i2c/busses/i2c-riic.c
ADC驅動(dòng)程序
drivers/iio/adc/rzg2l_adc.c
E2PROM
24C256C驅動(dòng)
drivers/misc/eeprom/at24.c
USB Host
USB 驅動(dòng)程序
drivers/usb/host/ehci-platform.cdrivers/usb/host/ohci-platform.c
Ethernet
千兆網(wǎng)絡(luò )驅動(dòng)程序
drivers/net/ethernet/renesas/ravb_main.c
USB OTG
USB 驅動(dòng)程序
drivers/phy/renesas/phy-rcar-gen3-usb2.c
RS232/RS485/Uart
串口驅動(dòng)程序
drivers/tty/serial/sh-sci.c
CAN BUS
CAN總線(xiàn)驅動(dòng)程序
drivers/net/can/rcar/rcar_canfd.c
GPIO KEY
KEY驅動(dòng)程序
drivers/input/keyboard/gpio_keys.c
WIFI驅動(dòng)程序
drivers/staging/rtl88x2cs/*
RTC
RTC驅動(dòng)程序
drivers/rtc/rtc-rx8025t.c
GPIO LED
LED驅動(dòng)程序
drivers/leds/leds-gpio.c
HDMI/LVDS
MIPI轉HDMI和LVDS驅動(dòng)程序
drivers/gpu/drm/bridge/lt8912.c
LCD驅動(dòng)程序
drivers/gpu/drm/panel/panel-simple.c
TOUCH
觸摸屏驅動(dòng)程序
drivers/input/touchscreen/edt-ft5x06.c
ES8388
ES8388音頻驅動(dòng)
sound/soc/codecs/es8328-i2c.c
OV5640
OV5640攝像頭驅動(dòng)
drivers/media/i2c/ov5640.c
[color=rgba(0, 0, 0, 0.9)]
[color=rgba(0, 0, 0, 0.9)]四、獲取鏈接
關(guān)于Remi Pi的myir-image-core系統,用戶(hù)可以從下面地址獲取鏡像文件和源碼:
下載地址:http://down.myir-tech.com/RemiPi

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

關(guān)于我們  -  服務(wù)條款  -  使用指南  -  站點(diǎn)地圖  -  友情鏈接  -  聯(lián)系我們
電子工程網(wǎng) © 版權所有   京ICP備16069177號 | 京公網(wǎng)安備11010502021702
快速回復 返回頂部 返回列表
午夜高清国产拍精品福利|亚洲色精品88色婷婷七月丁香|91久久精品无码一区|99久久国语露脸精品|动漫卡通亚洲综合专区48页