<var id="fnfpo"><source id="fnfpo"></source></var>
<rp id="fnfpo"></rp>

<em id="fnfpo"><object id="fnfpo"><input id="fnfpo"></input></object></em>
<em id="fnfpo"><acronym id="fnfpo"></acronym></em>
  • <th id="fnfpo"><track id="fnfpo"></track></th>
  • <progress id="fnfpo"><track id="fnfpo"></track></progress>
  • <tbody id="fnfpo"><pre id="fnfpo"></pre></tbody>

  • x
    x
    查看: 1010|回復: 0
    打印 上一主題 下一主題

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

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

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

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


    一、系統概述
    Remi Pi的myir-image-core系統是基于 Yocto 構建的帶有LVGL界面的鏡像,包含完整的硬件驅動,常用的系統工具,調試工具等,包含RT-Linux實時補丁和Ethercat 主站,支持使用 Shell, C/C++進行應用開發。
    類別
    名稱
    描述
    源碼
    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構建的文件系統
    工具
    開發工具
    sdk.tar.bz2、e2 studio
    燒錄工具
    Win32DiskImager teraterm
    文檔
    Remi Pi_Linux軟件開發指南
    包含源碼編譯,燒錄等
    Remi Pi FreeRTOS應用開發筆記
    包含環境搭建,工程創建等
    Remi Pi實時系統與Ethercat移植應用筆記
    包含rtlinux、ethercat移植

    二、功能介紹
    1. LVGL顯示
    從04_Sources目錄下獲取lvgl.tar.bz2源碼包,解壓源碼包。
    1. PC:~/renesas/04_Sources$ tar -xvf lvgl.tar.gz
    復制代碼
    編譯源碼包,拷貝lvgl_demo可執行文件到開發板運行即可。
    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官網獲取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 主站
    到官網下載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
    復制代碼
    加載環境變量。
    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驅動文件位于devices目錄,ec_master.ko驅動文件位于master目錄,生成的庫相關文件位于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目錄下的相關文件和ec_master.ko拷貝到開發板如下目錄:
    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/
    復制代碼
    啟動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工具并搭建好環境和到04_Sources目錄獲取GPIO.zip工程包,打開e2 studio工具后,點擊File->Import->General-> Existing Projects into Workspace來導入GPIO工程,導入工程后點擊Project->Build Project進行工程的編譯,詳細請參考《Remi Pi  FreeRTOS應用開發筆記》。
    編譯成功會生成一個debug目錄,生成的如下文件拷貝到sd卡上,用于在uboot進行CM33工程調用。
    1. GPIO_non_secure_code.bin
    2. GPIO_non_secure_vector.bin
    3. GPIO_secure_code.bin
    4. GPIO_secure_vector.bin
    復制代碼
    把sd卡插入到開發板的sd卡槽,啟動板子并在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)
    復制代碼
    加載編譯出來的固件,如下:
    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
    復制代碼
    當加載完以上命令之后可以看到藍燈在閃爍。
    米爾-瑞米派的加載效果展示

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

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

    本版積分規則

    關于我們  -  服務條款  -  使用指南  -  站點地圖  -  友情鏈接  -  聯系我們
    電子工程網 © 版權所有   京ICP備16069177號 | 京公網安備11010502021702
    快速回復 返回頂部 返回列表
    精品一区二区三区自拍图片区_国产成人亚洲精品_亚洲Va欧美va国产综合888_久久亚洲国产精品五月天婷