music1913
发表于 2022-7-8 17:03:07
本帖最后由 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 文件的位置。
799959745
发表于 2022-7-9 09:27:37
你可以用 fine -name xxx 搜索一下。具体路径在:sdk/kernel/arch/arm/boot/dts/rv1126-firefly-jd4-BE-45.dtsi
new_per
发表于 2022-7-9 16:47:33
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处吗?
799959745
发表于 2022-7-9 17:00:00
你先确定管脚是否可以设置高低电平?不能的话要进行:echo out > direction 来设置 GPIO 为输出模式。然后再echo 1 > value设置高电平。万用表去量,看看是不是有电平变化。
799959745
发表于 2022-7-9 17:01:49
new_per 发表于 2022-7-9 16:47
1, 改成GPIO1_A1后算出pin 为33, 可以通过echo 33 > /sys/class/gpio/export成功导出了,但是没能正确从 ...
如果有电平变化的话,那就没问题了,剩下就是你的软硬件调试了。
music1913
发表于 2022-7-11 12:07:25
本帖最后由 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. ...
firefly@firefly:/$ sudo find -name rv1126-firefly-jd4-BE-45.dtsi
firefly@firefly:/$
我用上述命令并未搜索到相应的文件,同样采用统配符:
firefly@firefly:/$ sudo find -name *.dtsi
firefly@firefly:/$
也没有搜索到任何内容。
这是我rv1126板子上的根目录结构,似乎并没有 sdk/kernel/arch/arm/boot/dts/ :
firefly@firefly:/$ ls /
bin devhomelost+foundmntprocroot-rosbinsysuserdatavar
bootetclib media optrootrun srv tmpusr vendor
我使用的是firefly 官方的 debian 10 系统,请帮忙再确认一下文件路径。
799959745
发表于 2022-7-11 14:50:29
本帖最后由 799959745 于 2022-7-11 14:55 编辑
music1913 发表于 2022-7-11 12:07
我用上述命令并未搜索到相应的文件,同样采用统配符:
你有下载firefly官方的RV1126 SDK开发包吗?不是在板子上跑find命令,是在PC电脑上跑。使用find命令查找的SDK文件在哪里。
你先看下维基教程和相关的开发流程吧。内核需要在PC上面编译烧录进板子,不是直接在板子上编译的。
music1913
发表于 2022-7-12 13:10:02
本帖最后由 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 到你提供的示例内容:
/*
&uart4 {
pinctrl-0 = <&uart4m1_xfer>;
status = "okay";
};
*/后,再运行:
./build.sh device/rockchip/rv1126_rv1109/aio-rv1126-jd4-BE-45.mk
[*]尝试进行部分编译
我理解我当前的改动是仅需要单独编译 kernel:./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:
[*]尝试进行全部编译
运行命令:
(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 [7m>>> libgpg-error 1.27 Building[27m
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/makeall-recursive
2022-07-12T14:58:06 Making all in m4
2022-07-12T14:58:06 make: 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: *** Error 2
2022-07-12T14:58:06 make: *** 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: *** Error 1
2022-07-12T14:58:06 make: *** Error 2
2022-07-12T14:58:06 make: *** Error 2
2022-07-12T14:58:06 make: *** Error 2
完全的日志请见附件中的 br.log.zip
另外,在安装编译环境的时候,也有一些错误,请见以下,不清楚是否和上述编译错误有关与否:
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
password for shawn:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
Note, selecting 'gccgo-10-multilib' for regex 'gccg+'
Note, selecting 'gccgo-7-multilib' for regex 'gccg+'
Note, selecting 'gccgo-8-multilib-x86-64-linux-gnux32' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-mipsisa32r6-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-multilib-mipsisa32r6el-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-mips-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-riscv64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-7-doc' for regex 'gccg+'
Note, selecting 'gccgo-10-powerpc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-8-multilib-sparc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-aarch64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib' for regex 'gccg+'
Note, selecting 'gccgo-9-mipsisa32r6el-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-8-multilib-i686-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-mipsisa64r6el-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-9-s390x-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-8-arm-linux-gnueabihf' for regex 'gccg+'
Note, selecting 'gccgo-8-powerpc-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-i686-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-powerpc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-mips-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-mipsel-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-mips64el-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-9-powerpc-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-mipsisa64r6-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-s390x-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-8-x86-64-linux-gnux32' for regex 'gccg+'
Note, selecting 'gccgo-8-multilib-powerpc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-x86-64-linux-gnux32' for regex 'gccg+'
Note, selecting 'gccgo-8-i686-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-mipsisa32r6el-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-multilib-mipsisa32r6-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-powerpc-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-mips64-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-10-mips64-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-10-mipsisa32r6-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-sparc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-8-multilib-s390x-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-i686-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-mips-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-multilib-sparc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-powerpc64le-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-8-sparc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-mips64el-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-8-alpha-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-mipsisa64r6-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-powerpc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-mipsel-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-arm-linux-gnueabi' for regex 'gccg+'
Note, selecting 'gccgo-arm-linux-gnueabihf' for regex 'gccg+'
Note, selecting 'gccgo-multilib-mips64-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-10-aarch64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-mipsisa64r6-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-multilib' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-sparc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-mipsisa64r6-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-10-alpha-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-mipsisa32r6el-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10' for regex 'gccg+'
Note, selecting 'gccgo-10-mipsisa32r6el-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-x86-64-linux-gnux32' for regex 'gccg+'
Note, selecting 'gccgo-9-mipsel-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-powerpc-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-mipsel-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-mipsel-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-go' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-mips64el-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-8-powerpc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-arm-linux-gnueabihf' for regex 'gccg+'
Note, selecting 'gccgo-9-sparc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-8-doc' for regex 'gccg+'
Note, selecting 'gccgo-8-multilib' for regex 'gccg+'
Note, selecting 'gccgo-mipsisa32r6-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-mipsisa64r6el-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-powerpc-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-i686-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-x86-64-linux-gnux32' for regex 'gccg+'
Note, selecting 'gccgo-9-mips-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-riscv64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-powerpc64le-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-8-s390x-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-powerpc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-alpha-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-i686-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-8-arm-linux-gnueabi' for regex 'gccg+'
Note, selecting 'gccgo-8-powerpc64le-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-mips-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-mipsisa32r6-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-multilib-x86-64-linux-gnux32' for regex 'gccg+'
Note, selecting 'gccgo' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-mipsisa64r6el-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-9-arm-linux-gnueabi' for regex 'gccg+'
Note, selecting 'gccgo-8-riscv64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-alpha-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-multilib-mipsisa64r6-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-8-aarch64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-sparc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-mipsisa32r6-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-mipsisa64r6el-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-mips64-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-9-powerpc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-x86-64-linux-gnux32' for regex 'gccg+'
Note, selecting 'gccgo-10-doc' for regex 'gccg+'
Note, selecting 'gccgo-10-mipsisa64r6-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-s390x-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-5' for regex 'gccg+'
Note, selecting 'gccgo-6' for regex 'gccg+'
Note, selecting 'gccgo-7' for regex 'gccg+'
Note, selecting 'gccgo-8' for regex 'gccg+'
Note, selecting 'gccgo-9' for regex 'gccg+'
Note, selecting 'gccgo-multilib-powerpc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-arm-linux-gnueabi' for regex 'gccg+'
Note, selecting 'gccgo-10-arm-linux-gnueabihf' for regex 'gccg+'
Note, selecting 'gccgo-multilib-i686-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-mipsisa32r6el-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-i686-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-mipsisa64r6el-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-multilib-mips-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-mips64-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-10-multilib-s390x-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-powerpc-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-sh4-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-8-multilib-powerpc-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-multilib-s390x-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-mips64el-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-multilib-powerpc-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-riscv64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-sh4-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-mips64-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-9-powerpc64le-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-10-x86-64-linux-gnux32' for regex 'gccg+'
Note, selecting 'gccgo-multilib-mips64el-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-9-aarch64-linux-gnu' for regex 'gccg+'
Note, selecting 'uwsgi-plugin-gccgo' for regex 'gccg+'
Note, selecting 'gccgo-9-mips64el-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-10-s390x-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-doc' for regex 'gccg+'
Note, selecting 'gccgo-multilib-mipsel-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-multilib-mipsisa64r6el-linux-gnuabi64' for regex 'gccg+'
Note, selecting 'gccgo-9-multilib-sparc64-linux-gnu' for regex 'gccg+'
Note, selecting 'gccgo-9-doc' for regex 'gccg+'
Note, selecting 'python-is-python2' instead of 'python'
Package python-matplotlib is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libqt4-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Unable to locate package repo
E: Unable to locate package libudev-devlibusb-1.0-0-dev
E: Couldn't find any package by glob 'libudev-devlibusb-1.0-0-dev'
E: Couldn't find any package by regex 'libudev-devlibusb-1.0-0-dev'
E: Unable to locate package python-linaro-image-tools
E: Unable to locate package linaro-image-tools
E: Unable to locate package wgetlibncurses5
E: Package 'libqt4-dev' has no installation candidate
E: Unable to locate package gitmercurial
E: Package 'python-matplotlib' has no installation candidate
E: Unable to locate package libc6:i386
E: Unable to locate package liblz4-toollibtool
请问我的步骤是否哪里有错误呢?
799959745
发表于 2022-7-12 15:48:16
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是一个基础包,需要进行更新最新才可以,维基有介绍怎么更新。
music1913
发表于 2022-7-12 15:55:51
本帖最后由 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中说明的命令:
.repo/repo/repo sync -c --no-tags进行的意思,是吗?