Questions tagged [arm64]
64-bit ARM architecture, also known as AArch64.
1,932
questions
0
votes
1
answer
49
views
dma_set_mask_and_coherent with 24Bit DMA Mask for PCIe on arm64
I am writing a PCIe driver and have trouble with setting the dma mask.
The host is a zcu102 with a Quadcore ARM-Cortex A53.
The PCIe device is a custom Device.
The kernel is 5.15.0-1023-xilinx-zynqmp ...
1
vote
1
answer
52
views
Array placed in weird address different from linker script (arm64 baremetal)
In aarch64 baremetal program build, some array in the C program is given section attirubtes so that they are placed at .axpudata_args0, .axpudata_args1, ... sections and This is the linkadd.h file ...
-1
votes
0
answers
16
views
"Exec format error" running ROS 2 Humble in a docker image on raspberry pi?
How can I get a ROS image built on arm64? Building with --platform linux/arm64 doesn't work because all the ROS images are built with amd64. When I tried to build ROS from source within the docker ...
0
votes
0
answers
26
views
relocation truncated to fit (in arm64 baremetal program)
In my aarch64 baremetal program, this line causes an error.
printf("axpu_kernel_binary = %p, axpu_kernel_binary_len = %x\n", axpu_kernel_binary, axpu_kernel_binary_len);
By the linker ...
0
votes
0
answers
29
views
Unhandled exception on ARM64: Unable to load libwkhtmltox.so in .NET Core 3.1 Docker image
I'm facing an issue while trying to run a .NET Core 3.1 application in a Docker container on an ARM64 server. The application uses the libwkhtmltox package for some functionality. The Docker image ...
0
votes
0
answers
12
views
Is it possible to install libgl1-mesa-dev and libglu1-mesa-dev on arm64 and arm64 architecture together?
I am using host on Ubuntu 22.04.3 LTS to compile the project on amd64 and on arm64. However, I have a problem installing libgl1-mesa-dev and libglu1-mesa-dev libraries. When I have the amd64 version ...
0
votes
0
answers
12
views
qemu-system-aarch64: kvm_init_vcpu failed: Invalid argument
Successfully integrated QEMU in my device and tried to launch cuttlefish but it is getting "qemu-system-aarch64: kvm_init_vcpu failed: Invalid argument" related issues.
$ qemu-system-aarch64 ...
0
votes
0
answers
51
views
How to create a socket on Apple Silicon (aarch64 macos) assembly
I'm trying to create a socket using aarch64 assembly on a Apple Silicon device, here's what I have so far.
.equ SYS_write, 4
.equ SYS_exit, 0x80
.equ SYS_socket, 196
SOCK_ID: .byte 0
.text
.global ...
-1
votes
0
answers
29
views
Amazon linux 2023 arm64 & postgresql 16 [closed]
Does anyone have experience installing Postgresql 16 on al2023 Arm64
cat /etc/os-release
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
...
-2
votes
0
answers
24
views
arm64 docker image unable to run in virual machine inside mac silicon [closed]
unable to run docker images built linux/arm64 on my virtual machine
tired to run the command but its giving a warning:
WARNING: The requested image's platform (linux/amd64) does not match the detected ...
0
votes
0
answers
38
views
Running exe file on ubuntu arm64
I have a oracle cloud server with ubuntu 22.04 on arm64. I want to run an executable windows file on it. To be specific, I want to install TikTok Live Studio, which is currently only available for ...
1
vote
0
answers
33
views
switching exception level el3 to el1
I was competed Enabled Quad core for Arm Cortex a53, now I want to trigger interrupt. The interrupt present in exception level 1 (EL1). There is an issue while I am switching EL3 to EL1. When I jump ...
0
votes
0
answers
18
views
compiling on an ARM64 system using g++, avoid using the built-in fcvtzu and instead use g++'s cvttss2si
#include <iostream>
int main() {
float f = -1500;
unsigned int i = f;
std::cout << "i = " << i << std::endl;
return 0;
}
In an ARM-based operating ...
0
votes
0
answers
35
views
Issues Compiling Double Precision fortran programs on Apple M2
I'm trying to load and compile several of Mark Drela's programs (Xfoil, AVL) on my new M2 macbook pro. I've compiled these before on intelx86 but I'm running into several very curious issues on apple ...
0
votes
0
answers
8
views
Building armhf PERL packages in a docker image using the arm64 host's kernel image
I'm trying to build the OCS Unix agent using the following git project : https://github.com/OCSInventory-NG/Packager-for-Unix on a gitlab CI/CD pipeline.
I have docker images with armhf packages but, ...
0
votes
0
answers
49
views
Register mutation, is it a CPU hardware issue or a software issue
my android system run monkey,A very strange bug,Register mutation, is it a CPU hardware issue or a software issue?
console log:
-(3)[860:] Unable to handle kernel read from unreadable memory at ...
0
votes
1
answer
26
views
What is the problem when the AArch64 bl jump is greater than 128 MB
Manual Description
Branches
B
PC relative branch ±128 MB
Conditional version B.cond (covered later) has ±1 MB range
BL
Similar to B (branch range ±128 MB) but also stores return address in ...
0
votes
0
answers
44
views
how to fix an apple silicon arm64 program thats getting an error saying that two of the variables are not 4 aligned
The error that I am getting is complaining about one of the string variables and the input variable that is set to six for testing. It says that they are not 4 aligned. This is on my mac mini with an ...
0
votes
0
answers
25
views
Number to ascii in armv8 assembly
I need help converting numbers to ASCII. This is my code so far:
.global itoascii
itoascii:
/* Initialize variables */
mov x1, #10 /* Divisor */
mov x2, buffer /*...
0
votes
0
answers
22
views
Android: Missing L1/L2/L3 cache size files
I want to find out the L1/L2/L3 caches' sizes of my Android phone from the command-line.
I used ADB to log into my Android phone and I've been trying to learn what the cache sizes are the usual way, ...
0
votes
1
answer
43
views
Edit Cocoapods xcconfig file arm64
I noticed that Pods-target.debug file generated by the pod install has "EXCLUDED_ARCHS[sdk=iphonesimulator] = arm64".
I want to remove this line from the PODS config file.
I know as per the ...
0
votes
1
answer
48
views
Compiled GoggleTest on AndroidStudio gives not a Win32 application error when given a arm64 phone
My compiled google tests are giving me the following error:
Error running test executable.
Path: 'C:/repository/app/build/intermediates/cxx/Debug/6t1p3yv6/obj/arm64-v8a/UnitTest'
Result: %1 ...
0
votes
0
answers
119
views
Different behaviour of double to integer in different architectures and unit tests [duplicate]
I'm trying to understand how to avoid a different behaviour on different archs when working with double precision math and using integers as a way to "trunc/round" them...
Here is a minimal ...
0
votes
1
answer
22
views
Need help to build kuksa databroker for aarch64 or for arm64
I m using ubuntu 22 version x86
I m try to build kuksa_databroker
tools intsalled for this :-
rust newest version
cargo
rustup
then I m trying to run command
cargo build --target x86_64-unknown-linux-...
-1
votes
0
answers
50
views
conda installation broke after update on MacOS14.1 M1 Pro
I tried to install different tools on my Macbook using Conda. After some problems due to arm64 and osx-64 incompatibilities, I followed the advice given here:
CONDA_SUBDIR=osx-64 conda create -n ...
3
votes
1
answer
58
views
How to load global data to NEON registers more efficiently in Go's Assembler?
There is p256one global data in the arm64 asm code as sample:
DATA p256one<>+0x00(SB)/8, $0x0000000000000001
DATA p256one<>+0x08(SB)/8, $0xffffffff00000000
DATA p256one<>+0x10(SB)/8, ...
1
vote
0
answers
50
views
Function of __syscall_cp In Musl Libc
I am working with a fork of Musl libc to add to a toy operating system I am building for a project. One of the challenges is that my OS has a slightly different calling convention which has ...
0
votes
0
answers
32
views
Rails app crashing on any valid route, dyld[random number]: missing symbol called
I have switched to the M2 chip. I was able to run a few Rails apps without any issues.
Now I'm trying to set up a new Rails app and I'm able to create and migrate the database, starting the Rails ...
-1
votes
0
answers
54
views
My XAMPP is for Apple M2 but its PHP only supports x86_64
I have successfully installed XAMPP 8.2.4 in my Macbook with Apple M2 Max running on Ventura 13.5. I used the XAMPP download file that supports intel (x64) or Apple M1 (arm64) CPUs. I did not have any ...
0
votes
0
answers
28
views
How to build Gstreamer for aarch64 Docker image?
I am trying to build gstreamer for an app that will run on Axis IP cameras. The ACAP native SDK documentation has a docker toolchain to build and install the app.
I need to statically link the files ...
0
votes
1
answer
46
views
Trouble opening and reading file in ARM64 assembly on apple mac M1 cpu
.section __DATA,__data
.p2align 2
buffer:
.zero 4096
.section __TEXT,__text
.global _main
.build_version macos, 13, 0
.p2align 2
_main:
// x9: buf ptr
// x10: file descriptor ...
0
votes
1
answer
43
views
Lambda Layer of Npm Package for (ARM64 Arch)
I tried creating a AWS Lambda Layer for npm package Sharp using this Medium Blog but it is not working for AWS Lambda ARM64 Architecture.
I got this error from lambda function:
"Cannot find ...
-2
votes
0
answers
24
views
Docker configuration files copy from a GitHub repository
Im following the the book <PHP & MySQL: Novice to Ninja, 7th Edition> instructions,installing the Docker and copy configuration files from a GitHub repository:
docker run --rm -v ${PWD}:/...
1
vote
0
answers
54
views
Android qemu emulator tool cross compiled for arm64 not able to boot emulator
I have a mac studio machine with an m1 cpu running Ubuntu. I would like to run arm android emulators on it but as of yet I have been unable to do so. I have tried both arm and x86 emulator images and ...
0
votes
0
answers
137
views
Installing superset I am getting this 'error no support for running processes with linux/amd64/v8 platform, supported: linux/amd64, linux/amd64/v2'
I wanted to run Apache superset in my Mac M2 by Docker compose. But it is constantly giving me error.
% docker compose up
WARN[0000] The "CYPRESS_CONFIG" variable is not set. Defaulting to ...
0
votes
0
answers
37
views
Why does profiler in QNX Momentics IDE not show source while debugger does?
I have built a C++ application with an gcc 8.3.0 cross-compiler for AArch64 using the compile arguments -no-pie -g to enable debugging and profiling (without instrumentation, just with sampling). I ...
1
vote
0
answers
63
views
Can I execute as/nasm commands from a C program?
Im writing a simple compiler for my own programming language.
After the compiler generate the .s file I need to assemble it and I chose to use as since im on MacOS(ARM64).
These are the commands that ...
0
votes
0
answers
50
views
Is perf sampling reliable in arm Linux?
I wrote a demo to test the reliability of perf and there is a strange thing which I can't explain, my demo code:
int main(){
while(1){
asm("nop");
asm("nop");
...
0
votes
0
answers
35
views
In ARM64 Assembly, output is only showing %d
I'm new to assembly in general and I can't figure out what i'm doing wrong in this code.
.text
.global _start
.align 2
_start:
mov x0, #2 // first number
mov x1, #2 ...
1
vote
1
answer
61
views
Decompiling ARM64 and understanding branch targets bounderies
When decompiling code from arm64, how can one know if an unconditional branch instruction b is a branch to a label in the same function and not to some other function?
How do state of the art ...
0
votes
0
answers
20
views
Flutter , Android app ffi package routes problem
We are developing and Flutter app using an FFI custom package.
When compiling everything the library compile is this structure.
opencv_ffi /
x86_64
x86
armeabi_v7a
arm64_v8a
but when create the apk ...
0
votes
0
answers
54
views
Why does a bare-metal app crash on the entrypoint function?
I have a small bare-metal app for Raspberry PI 3B (emulating by Qemu) and, unfortunately, it crashes in some cases but first let's I will show my code.
kernel.c:
#include "stdio.h" // It's a ...
0
votes
0
answers
43
views
exec /usr/bin/bash: exec format error when 'docker run' an image on aarch64 host after 'docker buildx'
I have a docker image that can be loaded as container on amd64 host, and I want to run its container on an arm64 host, so I have tried
docker buildx build --platform linux/arm64 -t <image-name>-...
2
votes
1
answer
108
views
Using string constants in Rust inline assembly
I am trying to execute a write syscall using inline assembly in Rust. Basically I'm trying to reproduce this hello world example. I'm trying to pass in a reference to a string slice as my message, but ...
0
votes
0
answers
32
views
How do I create a Makefile for building an 64 bit Operating System for Raspberry Pi 4B's ARM architecture?
How do I create a Makefile for building an 64 bit Operating System for Raspberry Pi 4B's ARM architecture?
This is what I have so far, am I on the wrong track?
I don't know what values to assign to ...
0
votes
0
answers
60
views
How to compile a pie(position independent executable) lib in rust, and use this lib in another crate?
I want to compile a pie lib in rust and use it in another cargo project but I met some compile errors. This is the src/lib.rs code of the pie lib:
#![feature(restricted_std)]
...
0
votes
0
answers
48
views
MAUI.NET - wpcap DLL not found when using sharpPcap
I've been working on a project on OS X (arm64) where I've used sharpPcap for packet capture. It was a .NET 7 console app as I was still figuring out the plan ... But everything was working fine, here'...
-1
votes
1
answer
104
views
JVM hang suddenly with jdk version 8u1.8.0_312
Our online Kafka Broker service suddenly hung up, and it's occurs with low probability and without any time regularity. no crash, no warning, no error and no logs
The command "jstack [pid]" ...
0
votes
1
answer
71
views
RPI aarch64 cross compilation : unable to link
I'm trying to cross compile for the raspberry pi 4 (64 bits) using cmake from Ubuntu 20.04.
I'm using the latest bullseye image with desktop and recommended software from the official raspberry ...
-1
votes
1
answer
63
views
Why is it not supported to cross-compile v8 for Android platform on Windows platform
“Android builds are only supported on Linux and Mac hosts”
There is such a sentence in the file BUILDCONFIG.gn,But there is not much explanation, and there is no information on the official website.I ...