外贸网站排行榜前十名,哪个建站软件比较好带论坛,wordpress获取当前页面链接地址,wordpress 3.9.2漏洞米尔电子发布的瑞萨第一款MPU生态板卡——瑞米派#xff08;Remi Pi#xff09;自上市当天200套售罄#xff0c;获得不少新老用户的青睐。为感谢大家的支持#xff0c;米尔加推300套瑞米派活动#xff0c;以补贴价回馈大家#xff0c;抢完即止#xff01;
不仅如此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源码包解压源码包。
PC:~/renesas/04_Sources$ tar -xvf lvgl.tar.gz 编译源码包拷贝lvgl_demo可执行文件到开发板运行即可。
PC:~/renesas/04_Sources/lvgl$ source /opt/remi-sdk/environment-setup-aarch64-poky-linux
PC:~/renesas/04_Sources/lvgl$ make 米尔-瑞米派的LVGL显示效果 2. LVGL显示
从RT官网获取L5.10.83内核版本对应的补丁链接如下
Index of /pub/linux/kernel/projects/rt/5.10/older/
把补丁包解压到自己的工作目录下。
PC:~/renesas/04_Sources$ tar -xvf patches-5.10.83-rt58.tar.gz 到内核源码目录下打补丁。
PC:~/renesas/04_Sources/myir-renesas-linux$ for p in ls -1 ../patches/*.patch;do patch -p1 $p;done 修改mys_g2lx_defconfig配置文件
PC:~/renesas/04_Sources/myir-renesas-linux$ vi arch/arm64/configs/mys_g2lx_defconfig
CONFIG_EXPERTy
CONFIG_ARCH_SUPPORTS_RTy
CONFIG_PREEMPT_RTy
#CONFIG_PREEMPTy
#CONFIG_KVMy 编译内核源码,更新Image文件即可。
PC:~/renesas/04_Sources/myir-renesas-linux$ source /opt/remi-sdk/environment-setup-aarch64-poky-linux
PC:~/renesas/04_Sources/myir-renesas-linux$ make ARCHarm64 mys_g2lx_defconfig
PC:~/renesas/04_Sources/myir-renesas-linux$ make ARCHarm64 Image dtbs -j16 3. IGH Ethercat 主站
到官网下载1.5版本的Ethercat源码链接如下
https://gitlab.com/etherlab.org/ethercat/-/tree/stable-1.5?ref_typeheads
把Ethercat源码包解压到自己的工作目录下。
PC:~/renesas/04_Sources$ tar -xvf ethercat-stable-1.5.tar.bz2
PC:~/renesas/04_Sources$ cd ethercat-stable-1.5 加载环境变量。
PC:~/renesas/04_Sources/ethercat-stable-1.5$ source /opt/remi-sdk/environment-setup-aarch64-poky-linux 生成configure文件。
PC:~/renesas/04_Sources/ethercat-stable-1.5$ ./bootstrap configure设置。
PC:~/renesas/04_Sources/ethercat-stable-1.5$ mkdir output
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-8139toono --enable-genericyes --hostaarch64-poky-linux 编译和安装。
PC:~/renesas/04_Sources/ethercat-stable-1.5$ make
PC:~/renesas/04_Sources/ethercat-stable-1.5$ make modules
PC:~/renesas/04_Sources/ethercat-stable-1.5$ make install 编译和安装完成后生成的ec_generic.ko驱动文件位于devices目录ec_master.ko驱动文件位于master目录生成的库相关文件位于output目录。
PC:~/renesas/04_Sources/ethercat-stable-1.5$ ls devices/en_genric.ko
devices/ec_generic.ko
PC:~/renesas/04_Sources/ethercat-stable-1.5$ master/ec_master.ko
devices/ec_master.ko
PC:~/renesas/04_Sources/ethercat-stable-1.5$ ls output/
bin etc include lib sbin share 将上面output目录下的相关文件和ec_master.ko拷贝到开发板如下目录
rootmyir-remi-1g:~/output# ls
bin etc include lib modules sbin share
rootmyir-remi-1g:~/output# cp bin/ethercat /bin/
rootmyir-remi-1g:~/output# cp etc/ethercat.conf /etc/
rootmyir-remi-1g:~/output# cp etc/init.d/* /etc/init.d
rootmyir-remi-1g:~/output# cp -r etc/sysconfig/ /etc/
rootmyir-remi-1g:~/output# cp lib/libethercat.* /lib64/
rootmyir-remi-1g:~/output# cp -r lib/pkgconfig /lib64/
rootmyir-remi-1g:~/output# cp modules/ec_master.ko /lib/modules/5.10.83-cip1-rt58-yocto-standard/
rootmyir-remi-1g:~/output# cp sbin/ethercatctl /sbin/ 启动Ethercat。
rootmyir-remi-1g:~# depmod
rootmyir-remi-1g:~# modprobe ec_master main_devices1E:ED:19:27:1A:B3
rootmyir-remi-1g:~# /etc/init.d/ethercat start
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工程调用。
GPIO_non_secure_code.bin
GPIO_non_secure_vector.bin
GPIO_secure_code.bin
GPIO_secure_vector.bin 把sd卡插入到开发板的sd卡槽启动板子并在uboot阶段执行如下调用查看sd卡里面的内容如下 switch_sdhi1 sdcard
switch to sdcardls mmc 1:1System Volume Information/64 GPIO_secure_vector.bin16926 GPIO_non_secure_code.bin1984 GPIO_non_secure_vector.bin480 GPIO_secure_code.bin
4 file(s), 1 dir(s) 加载编译出来的固件如下 dcache offmmc dev 1
switch to partitions #0, OK
mmc1 is current devicefatload mmc 1:1 0x0001FF80 GPIO_secure_vector.bin
64 bytes read in 24 ms (2 KiB/s)fatload mmc 1:1 0x42EFF440 GPIO_secure_code.bin
480 bytes read in 25 ms (18.6 KiB/s)fatload mmc 1:1 0x00010000 GPIO_non_secure_vector.bin
1984 bytes read in 26 ms (74.2 KiB/s)fatload mmc 1:1 0x40010000 GPIO_non_secure_code.bin
16926 bytes read in 29 ms (569.3 KiB/s)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 ADC驱动程序 drivers/iio/adc/rzg2l_adc.c E2PROM 24C256C驱动 drivers/misc/eeprom/at24.c USB Host USB 驱动程序 drivers/usb/host/ehci-platform.c drivers/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 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 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 四、获取链接
关于Remi Pi的myir-image-core系统用户可以从下面地址获取镜像文件和源码
下载地址MYIR