uConsole折腾记录
https://linux-sunxi.org/ClockworkPi_R01
https://andreas.welcomes-you.com/boot-sw-debian-risc-v-lichee-rv/
/home/cpi/src/zsnes_1_51/src ./configure –build=riscv64 –target==riscv64
checking for nasm… nasm configure: error: This target is not supported
https://forum.clockworkpi.com/t/upstream-r01-kernel/11165 Upstream R01 kernel
#uConsole 点亮CM3 https://github.com/PotatoMania/uconsole-cm3?tab=readme-ov-file
也许可用替换到 R-01的核心板
嗨,R-01性能太弱了,我想问一下,uConsole可以换这个核心板吗?
网事随风: 理论可以,但没人试过
网事随风: 到手之后得自己改设备树和打包系统
https://forum.clockworkpi.com/t/might-be-a-good-cm4-replacement-orange-pi-cm4-compatible-development-board-powered-by-rk3566/10827
可替换设备
cm3转cm4转接口 rk3566/3588 可替代soc
#0511 https://archriscv.felixc.at/ arch-linux rootfs
https://forum.clockworkpi.com/t/uconsole-os-images/10432/9 uConsole os Images build image from source
https://github.com/clockworkpi/DevTerm/wiki/Create-DevTerm-R01-OS-image-from-scratch
https://andreas.welcomes-you.com/boot-sw-debian-risc-v-lichee-rv/#mcetoc_1ftmpkntlmpl
https://d1.docs.aw-ol.com/study/study_4compile/
https://forum.clockworkpi.com/t/anyone-got-bluetooth-running-with-the-r01-processor-yet/10483/10 R01 bluetooth
https://github.com/xiao-k233/PKGBUILD-and-aur-guide/blob/main/PKGBUILD%E5%AE%8C%E5%85%A8%E6%8C%87%E5%8D%97.md PKGBUILD 指南
https://whycan.com/t_6683.html d1 裸机
如何在 Arch Linux 下创建并配置 sudo 用户? https://zhuanlan.zhihu.com/p/614960162
https://github.com/PotatoMania/uconsole-r01-bsp-kernel-for-archlinux/tree/main?tab=readme-ov-file
https://zhuanlan.zhihu.com/p/596227524 Arch Linux 详细安装教程,萌新再也不怕了
docker pull archlinux:base-20230416.0.143366 docker run -itd –name arch23 -v /home/summer/r01:/home/r01 archlinux:base-20230416.0.143366 /bin/bash
#新增一个tty sudo docker exec -it arch23 /bin/bash #还原上一个tty sudo attach arch23
#跟新软件源 cat > /etc/pacman.d/mirrorlist Server = https://mirrors.bfsu.edu.cn/archlinux/$repo/os/$arch Server = https://mirrors.sjtug.sjtu.edu.cn/archlinux/$repo/os/$arch Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arc Ctrl+D #跟新包 pacman -Syu
如果报告“验证软件包错误”,可以尝试以下方法,然后重新安装。
root@archiso ~ # pacman-key –init # 初始化密钥环 root@archiso ~ # pacman-key –populate root@archiso ~ # pacman -Sy archlinux-keyring # 更新 archlinux-keyring
pacman -Sy sudo #安装基础包 sudo pacman -Sy base base-devel
#回顾经典 史上最棒的十款GBA游戏 https://www.jiemian.com/article/584480.html
安装visualboyadvance模拟器 https://github.com/vbaemulator/GBA-Roms
在console上编译zsnes error: ‘F_OK’ was not declared in this scope 这个文件其实是定义在unistd.h中
libsdl1.2-dev 和libsdl1.2-compat-dev互斥
#cmus 5 可以浏览音乐 man cmus
uvc 和 v4l2 OK
UVC 是 USB-IF 组织定义的标准协议,适用于 USB 摄像头设备。支持 UVC 协议的摄像头可以在无需额外驱动的情况下即插即用,适用于 Windows、Linux 和 macOS。
Linux 内核自带 UVC 驱动(uvcvideo),并且该驱动依赖 V4L2 进行设备管理和视频流控制。在 Linux 下,UVC 摄像头作为 V4L2 设备 注册,应用程序通过 V4L2 API 访问 UVC 摄像头.UVC 驱动 通过 USB 连接摄像头并解析 UVC 协议,V4L2 提供 API,应用程序可以通过 ioctl()
访问摄像头
zcat /proc/config.gz | grep V4L2
sudo apt install v4l-utils
v4l2-ctl --list-devices
v4l2-ctl --list-formats-ext
wget https://github.com/milkv-duo/duo-files/blob/main/common/uvctest.zip
unzip uvctest.zip
make
./uvctest /dev/video0
chmod 664 20250402_133921.jpg
scp clockpi:~/tools/uvctest/20250402_133921.jpg clockpi-usb-v4l2-uvc-test-20250402_133921.jpg
![[clockpi-usb-v4l2-uvc-test-20250402_133921.jpg]]
编译内核及rootfs相关
R01 kernel development https://forum.clockworkpi.com/t/r01-kernel-development/9680/2 Bare metal development on uConsole R-01? https://forum.clockworkpi.com/t/bare-metal-development-on-uconsole-r-01/12050 uConsole - R-01 and RISC-V thread https://forum.clockworkpi.com/t/uconsole-r-01-and-risc-v-thread/9164/31
R01 OS Early Hints https://forum.clockworkpi.com/t/r01-os-early-hints/8636/7 **
https://forum.clockworkpi.com/t/rebuild-os-for-r01/8609 Rebuild OS for R01 ** https://github.com/clockworkpi/DevTerm/wiki/Create-DevTerm-R01-OS-image-from-scratch ***
https://www.stewarts.org.uk/project/debianondevtermr01/ **
sudo apt install p7zip-full 7z x manager.7z -r -o /home/xx bzip2 -d DevTerm_R01_v0.1.img.bz2