Firefly开源社区

123
发表新贴
打印 上一主题 下一主题

[技术讨论] 如何访问底板上特定规格的GPIO接口

154

积分

0

威望

0

贡献

技术小白

积分
154
发表于 2022-7-8 17:03:07        只看该作者  11#
本帖最后由 music1913 于 2022-7-8 17:04 编辑
799959745 发表于 2022-7-8 16:41
你可以使用串口4当作GPIO普通管脚使用。分别是:(UART4_TX)GPIO2_A6 和 (UART4_RX)GPIO2_A7。需要在设 ...
因为Linux了解较少,请问能帮忙提供一下编辑和应用 Rv1126 Linux Device Tree 的步骤或者文档吗?我甚至没有找到 rv1126-firefly-rk809.dtsi 文件的位置。
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2022-7-9 09:27:37        只看该作者  12#
你可以用 fine -name xxx 搜索一下。具体路径在:sdk/kernel/arch/arm/boot/dts/rv1126-firefly-jd4-BE-45.dtsi
回复

使用道具 举报

13

积分

0

威望

0

贡献

技术小白

积分
13
发表于 2022-7-9 16:47:33        只看该作者  13#
799959745 发表于 2022-7-8 15:06
1、规格书标错了,GPIO0_D6 应该改成 GPIO1_A1 。
2、GPIO口是很多的,但是需要配合底板的功能使用。一 ...

1, 改成GPIO1_A1后算出pin 为33, 可以通过echo 33 > /sys/class/gpio/export成功导出了,但是没能正确从这个引脚读到值。
我是这样做的:
在图中1处的引脚出使用5v跟接地,接到我的传感器上,在同一处的gpio(pin80)口上可以正确读到传感器触发后的值
然后保持传感器接入电源不变,把输出信号接到 pin33(图中2处),不能正确读到值了
问题:
图中1处 2处所用的GND 是相同的吗?我可以这样把用图中1处的作为传感器输入电源,把传感器输出接到图中2处吗?

1.png (474.74 KB, 下载次数: 964)

1.png
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2022-7-9 17:00:00        只看该作者  14#
你先确定管脚是否可以设置高低电平?不能的话要进行:echo out > direction 来设置 GPIO 为输出模式。然后再echo 1 > value设置高电平。万用表去量,看看是不是有电平变化。
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2022-7-9 17:01:49        只看该作者  15#
new_per 发表于 2022-7-9 16:47
1, 改成GPIO1_A1后算出pin 为33, 可以通过echo 33 > /sys/class/gpio/export成功导出了,但是没能正确从 ...

如果有电平变化的话,那就没问题了,剩下就是你的软硬件调试了。
回复

使用道具 举报

154

积分

0

威望

0

贡献

技术小白

积分
154
发表于 2022-7-11 12:07:25        只看该作者  16#
本帖最后由 music1913 于 2022-7-11 12:09 编辑
799959745 发表于 2022-7-9 09:27
你可以用 fine -name xxx 搜索一下。具体路径在:sdk/kernel/arch/arm/boot/dts/rv1126-firefly-jd4-BE-45. ...
  1. firefly@firefly:/$ sudo find -name rv1126-firefly-jd4-BE-45.dtsi
  2. firefly@firefly:/$
复制代码

我用上述命令并未搜索到相应的文件,同样采用统配符:


  1. firefly@firefly:/$ sudo find -name *.dtsi
  2. firefly@firefly:/$
复制代码

也没有搜索到任何内容。

这是我rv1126板子上的根目录结构,似乎并没有 sdk/kernel/arch/arm/boot/dts/

  1. firefly@firefly:/$ ls /
  2. bin   dev  home  lost+found  mnt  proc  root-ro  sbin  sys  userdata  var
  3. boot  etc  lib   media       opt  root  run      srv   tmp  usr       vendor
复制代码

我使用的是firefly 官方的 debian 10 系统,请帮忙再确认一下文件路径。
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2022-7-11 14:50:29        只看该作者  17#
本帖最后由 799959745 于 2022-7-11 14:55 编辑
music1913 发表于 2022-7-11 12:07
我用上述命令并未搜索到相应的文件,同样采用统配符:

你有下载firefly官方的RV1126 SDK开发包吗?不是在板子上跑find命令,是在PC电脑上跑。使用find命令查找的SDK文件在哪里。
你先看下维基教程和相关的开发流程吧。内核需要在PC上面编译烧录进板子,不是直接在板子上编译的。
回复

使用道具 举报

154

积分

0

威望

0

贡献

技术小白

积分
154
发表于 2022-7-12 13:10:02        只看该作者  18#
本帖最后由 music1913 于 2022-7-13 13:16 编辑
799959745 发表于 2022-7-11 14:50
你有下载firefly官方的RV1126 SDK开发包吗?不是在板子上跑find命令,是在PC电脑上跑。使用find命令查找 ...

谢谢回复。
我已经在 Ubuntu 20.04.4 (x64) PC机上安装了SDK: rv1126_rv1109_linux_release_20211022,在修改了文件 ./kernel/arch/arm/boot/dts/rv1126-firefly-rk809.dtsi 到你提供的示例内容:

  1. /*
  2. &uart4 {
  3.         pinctrl-0 = <&uart4m1_xfer>;
  4.         status = "okay";
  5. };
  6. */
复制代码
后,再运行:

  1. ./build.sh device/rockchip/rv1126_rv1109/aio-rv1126-jd4-BE-45.mk
复制代码

  • 尝试进行部分编译
    我理解我当前的改动是仅需要单独编译 kernel:
    1. ./build.sh kernel
    复制代码

    似乎并不成功,以下为编译结果的日志:
    (rv1126_linux_sdk_build) shawn@DESKTOP-9NG0VFK:~/Downloads/firefly_rv1126_linux_SDK/rv1126_rv1109_linux_release_20211022$ ./build.sh kernel
    processing board option: kernel
    processing option: kernel
    ============Start building kernel============
    TARGET_ARCH          =arm
    TARGET_KERNEL_CONFIG =rv1126_firefly_defconfig
    TARGET_KERNEL_DTS    =rv1126-firefly-jd4-BE-45
    TARGET_KERNEL_CONFIG_FRAGMENT =
    ==========================================
    /home/shawn/Downloads/firefly_rv1126_linux_SDK/rv1126_rv1109_linux_release_20211022
    arch/arm/configs/rv1126_firefly_defconfig:384:warning: override: reassigning to symbol WIFI_BUILD_MODULE
    arch/arm/configs/rv1126_firefly_defconfig:385:warning: override: reassigning to symbol AP6XXX
    arch/arm/configs/rv1126_firefly_defconfig:385:warning: override: AP6XXX changes choice state
    arch/arm/configs/rv1126_firefly_defconfig:428:warning: override: reassigning to symbol SCSI_PROC_FS
    #
    # configuration written to .config
    #
    scripts/kconfig/conf  --syncconfig Kconfig
      CALL    scripts/checksyscalls.sh
      CHK     include/generated/compile.h
      Kernel: arch/arm/boot/Image is ready
      Kernel: arch/arm/boot/zImage is ready
      Image:  kernel.img (with zImage) is ready
      CALL    scripts/checksyscalls.sh
      Building modules, stage 2.
      MODPOST 5 modules
      Image:  resource.img (with rv1126-firefly-jd4-BE-45.dtb logo.bmp logo_kernel.bmp) is ready
      Image:  boot.img (with Image ramdisk.img resource.img) is ready
      Image:  zboot.img (with zImage ramdisk.img resource.img) is ready
    fdt {
    kernel {
    ramdisk {
    resource {
    FIT description: U-Boot FIT source file for arm
    Created:         Tue Jul 12 12:55:43 2022
    Image 0 (fdt)
      Description:  unavailable
      Created:      Tue Jul 12 12:55:43 2022
      Type:         Flat Device Tree
      Compression:  uncompressed
      Data Size:    100953 Bytes = 98.59 KiB = 0.10 MiB
      Architecture: ARM
      Load Address: 0xffffff00
      Hash algo:    sha256
      Hash value:   c927f33d23678fb8ef17a92520df07c453aa7bf7c850e3722edd9c5f8e54b3e7
    Image 1 (kernel)
      Description:  unavailable
      Created:      Tue Jul 12 12:55:43 2022
      Type:         Kernel Image
      Compression:  uncompressed
      Data Size:    7295424 Bytes = 7124.44 KiB = 6.96 MiB
      Architecture: ARM
      OS:           Linux
      Load Address: 0xffffff01
      Entry Point:  0xffffff01
      Hash algo:    sha256
      Hash value:   60b14d0381d65526fab546434c096b14acf62b7c9291c2e95bed36b68b80ebe0
    Image 2 (ramdisk)
      Description:  unavailable
      Created:      Tue Jul 12 12:55:43 2022
      Type:         RAMDisk Image
      Compression:  uncompressed
      Data Size:    9160505 Bytes = 8945.81 KiB = 8.74 MiB
      Architecture: ARM
      OS:           Linux
      Load Address: 0xffffff02
      Entry Point:  unavailable
      Hash algo:    sha256
      Hash value:   34c8dbec64a0c800281419dccd445b0b6ff60dcb9c431584b823cc4088347bde
    Image 3 (resource)
      Description:  unavailable
      Created:      Tue Jul 12 12:55:43 2022
      Type:         Multi-File Image
      Compression:  uncompressed
      Data Size:    359424 Bytes = 351.00 KiB = 0.34 MiB
      Hash algo:    sha256
      Hash value:   8e84e6866b1162b9816818a8f6fb768be8ca5ba5b716875d7920ce51e075e419
    Default Configuration: 'conf'
    Configuration 0 (conf)
      Description:  unavailable
      Kernel:       kernel
      Init Ramdisk: ramdisk
      FDT:          fdt
    Running build_kernel succeeded.

    我查看文件夹:rv1126_rv1109_linux_release_20211022\rockdev\, 却只看到一个 boot.img 且文件大小为 100 byte:
  • 尝试进行全部编译
    运行命令:
    1. (rv1126_linux_sdk_build) shawn@DESKTOP-9NG0VFK:~/Downloads/firefly_rv1126_linux_SDK/rv1126_rv1109_linux_release_20211022$ ./build.sh
    复制代码
    经过1小时左右,还是报错,
    ...
    ...
    ...
    2022-07-12T14:58:02 checking for shared library run path origin... done
    2022-07-12T14:58:02 checking for CFPreferencesCopyAppValue... no
    2022-07-12T14:58:02 checking for CFLocaleCopyCurrent... no
    2022-07-12T14:58:02 checking whether to use NLS... no
    2022-07-12T14:58:02 checking for ANSI C header files... (cached) yes
    2022-07-12T14:58:02 checking for stdlib.h... (cached) yes
    2022-07-12T14:58:02 checking locale.h usability... yes
    2022-07-12T14:58:02 checking locale.h presence... yes
    2022-07-12T14:58:02 checking for locale.h... yes
    2022-07-12T14:58:02 checking for stdint.h... (cached) yes
    2022-07-12T14:58:02 checking sys/select.h usability... yes
    2022-07-12T14:58:02 checking sys/select.h presence... yes
    2022-07-12T14:58:02 checking for sys/select.h... yes
    2022-07-12T14:58:02 checking sys/time.h usability... yes
    2022-07-12T14:58:02 checking sys/time.h presence... yes
    2022-07-12T14:58:02 checking for sys/time.h... yes
    2022-07-12T14:58:02 checking whether strerror_r is declared... yes
    2022-07-12T14:58:02 checking for strerror_r... yes
    2022-07-12T14:58:02 checking whether strerror_r returns char *... yes
    2022-07-12T14:58:02 checking for strerror_r... (cached) yes
    2022-07-12T14:58:02 checking for flockfile... yes
    2022-07-12T14:58:02 checking for vasprintf... yes
    2022-07-12T14:58:02 checking for an ANSI C-conforming const... yes
    2022-07-12T14:58:03 checking size of int... 4
    2022-07-12T14:58:03 checking size of long... 4
    2022-07-12T14:58:03 checking size of long long... 8
    2022-07-12T14:58:03 checking whether time.h and sys/time.h may both be included... yes
    2022-07-12T14:58:03 checking size of time_t... 4
    2022-07-12T14:58:03 configure: checking for cc features
    2022-07-12T14:58:03 checking if gcc ignores unknown -Wno-* options... yes
    2022-07-12T14:58:03 checking if gcc supports -Wpointer-arith... yes
    2022-07-12T14:58:03 checking whether the GCC style aligned attribute is supported... yes
    2022-07-12T14:58:03 checking whether the visibility attribute is supported... yes
    2022-07-12T14:58:03 checking for broken visibility attribute... no
    2022-07-12T14:58:03 checking for broken alias attribute... no
    2022-07-12T14:58:03 checking if gcc supports -fvisibility=hidden... yes
    2022-07-12T14:58:03 checking whether imported symbols can be declared weak... guessing yes
    2022-07-12T14:58:03 checking pthread.h usability... yes
    2022-07-12T14:58:03 checking pthread.h presence... yes
    2022-07-12T14:58:03 checking for pthread.h... yes
    2022-07-12T14:58:04 checking for pthread_kill in -lpthread... yes
    2022-07-12T14:58:04 checking for multithread API to use... posix
    2022-07-12T14:58:04 checking for pthread_rwlock_t... yes
    2022-07-12T14:58:04 checking size of pthread_mutex_t... 24
    2022-07-12T14:58:04 checking for library containing sched_yield... none required
    2022-07-12T14:58:05 checking for unsigned long long int... yes
    2022-07-12T14:58:05 configure: checking system features for estream-printf
    2022-07-12T14:58:05 checking for stdint.h... (cached) yes
    2022-07-12T14:58:05 checking for long long int... yes
    2022-07-12T14:58:05 checking for long double... yes
    2022-07-12T14:58:05 checking for intmax_t... yes
    2022-07-12T14:58:05 checking for uintmax_t... yes
    2022-07-12T14:58:05 checking for ptrdiff_t... yes
    2022-07-12T14:58:05 checking size of unsigned long... 4
    2022-07-12T14:58:05 checking size of void *... 4
    2022-07-12T14:58:05 checking for nl_langinfo and THOUSANDS_SEP... yes
    2022-07-12T14:58:05 configure: checking system features for estream
    2022-07-12T14:58:05 checking for memrchr... yes
    2022-07-12T14:58:05 checking that generated files are newer than configure... done
    2022-07-12T14:58:05 configure: creating ./config.status
    2022-07-12T14:58:06 config.status: creating Makefile
    2022-07-12T14:58:06 config.status: creating doc/Makefile
    2022-07-12T14:58:06 config.status: creating po/Makefile.in
    2022-07-12T14:58:06 config.status: creating m4/Makefile
    2022-07-12T14:58:06 config.status: creating src/Makefile
    2022-07-12T14:58:06 config.status: creating tests/Makefile
    2022-07-12T14:58:06 config.status: creating lang/Makefile
    2022-07-12T14:58:06 config.status: creating lang/cl/Makefile
    2022-07-12T14:58:06 config.status: creating lang/cl/gpg-error.asd
    2022-07-12T14:58:06 config.status: creating src/versioninfo.rc
    2022-07-12T14:58:06 config.status: creating src/gpg-error.w32-manifest
    2022-07-12T14:58:06 config.status: creating src/gpg-error-config
    2022-07-12T14:58:06 config.status: creating config.h
    2022-07-12T14:58:06 config.status: executing depfiles commands
    2022-07-12T14:58:06 config.status: executing libtool commands
    2022-07-12T14:58:06 config.status: executing po-directories commands
    2022-07-12T14:58:06 config.status: creating po/POTFILES
    2022-07-12T14:58:06 config.status: creating po/Makefile
    2022-07-12T14:58:06 configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --enable-ipv6
    2022-07-12T14:58:06
    2022-07-12T14:58:06 libgpg-error v1.27 has been configured as follows:
    2022-07-12T14:58:06
    2022-07-12T14:58:06 Revision: c1668f6  (49510)
    2022-07-12T14:58:06 Platform: arm-buildroot-linux-gnueabihf
    2022-07-12T14:58:06
    2022-07-12T14:58:06 >>> libgpg-error 1.27 Building
    2022-07-12T14:58:06 PATH="/home/shawn/Downloads/firefly_rv1126_linux_SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/host/bin:/home/shawn/Downloads/firefly_rv1126_linux_SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/host/sbin:/home/shawn/.local/bin:/home/shawn/miniconda3/envs/rv1126_linux_sdk_build/bin:/home/shawn/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Microsoft/jdk-11.0.12.7-hotspot/bin:/mnt/c/Program Files/Eclipse Foundation/jdk-8.0.302.8-hotspot/bin:/mnt/c/Program Files/AdoptOpenJDK/jdk-11.0.11.9-hotspot/bin:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/PuTTY:/mnt/c/Program Files/Git LFS:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/c/Program Files/CMake/bin:/mnt/c/Program Files/dotnet:/mnt/c/Program Files (x86)/ZeroTier/One:/mnt/c/Program Files/Microsoft SQL Server/150/Tools/Binn:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0:/mnt/c/WINDOWS/System32/OpenSSH:/mnt/c/Users/music/Downloads/platform-tools_r33.0.1-windows/platform-tools:/mnt/c/Users/music/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/music/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/music/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/music/Downloads/java-1.8.0-openjdk-1.8.0.282-1.b08.dev.redhat.windows.x86_64/bin:/mnt/c/Users/music/.dotnet/tools:/snap/bin" RecoveryNoUi=true  /usr/bin/make -j9  -C /home/shawn/Downloads/firefly_rv1126_linux_SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/libgpg-error-1.27/
    2022-07-12T14:58:06 /usr/bin/make  all-recursive
    2022-07-12T14:58:06 Making all in m4
    2022-07-12T14:58:06 make[4]: Nothing to be done for 'all'.
    2022-07-12T14:58:06 Making all in src
    2022-07-12T14:58:06 gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
    2022-07-12T14:58:06 gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
    2022-07-12T14:58:06 gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1         ./err-sources.h.in >err-sources-sym.h
    2022-07-12T14:58:06 gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1         ./err-codes.h.in >err-codes-sym.h
    2022-07-12T14:58:06 gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1         -v prefix=GPG_ERR_ -v namespace=errnos_         ./errnos.in >errnos-sym.h
    2022-07-12T14:58:06 /usr/bin/gcc -g -O0 -I. -I. -o mkheader ./mkheader.c
    2022-07-12T14:58:06 gawk: ./mkerrnos.awk:86: warning: regexp escape sequence `#' is not a known regexp operator
    2022-07-12T14:58:06 gawk: cat ./gpg-error.def.in >_gpg-error.def.h
    2022-07-12T14:58:06 ./mkerrcodes1.awk:84: warning: regexp escape sequence `#' is not a known regexp operator
    2022-07-12T14:58:06 gawk: ./mkstrtable.awk:113: warning: regexp escape sequence `#' is not a known regexp operator
    2022-07-12T14:58:06 echo "/*dummy*/" > mkw32errmap.map.c
    2022-07-12T14:58:06 gawk: ./mkstrtable.awk:113: warning: regexp escape sequence `#' is not a known regexp operator
    2022-07-12T14:58:06 gawk: fatal: cannot use gawk builtin `namespace' as variable name
    2022-07-12T14:58:06 /home/shawn/Downloads/firefly_rv1126_linux_SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/host/bin/arm-linux-gnueabihf-cpp -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -P _mkerrcodes.h | grep GPG_ERR_ |                gawk -f ./mkerrcodes.awk >mkerrcodes.h
    2022-07-12T14:58:06 make[4]: *** [Makefile:1324: errnos-sym.h] Error 2
    2022-07-12T14:58:06 make[4]: *** Waiting for unfinished jobs....
    2022-07-12T14:58:06 /home/shawn/Downloads/firefly_rv1126_linux_SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/host/bin/arm-linux-gnueabihf-cpp -I. -I..   _gpg-error.def.h |   grep -v '^#' >gpg-error.def
    2022-07-12T14:58:06 gawk: ./mkerrcodes.awk:88: warning: regexp escape sequence `#' is not a known regexp operator
    2022-07-12T14:58:06 rm _gpg-error.def.h
    2022-07-12T14:58:06 rm _mkerrcodes.h
    2022-07-12T14:58:06 make[3]: *** [Makefile:474: all-recursive] Error 1
    2022-07-12T14:58:06 make[2]: *** [Makefile:405: all] Error 2
    2022-07-12T14:58:06 make[1]: *** [package/pkg-generic.mk:231: /home/shawn/Downloads/firefly_rv1126_linux_SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/libgpg-error-1.27/.stamp_built] Error 2
    2022-07-12T14:58:06 make: *** [/home/shawn/Downloads/firefly_rv1126_linux_SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/Makefile:16: _all] Error 2

    完全的日志请见附件中的 br.log.zip


另外,在安装编译环境的时候,也有一些错误,请见以下,不清楚是否和上述编译错误有关与否:

  1. sudo apt-get install repo git-core gitk git-gui gcc-arm-linux-gnueabihf u-boot-tools device-tree-compiler gcc-aarch64-linux-gnu mtools parted libudev-devlibusb-1.0-0-dev python-linaro-image-tools linaro-image-tools autoconf autotools-dev libsigsegv2 m4 intltool libdrm-dev curl sed make binutils build-essential gccg++ bash patch gzip gawk bzip2 perl tar cpio python unzip rsync file bc wgetlibncurses5 libqt4-dev libglib2.0-dev libgtk2.0-dev libglade2-dev cvs gitmercurial rsync openssh-client subversion asciidoc w3m dblatex graphviz python-matplotlib libc6:i386 libssl-dev expect fakeroot cmake flex bison liblz4-toollibtool keychain
  2. [sudo] password for shawn:
  3. Reading package lists... Done
  4. Building dependency tree
  5. Reading state information... Done
  6. Note, selecting 'git' instead of 'git-core'
  7. Note, selecting 'gccgo-10-multilib' for regex 'gccg+'
  8. Note, selecting 'gccgo-7-multilib' for regex 'gccg+'
  9. Note, selecting 'gccgo-8-multilib-x86-64-linux-gnux32' for regex 'gccg+'
  10. Note, selecting 'gccgo-10-multilib-mipsisa32r6-linux-gnu' for regex 'gccg+'
  11. Note, selecting 'gccgo-multilib-mipsisa32r6el-linux-gnu' for regex 'gccg+'
  12. Note, selecting 'gccgo-10-multilib-mips-linux-gnu' for regex 'gccg+'
  13. Note, selecting 'gccgo-riscv64-linux-gnu' for regex 'gccg+'
  14. Note, selecting 'gccgo-7-doc' for regex 'gccg+'
  15. Note, selecting 'gccgo-10-powerpc64-linux-gnu' for regex 'gccg+'
  16. Note, selecting 'gccgo-8-multilib-sparc64-linux-gnu' for regex 'gccg+'
  17. Note, selecting 'gccgo-aarch64-linux-gnu' for regex 'gccg+'
  18. Note, selecting 'gccgo-9-multilib' for regex 'gccg+'
  19. Note, selecting 'gccgo-9-mipsisa32r6el-linux-gnu' for regex 'gccg+'
  20. Note, selecting 'gccgo-8-multilib-i686-linux-gnu' for regex 'gccg+'
  21. Note, selecting 'gccgo-9-mipsisa64r6el-linux-gnuabi64' for regex 'gccg+'
  22. Note, selecting 'gccgo-9-s390x-linux-gnu' for regex 'gccg+'
  23. Note, selecting 'gccgo-8-arm-linux-gnueabihf' for regex 'gccg+'
  24. Note, selecting 'gccgo-8-powerpc-linux-gnu' for regex 'gccg+'
  25. Note, selecting 'gccgo-10-i686-linux-gnu' for regex 'gccg+'
  26. Note, selecting 'gccgo-10-multilib-powerpc64-linux-gnu' for regex 'gccg+'
  27. Note, selecting 'gccgo-10-mips-linux-gnu' for regex 'gccg+'
  28. Note, selecting 'gccgo-mipsel-linux-gnu' for regex 'gccg+'
  29. Note, selecting 'gccgo-mips64el-linux-gnuabi64' for regex 'gccg+'
  30. Note, selecting 'gccgo-9-powerpc-linux-gnu' for regex 'gccg+'
  31. Note, selecting 'gccgo-9-mipsisa64r6-linux-gnuabi64' for regex 'gccg+'
  32. Note, selecting 'gccgo-s390x-linux-gnu' for regex 'gccg+'
  33. Note, selecting 'gccgo-8-x86-64-linux-gnux32' for regex 'gccg+'
  34. Note, selecting 'gccgo-8-multilib-powerpc64-linux-gnu' for regex 'gccg+'
  35. Note, selecting 'gccgo-9-multilib-x86-64-linux-gnux32' for regex 'gccg+'
  36. Note, selecting 'gccgo-8-i686-linux-gnu' for regex 'gccg+'
  37. Note, selecting 'gccgo-9-multilib-mipsisa32r6el-linux-gnu' for regex 'gccg+'
  38. Note, selecting 'gccgo-multilib-mipsisa32r6-linux-gnu' for regex 'gccg+'
  39. Note, selecting 'gccgo-10-multilib-powerpc-linux-gnu' for regex 'gccg+'
  40. Note, selecting 'gccgo-10-multilib-mips64-linux-gnuabi64' for regex 'gccg+'
  41. Note, selecting 'gccgo-10-mips64-linux-gnuabi64' for regex 'gccg+'
  42. Note, selecting 'gccgo-10-mipsisa32r6-linux-gnu' for regex 'gccg+'
  43. Note, selecting 'gccgo-10-sparc64-linux-gnu' for regex 'gccg+'
  44. Note, selecting 'gccgo-8-multilib-s390x-linux-gnu' for regex 'gccg+'
  45. Note, selecting 'gccgo-i686-linux-gnu' for regex 'gccg+'
  46. Note, selecting 'gccgo-mips-linux-gnu' for regex 'gccg+'
  47. Note, selecting 'gccgo-multilib-sparc64-linux-gnu' for regex 'gccg+'
  48. Note, selecting 'gccgo-10-powerpc64le-linux-gnu' for regex 'gccg+'
  49. Note, selecting 'gccgo-8-sparc64-linux-gnu' for regex 'gccg+'
  50. Note, selecting 'gccgo-10-mips64el-linux-gnuabi64' for regex 'gccg+'
  51. Note, selecting 'gccgo-8-alpha-linux-gnu' for regex 'gccg+'
  52. Note, selecting 'gccgo-10-multilib-mipsisa64r6-linux-gnuabi64' for regex 'gccg+'
  53. Note, selecting 'gccgo-9-multilib-powerpc64-linux-gnu' for regex 'gccg+'
  54. Note, selecting 'gccgo-10-mipsel-linux-gnu' for regex 'gccg+'
  55. Note, selecting 'gccgo-10-arm-linux-gnueabi' for regex 'gccg+'
  56. Note, selecting 'gccgo-arm-linux-gnueabihf' for regex 'gccg+'
  57. Note, selecting 'gccgo-multilib-mips64-linux-gnuabi64' for regex 'gccg+'
  58. Note, selecting 'gccgo-10-aarch64-linux-gnu' for regex 'gccg+'
  59. Note, selecting 'gccgo-9-multilib-mipsisa64r6-linux-gnuabi64' for regex 'gccg+'
  60. Note, selecting 'gccgo-multilib' for regex 'gccg+'
  61. Note, selecting 'gccgo-10-multilib-sparc64-linux-gnu' for regex 'gccg+'
  62. Note, selecting 'gccgo-mipsisa64r6-linux-gnuabi64' for regex 'gccg+'
  63. Note, selecting 'gccgo-10-alpha-linux-gnu' for regex 'gccg+'
  64. Note, selecting 'gccgo-mipsisa32r6el-linux-gnu' for regex 'gccg+'
  65. Note, selecting 'gccgo-10' for regex 'gccg+'
  66. Note, selecting 'gccgo-10-mipsisa32r6el-linux-gnu' for regex 'gccg+'
  67. Note, selecting 'gccgo-x86-64-linux-gnux32' for regex 'gccg+'
  68. Note, selecting 'gccgo-9-mipsel-linux-gnu' for regex 'gccg+'
  69. Note, selecting 'gccgo-powerpc-linux-gnu' for regex 'gccg+'
  70. Note, selecting 'gccgo-10-multilib-mipsel-linux-gnu' for regex 'gccg+'
  71. Note, selecting 'gccgo-9-multilib-mipsel-linux-gnu' for regex 'gccg+'
  72. Note, selecting 'gccgo-go' for regex 'gccg+'
  73. Note, selecting 'gccgo-10-multilib-mips64el-linux-gnuabi64' for regex 'gccg+'
  74. Note, selecting 'gccgo-8-powerpc64-linux-gnu' for regex 'gccg+'
  75. Note, selecting 'gccgo-9-arm-linux-gnueabihf' for regex 'gccg+'
  76. Note, selecting 'gccgo-9-sparc64-linux-gnu' for regex 'gccg+'
  77. Note, selecting 'gccgo-8-doc' for regex 'gccg+'
  78. Note, selecting 'gccgo-8-multilib' for regex 'gccg+'
  79. Note, selecting 'gccgo-mipsisa32r6-linux-gnu' for regex 'gccg+'
  80. Note, selecting 'gccgo-9-multilib-mipsisa64r6el-linux-gnuabi64' for regex 'gccg+'
  81. Note, selecting 'gccgo-9-multilib-powerpc-linux-gnu' for regex 'gccg+'
  82. Note, selecting 'gccgo-9-i686-linux-gnu' for regex 'gccg+'
  83. Note, selecting 'gccgo-9-x86-64-linux-gnux32' for regex 'gccg+'
  84. Note, selecting 'gccgo-9-mips-linux-gnu' for regex 'gccg+'
  85. Note, selecting 'gccgo-10-riscv64-linux-gnu' for regex 'gccg+'
  86. Note, selecting 'gccgo-powerpc64le-linux-gnu' for regex 'gccg+'
  87. Note, selecting 'gccgo-8-s390x-linux-gnu' for regex 'gccg+'
  88. Note, selecting 'gccgo-powerpc64-linux-gnu' for regex 'gccg+'
  89. Note, selecting 'gccgo-9-alpha-linux-gnu' for regex 'gccg+'
  90. Note, selecting 'gccgo-9-multilib-i686-linux-gnu' for regex 'gccg+'
  91. Note, selecting 'gccgo-8-arm-linux-gnueabi' for regex 'gccg+'
  92. Note, selecting 'gccgo-8-powerpc64le-linux-gnu' for regex 'gccg+'
  93. Note, selecting 'gccgo-9-multilib-mips-linux-gnu' for regex 'gccg+'
  94. Note, selecting 'gccgo-9-mipsisa32r6-linux-gnu' for regex 'gccg+'
  95. Note, selecting 'gccgo-multilib-x86-64-linux-gnux32' for regex 'gccg+'
  96. Note, selecting 'gccgo' for regex 'gccg+'
  97. Note, selecting 'gccgo-10-multilib-mipsisa64r6el-linux-gnuabi64' for regex 'gccg+'
  98. Note, selecting 'gccgo-9-arm-linux-gnueabi' for regex 'gccg+'
  99. Note, selecting 'gccgo-8-riscv64-linux-gnu' for regex 'gccg+'
  100. Note, selecting 'gccgo-alpha-linux-gnu' for regex 'gccg+'
  101. Note, selecting 'gccgo-multilib-mipsisa64r6-linux-gnuabi64' for regex 'gccg+'
  102. Note, selecting 'gccgo-8-aarch64-linux-gnu' for regex 'gccg+'
  103. Note, selecting 'gccgo-sparc64-linux-gnu' for regex 'gccg+'
  104. Note, selecting 'gccgo-9-multilib-mipsisa32r6-linux-gnu' for regex 'gccg+'
  105. Note, selecting 'gccgo-mipsisa64r6el-linux-gnuabi64' for regex 'gccg+'
  106. Note, selecting 'gccgo-mips64-linux-gnuabi64' for regex 'gccg+'
  107. Note, selecting 'gccgo-9-powerpc64-linux-gnu' for regex 'gccg+'
  108. Note, selecting 'gccgo-10-multilib-x86-64-linux-gnux32' for regex 'gccg+'
  109. Note, selecting 'gccgo-10-doc' for regex 'gccg+'
  110. Note, selecting 'gccgo-10-mipsisa64r6-linux-gnuabi64' for regex 'gccg+'
  111. Note, selecting 'gccgo-9-multilib-s390x-linux-gnu' for regex 'gccg+'
  112. Note, selecting 'gccgo-5' for regex 'gccg+'
  113. Note, selecting 'gccgo-6' for regex 'gccg+'
  114. Note, selecting 'gccgo-7' for regex 'gccg+'
  115. Note, selecting 'gccgo-8' for regex 'gccg+'
  116. Note, selecting 'gccgo-9' for regex 'gccg+'
  117. Note, selecting 'gccgo-multilib-powerpc64-linux-gnu' for regex 'gccg+'
  118. Note, selecting 'gccgo-arm-linux-gnueabi' for regex 'gccg+'
  119. Note, selecting 'gccgo-10-arm-linux-gnueabihf' for regex 'gccg+'
  120. Note, selecting 'gccgo-multilib-i686-linux-gnu' for regex 'gccg+'
  121. Note, selecting 'gccgo-10-multilib-mipsisa32r6el-linux-gnu' for regex 'gccg+'
  122. Note, selecting 'gccgo-10-multilib-i686-linux-gnu' for regex 'gccg+'
  123. Note, selecting 'gccgo-10-mipsisa64r6el-linux-gnuabi64' for regex 'gccg+'
  124. Note, selecting 'gccgo-multilib-mips-linux-gnu' for regex 'gccg+'
  125. Note, selecting 'gccgo-9-mips64-linux-gnuabi64' for regex 'gccg+'
  126. Note, selecting 'gccgo-10-multilib-s390x-linux-gnu' for regex 'gccg+'
  127. Note, selecting 'gccgo-10-powerpc-linux-gnu' for regex 'gccg+'
  128. Note, selecting 'gccgo-10-sh4-linux-gnu' for regex 'gccg+'
  129. Note, selecting 'gccgo-8-multilib-powerpc-linux-gnu' for regex 'gccg+'
  130. Note, selecting 'gccgo-multilib-s390x-linux-gnu' for regex 'gccg+'
  131. Note, selecting 'gccgo-9-multilib-mips64el-linux-gnuabi64' for regex 'gccg+'
  132. Note, selecting 'gccgo-multilib-powerpc-linux-gnu' for regex 'gccg+'
  133. Note, selecting 'gccgo-9-riscv64-linux-gnu' for regex 'gccg+'
  134. Note, selecting 'gccgo-9-sh4-linux-gnu' for regex 'gccg+'
  135. Note, selecting 'gccgo-9-multilib-mips64-linux-gnuabi64' for regex 'gccg+'
  136. Note, selecting 'gccgo-9-powerpc64le-linux-gnu' for regex 'gccg+'
  137. Note, selecting 'gccgo-10-x86-64-linux-gnux32' for regex 'gccg+'
  138. Note, selecting 'gccgo-multilib-mips64el-linux-gnuabi64' for regex 'gccg+'
  139. Note, selecting 'gccgo-9-aarch64-linux-gnu' for regex 'gccg+'
  140. Note, selecting 'uwsgi-plugin-gccgo' for regex 'gccg+'
  141. Note, selecting 'gccgo-9-mips64el-linux-gnuabi64' for regex 'gccg+'
  142. Note, selecting 'gccgo-10-s390x-linux-gnu' for regex 'gccg+'
  143. Note, selecting 'gccgo-doc' for regex 'gccg+'
  144. Note, selecting 'gccgo-multilib-mipsel-linux-gnu' for regex 'gccg+'
  145. Note, selecting 'gccgo-multilib-mipsisa64r6el-linux-gnuabi64' for regex 'gccg+'
  146. Note, selecting 'gccgo-9-multilib-sparc64-linux-gnu' for regex 'gccg+'
  147. Note, selecting 'gccgo-9-doc' for regex 'gccg+'
  148. Note, selecting 'python-is-python2' instead of 'python'
  149. Package python-matplotlib is not available, but is referred to by another package.
  150. This may mean that the package is missing, has been obsoleted, or
  151. is only available from another source

  152. Package libqt4-dev is not available, but is referred to by another package.
  153. This may mean that the package is missing, has been obsoleted, or
  154. is only available from another source

  155. E: Unable to locate package repo
  156. E: Unable to locate package libudev-devlibusb-1.0-0-dev
  157. E: Couldn't find any package by glob 'libudev-devlibusb-1.0-0-dev'
  158. E: Couldn't find any package by regex 'libudev-devlibusb-1.0-0-dev'
  159. E: Unable to locate package python-linaro-image-tools
  160. E: Unable to locate package linaro-image-tools
  161. E: Unable to locate package wgetlibncurses5
  162. E: Package 'libqt4-dev' has no installation candidate
  163. E: Unable to locate package gitmercurial
  164. E: Package 'python-matplotlib' has no installation candidate
  165. E: Unable to locate package libc6:i386
  166. E: Unable to locate package liblz4-toollibtool
复制代码


请问我的步骤是否哪里有错误呢?

br.log.zip

817.51 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

全部编译报错日志

回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2022-7-12 15:48:16        只看该作者  19#
music1913 发表于 2022-7-12 13:10
谢谢回复。
我已经在 Ubuntu 20.04.4 (x64) PC机上安装了SDK: rv1126_rv1109_linux_release_20211022, ...

首先,默认使用的编译环境是ubuntu18.04,已经经过验证过编译不会出错。如果不是ubuntu18.04则需要自行安装原装的ubuntu18.04或者使用docker 安装ubuntu18.04进行编译开发。如果不想使用ubuntu18.04,则只能自行解决编译问题。
其次是刚拿到的sdk是一个基础包,需要进行更新最新才可以,维基有介绍怎么更新。
回复

使用道具 举报

154

积分

0

威望

0

贡献

技术小白

积分
154
发表于 2022-7-12 15:55:51        只看该作者  20#
本帖最后由 music1913 于 2022-7-12 16:14 编辑
799959745 发表于 2022-7-12 15:48
首先,默认使用的编译环境是ubuntu18.04,已经经过验证过编译不会出错。如果不是ubuntu18.04则需要自行安 ...

好的,我再去使用指定的 Ubuntu系统。
问题:
  • 请问针对于我的改动(改1个串口为2个gpio口),是否只要./build.sh kernel 就足够了呢?
  • 根据您说的:
其次是刚拿到的sdk是一个基础包,需要进行更新最新才可以,维基有介绍怎么更新
就是指通过wiki中说明的命令:
  1. .repo/repo/repo sync -c --no-tags
复制代码
进行的意思,是吗?
回复

使用道具 举报

返回列表
123
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表