• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login
    1. Cool Pi For You
    2. 大法师
    3. Posts
    • Profile
    • Following 2
    • Followers 10
    • Topics 86
    • Posts 401
    • Groups 2

    Posts

    Recent Best Controversial
    • 图形显示官方介绍

      913e1036-b74a-42c1-8e71-6a49f21f2cc1-image.png

      https://opensource.rock-chips.com/wiki_Graphics

      如下链接文章写的比较好,值得研究。
      https://blog.csdn.net/xgbing/article/details/79969640

      摘一部分:

      简单的理解
      drm里有crtc,plane,connector这三个东西,可以理解
      
      connector就是屏幕,比如一个hdmi一个connector num, 一个dsi一个connector num
      crtc表示vop, 一个屏幕一般对应一个crtc
      plane就是图层,比如视频层在plane2,UI在plane1, 视频在UI上面
      
      posted in Ubuntu
      大法师大
      大法师
    • RE: 基于Cool Pi 4 Model B 安装宝塔面板

      @harry-huang 上面的操作是基于ubuntu22系统。其他系统可以参考

      posted in Maker
      大法师大
      大法师
    • 基于Cool Pi 4 Model B 安装宝塔面板

      宝塔是什么,可以查看demo页面

      apt-get install wget curl
      
      wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh
      
      sudo bash install.sh
      
      安装成功后,保存账户信息用于内网面板登陆
      
      ==================================================================
      Congratulations! Installed successfully!
      ==================================================================
      外网面板地址: http://xxx.226.28.51:8888/dc404f6c
      内网面板地址: http://192.168.3.xx:8888/dc404f6c
      username: xxxx
      password: xxxx
      If you cannot access the panel,
      release the following panel port [8888] in the security group
      若无法访问面板,请检查防火墙/安全组是否有放行面板[8888]端口
      ==================================================================
      Time consumed: 9 Minute!
      ubuntu@coolpi:~$
      

      2022-10-18 23-52-03 的屏幕截图.png

      posted in Maker
      大法师大
      大法师
    • Ubuntu Disk speed Test
      root@coolpi:/home/ubuntu# lsblk 
      NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
      sda      8:0    0 223.6G  0 disk 
      ├─sda1   8:1    0   300M  0 part 
      └─sda2   8:2    0 223.3G  0 part /
      zram0  254:0    0     0B  0 disk 
      root@coolpi:/home/ubuntu#
      root@coolpi:/home/ubuntu# parted /dev/sda print
      型号:ATA KINGSTON SA400S3 (scsi)
      磁盘 /dev/sda: 240GB
      扇区大小 (逻辑/物理):512B/512B
      分区表:msdos
      磁盘标志:
      
      编号  起始点  结束点  大小   类型     文件系统  标志
       1    1049kB  316MB   315MB  primary  fat32
       2    316MB   240GB   240GB  primary  ext4
      
      root@coolpi:/home/ubuntu#
      root@coolpi:/home/ubuntu# hdparm -t --direct /dev/sda
      
      /dev/sda:
       Timing O_DIRECT disk reads: 610 MB in  3.00 seconds = 203.18 MB/sec
      root@coolpi:/home/ubuntu#
      
      posted in Ubuntu
      大法师大
      大法师
    • Ubuntu22 install pip3
      ubuntu@coolpi:~$ sudo apt install python3-pip
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:
      
      The following packages have unmet dependencies:
       python3-distutils : Depends: python3:any (>= 3.10.5-0~)
                           Depends: python3-lib2to3 (= 3.10.6-1~22.04) but 3.10.4-0ubuntu1 is to be installed
      E: Unable to correct problems, you have held broken packages.
      ubuntu@coolpi:~$
      

      maybe the system hold some packages. Please take a try use command:

      apt-mask unhold python3* python3-* libpython3*
      apt install python3-pip
      
      posted in Ubuntu
      大法师大
      大法师
    • Debian11 桌面编译内核

      使用1017镜像版本,需要额外执行如下指令完成环境搭建

      sudo su
      apt-mark unhold libssl1.1 libdpkg-perl libc-dev-bin libc6 libc6-dev
      apt update
      apt install gcc make git python libncurses5-dev openssl libssl-dev build-essential pkg-config libc6-dev bison flex
      

      下载内核本地编译

      mkdir test;cd test
      git clone https://gitee.com/yanyitech/coolpi-kernel.git
      cd coolpi-kernel
      ./build-kernel.sh
      编译完成,在out目录生成内核二进制文件、设备树以及驱动包
      coolpi@coolpi:~/test/coolpi-kernel$ ls -lh out/
      total 150M
      -rw-r--r-- 1 coolpi coolpi 137M 10月 17 13:33 modules.tar.gz
      -rw-r--r-- 1 coolpi coolpi 137K 10月 17 13:33 rk3588s-cp4.dtb
      -rw-r--r-- 1 coolpi coolpi  13M 10月 17 13:33 vmlinuz
      
      
      查看当前磁盘挂载状态
      coolpi@coolpi:~/test/coolpi-kernel$ df -h
      Filesystem      Size  Used Avail Use% Mounted on
      udev            1.9G  8.0K  1.9G   1% /dev
      tmpfs           373M  1.5M  371M   1% /run
      /dev/mmcblk2p2   29G   12G   16G  44% /
      tmpfs           1.9G  209M  1.7G  12% /dev/shm
      tmpfs           5.0M  4.0K  5.0M   1% /run/lock
      /dev/mmcblk2p1  300M   27M  273M   9% /boot/firmware
      tmpfs           373M   32K  373M   1% /run/user/1000
      
      根据需要进行内核文件替换更新
      coolpi@coolpi:~/test/coolpi-kernel$ ls -l /boot/firmware/
      total 27084
      -rwxr-xr-x 1 root root      176  1月  1  2021 cmdline.txt
      -rwxr-xr-x 1 root root       64  8月 31 09:25 config.txt
      -rwxr-xr-x 1 root root  8775086  8月 31 09:25 initrd.img
      -rwxr-xr-x 1 root root  8128296 10月 17 11:11 modules.tar.gz
      -rwxr-xr-x 1 root root   139847 10月 17 11:11 rk3588s-cp4.dtb
      -rwxr-xr-x 1 root root 10673011 10月 17 11:11 vmlinuz
      coolpi@coolpi:~/test/coolpi-kernel$
      
      posted in Ubuntu
      大法师大
      大法师
    • Coolpi 4b bootloader命令行升级方法

      针对Cool Pi 4B主板,如需更新u-boot操作如下:

      0823版本请升级到0904

      1. 下载0904版本bin文件
        uboot.zip

      2. 解压zip,将bin文件拷贝到U盘或Tf卡根目录

      3. 将U盘或Tf卡插入主板,连接Debug串口到PC电脑,打开串口终端工具,主板通电,连续输入大写CP中止u-boot自动启动

        备注:请注意U盘启动或升级仅支持插入USB3 下层端口

      4. 在u-boot shell命令行窗口,
        针对串口输出信息如下的主板

      COOLPI LOADER BY YANYI(Aug 23 2022)                                             
                                                                                      
      DRAM:  3.7 GiB                                                                  
      CR: M/C/I                                                                       
      Using default environment
      
      A) 如果是从U盘导入文件升级步骤
      usb reset
      load usb 0:1 0x800000 uboot.img
      mtd erase nor0 0x200000 0x500000
      mtd write nor0 0x800000 0x200000 0x500000
      擦除与写入过程请勿断电或重启
      
      B) 如果是从TF卡导入文件升级步骤
      mmc dev 1
      load mmc 1:1 0x800000 uboot.img
      mtd erase nor0 0x200000 0x500000
      mtd write nor0 0x800000 0x200000 0x500000
      擦除与写入过程请勿断电或重启
      
      1. 等待执行完毕,确认无异常后,断电或reset即可。

      2. 升级完成后,串口输出信息如下

      COOLPI LOADER BY YANYI(Sep 03 2022)                                             
                                                                                      
      DRAM:  3.7 GiB                                                                  
      Using default environment
      
      后续的升级指令封装为
      c update usb|tf|mmc
      
      tf卡升级测试:
      CPBOOT# v                                                                       
      COOLPI LOADER BY YANYI(Sep 03 2022)                                             
                                                                                      
      aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 10.3-21
      GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 1
      CPBOOT# c update tf                                                             
      reading uboot.img                                                               
      5242880 bytes read in 428 ms (11.7 MiB/s)                                       
      wait for erase...                                                               
      uboot upgrade ok...                                                             
      CPBOOT# reset
      
      u盘升级测试:
      CPBOOT# v                                                                       
      COOLPI LOADER BY YANYI(Sep 03 2022)                                             
                                                                                      
      aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 10.3-21
      GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 1
      CPBOOT# c update usb                                                            
      resetting 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            
      reading uboot.img                                                               
      5242880 bytes read in 363 ms (13.8 MiB/s)                                       
      wait for erase...                                                               
      uboot upgrade ok...                                                             
      CPBOOT# reset
      备注:请注意U盘启动或升级仅支持插入USB3 下层端口
      

      934ab98e-f64d-4389-a309-8872fbc3d098-1675906984061.png

      posted in Pi 4B
      大法师大
      大法师
    • Ubuntu qt5 support

      Ubuntu20.04之后的版本已移除qt5-default,如需要安装,请执行如下命令:

      sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
      
      posted in Ubuntu
      大法师大
      大法师
    • UOS系统预览

      在Cool Pi Model 4主板上,安装统信UOS系统,体验流畅,画质清晰。

      截图_dde-desktop_20220928124758.png

      截图_dde-desktop_20220928125754.png

      截图_dde-desktop_20220928125025.png

      截图_20220928125956.png

      posted in Ubuntu
      大法师大
      大法师
    • Ubuntu 22.04 桌面版本 内核编译

      环境补充安装:

      sudo ln -sf /usr/bin/python2 /usr/bin/python
      sudo apt install flex bison
      

      可选执行

      sudo dpkg-reconfigure dash
      

      (注意弹框选择No)

      测试代码下载与编译

      ubuntu@coolpi:~$ mkdir test
      ubuntu@coolpi:~$ cd test/
      ubuntu@coolpi:~/test$ git clone https://gitee.com/yanyitech/coolpi-kernel.git
      正克隆到 'coolpi-kernel'...
      remote: Enumerating objects: 88605, done.
      remote: Counting objects: 100% (88605/88605), done.
      remote: Compressing objects: 100% (75148/75148), done.
      

      ...

      查看远程仓库

      ubuntu@coolpi:~/test/$ git remote -v
      origin	https://gitee.com/yanyitech/coolpi-kernel.git (fetch)
      origin	https://gitee.com/yanyitech/coolpi-kernel.git (push)
      

      编译

      ubuntu@coolpi:~/test/$ ./build-kernel.sh
      

      截图 2022-09-27 04-08-47.png

      修改内核配置

      ubuntu@coolpi:~/test/$ make ARCH=arm64 menuconfig
      

      截图 2022-09-27 04-16-38.png

      posted in Ubuntu
      大法师大
      大法师
    • Mac风格预览[Ubuntu22]

      Screenshot from 2022-09-20 03-39-25.png

      Screenshot from 2022-09-20 03-43-00.png

      Screenshot from 2022-09-20 03-40-37.png

      Screenshot from 2022-09-20 03-43-47.png

      Screenshot from 2022-09-20 06-47-22.png

      posted in Ubuntu
      大法师大
      大法师
    • Ubuntu 7z benchmark测试

      sudo apt install p7zip-full

      运行 7z b

      posted in Ubuntu
      大法师大
      大法师
    • Unixbench测试

      sudo apt install gcc make git

      git clone https://gitee.com/yanyitech/byte-unixbench.git -b v5.1.3

      cd byte-unixbench/UnixBench
      ./Run

      posted in Ubuntu
      大法师大
      大法师
    • Pi板SPI外设调试

      应用层访问设备节点/dev/spidev0.0 /dev/spidev0.1

      posted in Peripheral
      大法师大
      大法师
    • Ubuntu 20.04 server镜像 内核编译

      在Pi板设备上进行内核源代码编译

      1.安装编译环境

      apt install gcc make git python libncurses5-dev openssl libssl-dev build-essential pkg-config libc6-dev bison flex
      
      root@ubuntu:~# git clone https://gitee.com/yanyitech/coolpi-kernel.git
      Cloning into 'coolpi-kernel'...
      remote: Enumerating objects: 88609, done.
      remote: Counting objects: 100% (88609/88609), done.
      remote: Compressing objects: 100% (75105/75105), done.
      remote: Total 88609 (delta 12399), reused 88609 (delta 12399), pack-reused 0
      Receiving objects: 100% (88609/88609), 338.05 MiB | 7.05 MiB/s, done.
      Resolving deltas: 100% (12399/12399), done.
      Updating files: 100% (85640/85640), done.
      
      posted in Ubuntu
      大法师大
      大法师
    • Coolpi 4b debug console串口接线配置说明

      1. 串口引脚说明

      40PIN引脚,其中第8、10、14引脚信号分别对应TXD RXD GND,3.3V TTL电平,请连接到USB转TTL模块上。
      如下图:
      tty.png

      图中标号1连接GND
      图中标号2连接USB串口模块TXD
      图中标号3连接USB串口模块RXD

      333a2e93-85c3-40f0-adb3-dd15fbbf5b36-1666345742(1).png

      上图中40 pin排母功能定义如下表(图中左下为编号1,左上为编号2,右下为编号39,右上为编号40)

      默认信号功能 引脚编号 引脚编号 默认信号功能
      3.3V 1 2 5V
      /dev/i2c1 sda 3 4 5V
      /dev/i2c1 scl 5 6 GND
      gpio 47 7 8 /dev/ttyS0 uart txd 3.3V TTL
      GND 9 10 /dev/ttyS0 uart 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 pwm2
      gpio 133 33 34 GND
      gpio 134 35 36 gpio 138
      gpio 135 37 38 gpio 139
      GND 39 40 gpio 115

      2. 串口工具putty

      串口工具不限,附件仅作为参考使用
      putty.zip

      电脑串口工具设置串口波特率115200,8比特数据位,1个停止位,无校验,关闭流控。
      putty串口工具配置参考
      a985cb09-4e54-4832-9682-26235e2b20ea-1666258394(1).png

      posted in Pi 4B
      大法师大
      大法师
    • Pi板DSI配件测试

      本次选购配置链接
      https://www.waveshare.net/wiki/5inch_DSI_LCD_(B)

      使用MIPI DSI桥连接RGB屏(桥芯片TC358762或ICN6211)

      ca4482f9-c554-445f-b26c-4f8c4a6281ae-image.png

      RK3588集成DWC-MIPI-DSI2 ,它是一个实现 MIPI-DSI2 规范中定义的所有协议功能的控制器,兼容 D-PHY 和 C-PHY 的物理接口,支持两路的 Display Stream Compression (DSC) 数据传输,RK3588 有两个 DSI-2 控制器和两个独立的物理的 D/C-PHY,可以同时最多支持两路 MIPI 输出。

      13bead4a-141e-4651-88cf-c44b890d8dc4-1665567787(1).png

      MIPI DSI基于差分信号传输,可以降低引脚数量和硬件设计复杂度,并保持良好的硬件兼容性。另外,基于MIPI DSI协议的IP还具备低功耗、低EMI的特性。

      posted in Peripheral
      大法师大
      大法师
    • Ubuntu docker使用

      root@ubuntu:~# snap install docker

      root@ubuntu:~# snap start docker
      Started.
      root@ubuntu:~# snap services
      Service Startup Current Notes
      docker.dockerd enabled active -
      lxd.activate enabled inactive -
      lxd.daemon enabled inactive socket-activated
      root@ubuntu:~#
      root@ubuntu:~# docker info
      Client:
      Context: default
      Debug Mode: false

      Server:
      Containers: 0
      Running: 0
      Paused: 0
      Stopped: 0
      Images: 0
      Server Version: 20.10.14
      Storage Driver: overlay2
      Backing Filesystem: extfs
      Supports d_type: true
      Native Overlay Diff: true
      userxattr: false
      Logging Driver: json-file
      Cgroup Driver: cgroupfs
      Cgroup Version: 1
      Plugins:
      Volume: local
      Network: bridge host ipvlan macvlan null overlay
      Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
      Swarm: inactive
      Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
      Default Runtime: runc
      Init Binary: docker-init
      containerd version: 3df54a852345ae127d1fa3092b95168e4a88e2f8
      runc version:
      init version: de40ad0
      Security Options:
      seccomp
      Profile: default
      Kernel Version: 5.10.66
      Operating System: Ubuntu Core 18
      OSType: linux
      Architecture: aarch64
      CPUs: 8
      Total Memory: 3.634GiB
      Name: ubuntu
      ID: PV2I:N6WA:XSSO:CEVD:NA3X:GJ3Q:NNAC:ZM3Y:3WI7:3O3E:LV3L:RHPE
      Docker Root Dir: /var/snap/docker/common/var-lib-docker
      Debug Mode: false
      Registry: https://index.docker.io/v1/
      Labels:
      Experimental: false
      Insecure Registries:
      127.0.0.0/8
      Live Restore Enabled: false

      root@ubuntu:~#
      root@ubuntu:~# docker pull hello-world
      Using default tag: latest
      latest: Pulling from library/hello-world
      7050e35b49f5: Pull complete
      Digest: sha256:7d246653d0511db2a6b2e0436cfd0e52ac8c066000264b3ce63331ac66dca625
      Status: Downloaded newer image for hello-world:latest
      docker.io/library/hello-world:latest
      root@ubuntu:~#
      root@ubuntu:~# docker run hello-world

      Hello from Docker!
      This message shows that your installation appears to be working correctly.

      To generate this message, Docker took the following steps:

      1. The Docker client contacted the Docker daemon.
      2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
        (arm64v8)
      3. The Docker daemon created a new container from that image which runs the
        executable that produces the output you are currently reading.
      4. The Docker daemon streamed that output to the Docker client, which sent it
        to your terminal.

      To try something more ambitious, you can run an Ubuntu container with:
      $ docker run -it ubuntu bash

      Share images, automate workflows, and more with a free Docker ID:
      https://hub.docker.com/

      For more examples and ideas, visit:
      https://docs.docker.com/get-started/

      root@ubuntu:~#

      posted in Ubuntu
      大法师大
      大法师
    • Ubuntu系统蓝牙应用

      系统安装蓝牙组件
      root@ubuntu:~# apt install bluez
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following NEW packages will be installed:
      bluez
      0 upgraded, 1 newly installed, 0 to remove and 121 not upgraded.
      Need to get 895 kB of archives.
      After this operation, 4897 kB of additional disk space will be used.
      Get:1 http://mirrors.aliyun.com/ubuntu-ports focal-updates/main arm64 bluez arm64 5.53-0ubuntu3.6 [895 kB]
      Fetched 895 kB in 5s (180 kB/s)
      Selecting previously unselected package bluez.
      (Reading database ... 31634 files and directories currently installed.)
      Preparing to unpack .../bluez_5.53-0ubuntu3.6_arm64.deb ...
      Unpacking bluez (5.53-0ubuntu3.6) ...
      Setting up bluez (5.53-0ubuntu3.6) ...
      Created symlink /etc/systemd/system/dbus-org.bluez.service 鈫/lib/systemd/system/bluetooth.service.
      Created symlink /etc/systemd/system/bluetooth.target.wants/bluetooth.service 鈫/lib/systemd/system/bluetooth.service.
      Processing triggers for systemd (245.4-4ubuntu3.15) ...
      Processing triggers for man-db (2.9.1-1) ...
      Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
      root@ubuntu:~#

      posted in Ubuntu
      大法师大
      大法师
    • Ubuntu20.04 server 基础系统

      Basic system for ubuntu server.

      链接: https://pan.baidu.com/s/17hNy8o6hUv7p4M5ruOIpuA
      提取码: w00w

      user: ubuntu
      passwd: coolpi

      Console串口登陆
      18b9bc76-47a6-449b-91ff-3400ab6b7046-1663040001(1).png

      网络ssh远程登陆
      dc4729b5-23f0-4035-8bb4-3df3b8191804-1663040575(1).png

      posted in Ubuntu
      大法师大
      大法师
    • 1
    • 2
    • 17
    • 18
    • 19
    • 20
    • 21
    • 20 / 21