arm

libvirt qemu-system-arm, error: XML error: No PCI buses available

拜拜、爱过 提交于 2021-02-11 06:21:14
问题 I am trying to run a linux image i created with buildroot with libvirt. If i use qemu-system-arm directly, everything works as intended: /usr/bin/qemu-system-arm \ -M versatilepb \ -kernel output/images/zImage \ -dtb output/images/versatile-pb.dtb \ -drive index=0,file=output/images/rootfs.ext2,if=scsi,format=raw \ -append "root=/dev/sda console=ttyAMA0,115200" \ -net nic,model=rtl8139 \ -net user \ -nographic However, when i try to create the xml from my qemu cmdline, it fails: $ virsh

libvirt qemu-system-arm, error: XML error: No PCI buses available

吃可爱长大的小学妹 提交于 2021-02-11 06:21:10
问题 I am trying to run a linux image i created with buildroot with libvirt. If i use qemu-system-arm directly, everything works as intended: /usr/bin/qemu-system-arm \ -M versatilepb \ -kernel output/images/zImage \ -dtb output/images/versatile-pb.dtb \ -drive index=0,file=output/images/rootfs.ext2,if=scsi,format=raw \ -append "root=/dev/sda console=ttyAMA0,115200" \ -net nic,model=rtl8139 \ -net user \ -nographic However, when i try to create the xml from my qemu cmdline, it fails: $ virsh

How do you use CMSIS without an IDE?

二次信任 提交于 2021-02-10 12:15:47
问题 I am working with STM32F103C8T6 and would like to use CMSIS, which is essentially just register definitions and no code, to make my life easier while still staying at a low level. The problem is that I have no idea how to install the library for use on the command line with Makefile. All documentation seems to be bound with a vendor-specific IDE like STM32CubeIDE. I suppose the first thing to do is to download the CMSIS library, which I found on GitHub. However, after unzipping ARM.CMSIS.5.6

Can I use CMAKE_SYSTEM_PROCESSOR, defined in a toolchain file, in CMakeLists?

隐身守侯 提交于 2021-02-10 12:12:21
问题 I'd like to add Raspberry Pi as a cross compilation target to a C++ project which uses CMake. Following the accepted answer to this question, I've set up the environment successfully. The project has many build targets already, all of them defined in the main CMakeLists.txt in a quite ugly way (it's an old project). In this file, there are some compiler flags set, depending on the CMAKE_SYSTEM_PROCESSOR variable, for example: if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm") # do something endif

Can I use CMAKE_SYSTEM_PROCESSOR, defined in a toolchain file, in CMakeLists?

江枫思渺然 提交于 2021-02-10 12:12:02
问题 I'd like to add Raspberry Pi as a cross compilation target to a C++ project which uses CMake. Following the accepted answer to this question, I've set up the environment successfully. The project has many build targets already, all of them defined in the main CMakeLists.txt in a quite ugly way (it's an old project). In this file, there are some compiler flags set, depending on the CMAKE_SYSTEM_PROCESSOR variable, for example: if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm") # do something endif

Convert a ARM gcc generated library from one soft float bi to hard float abi

扶醉桌前 提交于 2021-02-10 09:22:09
问题 I need to link my firmware (running on STM32L4x6, built with arm-none-eabi_gcc) with two third party libraries (I don't have the source code of these libs). One lib is compiled using hard float abi, and the other is not using float at all and linked probably with soft float abi. I know both abis are not compatible and I fully understand the difference between them, but what if a library does not use float operation at all ? What is preventing to link it with some other code using whatever abi

Convert a ARM gcc generated library from one soft float bi to hard float abi

蹲街弑〆低调 提交于 2021-02-10 09:20:57
问题 I need to link my firmware (running on STM32L4x6, built with arm-none-eabi_gcc) with two third party libraries (I don't have the source code of these libs). One lib is compiled using hard float abi, and the other is not using float at all and linked probably with soft float abi. I know both abis are not compatible and I fully understand the difference between them, but what if a library does not use float operation at all ? What is preventing to link it with some other code using whatever abi

Convert a ARM gcc generated library from one soft float bi to hard float abi

雨燕双飞 提交于 2021-02-10 09:20:30
问题 I need to link my firmware (running on STM32L4x6, built with arm-none-eabi_gcc) with two third party libraries (I don't have the source code of these libs). One lib is compiled using hard float abi, and the other is not using float at all and linked probably with soft float abi. I know both abis are not compatible and I fully understand the difference between them, but what if a library does not use float operation at all ? What is preventing to link it with some other code using whatever abi

Convert a ARM gcc generated library from one soft float bi to hard float abi

青春壹個敷衍的年華 提交于 2021-02-10 09:17:12
问题 I need to link my firmware (running on STM32L4x6, built with arm-none-eabi_gcc) with two third party libraries (I don't have the source code of these libs). One lib is compiled using hard float abi, and the other is not using float at all and linked probably with soft float abi. I know both abis are not compatible and I fully understand the difference between them, but what if a library does not use float operation at all ? What is preventing to link it with some other code using whatever abi

Does hardware memory barrier make visibility of atomic operations faster in addition to providing necessary guarantees?

独自空忆成欢 提交于 2021-02-10 07:12:33
问题 TL;DR: In a producer-consumer queue does it ever make sense to put an unnecessary (from C++ memory model viewpoint) memory fence, or unnecessarily strong memory order to have better latency at the expense of possibly worse throughput? C++ memory model is executed on the hardware by having some sort of memory fences for stronger memory orders and not having them on weaker memory orders. In particular, if producer does store(memory_order_release) , and consumer observes the stored value with