• Register
    • Login
    • Search
    • Recent
    • Github
    • 百度网盘
    • Onedrive
    1. Home
    2. 大法师
    3. Best
    • Profile
    • Following 1
    • Followers 4
    • Topics 68
    • Posts 216
    • Best 19
    • Controversial 1
    • Groups 2

    Best posts made by 大法师

    • 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
      大法师
      大法师
    • 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.

      38c9d417-4c71-4534-b55f-9bcacf8f6354-48fe2bf10b800efee5f2e8064a6fe7c.png

      posted in Construction
      大法师
      大法师
    • 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
      大法师
      大法师
    • 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
      大法师
      大法师
    • 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.

      posted in Construction
      大法师
      大法师
    • Debian 11 系统预览

      Debian11

      流程操作体验,视频硬解码,简洁桌面xfce

      home.png

      终端命令行清晰可见
      terminal.png

      谷歌浏览器轻松访问
      kugou.png

      B站视频内容尽享
      bilibili.jpg

      高清视频解码
      4k.jpg

      posted in Ubuntu
      大法师
      大法师
    • 基于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
      大法师
      大法师
    • Coolpi 4b Download firmwares with OneDrive

      Debian11 & Ubuntu image for coolpi 4b

      Onedrive
      6c9b229e-d3e7-4cf7-9976-d7d815f10a5d-image.png

      https://www.cool-pi.com/topic/126/coolpi-4b-镜像固件离线刷机方法

      https://www.cool-pi.com/topic/127/coolpi-4b-镜像固件在线刷机方法

      posted in Pi 4B
      大法师
      大法师
    • UOS系统预览

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

      截图_dde-desktop_20220928124758.png

      截图_dde-desktop_20220928125754.png

      截图_dde-desktop_20220928125025.png

      截图_20220928125956.png

      posted in Ubuntu
      大法师
      大法师
    • 每个开发者都需要的私有化git服务器

      基于Coolpi 4B搭建流行的gitlab服务器,一步到位。
      gitlab_install.sh

      ubuntu@coolpi:~$ ./gitlab_install.sh 
      libcurl4 was already not on hold.
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      curl is already the newest version (7.81.0-1ubuntu1.6).
      0 upgraded, 0 newly installed, 0 to remove and 230 not upgraded.
      Detected operating system as Ubuntu/jammy.
      Checking for curl...
      Detected curl...
      Checking for gpg...
      Detected gpg...
      Running apt-get update... done.
      Installing apt-transport-https... done.
      Installing /etc/apt/sources.list.d/gitlab_gitlab-ce.list...done.
      Importing packagecloud gpg key... done.
      Running apt-get update... done.
      
      The repository is setup! You can now install packages.
      ubuntu@coolpi:~$ 
      

      选择你需要的版本,安装它

      ubuntu@coolpi:~$ sudo apt install gitlab-ce=15.6.0-ce.0
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      The following NEW packages will be installed:
        gitlab-ce
      0 upgraded, 1 newly installed, 0 to remove and 230 not upgraded.
      Need to get 1,148 MB of archives.
      After this operation, 3,869 MB of additional disk space will be used.
      Get:1 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu jammy/main arm64 gitlab-ce arm64 15.6.0-ce.0 [1,148 MB]
      Fetched 1,148 MB in 1min 10s (16.3 MB/s)                                       
      Selecting previously unselected package gitlab-ce.
      (Reading database ... 148928 files and directories currently installed.)
      Preparing to unpack .../gitlab-ce_15.6.0-ce.0_arm64.deb ...
      Unpacking gitlab-ce (15.6.0-ce.0) ...
      Setting up gitlab-ce (15.6.0-ce.0) ...
      It looks like GitLab has not been configured yet; skipping the upgrade script.
      
             *.                  *.
            ***                 ***
           *****               *****
          .******             *******
          ********            ********
         ,,,,,,,,,***********,,,,,,,,,
        ,,,,,,,,,,,*********,,,,,,,,,,,
        .,,,,,,,,,,,*******,,,,,,,,,,,,
            ,,,,,,,,,*****,,,,,,,,,.
               ,,,,,,,****,,,,,,
                  .,,,***,,,,
                      ,*,.
        
      
      
           _______ __  __          __
          / ____(_) /_/ /   ____ _/ /_
         / / __/ / __/ /   / __ `/ __ \
        / /_/ / / /_/ /___/ /_/ / /_/ /
        \____/_/\__/_____/\__,_/_.___/
        
      
      Thank you for installing GitLab!
      GitLab was unable to detect a valid hostname for your instance.
      Please configure a URL for your GitLab instance by setting `external_url`
      configuration in /etc/gitlab/gitlab.rb file.
      Then, you can start your GitLab instance by running the following command:
        sudo gitlab-ctl reconfigure
      
      For a comprehensive list of configuration options please see the Omnibus GitLab 
      readme
      https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
      
      Help us improve the installation experience, let us know how we did with a 1 min
      ute survey:
      https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnib
      us&release=15-6
      
      ubuntu@coolpi:~$
      

      修改默认配置文件,重新部署初始化配置

      ubuntu@coolpi:~$ sudo vim /etc/gitlab/gitlab.rb
      ...
      #external_url 'http://gitlab.example.com'
      external_url 'http://192.168.1.172'
      ...
      
      ubuntu@coolpi:~$ sudo gitlab-ctl reconfigure
      ...
      Notes:
      Default admin account has been configured with following details:
      Username: root
      Password: You didn't opt-in to print initial root password to STDOUT.
      Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
      
      NOTE: Because these credentials might be present in your log files in plain text, it is highly recommended to reset the password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.
      
      gitlab Reconfigured!
      

      初始root用户密码请查看文件

      ubuntu@coolpi:~$ sudo cat /etc/gitlab/initial_root_password
      [sudo] password for ubuntu: 
      # WARNING: This value is valid only in the following conditions
      #          1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or via `gitlab_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first reconfigure run).
      #          2. Password hasn't been changed manually, either via UI or via command line.
      #
      #          If the password shown here doesn't work, you must reset the admin password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.
      
      Password: HQQY3tBsOGOW2jd2gmiLDROf3fEnKH8CW3ZFnikPlHg=
      
      # NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.
      

      浏览器访问http://localhost 或者 http://192.168.1.172
      gitlab.png

      gitlab2.png

      posted in Maker
      大法师
      大法师
    • Coolpi 4b EMMC镜像备份导出方法

      用户基于我们发布是镜像系统,安装软件或进行其他配置之后,如果想备份系统,有很多方法可以实现,我这里提供一个比较简单的思路供大家参考。

      前置条件:

      1. 假如您手边有一张已经做好系统的TF卡
      2. 各种改动后的EMMC系统

      核心操作步骤:

      1. 从EMMC启动系统,登陆桌面并打开终端命令行更改卷标
      sudo su
      fatlabel /dev/mmcblk0p1 emmc-boot
      e2label /dev/mmcblk0p2 emmc-rootfs
      
      vim /boot/firmware/cmdline.txt
      将writable替换为emmc-rootfs  然后保存退出
      
      vim /etc/fstab
      将writable替换为emmc-rootfs  然后保存退出
      
      sync;
      
      1. 插入TF卡,重启系统

      2. 默认优先从TF卡引导系统,进入系统之后,可以挂载EMMC分区进行备份压缩

      posted in Pi 4B
      大法师
      大法师
    • 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
      大法师
      大法师
    • 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.

      posted in Maker
      大法师
      大法师
    • 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.zip

      Ubuntu 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
      
      posted in Pi 4B
      大法师
      大法师
    • 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
      大法师
      大法师
    • TF卡镜像Wifi预配置

      Debian或Ubuntu镜像使用离线刷机方法,镜像写入完成后,在system-boot分区根目录,新建文件wifi.txt,内容参考如下:

      ssid="你要连接的wifi名"
      passwd="wifi密码"
      

      插上TF到CoolPi主板,自动连接Wifi

      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
      大法师
      大法师
    • RE: Pi4B使用realsense深度相机开机默认识别为USB2.0设备。重新插拔后才能识别为USB3.0设备。

      @Mcfly
      内核和系统应用不用额外操作。先试下有没有改善,我们目前没有相应的U3相机验证,帮忙排查下,谢谢!

      posted in Ubuntu
      大法师
      大法师
    • Coolpi 4b Ubuntu22.04 原生系统

      Ubuntu22 原生系统测试版

      Download link: 百度网盘 OneDrive

      刷机操作请参考:
      https://www.cool-pi.com/topic/126/coolpi-4b-镜像固件离线刷机方法

      https://www.cool-pi.com/topic/127/coolpi-4b-镜像固件在线刷机方法

      posted in Ubuntu
      大法师
      大法师
    • 1 / 1