加入了学习《极海APM32F407技术微课堂》,观看 APM32F407 USB2.0通信应用讲解
回复了主题帖: EEWorld邀你来拆解第9期——电机驱动专场,拆旧物 赢电机等好礼 (含拆解入围名单)
回复了主题帖: EEWorld邀你来拆解第9期——电机驱动专场,拆旧物 赢电机等好礼
发表了主题帖: 【米尔ARM+FPGA架构之作MYD-JX8MMA7开发板】MYD-JX8MMA7上构建Linux From Scratch
暂且跳过,看看能否构建通过。 3.2. 第一步(依赖项不满足): binutils-2.40
make -j 4 ... MAKEINFO doc/bfd.info /mnt/lfs/sources/binutils-2.40/missing: line 81: makeinfo: command not found WARNING: 'makeinfo' is missing on your system. You should only need it if you modified a '.texi' file, or any other file indirectly affecting the aspect of the manual. You might want to install the Texinfo package: <http://www.gnu.org/software/texinfo/> The spurious makeinfo call might also be the consequence of using a buggy 'make' (AIX, DU, IRIX), in which case you might want to install GNU make: <http://www.gnu.org/software/make/>对binutils的configure发现缺少必要的依赖项——makeinfo,该程序来自软件包texinfo,因此需要先构建texinfo 3.3. 第二步(依赖项不满足): texinfo-7.0.3 通过对texinfo源码进行构建,发现如下错误:
3.4. TODO 缺乏必须的依赖项perl及其perl模块:Encoder和Data::Dumper, 依赖项缺乏过多,必须先通过交叉编译,构建出完整的Linux(完整的基本程序集、GNU软件包),才能实现LFS。
发表了主题帖: 【米尔ARM+FPGA架构之作MYD-JX8MMA7开发板】 MYB-JX8MMA7 yocto-build系统镜像
2.2. Ubuntu-22.04.1编译yocto 2.2.1. 网络不畅 DISTRO=fsl-imx-xwayland MACHINE=myd-jx8mma7 source myir-setup-release.sh -b build-xwayland bitbake -c populate_sdk myir-image-core ERROR: OE-core's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories: Fetcher failure for URL: 'https://www.example.com/'. URL https://www.example.com/ doesn't work. Please ensure your host's network is configured correctly. If your ISP or network is blocking the above URL, try with another domain name, for example by setting: CONNECTIVITY_CHECK_URIS = "https://www.yoctoproject.org/" You could also set BB_NO_NETWORK = "1" to disable network access if all required sources are on local disk. 解决方案: BB_NO_NETWORK=1 DISTRO=fsl-imx-xwayland MACHINE=myd-jx8mma7 source myir-setup-release.sh -b build-xwayland 2.2.2. Ubuntu-22.04.1版本过高 bitbake -c populate_sdk myir-image-core NOTE: Your conf/bblayers.conf has been automatically updated. WARNING: Host distribution "ubuntu-22.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution. 暂时忽略 2.2.3. Windows共享文件系统不兼容 downloads目录在windows下解压缩到数据盘(NTFS文件系统格式),然后在Ubuntu系统中,在myd-jx8mma7-yocto/目录下创建一个符号链接”downloads”,指向windows下的downloads目录(通过虚拟机的共享目录机制),结果发现如下错误: fatal: detected dubious ownership in repository at '/mnt/hgfs/Repo0/Downloads/Yocto-download-5.10/downloads/git2/git.savannah.gnu.org.config.git' To add an exception for this directory, call: git config --global --add safe.directory /mnt/hgfs/Repo0/Downloads/Yocto-download-5.10/downloads/git2/git.savannah.gnu.org.config.git 解决方案: 重新解压缩到linux文件系统。 2.2.4. Python版本不符合导致脚本错误 ImportError: cannot import name ‘Mapping’ from ‘collections’ (D:Program FilesPythonlibcollections__init__.py) ImportError: cannot import name ‘Mapping‘ from ‘collections‘ (https://blog.csdn.net/LSH1628340121/article/details/124140926 ) 原因分析: 无法从“集合”导入名称“映射”,因为Python3.10版本以后对requests 库进行调整,collections中不能直接调用方法Mapping,MutableMapping 办法就是:找到引用collections模块的__init__.py文件,调整从abc导入: 影响的文件太多,无法一一修改。 安装Python-3.9 安装Python-3.9
ubuntu20.04安装python3.9并设置为默认的python3 (https://blog.csdn.net/chencaw/article/details/117551298)缺失sqlite3
sudo apt install libsqlite3-dev 然后重新编译安装python3.9../../m4-1.4.18/lib/c-stack.c:55:26: error: missing binary operator before token “(”
build failure on Ubuntu22.04 from SIGSTKSZ not being an integer literal https://github.com/DynamoRIO/dynamorio/issues/5434 Ubuntu22 tina-linux 编译报错记录 1.c-stack.c:55:26: error: missing binary operator before token https://blog.csdn.net/huuuerli/article/details/128051710 Ubuntu版本太高,或者m4应当升级到m4-1.4.19以上 修改 build-xwayland/tmp/work/x86_64-linux/m4-native/1.4.18-r0/m4-1.4.18/lib/c-stack.c:55 -#elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384 +#elif HAVE_LIBSIGSEGV // && SIGSTKSZ < 16384configure: error: raw selected, but required raw.h header file not available | NOTE: The following config.log files may provide further information. | NOTE: /MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-xwayland/tmp/work/x86_64-linux/util-linux-native/2.36.2-r0/build/config.log | ERROR: configure failed | WARNING: exit code 1 from a shell command. | ERROR: Execution of '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-xwayland/tmp/work/x86_64-linux/util-linux-native/2.36.2-r0/temp/run.do_configure.565950' failed with exit code 1 不想再弄Ubuntu-22.04.1了,按照文档的要求,一步一步走吧。 2.3. Ubuntu-22.04.1编译yocto
安装Ubuntu-18.04.6之后,基本一切都顺利平静了。。。。DISTRO=fsl-imx-xwayland MACHINE=myd-jx8mma7 source myir-setup-release.sh -b build-vdisk1 You can now run 'bitbake <target>' Common targets are: core-image-minimal meta-toolchain meta-toolchain-sdk adt-installer meta-ide-support setup之后,build目录下的文件如下: tree. └── conf ├── bblayers.conf ├── bblayers.conf.org ├── local.conf ├── local.conf.org ├── local.conf.sample └── templateconf.cfg 1 directory, 6 files 2.3.1. bitbake core-image-minimal 成功 NOTE: Your conf/bblayers.conf has been automatically updated. Loading cache: 100% | | ETA: --:--:-- Loaded 0 entries from dependency cache. Parsing recipes: 100% |###############################################################################################| Time: 0:01:43 Parsing of 3360 .bb files complete (0 cached, 3360 parsed). 4970 targets, 282 skipped, 3 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "1.50.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-18.04" TARGET_SYS = "aarch64-poky-linux" MACHINE = "myd-jx8mma7" DISTRO = "fsl-imx-xwayland" DISTRO_VERSION = "5.10-hardknott" TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto" TARGET_FPU = "" meta meta-poky meta-oe meta-multimedia meta-python meta-freescale meta-freescale-3rdparty meta-freescale-distro meta-bsp meta-sdk meta-ml meta-v2x meta-nxp-demo-experience meta-chromium meta-clang meta-gnome meta-networking meta-filesystems meta-qt5 meta-python2 meta-virtualization = "<unknown>:<unknown>" Initialising tasks: 100% |############################################################################################| Time: 0:00:05 Sstate summary: Wanted 1284 Local 0 Network 0 Missed 1284 Current 0 (0% match, 0% complete) NOTE: Executing Tasks NOTE: Tasks Summary: Attempted 3419 tasks of which 0 didn't need to be rerun and all succeeded. 2.3.2. bitbake meta-toolchain 成功 NOTE: Your conf/bblayers.conf has been automatically updated. Loading cache: 100% |############################################| Time: 0:00:01 Loaded 4970 entries from dependency cache. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "1.50.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-18.04" TARGET_SYS = "aarch64-poky-linux" MACHINE = "myd-jx8mma7" DISTRO = "fsl-imx-xwayland" DISTRO_VERSION = "5.10-hardknott" TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto" TARGET_FPU = "" meta meta-poky meta-oe meta-multimedia meta-python meta-freescale meta-freescale-3rdparty meta-freescale-distro meta-bsp meta-sdk meta-ml meta-v2x meta-nxp-demo-experience meta-chromium meta-clang meta-gnome meta-networking meta-filesystems meta-qt5 meta-python2 meta-virtualization = "<unknown>:<unknown>" Initialising tasks: 100% |#######################################| Time: 0:00:02 Sstate summary: Wanted 664 Local 0 Network 0 Missed 664 Current 1058 (0% match, 61% complete) NOTE: Executing Tasks NOTE: Tasks Summary: Attempted 4286 tasks of which 2865 didn't need to be rerun and all succeeded. 2.3.3. bitbake meta-go-toolchain 成功 Loading cache: 100% |############################################| Time: 0:00:00 Loaded 4970 entries from dependency cache. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "1.50.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-18.04" TARGET_SYS = "aarch64-poky-linux" MACHINE = "myd-jx8mma7" DISTRO = "fsl-imx-xwayland" DISTRO_VERSION = "5.10-hardknott" TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto" TARGET_FPU = "" meta meta-poky meta-oe meta-multimedia meta-python meta-freescale meta-freescale-3rdparty meta-freescale-distro meta-bsp meta-sdk meta-ml meta-v2x meta-nxp-demo-experience meta-chromium meta-clang meta-gnome meta-networking meta-filesystems meta-qt5 meta-python2 meta-virtualization = "<unknown>:<unknown>" Initialising tasks: 100% |#######################################| Time: 0:00:02 Sstate summary: Wanted 46 Local 0 Network 0 Missed 46 Current 1723 (0% match, 97% complete) NOTE: Executing Tasks NOTE: Tasks Summary: Attempted 4391 tasks of which 4297 didn't need to be rerun and all succeeded. 2.3.4. bitbake meta-toolchain-qt5 成功 Loading cache: 100% |############################################| Time: 0:00:00 Loaded 4970 entries from dependency cache. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "1.50.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-18.04" TARGET_SYS = "aarch64-poky-linux" MACHINE = "myd-jx8mma7" DISTRO = "fsl-imx-xwayland" DISTRO_VERSION = "5.10-hardknott" TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto" TARGET_FPU = "" meta meta-poky meta-oe meta-multimedia meta-python meta-freescale meta-freescale-3rdparty meta-freescale-distro meta-bsp meta-sdk meta-ml meta-v2x meta-nxp-demo-experience meta-chromium meta-clang meta-gnome meta-networking meta-filesystems meta-qt5 meta-python2 meta-virtualization = "<unknown>:<unknown>" Initialising tasks: 100% |#######################################| Time: 0:00:04 Sstate summary: Wanted 620 Local 0 Network 0 Missed 620 Current 2136 (0% match, 77% complete) NOTE: Executing Tasks NOTE: Tasks Summary: Attempted 6826 tasks of which 5518 didn't need to be rerun and all succeeded. 2.3.5. bitbake meta-toolchain-sdk 失败 Loading cache: 100% |############################################| Time: 0:00:01 Loaded 4970 entries from dependency cache. ERROR: Nothing PROVIDES 'meta-toolchain-sdk'. Close matches: meta-go-toolchain meta-toolchain meta-toolchain-qt5 Summary: There was 1 ERROR message shown, returning a non-zero exit code. 原因: bitbake中没有meta-toolchain-sdk这一构建目标。 2.3.6. bitbake myir-image-core 失败 Currently 8 running tasks (1447 of 7558) 19% |################ Task (/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.36.bb:do_compile) failed with exit code '1' | make[4]: Leaving directory '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/binutils-cross-aarch64/2.36.1-r0/git/build.x86_64-linux.aarch64-poky-linux/gold' | Makefile:1157: recipe for target 'all-recursive' failed | make[3]: *** [all-recursive] Error 1 | make[3]: Leaving directory '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/binutils-cross-aarch64/2.36.1-r0/git/build.x86_64-linux.aarch64-poky-linux/gold' | Makefile:897: recipe for target 'all' failed | make[2]: *** [all] Error 2 | make[2]: Leaving directory '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/binutils-cross-aarch64/2.36.1-r0/git/build.x86_64-linux.aarch64-poky-linux/gold' | Makefile:6121: recipe for target 'all-gold' failed | make[1]: *** [all-gold] Error 2 | make[1]: *** Waiting for unfinished jobs.... | make[5]: Leaving directory '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/binutils-cross-aarch64/2.36.1-r0/git/build.x86_64-linux.aarch64-poky-linux/ld' 2.3.7. bitbake myir-image-coreEEWORLDLINKTK12
再次执行bitbake,该错误消失。但是又出现如下错误:| g++ -fno-PIE -c -isystem/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/gcc-cross-aarch64/10.2.0-r0/recipe-sysroot-native/usr/include -O2 -pipe -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/. -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/../include -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/../libcpp/include -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/../libdecnumber -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/../libbacktrace -o ipa-split.o -MT ipa-split.o -MMD -MP -MF ./.deps/ipa-split.TPo ../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/ipa-split.c | {standard input}: Assembler messages: | {standard input}:495187: Warning: end of file not at end of a line; newline inserted | {standard input}:496713: Error: number of operands mismatch for `mov' | {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive | g++: internal compiler error: Killed (program cc1plus) | Please submit a full bug report, | with preprocessed source if appropriate. | See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions. | Makefile:1118: recipe for target 'insn-emit.o' failed | make[1]: *** [insn-emit.o] Error 4 | make[1]: *** Waiting for unfinished jobs.... | ERROR: oe_runmake failed | rm gcc.pod | make[1]: Leaving directory '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/gcc-cross-aarch64/10.2.0-r0/gcc-10.2.0/build.x86_64-linux.aarch64-poky-linux/gcc' | Makefile:4404: recipe for target 'all-gcc' failed | make: *** [all-gcc] Error 2 | WARNING: exit code 1 from a shell command. | ERROR: Execution of '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/gcc-cross-aarch64/10.2.0-r0/temp/run.do_compile.104857' failed with exit code 1 ERROR: Task (/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/sources/poky/meta/recipes-devtools/gcc/gcc-cross_10.2.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 2805 tasks of which 1492 didn't need to be rerun and 1 failed. Summary: 1 task failed: /MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/sources/poky/meta/recipes-devtools/gcc/gcc-cross_10.2.bb:do_compile Summary: There were 2 ERROR messages shown, returning a non-zero exit code. Currently 8 running tasks (4862 of 7558) 64% 2.3.8. bitbake myir-image-coreEEWORLDLINKTK13 后续执行后,成功。 bitbake myir-image-core Loading cache: 100% |######################################################################################| Time: 0:00:01 Loaded 4970 entries from dependency cache. NOTE: Resolving any missing task queue dependencies NOTE: Multiple providers are available for runtime linux-firmware-bcm4359-pcie (firmware-nxp-wifi, linux-firmware) Consider defining a PREFERRED_RPROVIDER entry to match linux-firmware-bcm4359-pcie Build Configuration: BB_VERSION = "1.50.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-18.04" TARGET_SYS = "aarch64-poky-linux" MACHINE = "myd-jx8mma7" DISTRO = "fsl-imx-xwayland" DISTRO_VERSION = "5.10-hardknott" TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto" TARGET_FPU = "" meta meta-poky meta-oe meta-multimedia meta-python meta-freescale meta-freescale-3rdparty meta-freescale-distro meta-bsp meta-sdk meta-ml meta-v2x meta-nxp-demo-experience meta-chromium meta-clang meta-gnome meta-networking meta-filesystems meta-qt5 meta-python2 meta-virtualization = "<unknown>:<unknown>" Initialising tasks: 100% |#################################################################################| Time: 0:00:09 Sstate summary: Wanted 1781 Local 0 Network 0 Missed 1781 Current 1293 (0% match, 42% complete) NOTE: Executing Tasks NOTE: Tasks Summary: Attempted 7558 tasks of which 3433 didn't need to be rerun and all succeeded. 2.3.9. bitbake -c populate_sdk myir-image-coreEEWORLDLINKTK14 成功 bitbake -c populate_sdk myir-image-core Loading cache: 100% |######################################################################################| Time: 0:00:01 Loaded 4970 entries from dependency cache. NOTE: Resolving any missing task queue dependencies NOTE: Multiple providers are available for runtime linux-firmware-bcm4359-pcie (firmware-nxp-wifi, linux-firmware) Consider defining a PREFERRED_RPROVIDER entry to match linux-firmware-bcm4359-pcie Build Configuration: BB_VERSION = "1.50.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-18.04" TARGET_SYS = "aarch64-poky-linux" MACHINE = "myd-jx8mma7" DISTRO = "fsl-imx-xwayland" DISTRO_VERSION = "5.10-hardknott" TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto" TARGET_FPU = "" meta meta-poky meta-oe meta-multimedia meta-python meta-freescale meta-freescale-3rdparty meta-freescale-distro meta-bsp meta-sdk meta-ml meta-v2x meta-nxp-demo-experience meta-chromium meta-clang meta-gnome meta-networking meta-filesystems meta-qt5 meta-python2 meta-virtualization = "<unknown>:<unknown>" Initialising tasks: 100% |#################################################################################| Time: 0:00:07 Sstate summary: Wanted 0 Local 0 Network 0 Missed 0 Current 2439 (0% match, 100% complete) NOTE: Executing Tasks NOTE: Tasks Summary: Attempted 6991 tasks of which 6990 didn't need to be rerun and all succeeded. 2.3.10. bitbake -c populate_sdk myir-image-fullEEWORLDLINKTK15 失败 | Resolving deltas: 100% (2496/2496), done. | Note: checking out 'e6c1b8dc8a8b00ee74e7268aac8b18d7260ab1ce'. | | You are in 'detached HEAD' state. You can look around, make experimental | changes and commit them, and you can discard any commits you make in this | state without impacting any branches by performing another checkout. | | If you want to create a new branch to retain commits you create, you may | do so (now or later) by using -b with the checkout command again. Example: | | git checkout -b <new-branch-name> | | HEAD is now at e6c1b8d Fix the bazel build by dropping a xtensa-specific select entry. | Submodule 'cpuinfo' (https://github.com/pytorch/cpuinfo) registered for path 'third_party/cpuinfo' | Submodule 'googletest' (https://github.com/google/googletest) registered for path 'third_party/googletest' | Cloning into '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy/third_party/cpuinfo'... | fatal: unable to access 'https://github.com/pytorch/cpuinfo/': gnutls_handshake() failed: Error in the pull function. | fatal: clone of 'https://github.com/pytorch/cpuinfo' into submodule path '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy/third_party/cpuinfo' failed | Failed to clone 'third_party/cpuinfo'. Retry scheduled | Cloning into '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy/third_party/googletest'... | fatal: unable to access 'https://github.com/google/googletest/': Failed to connect to github.com port 443: Connection refused | fatal: clone of 'https://github.com/google/googletest' into submodule path '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy/third_party/googletest' failed | Failed to clone 'third_party/googletest'. Retry scheduled | Cloning into '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy/third_party/cpuinfo'... | fatal: unable to access 'https://github.com/pytorch/cpuinfo/': Failed to connect to github.com port 443: Connection refused | fatal: clone of 'https://github.com/pytorch/cpuinfo' into submodule path '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy/third_party/cpuinfo' failed | Failed to clone 'third_party/cpuinfo' a second time, aborting | CMake Error at _deps/ruy-subbuild/ruy-populate-prefix/tmp/ruy-populate-gitclone.cmake:52 (message): | Failed to update submodules in: | '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy' | | | FAILED: ruy-populate-prefix/src/ruy-populate-stamp/ruy-populate-download | cd /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build && /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/bin/cmake -P /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/_deps/ruy-subbuild/ruy-populate-prefix/tmp/ruy-populate-gitclone.cmake && /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/bin/cmake -E touch /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/_deps/ruy-subbuild/ruy-populate-prefix/src/ruy-populate-stamp/ruy-populate-download | ninja: build stopped: subcommand failed. | | CMake Error at /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/share/cmake-3.19/Modules/FetchContent.cmake:989 (message): | Build step for ruy failed: 1 | Call Stack (most recent call first): | /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/share/cmake-3.19/Modules/FetchContent.cmake:1118:EVAL:2 (__FetchContent_directPopulate) | /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/share/cmake-3.19/Modules/FetchContent.cmake:1118 (cmake_language) | tools/cmake/modules/OverridableFetchContent.cmake:531 (FetchContent_Populate) | tools/cmake/modules/ruy.cmake:32 (OverridableFetchContent_Populate) | tools/cmake/modules/Findruy.cmake:16 (include) | CMakeLists.txt:155 (find_package) | | | -- Configuring incomplete, errors occurred! | See also "/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/CMakeFiles/CMakeOutput.log". | See also "/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/CMakeFiles/CMakeError.log". | WARNING: exit code 1 from a shell command. | ERROR: Execution of '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/temp/run.do_configure.6307' failed with exit code 1 ERROR: Task (/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/sources/meta-myir/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.6.0.bb:do_configure) failed with exit code '1' NOTE: Tasks Summary: Attempted 6430 tasks of which 0 didn't need to be rerun and 1 failed. Summary: 1 task failed: /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/sources/meta-myir/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.6.0.bb:do_configure Summary: There was 1 ERROR message shown, returning a non-zero exit code. 原因分析: 在构建过程中git更新,由于网络问题造成无法git成功。 解决方法:(TODO) 翻墙搭梯子,麻烦。 禁用网络更新,只是用本地下载好的代码。 2.3.11. BB_NO_NETWORK=1 bitbake -c populate_sdk myir-image-fullEEWORLDLINKTK16 禁用网络更新,只是用本地下载好的代码。成功。
BB_NO_NETWORK=1 bitbake -c populate_sdk myir-image-full NOTE: Your conf/bblayers.conf has been automatically updated. Loading cache: 100% |############################################| Time: 0:00:02 Loaded 4970 entries from dependency cache. NOTE: Resolving any missing task queue dependencies NOTE: Multiple providers are available for runtime linux-firmware-bcm4359-pcie (firmware-nxp-wifi, linux-firmware) Consider defining a PREFERRED_RPROVIDER entry to match linux-firmware-bcm4359-pcie Build Configuration: BB_VERSION = "1.50.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-18.04" TARGET_SYS = "aarch64-poky-linux" MACHINE = "myd-jx8mma7" DISTRO = "fsl-imx-xwayland" DISTRO_VERSION = "5.10-hardknott" TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto" TARGET_FPU = "" meta meta-poky meta-oe meta-multimedia meta-python meta-freescale meta-freescale-3rdparty meta-freescale-distro meta-bsp meta-sdk meta-ml meta-v2x meta-nxp-demo-experience meta-chromium meta-clang meta-gnome meta-networking meta-filesystems meta-qt5 meta-python2 meta-virtualization = "<unknown>:<unknown>" Initialising tasks: 100% |#######################################| Time: 0:00:06 Sstate summary: Wanted 33 Local 14 Network 0 Missed 19 Current 3449 (42% match, 99% complete) NOTE: Executing Tasks NOTE: Tasks Summary: Attempted 9825 tasks of which 9786 didn't need to be rerun and all succeeded.2.3.12. BB_NO_NETWORK=1 bitbake myir-image-fullEEWORLDLINKTK17 成功
Loading cache: 100% |#################################################################################################| Time: 0:00:01 Loaded 4970 entries from dependency cache. NOTE: Resolving any missing task queue dependencies NOTE: Multiple providers are available for runtime linux-firmware-bcm4359-pcie (firmware-nxp-wifi, linux-firmware) Consider defining a PREFERRED_RPROVIDER entry to match linux-firmware-bcm4359-pcie Build Configuration: BB_VERSION = "1.50.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-18.04" TARGET_SYS = "aarch64-poky-linux" MACHINE = "myd-jx8mma7" DISTRO = "fsl-imx-xwayland" DISTRO_VERSION = "5.10-hardknott" TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto" TARGET_FPU = "" meta meta-poky meta-oe meta-multimedia meta-python meta-freescale meta-freescale-3rdparty meta-freescale-distro meta-bsp meta-sdk meta-ml meta-v2x meta-nxp-demo-experience meta-chromium meta-clang meta-gnome meta-networking meta-filesystems meta-qt5 meta-python2 meta-virtualization = "<unknown>:<unknown>" Initialising tasks: 100% |############################################################################################| Time: 0:00:07 Sstate summary: Wanted 826 Local 29 Network 0 Missed 797 Current 3763 (3% match, 82% complete) NOTE: Executing Tasks WARNING: opencv-4.5.2.imx-r0 do_package_qa: QA Issue: opencv: SRC_URI uses unstable GitHub/GitLab archives, convert recipe to use git protocol [src-uri-bad] NOTE: Tasks Summary: Attempted 10936 tasks of which 9324 didn't need to be rerun and all succeeded. Summary: There was 1 WARNING message shown.
发表了主题帖: 【米尔ARM+FPGA架构之作MYD-JX8MMA7开发板】 MYB-JX8MMA7硬件电路的分析学习
所有电路各部分电源均通过磁珠,或者0Ω电阻,连接到对应的电压源,进行隔离和滤波。 插座外壳地EARTH,与电路信号地GND采用ESD防护隔离电路(1MΩ // 1nF/2kV, 1205)进行保护。1.1. IO
Reset Key连接到SYS_nRST和POR_B,采用二极管并联,防止两个相互影响。 按键采用(电容 // TVS)进行硬件滤波和ESD保护。 SDIO采用TVS保护所有信号线。SD_DATA0~4和SD_CMD采用10K上拉,SD_CLK无上拉。【除SD_CLK外,其余信号未采用串联电阻进行阻抗匹配】。 LED(Red、Blue)串联限流电阻470R共阳至3.3V,是否过低?并且红色和蓝色LED限流电阻均相同,没有考虑亮度、LED压降等关系。1.2. RGMII
MDC/MDIO采用2.2K/10K上拉至VDD_3.3V,MDC串联0Ω电阻。 ETH_TRXPx/Nx信号线上采用SRV05-4进行ESD防护。 以太网RJ45插座外壳地EARTH,与电路信号地GND采用ESD防护隔离电路(1MΩ // 1nF/2kV, 1205)进行保护。 ENET_RX阻抗匹配的串联电阻靠近PHY侧。 #. RGMII-PHY(YT8521)支持HSIP/HSIN、HSOP/HSON,【支持采用SFP光纤头】,板上未使用。 #.1.3. USB
DPU/DMU直接连接到SoC的USB2接口,对应的ID通过0Ω电阻,固定连接到GND(SoC作为Host模式)。 HOST1、HOST2的DP/DM差分对采用共模电感90Ω/280mA进行信号滤波。采用TVS进行ESD保护 HOST1、HOST2的VBUS直接通过保险丝0.75A连接到VDD_5V,滤波电容47uF。 USB母座外壳地EARTH,与电路信号地GND采用ESD防护隔离电路(1MΩ // 1nF/2kV)进行保护。 TypeC母座直接连接到SoC的USB1接口, TypeC所有信号触点(DP/DM/CC1/CC2/),采用TVS进行ESD保护 TypeC的VBUS,通过USB电源开关芯片NX5P3090UKZ(利用NMOS作为3.3V电平转换控制EN使能引脚),实现VBUS电源开关、过流保护等。输出滤波电容47uF。输出保护TVS型号为:SMBJ6.0CA。 使用PTN5150作为TypeC/PD的协议控制芯片,连接到CC1/CC2,主控SoC通过I2C+nINT接口进行通讯和控制。【nINT开漏输出,通过100K连接到3.3V,可以不需要电平转换。?那为什么USB1_ID有需要呢?】1.4. HDMI
使用RS0102(江苏润石)进行HDMI-DDC的I2C接口的电平转换(SoC/3.3V <–> HDMI/5V)。 HDMI-HPD热插拔监测通过NPN三极管放大,默认下拉,当HDMI显示器插入HDMI插座后,HDMI-PD高电平,导通NPN三极管,从而使得发射极为高电平,使得SoC检测到HDMI插入。 HDMI与LVDS的信号线采用 PCMF2USB3S (共模电感+ESD保护)进行信号滤波和保护。 DSI转LVDS/HDMI芯片LT8912的DSI接收端,采用0Ω电阻进行阻抗匹配调节。 HDMI输出信号线无需上下拉电阻(采用的专用HDMI发送芯片电路)。1.5. CSI
使用RS0102/RS0108(江苏润石)的电平转换芯片,实现CSI-Camera接口的电平转换(SOC/3.3V <–> CSI/1.8V)。 Parallel Camera的信号线均采用22Ω电阻进行阻抗匹配。 MicroSD信号线采用47K上拉至3.3V,并使用ESD保护。 MicroSD的CLK信号采用22Ω电阻进行阻抗匹配。1.6. Power
12V输入电源经过 DC插座-保险丝-瞬态电压抑制TVS-共模电感CML-滤波电容-开关。 VDD_5V_SOM和VDD_3V6自动使能,持续在线。 DCDC的反馈分压电阻,上臂电阻带有小电容(nF),提高电压调制闭环反馈的动态响应速度。 VDD_5V受到EN_V5V,VDD_3V3受到EN_VDD3V3信号的控制,而EN_V5V和EN_VDD3V3又通过POR_B控制。1.7. 上电运行 从SD卡启动时,在Kernel引导至 PCIe PLL clock xxx时,有时会停滞(特别是myir-image-full, myir-image-core的初次启动。
在核心板上安装散热片后,其温度从60降低到40.1.8. FPGA测试 使用JTAG调试器连接到开发板,
然后在VIvado中
发表了日志: EEWorld邀你来拆解(第八期) —— 蓝牙键盘拆解
发表了主题帖: EEWorld邀你来拆解(第八期) —— 蓝牙键盘拆解
使用体验 该蓝牙键盘外观结构是按照iPad(2/3/4)竖立形式的使用来设计的,由于没有这种iPAD,因此使用智能手机(Redmi K50Pro)进行使用测试。 按照手册,连接USB到充电器,充电一晚上后充电红灯依然是红色,意味着没有充满电,拔下USB发现无法开启,只能一直持续插着USB线进行使用。
拨动开关键到“on”位置,键盘右下角充电红灯(Charge)亮, 蓝灯(Bluetooth)亮几秒之后开始闪烁,应该是在广播蓝牙包等待连接。 在智能手机中打开蓝牙,扫描发现蓝牙键盘“Bluetooth Keyboard”。 点击连接后,手机显示配对码。 在键盘上输入对应的配对码并回车,就连接好了。 在手机上可以对键盘进行设置,进行正常的键盘输入。整个过程如下图:
5.2. 拆解分析 加热法拆下前盖
根据外观,推测是卡扣式或者胶合式的机械结构固定安装方式, 使用撬片对外壳进行小幅度的撬动后,发现有胶状物的拉丝,因此应该是胶合式安装。 如果大力拉扯,铝合金前盖面板将严重弯折,需要采用加热法来拆解。由于没有那种加热台,只有一个焊接热风枪可以加热,而又希望拆解后能够重新装回复原,不影响使用,因此不太想用热风枪进行加热,怕损坏。 想了一下,可以用热水加热,确保温度最高不会超过100℃,一般就是60–80℃左右,刚好可以做加热。
烧了一壶开水倒在盆里, 然后将蓝牙键盘用塑料袋密封防水蒸气后,放置在水面上, 盖上后保持加热10~15分钟, 取出来后发现温度在手感到烫但能承受的程度,应该不到60℃。 但此时用撬棒就能比较轻松地取下前盖面板了。取下前盖面板如图:
取下前盖面板后,主体如下图,包含了按键阵列、PCBA、电池、后盖。
电路分析和测试 取下电路
电路背面
背面一共8行,15列的连接期的过孔,过孔开窗没有阻焊油。USB接口、充电芯片、MCU
MCU、EEPROM
MCU采用的是络达AB1107方案,经过网络查询,络达AB1107蓝牙芯片具有以下特点: 片上内置了对常见的键盘和鼠标接口的支持,因此无需外部处理器,从而降低了无线外设产品的总体材料成本。 集成了可编程键扫描矩阵接口,支持8 x 20键扫描矩阵,因此就键盘和鼠标产品而言,省去了其他方案所需的外部组件。 内置了面向3D眼镜的快门控制功能,可实现先进的、通过蓝牙(提供比红外技术更可靠的连接,红外技术目前在这类应用中占主导地位)与3D电视机进行信号同步的主动快门式眼镜。 具有卓越的接收器灵敏度,最大限度地延长和扩大蓝牙外设的连接距离和覆盖范围。 具有与蓝牙3.0的兼容性,提供增强的单点传播无连接传输模式(UCD)下的功率控制功能,可降低功耗、延长电池寿命。 EEPROM是24C64,应该是给蓝牙MCU芯片AB1107的配置信息。电池
电池已明显鼓泡,难怪充一晚上都充不进电。充电测试
用万用表测量插上USB时的电池焊点电压,为4.20V,刚好是锂电池的充满电电压,而拔下USB后,发现电压很快降低到0V。 因此可以判定,锂电池严重鼓泡,已经损坏。5.3. 复原重新使用 重新装回去,基本复原(前盖面板跟PCBA没有胶水的胶合,不能紧密贴合在一起),然后插上USB充电,开启后,正常使用,一如之前。
发表了日志: EEWorld邀你来拆解【第八期】—— 拆解蓝牙无线键盘
发表了主题帖: 【BIGTREETECH CB1】—— HomeAssistant智能家居系统控制的手机客户端操作
登录后的设备总览
智能设备的控制和信息面板
可以在此点击test-esp32-s3智能设备的开关按钮,从而将对应电器开/断,实现智能家居的远程无线控制功能。同样在消息通知中看到python-3.9.2不支持最新版的信息。
上一页
发表了主题帖: 【BIGTREETECH CB1】—— CB1的HomeAssistant智能家居系统控制ESP32的智能家居设备
查看ESP32-S3的设备信息和实体信息
3.2. HomeAssistant客户端操作 并可以通过网页端,手机客户端进行操作。
发表了主题帖: 【BIGTREETECH CB1】—— 源码安装最新版Python-3.11.1 和最新版HomeAssistant-2.3
mkdir python-3.11.1 cd python-3.11.1 wget https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tgz tar -xvf Python-3.11.1.tgz下面开始编译python-3.11.1,
参考 Debian 11上安装Python 3.10,并切换系统默认Python版本 (https://www.cnblogs.com/STangQL/p/15647583.html) mkdir build install cd build ../Python-3.11.1/configure –prefix=$HOME/python-3.11.1/install –enable-optimizations make make install各命令的输出信息
2.4. 使用编译安装的python-3.11.1安装最新版的HomeAssistant-2023.2 同样参考HomeAssistant官网步骤 https://www.home-assistant.io/installation/raspberrypi#install-home-assistant-core 最后发现在在安装最新版的HomeAssistant(截止2023-02-08,最新版为HomeAssistant-2023.2.3),出现编译错误,错误信息为: 错误为:找不到python的头文件“longintrepr.h”, 网上搜索一番,大多数都是Python-3.11之类的问题,可能造成了某个改动,太过复杂繁琐,并不能提升技术水平,因此不再深入。使用python-3.9.2的HomeAssistant-2023.1.7一样满足使用需求。
发表了主题帖: 【BIGTREETECH CB1】—— 安装HomeAssistant
https://www.home-assistant.io/installation/raspberrypi#install-home-assistant-coredebian镜像切换为国内清华大学的tuna镜像源
参考 Debian 镜像使用帮助 (https://mirrors.tuna.tsinghua.edu.cn/help/debian/) sudo vi /etc/apt/sources.list切换pip源# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
从pip官网下载太慢(40KB/s),参考 Python 修改 pip 源为国内源 (https://www.cnblogs.com/137point5/p/15000954.html) pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple与文中的差别在于
原文是针对树莓派,系统自带gpio和i2c用户组,而CB1系统没有这些用户组,因此命令 sudo useradd -rm homeassistant -G dialout,gpio,i2c 应当改为 sudo useradd -rm homeassistant -G dialout在最后运行
pip3 install homeassistant==2023.2.0 出现错误,提示未发现2023.2.0版本的HomeAssistant,不指定最新的HomeAssistant版本,即:pip3 install homeassistant 整个过程如图:可能pip源还没有更新, 附注:后续在安装的HomeAssistant中提示,当前系统python版本为3.9,已被2023.2.0版本停用,需要更新到Python-3.10版本以上才能用。
完成安装后的命令行结果如图:
2.2. 运行使用HomeAssistant- 安装后,命令行输入 hass,即可运行HomeAssistant服务。
(注:从命令行输出信息可以看到,之前安装pip3 install home-assistant==2023.2.0不成功的原因在于,HomeAssistant-2023.2停止对当前Python-3.9.2版本的支持,所以只能安装python-3.9.2支持的最新版——HomeAssistant-2023.1.7) 2.2.1. 配置HomeAssistant 在浏览器地址栏输入 http://X.X.X.X:8123 (replace X.X.X.X with your machines’ IP address).就进入HomeAssistant的浏览器界面。初始化配置依次为如下: 首先是创建用户
设置用户信息后登录:
登录后,自动发现HomeAssistant支持的设备
测试中发现,系统接入的无线网络中的路由器(华为AX3 Pro)支持HomeAssistant:Settings/repair信息
在左方侧边栏的Settings中有一条信息标志,点开后发现有一个repair信息,提示,同样验证了之前安装最新的HomeAssistant-2023.2.0失败的原因:HomeAssistant-2023.2将不再支持python-3.9,要求至少python-3.10及以上版本。
发表了日志: #春节拆解会——(四)拆一个坏掉的美的电磁炉
发表了主题帖: #春节拆解会——(四)拆一个坏掉的美的电磁炉
型号分别是: MKP5uFJ 275V-X2(400VDC) -40/105/21 MKP2uFJ 275V-X2 -40/105/21 MKPH 0.3uF±5% 1200V -25/105/21用户控制板通过5P排线端子接在主控板上 用户控制板的按键和显示LED 用户控制板的背面 用户控制板的背面IC:型号SM1668 从图中看出,主控板有大量水渍、油渍,并且多个元器件引脚锈蚀严重,表面碎裂,无维修价值,即使勉强修好,也会使用不了多久就产生其他故障,并且会存在安全隐患。 4.3. 解决方案:
买新的 经过网络搜索,发现可以买到单独的主控板等,可以如图:
发表了日志: #春节拆解会——(二)拆解一个自动水位控制器
发表了主题帖: #春节拆解会——(二)随拍附近装的太阳能路灯
回复了主题帖: #春节拆解会——(一)拆解一个淘宝买的血氧仪
nmg 发表于 2023-2-2 17:43 退货前给拆了竟然还给你退?组装回去就是了。。。。
发表了日志: #春节拆解会——(三)拆解一个自动水位控制器
已有625人来访过
现在还没有留言