Page 2 of 2

Re: luckfox pico ultra w

Posted: 2025-03-19 14:29
by BeiNuoKeLi
Crocodile wrote: 2025-03-17 2:10 1 使用 udhcpc 获取到的 IP 大概率不会出现 IP 占用问题,板端也没有开启防火墙,如果使用手机热点可以ping通大概率是路由器设置问题,网络环境比较复杂多样需要结合实际情况进行配置

2 SDK 是安装在电脑上的,不是安装在 RV1106 SOC 上的;SDK 用于配置编译新镜像,是开发 Luckfox Pico Ultra 必须要使用的工具,需要具备一定的嵌入式开发基础

3 opencv-mobile 链接还是工具链的问题,您使用的还是PC 上的交叉编译工具不是arm-rockchip830-linux-uclibcgnueabihf- 工具,请了解编译相关知识修改 CMakeList.txt 工具

4 opencv-mobile + librtsp 只是我提供的一个方向,具体的操作需要您了解软件移植的相关知识后独立完成,opencv-mobile 本身仅支持 CSI 摄像头,在实现 USB 图像推流的过程中仅充当图像处理的作用,您还需要了解如何使用 v4l2 库获取 USB 摄像头图像和使用 rkmpi 库将原始图像编码为 H264 帧最后再通过 librtsp 将图像推流出去
Image
我添加了python库后重新编译中出现了这个错误,有影响吗。我编译完后是不是找到image文件然后用ST烧录就行了对吧

Re: luckfox pico ultra w

Posted: 2025-03-20 1:07
by pimouren
你好,这个错误的原因可能是没有使用梯子,导致无法正常访问。你这张截图没有截完整,完整截图后应该会显示这个错误信息。
8939A05C09B76A1F2F4211981B5020DD.jpg

Re: luckfox pico ultra w

Posted: 2025-03-22 3:01
by BeiNuoKeLi
pimouren wrote: 2025-03-20 1:07 你好,这个错误的原因可能是没有使用梯子,导致无法正常访问。你这张截图没有截完整,完整截图后应该会显示这个错误信息。8939A05C09B76A1F2F4211981B5020DD.jpg
你好,根据提示,我成功编译出了镜像文件,再将它移植到windows后,用soctoolkit写入时出现了问题Image
当我将编译后的全部文件进行烧录时就成功了,当然我原先在板上的操作也没了

Code: Select all

▒
Welcome to luckfox pico
luckfox login: root
Password:
[root@luckfox root]# pip
Error processing line 1 of /usr/lib/python3.11/site-packages/distutils-precedence.pth:

Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
  File "<frozen site>", line 186, in addpackage
  File "<string>", line 1, in <module>
ImportError: bad magic number in '_distutils_hack': b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen site>", line 616, in <module>
  File "<frozen site>", line 603, in main
  File "<frozen site>", line 384, in addsitepackages
  File "<frozen site>", line 226, in addsitedir
  File "<frozen site>", line 196, in addpackage
ImportError: bad magic number in 'traceback': b''
[root@luckfox root]# pip install opencv-python -i https://pypi.tuna.tsinghua.edu
.cn/simple
Error processing line 1 of /usr/lib/python3.11/site-packages/distutils-precedence.pth:

Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
  File "<frozen site>", line 186, in addpackage
  File "<string>", line 1, in <module>
ImportError: bad magic number in '_distutils_hack': b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen site>", line 616, in <module>
  File "<frozen site>", line 603, in main
  File "<frozen site>", line 384, in addsitepackages
  File "<frozen site>", line 226, in addsitedir
  File "<frozen site>", line 196, in addpackage
ImportError: bad magic number in 'traceback': b''
[root@luckfox root]# yum remove python3.11
-sh: yum: not found
[root@luckfox root]# find / -name "*.pyc" -delete
find: unrecognized: -delete▒
BusyBox v1.36.1 (2025-03-21 20:42:21 CST) multi-call binary.

Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS]

Search for files and perform actions on them.
First failed action stops processing of current file.
Defaults: PATH is current directory, action is '-print'

        -L,-follow      Follow symlinks
        -H              ...on command line only
        -xdev           Don't descend directories on other filesystems
        -maxdepth N     Descend at most N levels. -maxdepth 0 applies
                        actions to command line arguments only
        -mindepth N     Don't act on first N levels
        -depth          Act on directory *after* traversing it

Actions:
        ( ACTIONS )     Group actions for -o / -a
        ! ACT           Invert ACT's success/failure
        ACT1 [-a] ACT2  If ACT1 fails, stop, else do ACT2
        ACT1 -o ACT2    If ACT1 succeeds, stop, else do ACT2
                        Note: -a has higher priority than -o
        -name PATTERN   Match file name (w/o directory name) to PATTERN
        -iname PATTERN  Case insensitive -name
        -path PATTERN   Match path to PATTERN
        -ipath PATTERN  Case insensitive -path
        -regex PATTERN  Match path to regex PATTERN
        -type X         File type is X (one of: f,d,l,b,c,s,p)
        -executable     File is executable
        -perm MASK      At least one mask bit (+MASK), all bits (-MASK),
                        or exactly MASK bits are set in file's mode
        -mtime DAYS     mtime is greater than (+N), less than (-N),
                        or exactly N days in the past
        -atime DAYS     atime +N/-N/N days in the past
        -ctime DAYS     ctime +N/-N/N days in the past
        -mmin MINS      mtime is greater than (+N), less than (-N),
                        or exactly N minutes in the past
        -amin MINS      atime +N/-N/N minutes in the past
        -cmin MINS      ctime +N/-N/N minutes in the past
        -newer FILE     mtime is more recent than FILE's
        -samefile FILE  File is same as FILE
        -user NAME/ID   File is owned by given user
        -group NAME/ID  File is owned by given group
        -size N[bck]    File size is N (c:bytes,k:kbytes,b:512 bytes(def.))
                        +/-N: file size is bigger/smaller than N
        -empty          Match empty file/directory
        -prune          If current file is directory, don't descend into it
If none of the following actions is specified, -print is assumed
        -print          Print file name
        -print0         Print file name, NUL terminated
        -exec CMD ARG ; Run CMD with all instances of {} replaced by
                        file name. Fails if CMD exits with nonzero
        -exec CMD ARG + Run CMD with {} replaced by list of file names
        -quit           Exit
[root@luckfox root]# pip install opencv-python -i https://pypi.tuna.tsinghua.edu
.cn/simple
Error processing line 1 of /usr/lib/python3.11/site-packages/distutils-precedence.pth:

Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
  File "<frozen site>", line 186, in addpackage
  File "<string>", line 1, in <module>
ImportError: bad magic number in '_distutils_hack': b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen site>", line 616, in <module>
  File "<frozen site>", line 603, in main
  File "<frozen site>", line 384, in addsitepackages
  File "<frozen site>", line 226, in addsitedir
  File "<frozen site>", line 196, in addpackage
ImportError: bad magic number in 'traceback': b''
[root@luckfox root]# ls
[root@luckfox root]# ls -a
.   ..

[root@luckfox root]# python3
Error processing line 1 of /usr/lib/python3.11/site-packages/distutils-precedence.pth:

Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
  File "<frozen site>", line 186, in addpackage
  File "<string>", line 1, in <module>
ImportError: bad magic number in '_distutils_hack': b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen site>", line 616, in <module>
  File "<frozen site>", line 603, in main
  File "<frozen site>", line 384, in addsitepackages
  File "<frozen site>", line 226, in addsitedir
  File "<frozen site>", line 196, in addpackage
ImportError: bad magic number in 'traceback': b''
[root@luckfox root]# python3 -m compileall /usr/lib/python3.11
Error processing line 1 of /usr/lib/python3.11/site-packages/distutils-precedence.pth:

Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
  File "<frozen site>", line 186, in addpackage
  File "<string>", line 1, in <module>
ImportError: bad magic number in '_distutils_hack': b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen site>", line 616, in <module>
  File "<frozen site>", line 603, in main
  File "<frozen site>", line 384, in addsitepackages
  File "<frozen site>", line 226, in addsitedir
  File "<frozen site>", line 196, in addpackage
ImportError: bad magic number in 'traceback': b''
[root@luckfox root]#
可是当我运行我在ubuntu配置好的python-pip是python已经不能用了,这是为什么

Re: luckfox pico ultra w

Posted: 2025-03-25 1:38
by pimouren
你好,如果想单独下载boot.img,操作如下图所示。
下载boot.png

Re: luckfox pico ultra w

Posted: 2025-03-26 4:45
by BeiNuoKeLi
pimouren wrote: 2025-03-25 1:38 你好,如果想单独下载boot.img,操作如下图所示。下载boot.png
你好,按理说我的磁盘内存是够的,为什么下不来opencvImage
以及我在工具中找到了这个opencv3/4这个又是怎么用的Image
屏幕截图 2025-03-26 124605.png

Re: luckfox pico ultra w

Posted: 2025-03-29 2:13
by Crocodile
pip 安装的库需要拉取源码和软件包到本地,默认的地址是root用户的家目录下使用oem分区的存储空间,可以使用

Code: Select all

mkdir /pip_tmp
export TMPDIR=/pip_tmp 
让pip安装的临时文件放置到根文件系统上
buildroot menuconfig 中的 opencv 是 C/C++ 的opencv库