-
Picture first
-
4G-32G Memory Capacity Replacement.
-
The WIFI module is replaceable and supports models such as 2.4G 5G WIFI6.
-
EMMC module supports up to 256G.
Best posts made by george
-
CoolPI 4B-PRO Product Introduction
-
ubuntu22.04一键安装ROS2环境
root登录shell键入如下命令:
root@ubuntu:/# wget http://fishros.com/install -O fishros && bash fishros
选择更新源速度会大幅度提高
选择humble
选择桌面版
安装成功界面
简单测试:
两个shell终端分别输入下面两条指令$ros2 run demo_nodes_py listener $ros2 run demo_nodes_cpp talker
小乌龟测试:
两个shell终端分别输入下面两条指令$ ros2 run turtlesim turtlesim_node $ ros2 run turtlesim turtle_teleop_key
-
RE: 请问coolpi 4b 电源输入功率多大合适,有电流保护吗?
@night 机器TYPEC前端电源芯片耐压可以达到28V,极限可以到34V,所以你的适配器规格没有任何问题。
开发板的电源部分一直是我们设计最优先考虑的方向,所以前端第一级电源花了很多功夫,考虑到用户各种各样适配器的规格,最终选择目前国内少数几家真正能做车规级别电源方案的厂家。尽量保证前端电源稳定可靠。
-
Coolpi 4B armbian support
Open source repositories:Github
Image download:One Driveenable 3D acceleration:
sudo add-apt-repository ppa:george-coolpi/mali-g610 sudo add-apt-repository ppa:george-coolpi/multimedia sudo apt update sudo apt dist-upgrade
installing the MPV video player:(Support rkmpp hardware decoding)
sudo apt-get install mpv
-
How to upgrade the boot loader of coolpi 4b?
If you need to boot armbian normally, you need to update the loader file to version 0104.
Follow the steps below to update the loader:
-
Download the latest loader file One Drive
![5594e1d4-3a7b-46fc-a7b5-2a9fe418dfc0-image.png]
-
Short the 2 pins shown by the arrow.
-
The USB interface and computer connection.
-
Plug in the power supply and open the upgrade software. The machine enters the maskrom upgrade mode.
-
choose to write by address
-
Click Execute to complete the loader update.
-
If the computer prompts that the USB driver cannot be found, please download and install the driver software first.One Drive
-
-
Coolpi 4b with Ubuntu22 running panfrost gpu driver performance testing
CPU
测试方法:
sudo apt install sysbench
RK3588S单核心每秒事件数2598,8核每秒事件数13846;同步对比 i7-7700 ,单核每秒事件数1438,8核每秒事件数8469。可见ARM在CPU方面并不比X86弱。GPU
测试方法:
sudo apt-get install glmark2* -y
X11 gl
X11 gles 3.1
WAYLAND gl
WAYLAND gles 3.1
-
RE: Heatsync options
@zensation The radiator can be matched with raspberry pi. A separate fan is OK. Normally, it is not necessary to add aluminum alloy fins on the CPU.
-
RE: merge back to armbian source
@igorp
Recently, I have been working hard to push CM5 NOTEBOOK to the ARMBIAN mainline. Further information will be released as soon as possible. Thank you for your support.
https://www.cool-pi.com/topic/384/cool-pi-arm-notebook-preview
-
Coolpi uses UMS to update the system
Coolpi supports UMS to update emmc firmware, as follows:
- Update the latest versions of loader and uboot images. You can also synchronize uboot code and compile it yourself.
git clone https://github.com/yanyitech/coolpi-loader cd coolpi-loader ./build-uboot.sh cp4b
- Connect a dual A port USB cable to the computer and the upper USB 3.0 interface. Plug in the power and press the power button three times, and the machine will enter UMS mode.
- Use Etcher software to update the software.
-
RE: [ ubutnu 22.04 ] AP+STA mode 似乎無法同時啟用?
内核已经更新,同步develop代码到最新,编译替换内核,KO文件解压到/lib/modules目录,重启机器会看到两个WIFI节点。
使用其中一个连接外网
另外一个可以作为热点
-
RE: Would Cool Pi provide Batocera, Retropie, Lakka, Recalbox devs cool pi 4B boards for support?
@retroman Thank you for your suggestion. We will discuss the time point of support internally.
-
RE: CoolPi 4B: Change output pins of i2c3 and i2c5
@maxpol
Refer to the following documents:
https://www.cool-pi.com/topic/70/coolpi-4b硬件扩展三-i2c?_=1695004097775 -
gstreamer video framework
The latest ubuntu22.04 firmware(20230303-ubuntu-22.04-preinstall-desktop-arm64) integrates ffmpeg and gstreamer video frames, and can call the hardware codec module of Rockchip, which can greatly improve the video codec performance of the device and reduce the CPU load.
-
With kmssink, the CPU utilization of 4K video playback is reduced to about 10%.The disadvantage is that it occupies one layer.
-
The following command can obtain layer information.
sudo cat /sys/kernel/debug/dri/0/state | grep "plane"
- Use the following command to play the video and replace xxx.mp4 with the actual path. 88 represents the layer, kmssink only supports the display of Esmart layer.
gst-play-1.0 xxx.mp4 --videosink='kmssink plane-id=88'
- You can also use other plug-ins, such as xvimagesink glimagesink waylandsink, etc.
-
-
RE: Cool Pi 4B can't boot. Need help
@retroman The armbian image of coolpi will be released soon.
-
RE: CoolPi 4B: Change output pins of i2c3 and i2c5
@maxpol I2C3 I2C5 cannot be changed to other pinsOf course, you can try opening other I2C channels.
-
RE: rk mpp平台YUV格式支持问题
@jugg
不同的格式对齐要求不同,RGA硬件本身是对图像每行的数据是按照字(world)对齐的方式进行取数的,即4个字节32个bit。例如RGBA格式本身单个像素存储大小为32(4 × 8)bit,所以没有对齐要求;RGB565格式存储大小为16(5 + 6 +5)bit,所以需要2对齐;RGB888格式存储大小为24(8 × 3)bit,所以该格式需要4对齐才能满足RGA硬件的32bit取数要求;YUV格式存储相对较为特殊,本身排列要求需要2对齐,Y通道单像素存储大小为8bit,UV通道根据420/422决定每四个像素的存储大小,所以YUV格式Y通道需要4对齐才能满足RGA的硬件取数要求,则YUV格式需要4对齐;其他的未提及的格式对齐要求原理相通。注意,该题中对齐均指width stride的对齐要求,YUV格式本身实际宽高、偏移量由于格式本身特性也是要求2对齐的。 -
RE: Cool Pi ARM Notebook Preview
@大法师 补充一张内部图片,支持全国产化定制。
统信专业版,QQ 微信 WPS 邮件 CAD等软件流畅运行,办公追剧毫无压力。
-
Introduction to COOL PI CM5 interface
Top-level interface
-
The 2X20 pin interface is compatible with CP4 and integrates multiple UART, I2C, SPI, CAN and other functions.
-
Three function keys are PWR, RST and LOADER.
-
2X2 PIN POE connector,such as CP4.
-
30pin fpc vertical connector can directly drive standard 30PIN EDP interface LCD. Resolution up to 3840 * 2160
-
The MICRO HDMI-RX interface can support up to 4KP60 video signal input.
-
TF card with self-locking.
-
Two native USB3.0 interfaces, one of which supports OTG function.
-
Two Gigabit Ethernet interfaces, one of which supports POE function.
-
Two HDMI2.1 interfaces with a maximum resolution of 8K.
-
Stereo headphone stand with MIC input function.
-
Two native USB2.0 interfaces.
-
One TYPEC power supply interface, consistent with CP4.
-
The external power interface of 2PIN can support DC power input.
-
1 standard PCIE 4X connector, currently only supports PCIE3.0 2X/1X mode.
-
SSD interface, only PCIE-M2-2242 size hard disk is supported.
-
Standard 7PIN SATA3.0 interface, 4PIN power interface.
-
M.2 WIFI module interface, supporting multiple general WIFI modules.
-
Dual MIPI LCD interfaces support simultaneous output of two MIPI interface LCDs. The resolution of a single LCD is up to 1920 * 1200. It supports the MIPI DSC function.
-
Four independent MIPI camera interfaces support four camera inputs at the same time. It can be configured as 2X4LINE or 4X2LINE mode.
Bot-level interface
-
One 30PIN EDP interface can directly drive LCD output.
-
MXM 314PIN core board connector.
Welcome to put forward good suggestions. We can consider revising them.
-
-
What is Cool Pi?
1.Introduction
Cool Pi has a modern and powerful hexa-core ARM based processor, RK3588S inside, it offers significantly improved performance versus other popular SBC boards. All models are equipped with LPDDR4X RAM and optional high performance eMMC modules, boost all applications.
2.Machine size
The size is only 56mm × 85mm.
3.Performance
4-core A76+4-core A55 gold combination, giving consideration to high performance and low power consumption.
-
CM5-EVB Commissioning Description
-
Product image
-
All interface functions have been debugged and are currently undergoing performance optimization.
-
It is expected to be sold normally in early April.
-
-
CoolPi-4B硬件资料持续更新
版本 V10 V11 WIFI模组 AP6256 AIC8800 WIFI板载天线 无 双频天线 EMMC连接器 GB042 BM20B V10硬件原理图:COOLPI-4B-Schematic-V10.pdf
V10位号图:COOLPI-4B-Part-V10.pdf
V10结构图:coolpi-4b-dxf-v10.dxf
V11 硬件原理图:COOLPI-4B-Schematic-V11.pdf
V11位号图:COOLPI-4B-Part-V11.pdf
V11结构图:COOLPI-4B-DXF-V11.dxf -
coolpi is a cool computer
The CM5-evb board has two native eDP interfaces, designed according to the standard 30PIN eDP interface, and can directly drive an eDP LCD without any conversion. Interface integrated backlight control circuit. LCD backlight brightness adjustment can be achieved.
-
RE: How to drive non-standard resolution HDMI displays
@george Add 5.5inch HDMI AMOLED edid
https://www.waveshare.net/shop/5.5inch-HDMI-AMOLED.htm
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 4fdfb41b91e1..b1171d8cbf2d 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -575,6 +575,14 @@ static const struct drm_display_mode drm_dmt_modes[] = { { DRM_MODE("4096x2160", DRM_MODE_TYPE_DRIVER, 556188, 4096, 4104, 4136, 4176, 0, 2160, 2208, 2216, 2222, 0, DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC) }, + /* 0x59 - 3840x1100@59.998Hz RB */ + { DRM_MODE("3840x1100", DRM_MODE_TYPE_DRIVER, 282890, 3840, 3888, + 3920, 4100, 0, 1100, 1103, 1108, 1150, 0, + DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC) }, + /* 0x60 - 1080x1920@60Hz RB */ + { DRM_MODE("1080x1920", DRM_MODE_TYPE_DRIVER, 137520, 1080, 1112, + 1144, 1200, 0, 1920, 1928, 1932, 1936, 0, + DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC) }, };
-
Mini-DP转HDMI线材的说明
CoolPi的MINI-DP接口只能支持标准的DP协议,分辨率可以达到4KP60,不能支持INTEL DP++协议,所以市面上普通的minidp转HDMI线材大部分是不能使用的。DP转HDMI线材需要使用主动式的线材。下图是几个验证过的线材的链接地址:
1.https://item.jd.com/100021518367.html
2.https://item.jd.com/100018963014.html
-
Ubuntu23.04 for CoolPi
Default Account
username:coolpi password:123
Update GPU driver
sudo add-apt-repository ppa:george-coolpi/mali-g610 sudo apt-get dist-upgrade
Update multimedia decoding library
sudo add-apt-repository ppa:george-coolpi/multimedia sudo apt-get dist-upgrade
-
瑞芯微新一代旗舰Soc芯片RK3588详细介绍
2021年12月16日,在瑞芯微举办的第六届开发者大会上,瑞芯微发布了新一代高性能旗舰Soc芯片RK3588,对于要实现国产化芯片替代的视讯及监控厂商来说,这是一个期待已久的重磅消息。 华为海思因为被无端制裁,芯片无人代工无法生产,其芯片存货已消耗殆尽,这给瑞星微这样的中小型芯片厂商带来难得的发展契机,也使得芯片的国产化替代进程进入了加速实施阶段。在高性能的海思芯片无法供货的情况下,瑞芯微这些二流厂商也不失为一种退而求其次的选择! 此次瑞芯微重磅发布的高性能RK3688,较以往的产品,性能上有了大幅提升,功能上也得到了进一步的扩展和增强,是一款非常值得期待的旗舰级芯片!
该芯片采用ARM架构,采用先进的8nm制程工艺,集成了四核Cortex-A76和四核Cortex-A55(共8核),以及单独的NEON协处理器,支持8K视频编解码,提供了许多功能强大的嵌入式硬件引擎,为高端应用提供了极致的性能,同时提供了丰富的功能接口,可满足不同行业的产品定制需求。
1、RK3588的八大应用方向以及基于RK3588的VR/AR解决方案
瑞芯微同时发布了新一代旗舰芯片RK3588 VR/AR显示模组及整机解决方案。该方案具有高画质、高刷新率、快速响应、低延迟等特点,可满足影音、游戏、房产、旅游等多领域的应用需求。 瑞芯微RK3588 VR方案依托强大的芯片处理技术,生成交互式的三维动态视景和实际行为的系统仿真,实现沉浸的知觉体验,自如的行为体验,8K全景视频能够让用户以主角的视角全身心融入到电影情节中,让人感受到一种从未体验过的身临其境的感受。另外VR 影院模式观影可以让足不出户体验真正的IMAX 电影。 此外,RK3588 4K90Hz VR低延迟物理双屏方案,采用BOE 2.1英寸Fast-LCD双屏,单目分辨率2160*2160,双目4320*2160分辨率,像素密度达到1454,双屏近眼显示,支持更小的色散和畸变。 瑞芯微RK3588 AR整机解决方案,采用6DoF设计,支持空间定位,除了3个转动角度来检测头部的转动带来的视野角度变化外,再加之上下、前后、左右等3个位置相关的自由度,能够检测到由于身体移动带来的上下前后左右位移的变化,从而在观影、游戏中体验到跨越障碍、躲避子弹和怪兽、以及跳跃、登山、滑雪等超级真实的感受。 瑞芯微RK3588 VR/AR方案能够获得如此绝佳的体验,主要在于RK3588强大的处理能力。它拥有8K60P视频解码能力,采用四核A76+四核A55 CPU,Mali-G610 GPU,6T算力NPU,,能快速根据陀螺仪数据计算姿态定位,实现速度同步,超低延迟,无眩晕感。屏幕方面,瑞芯微提供4K120帧、90帧等方案,用户可以根据自己的需求选择适合自己的方案。 瑞芯微RK3588 VR/AR方案可应用于影视、娱乐、主题公园以及博物馆等艺术展馆,满足消费者对沉浸互动式体验的需求。
2、芯片的主要部件构成
RK3588集成了嵌入式ARM Mali G610 3D GPU,支持OpenGLES 1.1、2.0、3.2,OpenCL 2.2和Vulkan1.2。带有MMU的特殊2D硬件引擎将最大限度地提高显示性能,并提供非常平稳的操作。 RK3588引入了新一代完全基于硬件的最大4800万像素ISP(图像信号处理器)。它实现了许多算法加速器,如HDR、3A、LSC、3DNR、2DNR、锐化、dehaze、鱼眼校正、伽马校正等。 内置NPU支持INT4/INT8/INT16/FP16混合运算,运算能力高达6TOPS。此外,凭借其强大的兼容性,基于TensorFlow/MXNet/PyTorch/Caffe等一系列框架的网络模型可以轻松转换。
3、芯片的详细参数及具体性能介绍
3.1 超强算力,性能与功耗的完美平衡
CPU方面,RK3588采用4核Cortex-A76和4核Cortex-A55的典型大小核架构,大核主频2.4GHz,小核主频1.8GHz,充分考虑了性能和功耗的平衡。1MB L2 Cache和3MB L3 Cache,提供更强的CPU运算能力。 GPU方面,RK3588集成ARM Mali-G610,至少支持2路4K UI,能流畅运行复杂的图形处理及游戏。 NPU方面,RK3588集成了瑞芯微第四代具有完全自主知识产权的人工智能运算引擎,在MAC运算单元的利用率及带宽的消耗上提升了30%。6TOPs的NPU算力,赋能各类AI场景,给复杂场景的本地离线AI计算、复杂视频流分析等应用提供了各种可能
3.2 超强多媒体影像,带来极致体验
RK3588多媒体影像核心IP的多核架构,使之拥有强大的处理能力,给各位开发者、用户带来极致的视觉体验。多核架构,不仅支持当下的应用需求,而且很容易升级支持未来更高性能的扩展。
-
CoolPi 4B硬件扩展四:GPIO
40PIN连接器除了debug串口和I2C6,其它都可以用作通用IO。所有的GPIO都支持中断、上下拉和驱动强度配置。
GPIO列表
PIN序号 GPIO编号 节点编号 默认状态 IO电平 3 GPIO0_D5 29 UP TTL 3.3V 5 GPIO0_D4 28 UP TTL 3.3V 7 GPIO1_B7 47 UP TTL 3.3V 11 GPIO4_A0 128 DOWN TTL 3.3V 13 GPIO4_A1 129 DOWN TTL 3.3V 15 GPIO4_A2 130 DOWN TTL 3.3V 19 GPIO1_B2 42 DOWN TTL 3.3V 21 GPIO1_B1 41 DOWN TTL 3.3V 23 GPIO1_B3 43 DOWN TTL 3.3V 29 GPIO4_A3 131 DOWN TTL 3.3V 31 GPIO4_A4 132 DOWN TTL 3.3V 33 GPIO4_A5 133 DOWN TTL 3.3V 35 GPIO4_A6 134 DOWN TTL 3.3V 37 GPIO4_A7 135 DOWN TTL 3.3V 12 GPIO1_A7 39 UP TTL 3.3V 16 GPIO1_A1 33 DOWN TTL 3.3V 18 GPIO1_A0 30 DOWN TTL 3.3V 22 GPIO1_B0 40 UP TTL 3.3V 24 GPIO1_B4 44 UP TTL 3.3V 26 GPIO1_B5 45 UP TTL 3.3V 32 GPIO3_B1 105 UP TTL 3.3V 36 GPIO4_B2 106 UP TTL 3.3V 38 GPIO4_B3 107 UP TTL 3.3V 40 GPIO3_C3 115 UP TTL 3.3V 测试命令
向内核申请GPIO,写入对应的GPIO值直接申请,比如申请控制GPIO4A0,则使用命令:
echo 128 > /sys/class/gpio/export
写入后,可以看到已经生成节点:
/sys/class/gpio/gpio128/
相应gpio节点下面的接口,比如GPIO4A0:
root@ubuntu:~# ll /sys/class/gpio/gpio128/ total 0 drwxr-xr-x 3 root root 0 Nov 21 15:23 ./ drwxr-xr-x 3 root root 0 Nov 21 15:23 ../ -rw-r--r-- 1 root root 4096 Nov 21 15:24 active_low lrwxrwxrwx 1 root root 0 Nov 21 15:24 device -> ../../../gpiochip4/ -rw-r--r-- 1 root root 4096 Nov 21 15:24 direction -rw-r--r-- 1 root root 4096 Nov 21 15:24 edge drwxr-xr-x 2 root root 0 Nov 21 15:24 power/ lrwxrwxrwx 1 root root 0 Nov 21 15:24 subsystem -> ../../../../../../class/gpio/ -rw-r--r-- 1 root root 4096 Nov 21 15:23 uevent -rw-r--r-- 1 root root 4096 Nov 21 15:24 value
设置GPIO4A0为输出口
root@ubuntu:/sys/class/gpio/gpio128# echo out >direction root@ubuntu:/sys/class/gpio/gpio128# cat direction out
设置输出高电平
root@ubuntu:/sys/class/gpio/gpio128# cat value 0 root@ubuntu:/sys/class/gpio/gpio128# echo 1 >value root@ubuntu:/sys/class/gpio/gpio128# cat value 1 实际万用表测试PIN 11输出的电压为3.3V
备注:
-
direction: 参数为“out”(输出)和“in”(输入),可读可写;
-
value: 参数为“0”(低电平)和“1”(高电平),可读可写;
-
edge:可以监听对应引脚的事件,需要把direction设置为输入
参数为”none”(无中断触发), “rising”(上升沿触发), “falling”(下降沿触发), “both”(上升、下降都沿触发),用户层可以使用poll,设置events为POLLPRI | POLLERR等待事件触发,当对应的模式触发后,会返回事件的消息,此时需要读取value值,以表示改触发已经处理,否则会一直poll到原事件; -
active_low:此值可以反转value中的值;
-
-
CoolPi 4B硬件扩展二:Serial port
串口位置
下表罗列了40PIN连接器可以用做UART功能的引脚,目前除了debug串口以外还可以扩展5路独立串口。最大波特率1.5M。IO电平是TTL 3.3V。注意:串口号和实际系统的节点不是一一对应,实际操作需要按照表格对应的设备节点。
序号 端口定义 描述 IO电平 设备节点 29 UART0_TX_M2 UART0 发送 TTL 3.3V /dev/ttyS6 31 UART0_RX_M2 UART0 接收 TTL 3.3V /dev/ttyS6 33 UART3_TX_M2 UART3 发送 TTL 3.3V /dev/ttyS3 35 UART3_RX_M2 UART3 接收 TTL 3.3V /dev/ttyS3 19 UART4_RX_M2 UART4 接收 TTL 3.3V /dev/ttyS4 23 UART4_TX_M2 UART4 发送 TTL 3.3V /dev/ttyS4 16 UART6_TX_M1 UART6 发送 TTL 3.3V /dev/ttyS2 18 UART6_RX_M1 UART6 接收 TTL 3.3V /dev/ttyS2 24 UART7_RX_M2 UART7 接收 TTL 3.3V /dev/ttyS7 26 UART7_TX_M2 UART7 发送 TTL 3.3V /dev/ttyS7 DTS配置
用户需要使用哪个串口在DTS打开对应节点即可,status = "okay"代表开启,status = "disabled"代表关闭。注意不使用UART功能确保对应节点的status是disabled状态,否则可能会导致其它功能异常。
&uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0m2_xfer>; status = "okay"; }; &uart3 { pinctrl-names = "default"; pinctrl-0 = <&uart3m2_xfer>; status = "okay"; }; &uart4 { pinctrl-names = "default"; pinctrl-0 = <&uart4m2_xfer>; status = "okay"; }; &uart6 { pinctrl-names = "default"; pinctrl-0 = <&uart6m1_xfer>; status = "okay"; }; &uart7 { pinctrl-names = "default"; pinctrl-0 = <&uart7m2_xfer>; status = "okay"; };
shell测试命令
功能测试采用回环测试(对应串口的TX RX信号短接)。
stty -F /dev/ttyS6 raw speed 115200 //配置PIN29 PIN31对应的串口波特率为115200 echo "hello world" > /dev/ttyS6 //发送字符串 cat /dev/ttyS6 //接收字符串
RS232电路
隔离485电路