@bbsvs2000 晚点我更新一个版本。或者你从github上取内核,重新编译替换试试
Posts made by 大法师
-
RE: 20221213-ubuntu-20.04-preinstalled-desktop-arm64看不到周边wifi列表、鼠标箭头看不到等现象
-
RE: 20221213-ubuntu-20.04-preinstalled-desktop-arm64看不到周边wifi列表、鼠标箭头看不到等现象
@bbsvs2000 烧录校验一般问题不大。不排除读卡器和tf卡质量因素导致的校验
-
RE: 20221213-ubuntu-20.04-preinstalled-desktop-arm64看不到周边wifi列表、鼠标箭头看不到等现象
@bbsvs2000 看起来驱动都是正常加载的。只是wifi图标不见了?有没有安装其他组件导致的呢?
-
RE: 20221213-ubuntu-20.04-preinstalled-desktop-arm64看不到周边wifi列表、鼠标箭头看不到等现象
@bbsvs2000
lsmod查看驱动加载状态
ifconfig -a 有无wlan0接口
dmesg log导一份上传 -
coolpi 4b ubuntu20 安装kvm虚拟机
系统补充安装libvirt相关组件
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virtinst virt-manager sudo reboot
-
RE: Android on Cool Pi 4B
@retroman
also use onedrive link(https://1drv.ms/u/s!AhSBNZjrDPlSanDDQF7WowYhiz8?e=lRpMrk). And then the top u3 port is used for adb debug. -
coolpi 4b with Semtech Digital Baseband Chip for LoRaWAN gateway
SX1302是新一代用于网关的基带LoRa芯片。它的优点是降低电流消耗,简化了网关的热设计,并降低了材料清单成本,但它能够处理比之前的设备更高的流量。
/ _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C)2020 Semtech SX1302 LoRa Gateway project
-
RE: Android on Cool Pi 4B
@retroman
Now update firmware file for wifi support.coolpi 4b android12 链接:https://pan.baidu.com/s/1TWPpdhPPYeTF8edlKFgQUQ?pwd=ri9j 提取码:ri9j (使用rkdevtool工具烧录emmc镜像)
-
RE: Coolpi 4b Ubuntu20.04 原生系统
@night 加sudo运行试下
coolpi@coolpi:~/rknpu2/examples/rknn_api_demo/install/rknn_api_demo_Linux$ export LD_LIBRARY_PATH=./lib coolpi@coolpi:~/rknpu2/examples/rknn_api_demo/install/rknn_api_demo_Linux$ sudo ./rknn_create_mem_with_rga_demo model/RK3588/mobilenet_v1.rknn model/dog_224x224.jpg rknn_api/rknnrt version: 1.4.0 (a10f100eb@2022-09-09T09:07:14), driver version: 0.8.2 model input num: 1, output num: 1 input tensors: index=0, name=input, n_dims=4, dims=[1, 224, 224, 3], n_elems=150528, size=150528, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=0, scale=0.007812 output tensors: index=0, name=MobilenetV1/Predictions/Reshape_1, n_dims=2, dims=[1, 1001, 0, 0], n_elems=1001, size=1001, fmt=UNDEFINED, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003906 custom string: rga_api version 1.8.0_[0] Begin perf ... 0: Elapse Time = 2.04ms, FPS = 489.72 ---- Top5 ---- 0.984375 - 156 0.007812 - 155 0.003906 - 205 0.000000 - 0 0.000000 - 1 coolpi@coolpi:~/rknpu2/examples/rknn_api_demo/install/rknn_api_demo_Linux$ sudo ./rknn_create_mem_demo model/RK3588/mobilenet_v1.rknn model/dog_224x224.jpg rknn_api/rknnrt version: 1.4.0 (a10f100eb@2022-09-09T09:07:14), driver version: 0.8.2 model input num: 1, output num: 1 input tensors: index=0, name=input, n_dims=4, dims=[1, 224, 224, 3], n_elems=150528, size=150528, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=0, scale=0.007812 output tensors: index=0, name=MobilenetV1/Predictions/Reshape_1, n_dims=2, dims=[1, 1001, 0, 0], n_elems=1001, size=1001, fmt=UNDEFINED, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003906 custom string: Begin perf ... 0: Elapse Time = 2.06ms, FPS = 484.50 ---- Top5 ---- 0.984375 - 156 0.007812 - 155 0.003906 - 205 0.000000 - 0 0.000000 - 1
-
RE: Android on Cool Pi 4B
@retroman use adb command and change cmdline.txt (delete console=ttyS0) which in boot partition.
Or wait for next version image. -
RE: Would Cool Pi provide Batocera, Retropie, Lakka, Recalbox devs cool pi 4B boards for support?
@retroman
hi, thanks for your advice. This work will be long and continue. We need more community friends to participate. -
RE: Cool Pi 4B can't boot. Need help
RKDevTool_Release_v2.92_loader0104.zip
You can try refuse loader program and check if display coolpi logo.
-
RE: Cool Pi 4B can't boot. Need help
@retroman please use coolpi firmware. Don't fuse other image that will damaged hardware.
-
RE: Pi板DSI配件测试
@zensation check your firmware version, please use latest ubuntu22.04 for testing.
-
coolpi 4b rk3588s running openEuler 22.09
openEuler是一个开源、免费的 Linux 发行版平台,将通过开放的社区形式与全球的开发者共同构建一个开放、多元和架构包容的软件生态体系。
欧拉官方网站 https://www.openeuler.org/
在coolpi 4b 安装运行欧拉操作系统,ssh远程登陆
Welcome to 5.10.66 System information as of time: 2022年 12月 20日 星期二 17:33:12 CST System load: 0.16 Processes: 192 Memory used: 4.1% Swap used: 0.0% Usage On: 1% IP address: 192.168.1.144 Users online: 2 [root@openEuler ~]# df -h 文件系统 容量 已用 可用 已用% 挂载点 udev 1.9G 0 1.9G 0% /dev tmpfs 372M 12M 360M 4% /run /dev/sda2 220G 2.0G 209G 1% / tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup tmpfs 1.9G 0 1.9G 0% /tmp [root@openEuler ~]# uname -a Linux openEuler 5.10.66 #7 SMP Thu Dec 15 16:24:19 CST 2022 aarch64 aarch64 aarch64 GNU/Linux [root@openEuler ~]#
安装ukui桌面
-
coolpi 4b led red & green control example
板载两颗led灯,均可以软件操作亮灭以及闪烁,参考如下:
echo 0 > /sys/class/leds/led1-r/brightness echo 255 > /sys/class/leds/led1-r/brightness echo none > /sys/class/leds/led1-r/trigger or echo timer > /sys/class/leds/led1-r/trigger
-
coolpi 4b python3 gpio operation compatable with raspberry pi
download and install with root user.
sudo pip3 install CPi.GPIO-1.0.0-cp38-cp38-linux_aarch64.whl
for ubuntu 20.04
CPi.GPIO-1.0.0-cp38-cp38-linux_aarch64.whlfor ubuntu 22.04
CPi.GPIO-1.0.0-cp310-cp310-linux_aarch64.whlother
CPi.GPIO-1.0.0-cp39-cp39-linux_aarch64.whldefault gpio cfg with system image:
gpio_coolpi
running test:
sudo python3 test.py
#!/usr/bin/env python3 import CPi.GPIO as GPIO import time PIN = 40 GPIO.setmode(GPIO.BOARD) GPIO.setup(PIN, GPIO.OUT) while True: GPIO.output(PIN, 0) time.sleep(1) GPIO.output(PIN, 1) time.sleep(1)
其中GPIO.setmode(GPIO.BOARD)表示使用coolpi 4b板子自然编号Pin number。如果要使用Rockchip gpio编号,需要引用GPIO.setmode(GPIO.RK)。
if you want to remove this module, exec command:
sudo pip3 uninstall CPi.GPIO
-
RE: Can the Raspberry Display using MIPI DSI work with COOL PI?
@farukbak take a try with the latest kernel image from source code. and log out the message "dmesg | grep ft5406"
-
RE: 十万火鸡。u盘需要root权限。如题想拷贝代码。结果发现sd卡加载不了
@tscmga sudo chown coolpi:coolpi /media/coolpi
-
Coolpi 4b linux kernel开发在线更新说明
无需使用烧录工具,简单的拷贝指令即可进行内核驱动升级。
远程ssh登录或串口登录(图形桌面登录亦可)
coolpi@coolpi.local's password: Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 5.10.110 aarch64) * Support: https://www.cool-pi.com System information as of Sat Sep 10 02:48:03 CST 2022 System load: 1.029296875 Processes: 295 Usage of /: 56.5% of 14.01GB Users logged in: 0 Memory usage: 17% IPv4 address for docker0: 172.17.0.1 Swap usage: 0% IPv4 address for eth0: 192.168.1.250 Temperature: 39.8 C IPv4 address for virbr0: 192.168.122.1 Last login: Sat Sep 10 02:48:05 2022 coolpi@coolpi:~$
按实际需要更新:
1.更新内核sudo cp vmlinuz Image /boot/firmware/
文件来源:内核源码out目录文件vmlinuz Image
2.更新驱动包
sudo rm -rf /lib/modules/5.10.110/ sudo tar -xf modules.tar.gz -C /lib
文件来源:内核源码out目录文件modules.tar.gz
3.更新设备树
sudo cp rk3588s-cp4.dtb /boot/firmware/
文件来源:内核源码out目录文件rk3588s-cp4.dtb
操作完成后,请重启系统。
-
Coolpi 4b gpio default setting introduce
https://www.cool-pi.com/topic/136/coolpi-4b-gpio-with-python3
GPIO分布如下:
默认信号功能 引脚编号 引脚编号 默认信号功能 3.3V 1 2 5V /dev/i2c1 sda 3 4 5V /dev/i2c1 scl 5 6 GND gpio 47 7 8 Console txd 3.3V TTL GND 9 10 Console rxd 3.3V TTL gpio 128 11 12 gpio 39 gpio 129 13 14 GND gpio 130 15 16 /dev/ttyS2 uart txd 3.3V TTL 3.3V 17 18 /dev/ttyS2 uart rxd 3.3V TTL spi mosi 19 20 GND spi miso 21 22 gpio 40 spi clk 23 24 spi cs 0 GND 25 26 spi cs 1 /dev/i2c6 sda 27 28 /dev/i2c6 scl gpio 131 29 30 GND gpio 132 31 32 gpio 105 gpio 133 33 34 GND gpio 134 35 36 gpio 138 gpio 135 37 38 gpio 139 GND 39 40 gpio 115 系统中若无该命令,请将附件文件拷贝到/usr/sbin/,再执行chmod a+x /usr/sbin/gpio_coolpi