20230704_Ubuntu22_Server_CoolPi_4B_百度网盘
user name: ubuntu
password: coolpi
20230704_Ubuntu22_Server_CoolPi_4B_百度网盘
user name: ubuntu
password: coolpi
@dbtech The server image will be uploaded later.
@零度灬救赎
cat /proc/cmdline查看对应的console有没有指向ttyS0,如果有,可以编辑/boot/firmware/extlinux/extlinux.conf,更改指向tty0
统信官方网站
https://home.uniontech.com/
建议内存容量8GB及以上
cool pi 4b使用etcher软件烧录镜像:UOS_4B百度网盘
cool pi cm5 evb使用etcher软件烧录镜像:UOS_CM5_EVB 百度网盘
默认用户名uos 初始密码cool
@cyberwisk GPIO function with image not test, someone can build sources from batocera official github. The basic firmware support audio sound, also can play games.
这个方法我一直在用,没遇到你说的现象。U盘多大容量,需要备份的系统有多大,系统还原异常的完整log输出一份
ubuntu22 (wayland) now have some errors.
add args 'systemd.unified_cgroup_hierarchy=0'
coolpi@coolpi:~$ cat /proc/cmdline
root=LABEL=writable rw rootfstype=ext4 console=ttyS0,115200n81 quiet systemd.unified_cgroup_hierarchy=0 splash plymouth.ignore-serial-consoles vt.global_cursor_default=1 irqchip.gicv3_pseudo_nmi=0 net.ifnames=0 rtleth=ethaddr:32:fa:e2:50:53:e8
coolpi@coolpi:~$
install waydroid:
sudo apt install curl ca-certificates -y
curl https://repo.waydro.id | sudo bash
sudo apt install waydroid -y
coolpi@coolpi:~$ sudo waydroid container start;waydroid session start
coolpi@coolpi:~$ waydroid status
Session: RUNNING
Container: RUNNING
Vendor type: MAINLINE
IP address: UNKNOWN
Session user: coolpi(1000)
Wayland display: wayland-0
coolpi@coolpi:~$
coolpi@coolpi:~$
coolpi@coolpi:~$ waydroid show-full-ui
[14:55:56] Failed to get service waydroidplatform, trying again...
[14:55:57] Failed to get service waydroidplatform, trying again...
[14:55:58] Failed to get service waydroidplatform, trying again...
^CTraceback (most recent call last):
File "/usr/bin/waydroid", line 9, in <module>
sys.exit(tools.main())
File "/usr/lib/waydroid/tools/__init__.py", line 126, in main
actions.app_manager.showFullUI(args)
File "/usr/lib/waydroid/tools/actions/app_manager.py", line 132, in showFullUI
maybeLaunchLater(args, justShow)
File "/usr/lib/waydroid/tools/actions/app_manager.py", line 69, in maybeLaunchLater
launchNow()
File "/usr/lib/waydroid/tools/actions/app_manager.py", line 120, in justShow
platformService = IPlatform.get_service(args)
File "/usr/lib/waydroid/tools/interfaces/IPlatform.py", line 318, in get_service
time.sleep(1)
KeyboardInterrupt
coolpi@coolpi:~$ sudo waydroid shell
[sudo] password for coolpi:
:/ # uname -a
Linux waydroid 5.10.110 #13 SMP Thu Jun 15 10:17:49 CST 2023 aarch64
:/ #
06-16 07:00:50.694 50 50 E tombstoned: Tombstone written to: /data/tombstones/tombstone_28
06-16 07:00:50.793 3013 3013 I ServiceManager: Waiting for service 'SurfaceFlinger' on '/dev/binder'...
06-16 07:00:54.000 3013 3013 I chatty : uid=1000 system_server identical 43 lines
06-16 07:00:54.100 3013 3013 I ServiceManager: Waiting for service 'SurfaceFlinger' on '/dev/binder'...
06-16 07:00:54.201 3013 3013 W ServiceManager: Service SurfaceFlinger didn't start. Returning NULL
06-16 07:00:54.451 3013 3013 I ServiceManager: Waiting for service 'SurfaceFlinger' on '/dev/binder'...
06-16 07:00:55.654 3013 3013 I ServiceManager: Waiting for service 'SurfaceFlinger' on '/dev/binder'...
06-16 07:00:55.662 3079 3079 I SurfaceFlinger: Using HWComposer service: 'default'
06-16 07:00:55.662 3079 3079 I SurfaceFlinger: SurfaceFlinger is starting
06-16 07:00:55.663 3079 3079 I SurfaceFlinger: Disabling backpressure propagation
06-16 07:00:55.663 3079 3079 I SurfaceFlinger: Disabling blur effects, they are not supported.
06-16 07:00:55.663 3079 3079 I SurfaceFlinger: Treble testing override: 'false'
06-16 07:00:55.664 3079 3079 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
06-16 07:00:55.664 3079 3079 D RenderEngine: RenderEngine GLES Backend
06-16 07:00:55.667 3079 3079 D libEGL : loaded /vendor/lib64/egl/libEGL_mesa.so
06-16 07:00:55.667 3079 3079 D libEGL : loaded /vendor/lib64/egl/libGLESv1_CM_mesa.so
06-16 07:00:55.668 3079 3079 D libEGL : loaded /vendor/lib64/egl/libGLESv2_mesa.so
06-16 07:00:55.671 3079 3079 W EGL-MAIN: MESA-LOADER: failed to open rknpu: dlopen failed: library "/vendor/lib64/dri/rknpu_dri.so" not found (search paths /vendor/lib64/dri, suffix _dri)
06-16 07:00:55.671 3079 3079 W EGL-MAIN: Failed to open any DRM device
06-16 07:00:55.672 3079 3079 W EGL-MAIN: Failed to open any DRM device
06-16 07:00:55.672 3079 3079 W libEGL : eglInitialize(0xb400007f9ec41000) failed (EGL_NOT_INITIALIZED)
06-16 07:00:55.672 3079 3079 E libEGL : call to OpenGL ES API with no current context (logged once per thread)
06-16 07:00:55.672 3079 3079 F RenderEngine: eglQueryStringImplementationANDROID(EGL_VERSION) failed
06-16 07:00:55.672 50 50 I tombstoned: received crash request for pid 3079
06-16 07:00:55.674 3079 3079 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-16 07:00:55.674 3079 3079 F DEBUG : LineageOS Version: '18.1-20230421-VANILLA-waydroid_arm64'
06-16 07:00:55.674 3079 3079 F DEBUG : Build fingerprint: 'waydroid/lineage_waydroid_arm64/waydroid_arm64:11/RQ3A.211001.001/32:userdebug/test-keys'
06-16 07:00:55.674 3079 3079 F DEBUG : Revision: '0'
06-16 07:00:55.674 3079 3079 F DEBUG : ABI: 'arm64'
06-16 07:00:55.674 3079 3079 F DEBUG : Timestamp: 2023-06-16 07:00:55+0000
06-16 07:00:55.674 3079 3079 F DEBUG : pid: 3079, tid: 3079, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
06-16 07:00:55.674 3079 3079 F DEBUG : uid: 1000
06-16 07:00:55.674 3079 3079 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
06-16 07:00:55.674 3079 3079 F DEBUG : Abort message: 'eglQueryStringImplementationANDROID(EGL_VERSION) failed'
06-16 07:00:55.674 3079 3079 F DEBUG : x0 0000000000000000 x1 0000000000000c07 x2 0000000000000006 x3 0000007fcb454310
06-16 07:00:55.674 3079 3079 F DEBUG : x4 00000000002e79ec x5 00000000002e79ec x6 00000000002e79ec x7 0000007fa26c1000
06-16 07:00:55.674 3079 3079 F DEBUG : x8 00000000000000f0 x9 c079f550d367498a x10 0000000000000000 x11 ffffffc0ffffffdf
06-16 07:00:55.674 3079 3079 F DEBUG : x12 0000000000000001 x13 0000000000000038 x14 0000000000000000 x15 ffffffffffffffff
06-16 07:00:55.674 3079 3079 F DEBUG : x16 0000007fa0ad0948 x17 0000007fa0aaf410 x18 0000007fa1aa2000 x19 0000000000000c07
06-16 07:00:55.674 3079 3079 F DEBUG : x20 0000000000000c07 x21 00000000ffffffff x22 0000000300000001 x23 0000000000000001
06-16 07:00:55.674 3079 3079 F DEBUG : x24 0000000000000003 x25 0000000000000000 x26 0000000000000000 x27 0000000000000000
06-16 07:00:55.674 3079 3079 F DEBUG : x28 0000000000000000 x29 0000007fcb454390
06-16 07:00:55.674 3079 3079 F DEBUG : lr 0000007fa0a61a9c sp 0000007fcb4542f0 pc 0000007fa0a61ac8 pst 0000000000001000
06-16 07:00:55.684 3079 3079 F DEBUG :
06-16 07:00:55.684 3079 3079 F DEBUG : backtrace:
06-16 07:00:55.684 3079 3079 F DEBUG : #00 pc 0000000000089ac8 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: e4cdaa3667d6b3fb35d46671d31909c3)
06-16 07:00:55.684 3079 3079 F DEBUG : #01 pc 00000000000062b0 /system/lib64/liblog.so (__android_log_default_aborter+12) (BuildId: b5b2ed9d2859e7c956635d8bdb685c6f)
06-16 07:00:55.684 3079 3079 F DEBUG : #02 pc 0000000000006e18 /system/lib64/liblog.so (__android_log_assert+336) (BuildId: b5b2ed9d2859e7c956635d8bdb685c6f)
06-16 07:00:55.684 3079 3079 F DEBUG : #03 pc 000000000018db58 /system/lib64/libsurfaceflinger.so (android::renderengine::gl::GLESRenderEngine::create(android::renderengine::RenderEngineCreationArgs const&)+4320) (BuildId: 85d0b58d7dd2d26b021c8b09ffbd4753)
06-16 07:00:55.684 3079 3079 F DEBUG : #04 pc 000000000018c928 /system/lib64/libsurfaceflinger.so (android::renderengine::RenderEngine::create(android::renderengine::RenderEngineCreationArgs const&)+168) (BuildId: 85d0b58d7dd2d26b021c8b09ffbd4753)
06-16 07:00:55.684 3079 3079 F DEBUG : #05 pc 000000000010c868 /system/lib64/libsurfaceflinger.so (android::SurfaceFlinger::init()+184) (BuildId: 85d0b58d7dd2d26b021c8b09ffbd4753)
06-16 07:00:55.684 3079 3079 F DEBUG : #06 pc 00000000000021b8 /system/bin/surfaceflinger (main+368) (BuildId: 2a5c373dbea113a5035b20ca4aed30fe)
06-16 07:00:55.684 3079 3079 F DEBUG : #07 pc 000000000008506c /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: e4cdaa3667d6b3fb35d46671d31909c3)
@zensation not support setting pullup/down in user space now.
@edwardzhou said in Cool pi 4B & CM5 探索快速安装系统新方法:
最近一直在用这个方法,非常太好用太方便了。
我对上面的备份安装放在同一个U盘实现的方法,做了一些改进,通过启动菜单选择 备份 还是 安装, 比每次去改 initrd.img 要方便很多。
步骤1. 编辑 /extlinux/extlinux.conf 如下
menu title Select the boot mode TIMEOUT 60 default Linux coolpi backup label Linux coolpi backup kernel /Image initrd /initrd-backup.img fdt /rk3588s-cp4.dtb append root=LABEL=writable rw rootfstype=ext4 console=ttyS0,115200n81 quiet splash plymouth.ignore-serial-consoles vt.global_cursor_default=1 irqchip.gicv3_pseudo_nmi=0 net.ifnames=0 label Linux coolpi install kernel /Image initrd /initrd-install.img fdt /rk3588s-cp4.dtb append root=LABEL=writable rw rootfstype=ext4 console=ttyS0,115200n81 quiet splash plymouth.ignore-serial-consoles vt.global_cursor_default=1 irqchip.gicv3_pseudo_nmi=0 net.ifnames=0
步骤2, 把 install 中的 initrd.img 复制过来,并改名为 initrd-install.img
步骤3, 把 backup 中的 initrd.img 复制过来,并改名为 initrd-backup.img
U盘查到板子上,上电启动。
你局可以看到菜单Capacity: 30436.5 MB = 29.7 GB (62333952 x 512) ... is now current device Scanning usb 0:1... Found /extlinux/extlinux.conf Retrieving file: /extlinux/extlinux.conf reading /extlinux/extlinux.conf 629 bytes read in 39 ms (15.6 KiB/s) Select the boot mode 1: Linux coolpi backup 2: Linux coolpi install Enter choice:
输入1 或 2 回车即可,默认是1, 60秒无输入,则自动启动backup
可以参考 edwardzhou 整理的内容
@jugg
@jugg 看日志已经刷好了,你在系统中把logo.bmp logo_kernel.bmp拷贝到/boot/firmware/,再重启
also support RTL8188EUS module
~$ lsusb
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 003: ID 17ef:6099 Lenovo
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 0000:3825
Bus 001 Device 002: ID 1a86:8091 QinHeng Electronics
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
~$ nmcli
eth0: 已连接 to 有线连接
"eth0"
ethernet (rk_gmac-dwmac), E6:2C:6D:B0:52:A8, 硬件, mtu 1500
ip4 默认
inet4 192.168.1.167/24
route4 0.0.0.0/0
route4 192.168.1.0/24
inet6 fe80::fa42:ae1f:8f2e:29be/64
route6 fe80::/64mac), 00:55:7B:B5:7D:F7, 硬件, mtu 1500
wlan0: 已连接 to TPLINK_2.4G
"Realtek RTL8188EUS"
wifi (rtl8188eu), 00:F0:06:A0:02:43, 硬件, mtu 1500536
inet4 192.168.3.191/24
route4 0.0.0.0/0
route4 192.168.3.0/24
inet6 fe80::bf81:3e6c:130d:c033/64
route6 fe80::/64
p2p0: 已断开
"Realtek RTL8188EUS"
wifi (rtl8188eu), 02:F0:06:A0:02:43, 硬件, mtu 1500
...
@大法师 said in Coolpi 4b support dynamic update logo:
Sometimes we may need to customize the logo display. We just need to copy logo bmp files to first partition of tf-card or emmc. Two logo files can be the same.
It should be noted that uboot must be upgraded to the latest.
uboot-20230222.zipUbuntu 22.04.1 LTS coolpi ttyS0 coolpi login: coolpi Password: Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.10.110 aarch64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage This system has been minimized by removing packages and content that are not required on a system that users do not log into. To restore this content, you can run the 'unminimize' command. 56 updates can be applied immediately. 27 of these updates are standard security updates. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update Last login: Wed Feb 22 06:11:20 UTC 2023 on ttyS0 coolpi@coolpi:~$ sudo cp logo.bmp logo_kernel.bmp /boot/firmware/ [sudo] password for coolpi: coolpi@coolpi:~$ sudo reboot
uboot-20230222.zip附件是在uboot下单独更新使用的。
新上传的RKDevTool_Release_v2.92_cp4b_loader_support_change_logo.rar是用工具刷
可以查看章节 How to install loader
https://wiki.cool-pi.com/en/home/quick_start
tree out_modules/lib/modules/5.10.110/kernel/drivers/net/wireless/rockchip_wlan/
out_modules/lib/modules/5.10.110/kernel/drivers/net/wireless/rockchip_wlan/
├── aic8800
│ ├── aic8800_bsp
│ │ └── aic8800_bsp.ko
│ └── aic8800_fdrv
│ └── aic8800_fdrv.ko
├── rkwifi
│ └── bcmdhd
│ ├── bcmdhd.ko
│ └── dhd_static_buf.ko
├── rtl8188eu
│ └── 8188eu.ko
├── rtl8821cu
│ └── 8821cu.ko
├── rtl8822bu
│ └── 88x2bu.ko
└── rtl8852be
└── 8852be.ko
9 directories, 8 files
@jugg 日期不对。帖子上传的loader文件,是可以在线命令在线更新的 https://www.cool-pi.com/topic/47/coolpi-4b-bootloader命令行升级方法
CPBOOT# c update usb|tf|mmc
晚点我更新一个版本
Due to component conflicts, the ch340 serial device cannot be used normally on ubuntu22 systems.
305.764435] usb 1-1.3: new full-speed USB device number 7 using ehci-platform
[ 305.979075] usb 1-1.3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 305.979080] usb 1-1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 305.979083] usb 1-1.3: Product: USB Serial
[ 305.979693] ch341 1-1.3:1.0: ch341-uart converter detected
[ 305.980778] usb 1-1.3: ch341-uart converter now attached to ttyUSB0
[ 306.554038] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input8
[ 306.557920] usb 1-1.3: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[ 306.558913] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 306.558971] ch341 1-1.3:1.0: device disconnected
user need to do:
sudo apt remove brltty
plugout uart module and plugin again.