All Questions

Tagged with or or
Filter by
Sorted by
Tagged with
-1 votes
1 answer
13 views

how can I cross compile code for ARMv7-m with an FPU with gcc on Ubuntu?

I am attempting to compile some C code targeting the armv7-m platform with the vfpv3-d16 FPU on Ubuntu 22.04 running in WSL2. I am able to compile a simple "hello, world" program with arm-...
kelleyr's user avatar
-1 votes
0 answers
14 views

Can a computer without an ARM cpu run an ARM simulation (on gem5) in a virtualbox VM?

I have a Intel Mac with gem5 installed. I am attempting power modeling but am a bit confused by the documentation (https://www.gem5.org/documentation/learning_gem5/part2/arm_power_modelling/). At any ...
iceninja21's user avatar
0 votes
0 answers
10 views

Issue while creating docker image on apple M1

I am trying to create a docker image on Apple M1 machine. But it shows some issues at one step(image is created though, but container doesnt run for it): COPY bin/linux/tempo-arm64 /tempo Error is: ...
Mandroid's user avatar
  • 6,037
0 votes
0 answers
12 views

Boost library cross compilation to embedded ARM with b2 builder error

I'm getting an error when I'm trying to build boost libraries for ARM on Windows. I'm using gcc "arm-linux-gnueabi" cross compiler that works just fine on the Eclipse ARM DS-5 platform. But ...
Siver's user avatar
  • 9
0 votes
0 answers
9 views

arm linux how to unify multiple networks? [closed]

There is an embedded product, the hardware platform is arm, the software operating system is linux, the device has multiple networks, there are wired network, wireless wifi, and 5G mobile ...
Ken.Zhang's user avatar
0 votes
0 answers
7 views

App Linking Failed after building in Xcode

When I build my react native project in Xcode it builds Successfully and on linking time to simulator it shows the error in one of the library called HuaweiAnalytics. The Error is like below: "In ...
Yash Nayi's user avatar
-1 votes
0 answers
20 views

How can I emulate Raspberry Pi OS with QEMU on Windows?

I tried to emulate Raspberry Pi OS with Desktop (32-bits, kernel version 6.1, Debian bullseye) with QEMU 8.0.2 in Windows 11, this is the batch script that I made: qemu-system-aarch64.exe ^ -M virt,...
ThreeNamesGrace's user avatar
-1 votes
0 answers
17 views

Visibility of memory writes in different CPU architectures

As a followup to this question, I'd like to know which real-world ISAs, if any, have instructions for explicitly flushing the cache/writing to the main memory. And under what circumstance are these ...
Malt's user avatar
  • 28.8k
0 votes
1 answer
33 views

Undefined reference to math functions despite no use

I am working with an embedded ARM device and am compiling a program. I want to minimize the memory used. I use the GCC-ARM toolsuite to build the program. However on linkin, I get the error: /opt/gcc-...
user16747442's user avatar
0 votes
0 answers
16 views

Installing the correct arm64 packages when doing a multi-platform cross-compilation Docker build

I built a multi-platform Docker image using Linux and installed numpy via pip requirements.xt file. The image builds fine and the container runs well on Windows/Linux, but when running on an M1 mac ...
ciron's user avatar
  • 1
-1 votes
0 answers
16 views

LibreOffice for arm64 rockylinux [closed]

I need to install LibreOffice (preferably 7.1 and up) on rockylinux8/9 for aarch64. However, as the official list on https://downloadarchive.documentfoundation.org/libreoffice/old/ does not offer any ...
Bshoza's user avatar
  • 9
1 vote
0 answers
18 views

Does ASLR impede QNX Neutrino C++ profiling?

When profiling with the Momentics IDE for arm aarch64 using "Sampling" without "Call Count Instrumentation" after compiling the executable with "-g", the "Execution ...
Benjamin Bihler's user avatar
-1 votes
0 answers
16 views

If there is 'Input Denormal' exception, then why there is no 'Output Denormal' exception?

Arm has "Input Denormal" floating-point exception: // // FPUnpackBase // ... if fz then // Denormalized input flushed to zero if fpexc then FPProcessException(...
pmor's user avatar
  • 5,310
0 votes
0 answers
30 views

Struggling to wrap C++ library in python with swig on Mac M1 (arm64 architecture)

I have a big library of C++ code that I have already wrapped in python on Ubuntu, dividing the wrap in different modules and everything works. The problems start when I want to do the same operation ...
Simone Sartori's user avatar
0 votes
0 answers
35 views

is it possible to static link the rust application when using apple M1

Recently I am learning rust static linking, now I found a issue that it seems impossible to static linking the rust application when using M1 chip. I have read the official document from here https://...
Dolphin's user avatar
  • 27.2k
0 votes
0 answers
21 views

Is it possible to create a secure world OS without a normal world OS in ARM TrustZone?

I currently working with OPTEE on QEMU to create a trusted application in ARM trustzone. I wonder can OPTEE work without a normal world OS (like linux). I have tried to modify ARM trusted firmware to ...
lastages's user avatar
0 votes
0 answers
23 views

Cmake cannot generate a safe runtime search path for target opencv_highgui (and others)

I am trying to cross-compile OpenCV 4.5.5. My host computer is Ubuntu 20.04. I am getting some issues when generating a runtime search path for some libraries (as far as I understood). It seems that ...
Alexis's user avatar
  • 576
0 votes
1 answer
43 views

How can I handle SIGINT in Apple M1 assembly code?

I am trying to learn assembly for the Apple M1. I want to write a program that goes into an infinite loop and then exits with status 123 when control-c is pressed. I have written the following program:...
Chris's user avatar
  • 1,419
0 votes
0 answers
18 views

ARM NEON: why is vector code slower than scalar?

I am working with assembly for ARM NEON, and I came to a sequence of unrolled instructions that has actually double the execution time when compared to an equivalent scalar loop. I am actually working ...
jcdmelo's user avatar
1 vote
1 answer
59 views

Is there a difference between vst1.8 and vst1.32?

In the ARM Neon ISA, is there a difference between these two instructions? vst1.32 {d12, d13, d14, d15}, [r4] and vst1.8 {d12, d13, d14, d15}, [r4] Based on the psuedo-code in the docs: case type of ...
0xcaff's user avatar
  • 13k
4 votes
1 answer
43 views

C makefile - auto-dependency not generating d files correctly

I have a makefile that used http://make.mad-scientist.net as a resource. The build process works but everything is being rebuild each time. If I run make --debug it says that the d dependency file was ...
themadmstrmind's user avatar
0 votes
1 answer
29 views

ARM raspberry pi dockerize from Windows

I have a Python script that I need to run it on my Raspberry Pi 4. My idea is to dockerize it, my first idea was doing FROM python:3 WORKDIR /usr/src/app copy main.py . copy requirements.txt . run ...
Lleims's user avatar
  • 1,255
-1 votes
0 answers
5 views

How to access older versions of ISA_A64_xml_A_profile?

Note: this question is a follow-up question for this question. Context: The current ISA_A64_xml_A_profile can be accessed uwing this link. Then go to "Arm A64 Instruction Set Architecture" ...
pmor's user avatar
  • 5,310
0 votes
0 answers
34 views

why does data segment get corrupted in arm64 when switch down to EL1 from EL2?

I use uboot to bringup my baremetal application on rk3588. I use following command to boot up fatload mmc 1 0x8300000 rk3588.bin go 0x8300000 I write some freestanding printf function so that I could ...
SONGYJ's user avatar
  • 15
-2 votes
0 answers
26 views

Can we make cores share the same ARM Cortex toolchain?

Can we make cores share the same ARM Cortex toolchain? System details: macOS Catalina 10.15.6, Arduino 1.18.9, Arduino IDE 2.1.1, arduino-cli 0.33.1, Energia 1.8.7E21 This is a list of installed ...
aMike's user avatar
  • 848
0 votes
0 answers
26 views

Ubuntu via UTM on M1 not showing shared folder

I have an M1 macbook pro, using Ubuntu via UTM virtual machine but when I open files application and press "Other Locations" I only see computer and Windows Network but it won't show me the ...
Zohar C.'s user avatar
0 votes
0 answers
9 views

Getting the running time of Xen guest domain (RTEMS)

I have an RTEMS domain (as DomU) in Xen. I want RTEMS not to notice the time passes when it does not run on a vCPU. For example: <A:rtems domain (1 sec)> <2 sec> <B:rtems domain (1 ...
ZGC's user avatar
  • 104
0 votes
1 answer
24 views

Used Migration Assistant to migrate from an Intel Mac to a newer M1 Mac. Now some of my Python programs aren't working due to ImportError

I used Migration Assistant to migrate everything from an Intel Mac to an M1 Mac. Now, when I attempt to run the python program Tiling_2023, which uses matplotlib, I get the following error: > ...
Zanik's user avatar
  • 103
0 votes
0 answers
67 views

Assigning method arguments to proper registers

I am trying to reimplement existing closed-source armv7 application written in C++ and Qt5. This application calls functions from external library (also without sources). There are no headers, so I ...
user1938027's user avatar
0 votes
0 answers
29 views

Getting the running time of Xen guest domain

I need the Xen domain to see the times it was running. I tried rtems and Linux domains on xen4.11, and on both of them, the uptime shows times when the domain was not running on the vCPU. Based on ...
ZGC's user avatar
  • 104
0 votes
1 answer
40 views

why driving an I/O through the bit-banding region is slower than accessing direct registers?

so I was reading through this book called Mastering STM32 until I came to page 216 in which the author was talking about GPIO speed in stm32f4, so he wrote a sample code that toggles a GPIO pin at ...
abdo Salm's user avatar
  • 1,576
0 votes
0 answers
49 views

Encountering Segmentation Fault When Calling log2 Function in ARM64 Assembly Using Clang on M1 Mac

I am currently working with assembly code on an M1 Mac (ARM64 architecture) and I am trying to call the log2 function from the math library (lm). I am using Clang for compiling the code. Here is a ...
Steven Daniel Anderson's user avatar
0 votes
0 answers
20 views

Neon intrinsic vsubq_f32?

When I use neon instructions to improve the performance of C functions, I encounter a problem When I apply vsubq_f32 instruction to calculate : float32x4_t A=vdupq_n_f32(259.235657) float32x4_t B=...
Yates Zhang's user avatar
0 votes
0 answers
48 views

How to create a CPU type in QEMU that is not available by default?

When I try the qemu-system-arm -machine virt -cpu cortex-a53 command on qemu, I get the qemu-system-arm: unable to find CPU model 'cortex-a53' error message. But I can run the same command with qemu-...
Purgoufr's user avatar
  • 725
0 votes
0 answers
18 views

Buildroot build fails with the error "ERROR: we shouldn't have a /etc/ld.so.conf file"

I am using Buildroot version 2022.11 to compile a custom Linux image for a TI Sitara 437x (ARM A9). I am using an external toolchain, which took a while to configure properly, but I think everything ...
Frederic Desy's user avatar
0 votes
0 answers
21 views

Is it possible to specify Python architecture when building with pyinstaller?

I work on old intel-based Mac. We use pyinstaller to build distributives. They work on intel-based machines but on newer Macs we see zsh: killed /Users/...../our_distr_folder it seems, x86 version of ...
user3223180's user avatar
0 votes
0 answers
15 views

Unsupported relocation type error when debugging CHERI capabilities program with GDB

I'm encountering an error message while trying to debug my CHERI capabilities program using GDB. When running the program through GDB, I receive the error 'BFD: unsupported relocation type 0xe802.' ...
James McEwan's user avatar
0 votes
2 answers
66 views

How can i fix code that calculates power of two integers in assembly code

i have a task to write int power (int n, int m) in arm_32 and use it in C program, the function should return n^m I made the code like this, but for some reason it does not work @ Int power (int n, ...
Marko Petrovic's user avatar
-2 votes
1 answer
50 views

How does arm svc instruction works? [duplicate]

How does SVC (SWI) instruction works? Where it puts supevisor call id and other data? Where to get a list of all supervisor call ids, its parameters and return types? Im tried to find that all in ...
TX3's user avatar
  • 3
-1 votes
0 answers
28 views

Specifying symbols address to arm-linux-gnueabi-gcc

I am trying to build a simple C code for an embedded arm system in which malloc and free (and many other symbols) have constant addresses. What argument can I pass to arm-linux-gnueabi-gcc in order to ...
TJR's user avatar
  • 452
0 votes
1 answer
24 views

Where does GDB store its general register layout?

I'm building my own GDB Server instance based on the Remote Protocol. One command sent by GDB is 'g', which reads general registers. The layout of the response to this command is architecture specific ...
Alistair Lowe's user avatar
1 vote
0 answers
58 views

How to determine safely if an arm64 machine supports attaching BPF uprobes

ARM64 linux machines on Microsoft Azure seem to have a bug where attaching uprobes or gdb breakpoints on most (but not all) binaries will result in SIGILL or SIGSEGV being delivered when execution ...
patraulea's user avatar
  • 634
0 votes
0 answers
13 views

/siprtp: symbol lookup error: ./siprtp: undefined symbol: pj_ansi_strxcpy

In pjsip there is a class called siprtp.c at the following address: ~/pjsip/pjproject-2.13/pjsip-apps/src/samples This class contains a reference to the siprtp_report.c class at the same address. ...
amirhossein's user avatar
-2 votes
1 answer
19 views

How to map hardware interrupt to virq without dts under arm?

In certain cases, a virtual device may lack a device tree node. However, there is a possibility that user want to assign a software triggable Shared Processor Interrupt (SPI) to it. How to do it?
Chen Li's user avatar
  • 4,796
-1 votes
1 answer
25 views

MacOS arm64 command-line binary ran on first compile&link but failed with security errors on all subsequent builds

Today I built a Makefile-based set of command-line sound-synthesis tools in native arm64 for the first time on my M1 Mac Studio running Ventura 13.4 (I've been building them x86-64 for the past month ...
nethack's user avatar
  • 36
0 votes
1 answer
32 views

Raspberry Pi Pico disconnects when uf2 file is uploaded

I wrote, following guides and documentations, since I am not very navigated yet in this bare metal interaction, the following arm program to make the LED on pin 25 light up, on the raspberry pi pico. ...
KmerPadreDiPdor's user avatar
0 votes
1 answer
43 views

Why QEMU refuses to run this eabi (bare metal) ARM binary?

I need to get a trace of the machine instructions executed by a bare metal application. I use a STM32 Discovery board for my project, which uses a Cortex-M4 and ARMv7. I want to use QEMU, but it doesn'...
Alessandro Bertulli's user avatar
0 votes
1 answer
37 views

Can pSrc and pDst function arguments in ARM DSP point to same memory?

I use the following functions from ARM DSP library: void arm_fir_f32(const arm_fir_instance_f32 *S, const float32_t *pSrc, float32_t *pDst, uint32_t blockSize); void arm_biquad_cascade_df2T_f32(const ...
maestro's user avatar
  • 149
1 vote
0 answers
54 views

RISC-V/ARM64 cross-compilation of Linux kernel generates an EFI file instead of an ELF, can an ELF file be generated?

This is the Linux kernel generated by RISC-V cross-compilation, and the file command shows that it is in EFI format file arch/riscv/boot/Image arch/riscv/boot/Image: MS-DOS executable PE32+ executable ...
Yuan's user avatar
  • 49
0 votes
1 answer
56 views

Modifying the mach-o executable file .text section to be writable caused a crash

;) What I want to ask is why modifying the .text section in the mach-o executable file (ARM64) will cause runtime crashes? I use some executable file editor (eg: MachOView) to do this。 before ...
hopy's user avatar
  • 559

1
2 3 4 5
279