• Register
    • Login
    • Search
    • Recent
    • Github
    • 百度网盘
    • Onedrive
    1. Home
    2. 大法师
    • Profile
    • Following 1
    • Followers 3
    • Topics 67
    • Posts 213
    • Best 18
    • Controversial 1
    • Groups 2

    大法师

    @大法师

    35
    Reputation
    64
    Profile views
    213
    Posts
    3
    Followers
    1
    Following
    Joined Last Online

    大法师 Unfollow Follow
    Global Moderator administrators

    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
      大法师
      大法师
    • 基于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
      大法师
      大法师
    • 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
      大法师
      大法师
    • 每个开发者都需要的私有化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
      大法师
      大法师
    • Debian 11 系统预览

      Debian11

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

      home.png

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

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

      B站视频内容尽享
      bilibili.jpg

      高清视频解码
      4k.jpg

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

    Latest posts made by 大法师

    • RE: CP4散热器模组、底壳保护板套装

      @edwardzhou 用U盘备份安装系统,不用考虑移除emmc

      posted in Hardware
      大法师
      大法师
    • RE: qt multimedia

      @jugg

      coolpi@coolpi:~$ sudo apt install qtmultimedia5-dev 
      [sudo] password for coolpi: 
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      The following package was automatically installed and is no longer required:
        libllvm15
      Use 'sudo apt autoremove' to remove it.
      The following additional packages will be installed:
        libblkid-dev libglib2.0-dev libglib2.0-dev-bin libmount-dev libpcre16-3
        libpcre2-dev libpcre2-posix3 libpcre3-dev libpcre32-3 libpcrecpp0v5
        libqt5multimedia5 libqt5multimediagsttools5 libqt5multimediaquick5
        libqt5multimediawidgets5 libselinux1-dev libsepol-dev uuid-dev
      Suggested packages:
        libgirepository1.0-dev libglib2.0-doc
      The following NEW packages will be installed:
        libblkid-dev libglib2.0-dev libglib2.0-dev-bin libmount-dev libpcre16-3
        libpcre2-dev libpcre2-posix3 libpcre3-dev libpcre32-3 libpcrecpp0v5
        libqt5multimedia5 libqt5multimediagsttools5 libqt5multimediaquick5
        libqt5multimediawidgets5 libselinux1-dev libsepol-dev qtmultimedia5-dev
        uuid-dev
      0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
      Need to get 4799 kB of archives.
      After this operation, 23.8 MB of additional disk space will be used.
      Do you want to continue? [Y/n] 
      
      coolpi@coolpi:~$ sudo apt install qtmultimedia5-dev 
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      The following package was automatically installed and is no longer required:
        libllvm15
      Use 'sudo apt autoremove' to remove it.
      The following additional packages will be installed:
        libblkid-dev libglib2.0-dev libglib2.0-dev-bin libmount-dev libpcre16-3
        libpcre2-dev libpcre2-posix3 libpcre3-dev libpcre32-3 libpcrecpp0v5
        libqt5multimedia5 libqt5multimediagsttools5 libqt5multimediaquick5
        libqt5multimediawidgets5 libselinux1-dev libsepol-dev uuid-dev
      Suggested packages:
        libgirepository1.0-dev libglib2.0-doc
      The following NEW packages will be installed:
        libblkid-dev libglib2.0-dev libglib2.0-dev-bin libmount-dev libpcre16-3
        libpcre2-dev libpcre2-posix3 libpcre3-dev libpcre32-3 libpcrecpp0v5
        libqt5multimedia5 libqt5multimediagsttools5 libqt5multimediaquick5
        libqt5multimediawidgets5 libselinux1-dev libsepol-dev qtmultimedia5-dev
        uuid-dev
      0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
      Need to get 4799 kB of archives.
      After this operation, 23.8 MB of additional disk space will be used.
      Do you want to continue? [Y/n]
      
      
      
      posted in Ubuntu
      大法师
      大法师
    • RE: Cool pi 4B & CM5 探索快速安装系统新方法

      @xingzhan2012 said in Cool pi 4B & CM5 探索快速安装系统新方法:

      @大法师 牛逼,也就是U盘里创建一个backpu文件夹,插在USB口上,开机自动备份到backup文件夹中。 U盘中创建一个install文件夹,开机自动将install中的系统刷入emmc中。Cool Pi 4B Linux System Backup.iso中的文件替换掉系统中的/boot/firmware 文件夹中的文件是吧。这些启动文件是ubuntu22.04系统的么?是和系统版本无关么?

      安装备份操作,与rootfs系统无关,可以是任意制作的linux 根文件系统。这种方式适合开发者调试,可以是openwrt或buildroot或yocto等等

      posted in Maker
      大法师
      大法师
    • RE: Cool pi 4B & CM5 探索快速安装系统新方法

      @xingzhan2012
      备份还原操作,可以同一个U盘,把backup iso中的initrd.img拷贝到install iso 中,重命名为initrd-backup.img。

      想加载哪个功能,直接修改extlinux.conf启动哪个文件即可。当然配套backup目录可以直接重命名为install,更直接了

      posted in Maker
      大法师
      大法师
    • RE: Cool pi 4B & CM5 探索快速安装系统新方法

      @xingzhan2012
      太自动化会引起误操作。确实有必要备份重新安装,也不差一次拷贝动作

      posted in Maker
      大法师
      大法师
    • RE: MIPI 屏

      @tonyone0902
      vim /boot/firmware/config.txt 一样修改dtb文件名试下。你的机器是什么时间收到的,早期的loader不识别extlinux.conf

      另外查看下 ls -l /sys/class/drm/

      posted in Ubuntu
      大法师
      大法师
    • RE: Cool pi 4B & CM5 探索快速安装系统新方法

      @xingzhan2012 像Windows一样自动安装、自动备份,一个U盘搞定,无需额外操作

      posted in Maker
      大法师
      大法师
    • RE: MIPI 屏

      @tonyone0902
      系统终端输入dmesg > kernel.log

      把kernel.log发上来看下。

      posted in Ubuntu
      大法师
      大法师
    • RE: Cool pi 4B & CM5 探索快速安装系统新方法

      @xingzhan2012
      欢迎验证系统备份功能

      假定手上有两个U盘,一个制作为系统初始化安装U盘A,另一个制作为系统备份U盘B。

      当用户在系统中安装或修改各种配置操作后,如需要备份保存系统,那么请关机,插入备份U盘B,开机自动完成备份操作(备份文件在backup目录)。

      当用户想恢复备份的系统到coolpi 4b板载的存储emmc,那么可以将备份U盘B中的backup目录内容拷贝到安装U盘A install目录(请注意先删除install目录文件),插入安装U盘A,开机自动完成系统安装操作。

      dc55a9be-4eb6-4c4d-9bc6-4081f27453c3-1679466739946.png

      9ab6b43a-2f31-4854-a7e4-d76d7bd1589d-1679467154850.png

      posted in Maker
      大法师
      大法师
    • RE: MIPI 屏

      @tonyone0902
      5寸电容触摸屏切换操作参考,使用ubuntu 22.04 20230306版本

      需要切换使用rk3588s-cp4-dsi.dtb文件

      coolpi@coolpi:~/Desktop$ cat /boot/firmware/
      Image                      cmdline.txt                extlinux/                  modules.tar.gz             rk3588s-cp4.dtb            
      System Volume Information/ config.txt                 initrd.img                 rk3588s-cp4-dsi.dtb        vmlinuz                    
      coolpi@coolpi:~/Desktop$ cat /boot/firmware/extlinux/extlinux.conf 
      default Linux coolpi
      
      label Linux coolpi
      	kernel /Image
      	initrd /initrd.img
      	fdt    /rk3588s-cp4-dsi.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
      coolpi@coolpi:~/Desktop$
      
      posted in Ubuntu
      大法师
      大法师