Coolpi 4b Ubuntu20.04 原生系统
-
Ubuntu20 原生系统测试版
[离线刷机方式,兼容树莓派刷机操作模式]
[更新:自动根分区扩容,预装python3.9,预装docker,预装npu仓库,桌面默认自动登陆,预装中文输入法]
百度网盘
用户名 coolpi 密码 coolpi刷机操作请参考:
https://www.cool-pi.com/topic/126/coolpi-4b-镜像固件离线刷机方法 -
-
@大法师 你好,请教下这个unbut20.04版本好像没有适配npu的驱动,跑rknpu2仓库自带的sample一直报错:
E RKNN: [12:38:07.956] failed to open rknpu module, need to insmod rknpu dirver!
E RKNN: [12:38:07.958] failed to open rknn device!
不重刷其他版本系统,需要怎么处理呢?谢谢~ -
-
@jack_admin
不行呢,尝试了一下,还是报 insmod rknpu driver的错误 -
@night 加sudo运行试下
coolpi@coolpi:~/rknpu2/examples/rknn_api_demo/install/rknn_api_demo_Linux$ export LD_LIBRARY_PATH=./lib coolpi@coolpi:~/rknpu2/examples/rknn_api_demo/install/rknn_api_demo_Linux$ sudo ./rknn_create_mem_with_rga_demo model/RK3588/mobilenet_v1.rknn model/dog_224x224.jpg rknn_api/rknnrt version: 1.4.0 (a10f100eb@2022-09-09T09:07:14), driver version: 0.8.2 model input num: 1, output num: 1 input tensors: index=0, name=input, n_dims=4, dims=[1, 224, 224, 3], n_elems=150528, size=150528, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=0, scale=0.007812 output tensors: index=0, name=MobilenetV1/Predictions/Reshape_1, n_dims=2, dims=[1, 1001, 0, 0], n_elems=1001, size=1001, fmt=UNDEFINED, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003906 custom string: rga_api version 1.8.0_[0] Begin perf ... 0: Elapse Time = 2.04ms, FPS = 489.72 ---- Top5 ---- 0.984375 - 156 0.007812 - 155 0.003906 - 205 0.000000 - 0 0.000000 - 1 coolpi@coolpi:~/rknpu2/examples/rknn_api_demo/install/rknn_api_demo_Linux$ sudo ./rknn_create_mem_demo model/RK3588/mobilenet_v1.rknn model/dog_224x224.jpg rknn_api/rknnrt version: 1.4.0 (a10f100eb@2022-09-09T09:07:14), driver version: 0.8.2 model input num: 1, output num: 1 input tensors: index=0, name=input, n_dims=4, dims=[1, 224, 224, 3], n_elems=150528, size=150528, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=0, scale=0.007812 output tensors: index=0, name=MobilenetV1/Predictions/Reshape_1, n_dims=2, dims=[1, 1001, 0, 0], n_elems=1001, size=1001, fmt=UNDEFINED, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003906 custom string: Begin perf ... 0: Elapse Time = 2.06ms, FPS = 484.50 ---- Top5 ---- 0.984375 - 156 0.007812 - 155 0.003906 - 205 0.000000 - 0 0.000000 - 1
-
@大法师 还真的是这个原因,sudo就可以,谢谢~
coolpi@coolpi:~/develop/rknpu2/examples/rknn_api_demo/install/rknn_api_demo_Linux$ export LD_LIBRARY_PATH=./lib coolpi@coolpi:~/develop/rknpu2/examples/rknn_api_demo/install/rknn_api_demo_Linux$ sudo ./rknn_create_mem_with_rga_demo model/RK3588/mobilenet_v1.rknn model/dog_224x224.jpg [sudo] password for coolpi: rknn_api/rknnrt version: 1.4.0 (a10f100eb@2022-09-09T09:07:14), driver version: 0.8.2 model input num: 1, output num: 1 input tensors: index=0, name=input, n_dims=4, dims=[1, 224, 224, 3], n_elems=150528, size=150528, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=0, scale=0.007812 output tensors: index=0, name=MobilenetV1/Predictions/Reshape_1, n_dims=2, dims=[1, 1001, 0, 0], n_elems=1001, size=1001, fmt=UNDEFINED, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003906 custom string: rga_api version 1.8.0_[0] Begin perf ... 0: Elapse Time = 1.97ms, FPS = 508.13 ---- Top5 ---- 0.984375 - 156 0.007812 - 155 0.003906 - 205 0.000000 - 0 0.000000 - 1 coolpi@coolpi:~/develop/rknpu2/examples/rknn_api_demo/install/rknn_api_demo_Linux$ ./rknn_create_mem_with_rga_demo model/RK3588/mobilenet_v1.rknn model/dog_224x224.jpg E RKNN: [21:30:43.503] failed to open rknpu module, need to insmod rknpu dirver! E RKNN: [21:30:43.503] failed to open rknn device! rknn_init fail! ret=-1
-
更新系统
USB移动硬盘刷机启动
-
@大法师 22.04的镜像什么时候更新呢
-
@allen 22.04已有更新。
-
This post is deleted! -
这两个镜像,我试了下,Xbox手柄都不行,免驱的(我的是无线手柄)。
原生的Ubuntu20 可以的
找不到 /dev/input/js0 -
@ccjjww1222
默认内核驱动未选择CONFIG_INPUT_JOYDEV。后续默认选配再发布镜像,当然您也可以自行编译更新替换
-
@大法师 啥时候能发布? 我自己编译的话,系统挂了。重新安装还要重新编译,麻烦。等你们的镜像
-
请问一下,相同系统版本号,不同日期上传的特性哪里有介绍么?
-
为什么我 两张闪迪 一张京东卡 离线刷 只有京东卡可以用,闪迪的不能用,而树莓派三张卡全能用,而京东卡虽然读取速度也有100MB/s 但巨卡,20.04 鼠标都卡的动不了开机得10分钟是什么原因
-
@myhexb 串口打印一下启动的日志信息,发上来。
-
@myhexb 用哪个镜像文件测试?
-
@george 完全启动不起来 可以打印日志吗 该怎么打印 反复显示 cool pi
-
@大法师 用的官方文件百度网盘ubuntu文件夹里的 20.04桌面版 3.52g的那个
-
@大法师 闪迪的卡就像没插卡一样,反复显示 coolpi 京东卡可以进去 但特别卡,而且非正常关机后大概率也会进不去系统,不过一般会卡到 - 界面。需要重新刷机才行
-
@george 嫊-oZp@fde50000 disconnected
hdmi@fde80000 disconnected
Autoboot in 1 seconds
trsv ln0 mon rx cdr lock timeout
dp@fde50000 disconnected
hdmi@fde80000 disconnected
starting USB...
Bus usb@fc880000: USB EHCI 1.00
scanning bus usb@fc880000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) foundDevice 0: unknown device
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
287 bytes read in 8 ms (34.2 KiB/s)
1: Ubuntu coolpi
Retrieving file: /initrd.img
reading /initrd.img
8775086 bytes read in 709 ms (11.8 MiB/s)
Retrieving file: /Image
reading /Image
37294592 bytes read in 2992 ms (11.9 MiB/s)
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 rtleth=ethaddr:52:84:fe:01:16:93
Retrieving file: /rk3588s-cp4.dtb
reading /rk3588s-cp4.dtb
141784 bytes read in 18 ms (7.5 MiB/s)Flattened Device Tree blob at 0x0a100000
Booting using the fdt blob at 0x0a100000
Loading Ramdisk to eb176000, end eb9d45ae ... OK
Loading Device Tree to 00000000eb150000, end 00000000eb1759d7 ... OK
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x09400000 - 0xf0000000 (size: 0xe6c00000)
Adding bank: 0x100000000 - 0x200000000 (size: 0x100000000)
Adding bank: 0x2f0000000 - 0x300000000 (size: 0x10000000)Starting kernel ...
I/TC: Secondary CPU 4 initializing
I/TC: Secondary CPU 4 switching to normal world boot
I/TC: Secondary CPU 5 initializing
I/TC: Secondary CPU 5 switching to normal world boot
I/TC: Secondary CPU 6 initializing
I/TC: Secondary CPU 6 switching to normal world boot
I/TC: Secondary CPU 7 initializing
I/TC: Secondary CPU 7 switching to normal world boot
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
I/TC: Secondary CPU 3 initializing
I/TC: Secondary CPU 3 switching to normal world boot
[ 8.386768] rk-pcie fe190000.pcie: IRQ msi not found
[ 8.386784] rk-pcie fe190000.pcie: Missing config reg space
[ 8.386875] rk-pcie fe190000.pcie: Missing config reg space
[ 8.386902] rk-pcie fe190000.pcie: invalid resource
[ 8.389687] mpp-iep2 fdbb0000.iep: allocate roi buffer failed
[ 8.390791] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_a is not found!
[ 8.390796] rkvdec2_init:1010: No niu aclk reset resource define
[ 8.390799] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_h is not found!
[ 8.390802] rkvdec2_init:1013: No niu hclk reset resource define
[ 8.391320] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_a is not found!
[ 8.391324] rkvdec2_init:1010: No niu aclk reset resource define
[ 8.391327] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_h is not found!
[ 8.391330] rkvdec2_init:1013: No niu hclk reset resource define
[ 8.393004] mpp_iommu_probe:434: failed to get device node
[ 8.393008] mpp_av1dec av1d-master: failed to attach iommu
[ 8.517456] rockchip-drm display-subsystem: connector[HDMI-A-1] can't found any modes
[ 8.525303] rockchip-drm display-subsystem: failed to show kernel logo
[ 8.704582] rk806 spi2.0: no sleep-setting state
[ 8.709201] rk806 spi2.0: no reset-setting pinctrl state
[ 8.714503] rk806 spi2.0: no dvs-setting pinctrl state
[ 8.926386] tinker-mcu: send_cmds: send command failed, ret = -6, retry again!
[ 8.933738] tinker-mcu: send_cmds: send command failed, ret = -6, retry again!
[ 8.941087] tinker-mcu: send_cmds: send command failed, ret = -6, retry again!
[ 8.948434] tinker-mcu: send_cmds: send command failed, ret = -6, retry again!
[ 8.955782] tinker-mcu: send_cmds: send command failed, ret = -6, retry again!
[ 8.962994] tinker-mcu: send_cmds: send command failed
[ 8.968123] tinker-mcu: tinker_mcu_probe: init_cmd_check failed, -6
[ 9.539506] tinker-ft5406: tinker_ft5406_probe: wait connected timeout
[ 9.620266] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[ 9.630200] debugfs: File 'Capture' in directory 'dapm' already present!
[ 9.652203] debugfs: Directory 'fb000000.gpu-mali' with parent 'vdd_gpu_s0' already present!
[ 9.851268] ov5647 8-0036: Unsupported clock frequency: 24000000
[ 9.991259] debugfs: File 'Left Hp mixer' in directory 'dapm' already present!
[ 9.998472] debugfs: File 'Right Hp mixer' in directory 'dapm' already present!
[ 10.005768] debugfs: File 'HPCP L' in directory 'dapm' already present!
[ 10.012367] debugfs: File 'HPCP R' in directory 'dapm' already present!
[ 10.018969] debugfs: File 'HPVOL L' in directory 'dapm' already present!
[ 10.025654] debugfs: File 'HPVOL R' in directory 'dapm' already present!
[ 10.034611] rockchip_headset rk-headset: Can not read property headset_gpio
[ 10.042867] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdab0000-0xfdabffff]
[ 10.051384] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdac0000-0xfdacffff]
[ 10.059894] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdad0000-0xfdadffff]
[ 10.072022] debugfs: Directory 'fdab0000.npu-rknpu' with parent 'vdd_npu_s0' already present!
[ 10.100903] RKNPU fdab0000.npu: failed to find power_model node
[ 10.106814] RKNPU fdab0000.npu: RKNPU: failed to initialize power model
[ 10.113414] RKNPU fdab0000.npu: RKNPU: failed to get dynamic-coefficient
Gave up waiting for root file system device. Common problems:- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! LABEL=writable does not exist. Dropping to a shell!
BusyBox v1.30.1 (Ubuntu 1:1.30.1-7ubuntu3) built-in shell (ash)
Enter 'help' for a list of built-in commands.(initramfs) [6n
- Boot args (cat /proc/cmdline)
-
@george DDR V1.09 a930779e06 typ 22/11/21-17:50:56
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 D镈DR V1.09 a930779e06 typ 22/11/21-17:50:56
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
Manufacturer ID:0xff
CH0 RX Vref:29.7%, TX Vref:21.8%,21.8%
CH1 RX Vref:30.7%, TX Vref:21.8%,22.8%
CH2 RX Vref:30.7%, TX Vref:20.8%,20.8%
CH3 RX Vref:29.7%, TX Vref:22.8%,22.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-481-g17b41886e:derrick.huang
NOTICE: BL31: Built : 16:20:07, Dec 7 2022
INFO: spec: 0x13
INFO: ext 32k is not valid
INFO: ddr: stride-en 4CH
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0
INFO: system boots from cpu-hwid-0
INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO: dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO: dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO: dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO: dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO: BL31: Initialising Exception Handling Framework
INFO: BL31: Initializing runtime services
INFO: BL31: Initializing BL32
INFO: hdmirx_handler: dma not on, ret
I/TC:
I/TC: OP-TEE version: 3.13.0-652-g4542e1efd #derrick.huang (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #5 2022骞?09鏈?20鏃?鏄熸湡浜?09:41:09 CST aarch64
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9COOLPI LOADER BY YANYI(Jan 04 2023)
DRAM: 8 GiB
Using default environment0 2 1 3 6 8 7 9 trsv ln0 mon rx cdr lock timeout
dp@fde50000 disconnected
hdmi@fde80000 disconnected
Autoboot in 1 seconds
trsv ln0 mon rx cdr lock timeout
dp@fde50000 disconnected
hdmi@fde80000 disconnected
starting USB...
Bus usb@fc880000: USB EHCI 1.00
scanning bus usb@fc880000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) foundDevice 0: unknown device
switch to partitions #0, OK
mmc1 is current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Card did not respond to voltage select!
mmc_init: -95, time 17
Loading order: usb - tf - emmc
bank id invalid
request for 141 failed:-22
bank id invalid
request for 141 failed:-22
resetting USB...
Bus usb@fc880000: USB EHCI 1.00
scanning bus usb@fc880000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
** Bad device usb 0 **
** Bad device usb 0 **
switch to partitions #0, OK
mmc1 is current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Card did not respond to voltage select!
mmc_init: -95, time 16
Card did not respond to voltage select!
mmc_init: -95, time 16
** Bad device mmc 0 **
Card did not respond to voltage select!
mmc_init: -95, time 17
** Bad device mmc 0 **
DDR V1.09 a930779e06 typ 22/11/21-17:50:56
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
Manufacturer ID:0xff
CH0 RX Vref:30.7%, TX Vref:21.8%,21.8%
CH1 RX Vref:30.7%, TX Vref:22.8%,21.8%
CH2 RX Vref:30.7%, TX Vref:20.8%,20.8%
CH3 RX Vref:30.7%, TX Vref:22.8%,22.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-481-g17b41886e:derrick.huang
NOTICE: BL31: Built : 16:20:07, Dec 7 2022
INFO: spec: 0x13
INFO: ext 32k is valid
INFO: ddr: stride-en 4CH
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0
INFO: system boots from cpu-hwid-0
INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO: dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO: dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO: dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO: dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO: BL31: Initialising Exception Handling Framework
INFO: BL31: Initializing runtime services
INFO: BL31: Initializing BL32
INFO: hdmirx_handler: dma not on, ret
I/TC:
I/TC: OP-TEE version: 3.13.0-652-g4542e1efd #derrick.huang (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #5 2022骞?09鏈?20鏃?鏄熸湡浜?09:41:09 CST aarch64
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9COOLPI LOADER BY YANYI(Jan 04 2023)
DRAM: 8 GiB
Using default environment0 2 1 3 6 8 7 9 trsv ln0 mon rx cdr lock timeout
dp@fde50000 disconnected
hdmi@fde80000 disconnected
Autoboot in 1 seconds
trsv ln0 mon rx cdr lock timeout
dp@fde50000 disconnected
hdmi@fde80000 disconnected
starting USB...
Bus usb@fc880000: USB EHCI 1.00
scanning bus usb@fc880000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) foundDevice 0: unknown device
switch to partitions #0, OK
mmc1 is current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Card did not respond to voltage select!
mmc_init: -95, time 17
Loading order: usb - tf - emmc
bank id invalid
request for 141 failed:-22
bank id invalid
request for 141 failed:-22
resetting USB...
Bus usb@fc880000: USB EHCI 1.00
scanning bus usb@fc880000 for devices...这个是完全启动 不起来的日志
-
@myhexb 这个是镜像没有制作成功。如果有读卡器可以先格式化一次卡,然后再制作,闪迪的卡我一直在用,没有什么问题。
-
@george 第一张闪迪卡各种方式格式化 试了4 5次了 ,第二张也试了一次 还是不行
-
@myhexb 可以换个镜像再测试。从log看的情况就是卡没有识别到或者rootfs没有成功挂载。
-
@george 换22.04 也还是一样的情况
-
@myhexb 用读卡器连接,插在USB3下层端口,启动试试
-
@大法师 试了 usb插 硬盘盒子和 读卡器 还是只有京东卡可以启动,闪迪卡可以找到卡 但不能启动 ,重做和换镜像文件都没成功,0 2 1 3 6 8 7 9 trsv ln0 mon rx cdr lock timeout
dp@fde50000 disconnected
hdmi@fde80000 disconnected
Autoboot in 1 seconds
trsv ln0 mon rx cdr lock timeout
dp@fde50000 disconnected
hdmi@fde80000 disconnected
starting 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) foundDevice 0: Vendor: Generic Rev: 1532 Prod: STORAGE DEVICE
Type: Removable Hard Disk
Capacity: 60906.0 MB = 59.4 GB (124735488 x 512)
... is now current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type ** -
@大法师 硬盘盒子干脆就找不到usb设备 ,
-
@myhexb said in Coolpi 4b Ubuntu20.04 原生系统:
@大法师 硬盘盒子干脆就找不到usb设备 ,
硬盘盒需要更新loader,且需要注意适配器供电功率
https://www.cool-pi.com/topic/170/coolpi-4b-loading-from-usb-ssd