We have verified several 4G modules (including EC20/EC25, Simcom 7600CE, etc.)
Default support usbnet driver mode.
We have verified several 4G modules (including EC20/EC25, Simcom 7600CE, etc.)
Default support usbnet driver mode.
如有遇到启动盘不能加载的情况,请检查启动盘分区表是否同时存在GPT和MBR。
不能启动的log信息输出参考
CPBOOT# run bootcmd_usb0
starting USB...
Bus usb@fc880000: USB EHCI 1.00
scanning bus usb@fc880000 for devices... Repair the Primary gpt table OK!
2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
Device 0: Vendor: ATA Rev: 66B5 Prod: KINGSTON SA400S3
Type: Hard Disk
Capacity: 228936.5 MB = 223.5 GB (468862128 x 512)
... is now current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
CPBOOT# part list usb 0
Partition Map for USB device 0 -- Partition Type: EFI
Part Start LBA End LBA Name
Attributes
Type GUID
Partition GUID
1 0x00008000 0x00107fff "bootfs"
attrs: 0x0000000000000000
type: bc13c2ff-59e6-4262-a352-b275fd6f7172
guid: fbcf2ff8-f848-da46-b785-cae999542316
2 0x00108000 0x1baa8000 ""
attrs: 0x0000000000000000
type: 0fc63daf-8483-4772-8e79-3d69d8477de4
type: linux
guid: 0aa076d4-71b8-be44-af21-bec2cea010bc
CPBOOT#
对应错误的分区表信息
$ sudo gdisk /dev/sdb
GPT fdisk (gdisk) version 1.0.3
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: present
Found valid MBR and GPT. Which do you want to use?
1 - MBR
2 - GPT
3 - Create blank GPT
Your answer:
清除GPT、MBR之后,重新烧录一次镜像即可恢复。
$ sudo fdisk /dev/sdb
欢迎使用 fdisk (util-linux 2.31.1)。
更改将停留在内存中,直到您决定将更改写入磁盘。
使用写入命令前请三思。
命令(输入 m 获取帮助): m
帮助:
常规
d 删除分区
F 列出未分区的空闲区
l 列出已知分区类型
n 添加新分区
p 打印分区表
t 更改分区类型
v 检查分区表
i 打印某个分区的相关信息
杂项
m 打印此菜单
x 更多功能(仅限专业人员)
脚本
I 从 sfdisk 脚本文件加载磁盘布局
O 将磁盘布局转储为 sfdisk 脚本文件
保存并退出
w 将分区表写入磁盘并退出
q 退出而不保存更改
新建空磁盘标签
g 新建一份 GPT 分区表
G 新建一份空 GPT (IRIX) 分区表
o 新建一份的空 DOS 分区表
s 新建一份空 Sun 分区表
命令(输入 m 获取帮助): o
创建了一个磁盘标识符为 0x19aa2586 的新 DOS 磁盘标签。
The old gpt signature will be removed by a write command.
命令(输入 m 获取帮助): p
Disk /dev/sdb:58.2 GiB,62537072640 字节,122142720 个扇区
单元:扇区 / 1 * 512 = 512 字节
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘标签类型:dos
磁盘标识符:0x19aa2586
命令(输入 m 获取帮助): w
分区表已调整。
将调用 ioctl() 来重新读分区表。
正在同步磁盘。
在linux系统中使用gdisk查看分析,如下是正常启动分区信息
$ sudo gdisk /dev/sdb
GPT fdisk (gdisk) version 1.0.3
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************
Command (? for help): q
正常从USB移动硬盘启动信息
starting USB...
Bus usb@fc880000: USB EHCI 1.00
scanning bus usb@fc880000 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
Device 0: Vendor: ATA Rev: 66B5 Prod: KINGSTON SA400S3
Type: Hard Disk
Capacity: 228936.5 MB = 223.5 GB (468862128 x 512)
... is now current device
Scanning usb 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
242 bytes read in 28 ms (7.8 KiB/s)
1: ubuntu coolpi
Retrieving file: /initrd.img
reading /initrd.img
8775086 bytes read in 600 ms (13.9 MiB/s)
Retrieving file: /Image
...
继续编译,遇到问题
[ 98%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/autocalib.cpp.o
In file included from /tmp/pip-install-d2d32b_5/opencv-contrib-python_28af57cc6bde4c2cb142a1ef1a9dbf03/opencv/modules/stitching/include/opencv2/stitching.hpp:49,
from /tmp/pip-install-d2d32b_5/opencv-contrib-python_28af57cc6bde4c2cb142a1ef1a9dbf03/opencv/modules/stitching/src/precomp.hpp:59,
from /tmp/pip-install-d2d32b_5/opencv-contrib-python_28af57cc6bde4c2cb142a1ef1a9dbf03/opencv/modules/stitching/src/autocalib.cpp:43:
/tmp/pip-install-d2d32b_5/opencv-contrib-python_28af57cc6bde4c2cb142a1ef1a9dbf03/opencv/modules/stitching/include/opencv2/stitching/detail/matchers.hpp:52:12: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
52 | # include "opencv2/xfeatures2d/cuda.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
step1:
git clone https://gitee.com/yanyitech/openwrt.git
cd openwrt
### Quickstart
1. Run `./scripts/feeds update -a` to obtain all the latest package definitions
defined in feeds.conf / feeds.conf.default
2. Run `./scripts/feeds install -a` to install symlinks for all obtained
packages into package/feeds/
3. Run `make menuconfig` to select your preferred configuration for the
toolchain, target system & firmware packages.
4. Run `make` to build your firmware. This will download all sources, build the
cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen
applications for your target system.
在安装过程中,会遇到python opencv错误
sudo pip3 install -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple opencv-contrib-python==3.4.11.45
[ 83%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o
/tmp/pip-install-r3olluyq/opencv-contrib-python_519e0e398ed74b4b813452e2fef1a717/opencv_contrib/modules/xfeatures2d/src/boostdesc.cpp:654:20: fatal error: boostdesc_bgm.i: No such file or directory
654 | #include "boostdesc_bgm.i"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
参考网上解决方法(https://www.cnblogs.com/zhang-hongbo/p/12859405.html)
把下列压缩包解压到目录opencv_contrib/modules/xfeatures2d/src/下即可。
压缩包地址:
链接:https://pan.baidu.com/s/17XhXX_cLz46bsj9ZWRkNIg
提取码:p50x
@retroman
https://www.cool-pi.com/topic/127/coolpi-4b-镜像固件在线刷机方法
install usb driver and use rkdevtool.exe loading firmware image file.
@retroman hi, onedrive link try again. https://1drv.ms/u/s!AhSBNZjrDPlSanDDQF7WowYhiz8?e=lRpMrk
@花月 可以拷贝重命名/usr/sbin/gpio_coolpi
@花月
系统中若无该命令,请将附件文件拷贝到/usr/sbin/,再执行chmod a+x /usr/sbin/gpio_coolpi
SPI与I2C操作使用标准python或标准C调用API
@zensation
DSI driver with 'https://www.waveshare.net/wiki/5inch_DSI_LCD_(B)' worked fine. The other LCD model kernel driver need to be ported.
@zensation
DSI unit worked with 'https://www.waveshare.net/wiki/5inch_DSI_LCD_(B)'. You can porting LCD driver when use different LCD module.
开源四足仿生机器狗
https://www.waveshare.net/wiki/PIPPY
https://www.bilibili.com/video/BV1VV411n7FE/?zw
现已兼容coolpi 4b
https://gitee.com/yanyitech/pyppi.git
产品介绍
这一款是专门为树莓派设计的开源四足仿生机器狗。扩展板将OLED,舵机电机驱动电路,九轴姿态传感器,电池保护电路等集成在一起,免去你焊接电路的烦恼,支持免卸载充电,无需反复拆卸电池。支持视频监控,视觉巡线,超声波避障,自平衡控制,运动检测,颜色识别等功能。
特点
板载两节2600mAh 18650电池,支持边充边放
板载HY2120 + AO4406A锂电池保护电路,具有防过充、防过放、防过流和短路保护功能
板载APW7313稳压芯片,可给树莓派提供稳定的5V电压
板载高精度九轴运动姿态监测传感器ICM20948,可实现机器人姿态自平衡
板载0.91寸128×32分辨率OLED,实时显示小车IP地址,电量等情况
板载AINA219采集芯片,方便实时监控电池电压,充电电流
实操使用coolpi 4b + ubuntu20 desktop
@farukbak which one LCD model you have? please send a reference link. The model mipi dsi is okay. https://www.waveshare.net/wiki/5inch_DSI_LCD_(B)
https://wiki.cool-pi.com
https://wiki.cool-pi.com/zh/home
CoolPi 4 Model B Spec V1.0.pdf
规格参数
模块 | 描述 |
---|---|
SOC系统芯片 | Rockchip RK3588s |
CPU 中央处理器 | Qual-Core Cortex-A76 and Qual-Core Cortex-A55 |
GPU 图形处理器 | Mali-G610(OpenGL ES3.2 / OpenCL2.2 / Vulkan1.1) |
VPU 视频处理单元 | Decoder: up to 8K@60fps ; Encoder: up to 8K@30fps; Support H.265/AVS2/VP9/H.264/AV1 |
NPU 神经处理单元 | 6.0Tops, Support INT4/INT8/INT16/FP16 |
LPDDR 内存 | 4GB/8GB/16GB/32GB |
Storage 闪存 | 32GB (eMMC Module/TF Card) - 可选(OPTION) |
Power-IN 输入电源 | Type-C Port |
HDMI | 1x HDMI2.1(Micro), up to 8K@60fps |
Display Port | 1x DP1.4(Mini), up to 4K@60fps |
MIPI-DSI | 1x MIPI-DSI |
MIPI-CSI | 1x MIPI-CSI, Support MIPI Camera |
USB | 2x USB2.0 Host,Type-A; 2x USB3.0 Host,Type-A |
Ethernet网口 | 1xGMAC(10/100/1000M), Support PoE |
Audio音频 | 1x earphone, Support microphone |
Wireless无线 | Support 5G/2.4G, BT5.0 |
Expansion 扩展接口 | Support I2C/SPI/UART/GPIO/CAN |
System 系统支持 | Linux |
Size 板子尺寸 | 85mm x 56mm |
正面视图
背面视图
40PIN定义描述
信号功能 | 系统编号 | 引脚编号 | 引脚编号 | 系统编号 | 信号功能 |
---|---|---|---|---|---|
3V3 | 1 | 2 | 5V0 | ||
I2C1_SDA|GPIO0_D5 | /dev/i2c1 sda | 3 | 4 | 5V0 | |
I2C1_SCL|GPIO0_D4 | /dev/i2c1 scl | 5 | 6 | GND | |
GPIO1_B7|PWM3_M3 | gpio 47 | 7 | 8 | TXD | |
GND | 9 | 10 | RXD | ||
GPIO4_A0 | gpio 128 | 11 | 12 | gpio 39 | GPIO1_A7 |
GPIO4_A1 | gpio 129 | 13 | 14 | GND | |
GPIO4_A2 | gpio 130 | 15 | 16 | /dev/ttyS2 uart txd | UART6_TX_M1|GPIO1_A1 |
3V3 | 17 | 18 | /dev/ttyS2 uart rxd | UART6_RX_M1|GPIO1_A0 | |
SPI0_MOSI_M2 | spi mosi | 19 | 20 | GND | |
SPI0_MISO_M2 | spi miso | 21 | 22 | gpio 40 | GPIO1_B0 |
SPI0_CLK_M2 | spi clk | 23 | 24 | spi cs 0 | SPI0_CS0_M2 |
GND | 25 | 26 | spi cs 1 | SPI0_CS1_M2 | |
I2C6_SDA_M3 | /dev/i2c6 sda | 27 | 28 | /dev/i2c6 scl | I2C6_SCL_M3 |
GPIO4_A3|UART0_TXD_M2 | gpio 131 | 29 | 30 | GND | |
GPIO4_A4|UART0_RXD_M2 | gpio 132 | 31 | 32 | gpio 105 | PWM2 |
GPIO4_A5|UART3_TXD_M2 | gpio 133 | 33 | 34 | GND | |
GPIO4_A6|UART3_RXD_M2 | gpio 134 | 35 | 36 | gpio 138 | GPIO4_B2|CAN1_RXD_M1 |
GPIO4_A7 | gpio 135 | 37 | 38 | gpio 139 | GPIO4_B3|CAN1_TXD_M1 |
GND | 39 | 40 | gpio 115 | GPIO3_C3 |
@ccjjww1222
why?
https://download.nomachine.com/download/8.2/Arm/nomachine_8.2.3_3_arm64.deb
coolpi@coolpi:~/Downloads$ sudo dpkg -i nomachine_8.2.3_3_arm64.deb
[sudo] password for coolpi:
Selecting previously unselected package nomachine.
(Reading database ... 141964 files and directories currently installed.)
Preparing to unpack nomachine_8.2.3_3_arm64.deb ...
Unpacking nomachine (8.2.3-3) ...
Setting up nomachine (8.2.3-3) ...
NX> 700 Starting installation at: Thu, 15 Dec 2022 13:35:52.
NX> 700 Using installation profile: Ubuntu.
NX> 700 Installation log is: /usr/NX/var/log/nxinstall.log.
NX> 700 Installing nxrunner version: 8.2.3.
NX> 700 Installing nxplayer version: 8.2.3.
NX> 700 Installing nxnode version: 8.2.3.
NX> 700 Installing nxserver version: 8.2.3.
NX> 700 Installation completed at: Thu, 15 Dec 2022 13:36:15.
NX> 700 NoMachine was configured to run the following services:
NX> 700 NX service on port: 4000