• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    Coolpi 4b Ubuntu20.04 原生系统

    Scheduled Pinned Locked Moved Ubuntu
    41 Posts 10 Posters 3.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      night @大法师
      last edited by

      @大法师 你好,请教下这个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!
      不重刷其他版本系统,需要怎么处理呢?谢谢~

      J 1 Reply Last reply Reply Quote 0
      • J
        jack_admin @night
        last edited by

        @night https://www.cool-pi.com/topic/114/ubuntu20-04-install-rknn-toolkit-lite2

        N 1 Reply Last reply Reply Quote 0
        • N
          night @jack_admin
          last edited by

          @jack_admin
          不行呢,尝试了一下,还是报 insmod rknpu driver的错误

          大法师大 1 Reply Last reply Reply Quote 0
          • 大法师大
            大法师 @night
            last edited by jack_admin

            @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
            

            jack@cool-pi.com

            N 1 Reply Last reply Reply Quote 0
            • N
              night @大法师
              last edited by

              @大法师 还真的是这个原因,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
              
              
              
              1 Reply Last reply Reply Quote 0
              • 大法师大
                大法师
                last edited by 大法师

                更新系统

                USB移动硬盘刷机启动
                d96b3d9d-542e-4bb5-8be4-34202d33b935-1672977650999.png

                jack@cool-pi.com

                A 1 Reply Last reply Reply Quote 0
                • A
                  allen @大法师
                  last edited by

                  @大法师 22.04的镜像什么时候更新呢

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    jack_admin @allen
                    last edited by

                    @allen 22.04已有更新。

                    1 Reply Last reply Reply Quote 0
                    • B
                      bbsvs2000 @大法师
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • C
                        ccjjww1222
                        last edited by

                        这两个镜像,我试了下,Xbox手柄都不行,免驱的(我的是无线手柄)。
                        原生的Ubuntu20 可以的
                        找不到 /dev/input/js0

                        大法师大 1 Reply Last reply Reply Quote 0
                        • 大法师大
                          大法师 @ccjjww1222
                          last edited by 大法师

                          @ccjjww1222
                          默认内核驱动未选择CONFIG_INPUT_JOYDEV。

                          后续默认选配再发布镜像,当然您也可以自行编译更新替换

                          jack@cool-pi.com

                          C 1 Reply Last reply Reply Quote 0
                          • C
                            ccjjww1222 @大法师
                            last edited by

                            @大法师 啥时候能发布? 我自己编译的话,系统挂了。重新安装还要重新编译,麻烦。等你们的镜像

                            1 Reply Last reply Reply Quote 0
                            • S
                              shengxia
                              last edited by

                              请问一下,相同系统版本号,不同日期上传的特性哪里有介绍么?

                              1 Reply Last reply Reply Quote 0
                              • M
                                myhexb
                                last edited by

                                为什么我 两张闪迪 一张京东卡 离线刷 只有京东卡可以用,闪迪的不能用,而树莓派三张卡全能用,而京东卡虽然读取速度也有100MB/s 但巨卡,20.04 鼠标都卡的动不了开机得10分钟是什么原因

                                G 大法师大 2 Replies Last reply Reply Quote 0
                                • G
                                  george @myhexb
                                  last edited by

                                  @myhexb 串口打印一下启动的日志信息,发上来。

                                  M 3 Replies Last reply Reply Quote 0
                                  • 大法师大
                                    大法师 @myhexb
                                    last edited by

                                    @myhexb 用哪个镜像文件测试?

                                    jack@cool-pi.com

                                    M 2 Replies Last reply Reply Quote 0
                                    • M
                                      myhexb @george
                                      last edited by

                                      @george 完全启动不起来 可以打印日志吗 该怎么打印 反复显示 cool pi

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        myhexb @大法师
                                        last edited by

                                        @大法师 用的官方文件百度网盘ubuntu文件夹里的 20.04桌面版 3.52g的那个

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          myhexb @大法师
                                          last edited by

                                          @大法师 闪迪的卡就像没插卡一样,反复显示 coolpi 京东卡可以进去 但特别卡,而且非正常关机后大概率也会进不去系统,不过一般会卡到 - 界面。需要重新刷机才行

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            myhexb @george
                                            last edited by

                                            @george 嫊-oZp@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) found

                                            Device 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) 

                                            G 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post