@jugg 有没有试过品牌U盘。这个方法我一直在用
Posts made by 大法师
-
RE: Cool pi 4B & CM5 探索快速安装系统新方法
@jugg 先确认安装U盘是否可用,备份U盘是否可用。用备份好的U盘,把backup目录文件拷贝到安装U盘install目录
-
RE: cool pi 4b & CM5 linux system support compile u-boot
虚拟构建X86-64 ubuntu/debian环境,可交叉编译应用(包含u-boot等)
-
RE: CM5如何安装网卡驱动?
@Jachyn said in CM5如何安装网卡驱动?:
@大法师 更新源码目录链接显示如下错误
ln: /lib/modules/5.10.110/build/kernel: cannot overwrite directory ln: /lib/modules/5.10.110/source/kernel: cannot overwrite directory
sudo unlink /lib/modules/5.10.110/build sudo unlink /lib/modules/5.10.110/source
然后再操作。编译可能有错误,你先排查下
-
RE: CM5如何安装网卡驱动?
@Jachyn said in CM5如何安装网卡驱动?:
@大法师 大师 内核已经编译了 编译之后进行安装 又报如下的错
更新内核源码编译目录链接(假定源码目录在/home/coolpi/kernel)
sudo ln -sf /home/coolpi/kernel /lib/modules/5.10.110/build sudo ln -sf /home/coolpi/kernel /lib/modules/5.10.110/source
MLNX_EN_SRC-debian-23.04-1.1.3.0.tgz
MLNX_EN_SRC-debian-5.8-3.0.7.0.tgz
解压网卡驱动源码,编译coolpi@coolpi:~/MLNX_EN_SRC-23.04-1.1.3.0$ sudo ./install.pl Logs dir: /tmp/OFED.80654.logs General log file: /tmp/OFED.80654.logs/general.log Below is the list of OFED packages that you have chosen (some may have been added by the installer due to package dependencies): ofed-scripts mlnx-tools mlnx-ofed-kernel-utils mlnx-ofed-kernel-modules Checking SW Requirements... One or more required packages for installing OFED-internal are missing. Attempting to install the following missing packages: swig make python3 chrpath gcc quilt debhelper dh-python python3-distutils This program will install the OFED package on your machine. Note that all other Mellanox, OEM, OFED, RDMA or Distribution IB packages will be removed. Those packages are removed due to conflicts with OFED, do not reinstall them. Removing old packages get_requires: libibverbs1 is required by qemu-system-arm, but qemu-system-arm won't be removed. get_requires: librdmacm1 is required by qemu-system-arm, but qemu-system-arm won't be removed. Building packages Building DEB for ofed-scripts-23.04 (ofed-scripts)... Running /usr/bin/dpkg-buildpackage -us -uc Installing ofed-scripts-23.04... Running /usr/bin/dpkg -i --force-confmiss '/home/coolpi/MLNX_EN_SRC-23.04-1.1.3.0/DEBS/ubuntu22.04/aarch64/ofed-scripts_23.04-OFED.23.04.1.1.3_arm64.deb' Building DEB for mlnx-tools-23.04 (mlnx-tools)... Running /usr/bin/dpkg-buildpackage -us -uc Installing mlnx-tools-23.04... Running /usr/bin/dpkg -i --force-confmiss '/home/coolpi/MLNX_EN_SRC-23.04-1.1.3.0/DEBS/ubuntu22.04/aarch64/mlnx-tools_23.04-0.2304053_arm64.deb' Building DEB for mlnx-ofed-kernel-utils-23.04 (mlnx-ofed-kernel)... -W- --with-mlx5-ipsec is enabled Running /usr/bin/dpkg-buildpackage -us -uc -Pmodules ...
-
RE: CM5如何安装网卡驱动?
@jack_admin https://network.nvidia.com/products/ethernet-drivers/linux/mlnx_en/
The NVIDIA ConnectX adapter family can run Ethernet traffic simultaneously on two ports Single software stack that operates across all available NVIDIA Ethernet devices and configurations such as mem-free, up to 400Gb/s, and PCI Express modes 3.0, 4.0 and 5.0 Support for HPC applications for scientific research and AI Support for data center applications such as Oracle 11g/10g RAC, IBM DB2, Financial services applications such as IBM WebSphere LLM, Red Hat MRG, NYSE Data Fabric
-
RE: MIPI 屏
@jugg
可以试下修改内核源码drivers/input/touchscreen/tinker_ft5406.h @@ -13,7 +13,7 @@ #define FT_REG_FW_SUB_MIN_VER 0xB3 #define VALID_TD_STATUS_VAL 10 -#define MAX_TOUCH_POINTS 1 +#define MAX_TOUCH_POINTS 5
重新编译内核,替换Image
-
RE: 4b的两个usb3.0是独立的么
@shengxia 你的主板我们同事看了,usb3上下层端口都没有问题。用相同的tf卡openkylin系统加usb nvme、usb ssd测试都可以识别到super speed。需要注意部分型号nvme转接板有自动休眠功能、供电需单独5V/2A
(你寄的nvme转接盒没有带盘)
-
RE: openKylin 1.0版本发布(里程碑)
默认系统未打开蓝牙服务
sudo hciattach -n /dev/ttyS1 any 1500000 &
-
RE: openKylin 1.0版本发布(里程碑)
默认镜像需要手动设置date,更新源之后,补充安装时间同步服务
sudo apt update sudo apt install systemd-timesyncd sudo reboot
-
RE: openKylin 1.0版本发布(里程碑)
tf卡启动,手动分区扩容
openkylin@openkylin:~$ sudo su [sudo] openkylin 的密码: root@openkylin:/home/openkylin# parted /dev/mmcblk2 mmcblk2 mmcblk2p1 mmcblk2p2 root@openkylin:/home/openkylin# parted /dev/mmcblk2 GNU Parted 3.3 使用 /dev/mmcblk2 欢迎使用 GNU Parted!输入 'help' 来查看命令列表。 (parted) p 型号:SD SD32G (sd/mmc) 磁盘 /dev/mmcblk2: 31.0GB 扇区大小 (逻辑/物理):512B/512B 分区表:msdos 磁盘标志: 编号 起始点 结束点 大小 类型 文件系统 标志 1 1049kB 269MB 268MB primary fat32 启动, lba 2 269MB 7122MB 6852MB primary ext2 (parted) resizepart 2 警告: 分区 /dev/mmcblk2p2 正被使用。你确定要继续吗? 是/Yes/否/No? y 结束点? [7122MB]? 100% (parted) q 信息: 你可能需要 /etc/fstab。 root@openkylin:/home/openkylin# resize2fs /dev/mmcblk2p2 resize2fs 1.45.5 (07-Jan-2020) /dev/mmcblk2p2 上的文件系统已被挂载于 /;需要进行在线调整大小 old_desc_blocks = 1, new_desc_blocks = 4 /dev/mmcblk2p2 上的文件系统现在为 7506688 个块(每块 4k)。 root@openkylin:/home/openkylin# reboot
首次刷机启动系统,未设置密码,用户可在GUI桌面终端初始化设置密码
-
RE: 4b的两个usb3.0是独立的么
USB移动硬盘插入上层U3端口
未插入 root@openkylin:/home/openkylin# lsusb -t /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 3: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M root@openkylin:/home/openkylin# root@openkylin:/home/openkylin# root@openkylin:/home/openkylin# 插入后 root@openkylin:/home/openkylin# lsusb -t /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 3: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M root@openkylin:/home/openkylin# dmesg信息 [ 56.683651] usb 6-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd [ 56.701732] usb 6-1: New USB device found, idVendor=174c, idProduct=1153, bcdDevice= 1.00 [ 56.701748] usb 6-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1 [ 56.701757] usb 6-1: Product: Ugreen Storage Device [ 56.701765] usb 6-1: Manufacturer: Ugreen [ 56.701774] usb 6-1: SerialNumber: 26A1EE834B3A [ 56.709642] scsi host0: uas [ 56.710868] scsi 0:0:0:0: Direct-Access KINGSTON SA400S37240G 0 PQ: 0 ANSI: 6 [ 56.712594] sd 0:0:0:0: [sda] 468862128 512-byte logical blocks: (240 GB/224 GiB) [ 56.712710] sd 0:0:0:0: [sda] Write Protect is off [ 56.712715] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 [ 56.712923] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 56.713180] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes [ 56.756728] sda: sda1 [ 56.785263] sd 0:0:0:0: [sda] Attached SCSI disk [ 56.831716] sd 0:0:0:0: Attached scsi generic sg0 type 0
拔出移动硬盘,再插入下层U3端口
[ 220.995566] usb 6-1: USB disconnect, device number 2 [ 221.010564] sd 0:0:0:0: [sda] Synchronizing SCSI cache [ 221.210217] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=0x00 [ 225.563625] usb 8-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd [ 225.581932] usb 8-1: New USB device found, idVendor=174c, idProduct=1153, bcdDevice= 1.00 [ 225.581940] usb 8-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1 [ 225.581944] usb 8-1: Product: Ugreen Storage Device [ 225.581947] usb 8-1: Manufacturer: Ugreen [ 225.581951] usb 8-1: SerialNumber: 26A1EE834B3A [ 225.585374] scsi host0: uas [ 225.586402] scsi 0:0:0:0: Direct-Access KINGSTON SA400S37240G 0 PQ: 0 ANSI: 6 [ 225.587603] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 225.588405] sd 0:0:0:0: [sda] 468862128 512-byte logical blocks: (240 GB/224 GiB) [ 225.588539] sd 0:0:0:0: [sda] Write Protect is off [ 225.588545] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 [ 225.588766] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 225.588997] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes [ 225.623173] sda: sda1 [ 225.654381] sd 0:0:0:0: [sda] Attached SCSI disk root@openkylin:/home/openkylin# lsusb -t /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 3: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M root@openkylin:/home/openkylin#
可以替换试试
4b内核驱动安装包 -
RE: 4b的两个usb3.0是独立的么
@shengxia 默认配置是host模式。正反插提供dmesg 日志看看,另外插拔重新识别有无变化,也可以再试试单独U3 U盘在上层端口能不能识别到super speed
-
A greate tool for creating disk image
Genimage - The Image Creation Tool
genimage is a tool to generate multiple filesystem and flash/disk images from a given root filesystem tree. genimage is intended to be run in a fakeroot environment.
It also supports creating flash/disk images out of different file-system images and files.
Configuration is done in a config file parsed by libconfuse. Options like the path to tools can be given via environment variables, the config file or from commandline switches.
-
cool pi nano rv1106 with ubuntu22 server
Booting system from tf card
COOLPI LOADER BY YANYI(Jul 11 2023) DRAM: 256 MiB Using default environment boot mode: None eth0: ethernet@ffa80000 Autoboot in 1 seconds switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found /extlinux/extlinux.conf Retrieving file: /extlinux/extlinux.conf reading /extlinux/extlinux.conf 192 bytes read in 6 ms (31.3 KiB/s) 1: Linux coolpi Retrieving file: /initrd32.img reading /initrd32.img 35643864 bytes read in 2980 ms (11.4 MiB/s) Retrieving file: /vmlinuz reading /vmlinuz 2173048 bytes read in 185 ms (11.2 MiB/s) append: root=LABEL=writable rw rootfstype=ext4 console=ttyS0,115200n81 net.ifnames=0 rtleth=ethaddr:be:50:64:cc:c8:53 Retrieving file: /rv1106-cpnano.dtb reading /rv1106-cpnano.dtb 32649 bytes read in 7 ms (4.4 MiB/s) ## Flattened Device Tree blob at 0x00c00000 Booting using the fdt blob at 0x00c00000 Using Device Tree in place at 00c00000, end 00c0af88 Adding bank: 0x00000000 - 0x10000000 (size: 0x10000000) Starting kernel ... ubuntu login: root Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 5.10.110 armv7l) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Fri Sep 9 18:51:14 UTC 2022 System load: 0.353515625 Swap usage: 0% Users logged in: 0 Usage of /: 33.9% of 3.49GB Temperature: 44.6 C Memory usage: 23% Processes: 54 Expanded Security Maintenance for Applications is not enabled. 0 updates can be applied immediately. Enable ESM Apps to receive additional future security updates. See https://ubuntu.com/esm or run: sudo pro status The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@ubuntu:~# cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 69.82 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 Hardware : Generic DT based system Revision : 0000 Serial : d3bd77b45eddde16 root@ubuntu:~#
-
RE: 瑞芯微新一代机器视觉方案RV1106及RV1103
基于coolpi 4b ubuntu22系统编译coolpi nano(RV1106)内核
首先需要安装32位arm-gcc编译工具链
coolpi@coolpi:~/kernel/coolpi-kernel$ sudo apt install gcc-arm-linux-gnueabi Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: aapt adb android-libaapt android-libadb android-libandroidfw android-libbacktrace android-libbase android-libboringssl android-libcrypto-utils android-libcutils android-liblog android-libunwind android-libutils android-libziparchive android-sdk-platform-tools-common fonts-lyx inotify-tools libboost-dev libboost1.74-dev libexpat1-dev libinotifytools0 libjs-jquery-ui liblbfgsb0 libllvm15 libopenblas-dev libopenblas-pthread-dev libopenblas0 libpython3-dev libpython3.10-dev libqhull-r8.0 libxsimd-dev python-matplotlib-data python3-appdirs python3-beniget python3-cycler python3-decorator python3-dev python3-fonttools python3-fs python3-gast python3-kiwisolver python3-lz4 python3-matplotlib python3-mpmath python3-numpy python3-packaging python3-ply python3-pyqt5 python3-pyqt5.sip python3-pythran python3-scipy python3-sympy python3-ufolib2 python3-unicodedata2 python3-wheel python3.10-dev unicode-data zlib1g-dev Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: binutils-arm-linux-gnueabi cpp-11-arm-linux-gnueabi cpp-arm-linux-gnueabi gcc-11-arm-linux-gnueabi gcc-11-arm-linux-gnueabi-base gcc-11-cross-base gcc-12-cross-base libasan6-armel-cross libatomic1-armel-cross libc6-armel-cross libc6-dev-armel-cross libgcc-11-dev-armel-cross libgcc-s1-armel-cross libgomp1-armel-cross libstdc++6-armel-cross libubsan1-armel-cross linux-libc-dev-armel-cross Suggested packages: binutils-doc gcc-11-locales cpp-doc gcc-11-doc autoconf automake libtool gdb-arm-linux-gnueabi gcc-doc The following NEW packages will be installed: binutils-arm-linux-gnueabi cpp-11-arm-linux-gnueabi cpp-arm-linux-gnueabi gcc-11-arm-linux-gnueabi gcc-11-arm-linux-gnueabi-base gcc-11-cross-base gcc-12-cross-base gcc-arm-linux-gnueabi libasan6-armel-cross libatomic1-armel-cross libc6-armel-cross libc6-dev-armel-cross libgcc-11-dev-armel-cross libgcc-s1-armel-cross libgomp1-armel-cross libstdc++6-armel-cross libubsan1-armel-cross linux-libc-dev-armel-cross 0 upgraded, 18 newly installed, 0 to remove and 42 not upgraded. Need to get 37.7 MB of archives. After this operation, 119 MB of additional disk space will be used. Do you want to continue? [Y/n] ...
然后修改默认编译脚本
coolpi@coolpi:~/kernel/coolpi-kernel$ git diff build-kernel.sh diff --git a/build-kernel.sh b/build-kernel.sh index 3eb4d07d8041..4bb6d806ebd8 100755 --- a/build-kernel.sh +++ b/build-kernel.sh @@ -69,6 +69,9 @@ if [ "$RV1106" == "1" ]; then TOOLCHAIN_ARM32=$K_SRC/toolchain32uc/bin export PATH=$TOOLCHAIN_ARM32:$PATH fi + if [ "$ARCH" == "aarch64" ]; then + export CROSS_COMPILE=arm-linux-gnueabi- + fi coolpi@coolpi:~/kernel/coolpi-kernel$
执行nano主板内核编译
coolpi@coolpi:~/kernel/coolpi-kernel$ ./build-kernel.sh cpnano
编译生成目录结构
coolpi@coolpi:~/kernel/coolpi-kernel$ tree out out ├── extlinux │ └── extlinux.conf ├── initrd32.img ├── modules.tar.gz ├── rv1106-cpnano.dtb └── vmlinuz 1 directory, 5 files