arm64

qemu-system-aarch64 exit from within the guest system

 ̄綄美尐妖づ 提交于 2019-12-08 06:15:00
问题 I was wondering if there is a way to exit from qemu from within the guest system in the aarch64 version. For instance the x86 has the isa-debug-exit device which is used for this purpose. Any ideas? Cheers 回答1: The general answer to this question is "do whatever you would do on the real hardware to cause a power-off". The details of this depend on which machine QEMU is emulating. For the aarch64 "virt" board, you can use the emulated PSCI firmware interface to request a powerdown using the

32-bit App with dynamic library crash on 64-bit device

别等时光非礼了梦想. 提交于 2019-12-08 05:00:56
问题 I am facing the following scenario: 32 bit device + app armv7 + dynamic library armv7 arm64 = work 64 bit device + app armv7 + dynamic library armv7 arm64 = doesn't work doesn't work - app crashes on load with the following error: dyld error message library not loaded reason no suitable image found Any explanations? 回答1: Explanation : 32 bit binaries loaded on 64 bit devices fail to do so since the 32 bit pagesize has been changed from 4096 bytes to 16384 bytes in iOS 9. Conclusion : 32-bit

Compiling Libical for arm64 and x86_64 for iOS

扶醉桌前 提交于 2019-12-07 07:09:58
问题 It took some time for me to compile LibiCal for arm64 and x86_64 architecture for iOS(device and simulator). Thought it may be useful for others. Here is the steps I followed to compile LibiCal-1.0. I have taken code from below link Compiling libical and modified a bit to suit for Xcode 5.1 1) download LibiCal from below URL http://sourceforge.net/projects/freeassociation/ Untar and get into libCal-1.0 folder. Then run ./bootstrap (Need to download make tools from http://www.jattcode.com

Can old ARM32 binary files be run on AARCH64 kernel?

柔情痞子 提交于 2019-12-06 23:36:48
问题 I am curious about the feasibility of running old ARM32-Linux programs on AARCH64-Linux machines and I conducted some experiments: write a program "Hello, World!" and compile it statically with arm-none-linux-gnueabi-gcc and aarch64-linux-gnu-gcc. statically build and create a ramdisk using busybox and aarch64 compiler. put the 2 "Hello, World!" programs (in ARM32 and AARCH64) to the ramdisk. build a simple AARCH64-Linux kernel with vexpress_defconfig and aarch64 compiler. run the kernel and

qemu-system-aarch64 exit from within the guest system

一曲冷凌霜 提交于 2019-12-06 16:07:56
I was wondering if there is a way to exit from qemu from within the guest system in the aarch64 version. For instance the x86 has the isa-debug-exit device which is used for this purpose. Any ideas? Cheers The general answer to this question is "do whatever you would do on the real hardware to cause a power-off". The details of this depend on which machine QEMU is emulating. For the aarch64 "virt" board, you can use the emulated PSCI firmware interface to request a powerdown using the SYSTEM_OFF function. The PSCI API documentation is here: http://infocenter.arm.com/help/topic/com.arm.doc

Arm64 Linux Page Table Walk

江枫思渺然 提交于 2019-12-06 14:32:15
问题 Currently I'm developing some research-related programs and I need to find the pte of some specific addresses. My development environment is Juno r1 board (CPUs are A53 and A57 ) and it's running arm64 Linux kernel. I use some typical page table walk codes like this: int find_physical_pte(void *addr) { pgd_t *pgd; pud_t *pud; pmd_t *pmd; pte_t *ptep; unsigned long long address; address = (unsigned long long)addr; pgd = pgd_offset(current->mm, address); printk(KERN_INFO "\npgd is: %p\n", (void

Error while trying to compile android kernel in ubuntu

吃可爱长大的小学妹 提交于 2019-12-06 01:29:53
I'm trying to compile a Android Kernel from source and I believe I have downloaded all the right packages to do it but for some reason I get this error ---> arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only' /home/livlogik/android/kernel/H901BK_L_Kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed make[1]: *** [kernel/bounds.s] Error 1 Makefile:858: recipe for target 'prepare0' failed make: *** [prepare0] Error 2 I have the latest NDK and I'm using Ubuntu 15.10 64bit if this helps. Here is where I have the NDK and kernel ---> NDK ---- /home

ARM64 using gas on iOS?

有些话、适合烂在心里 提交于 2019-12-05 19:10:24
I've got some assembly functions I've ported to 64-bit ARM, and they work fine on Android, but when I tried to compile the same files in Xcode, I discovered that clang uses a different syntax (different from the official ARM documentation). I've found some scripts which convert a source file from one format to the other, but this is not the ideal solution (and it seems these scripts don't work when the source files contain preprocessor defines). Can I simply use gas in Xcode, or configure clang to accept the gas syntax? If not, where is the clang assembler documentation? UPDATE - September

stp aarch64 instruction must be used with “non-contiguous pair of registers”

依然范特西╮ 提交于 2019-12-05 14:26:05
The aarch64 architecture doesn't have instructions for multiple store and load, i.e. there are no equivalents of stm and ldm from armv7 arch. Instead you must use the stp and ldp instructions for store and loading pairs of registers. Accroding to the ARM reference manual: http://www.element14.com/community/servlet/JiveServlet/previewBody/41836-102-1-229511/ARM.Reference_Manual.pdf There are no multiple register LDM, STM, PUSH and POP instructions, but load-store of a non-> contiguous pair of registers is available. My question is, what does non-contiguous mean or refer to here? My instant

Compiling Libical for arm64 and x86_64 for iOS

安稳与你 提交于 2019-12-05 13:47:09
It took some time for me to compile LibiCal for arm64 and x86_64 architecture for iOS(device and simulator). Thought it may be useful for others. Here is the steps I followed to compile LibiCal-1.0. I have taken code from below link Compiling libical and modified a bit to suit for Xcode 5.1 1) download LibiCal from below URL http://sourceforge.net/projects/freeassociation/ Untar and get into libCal-1.0 folder. Then run ./bootstrap (Need to download make tools from http://www.jattcode.com/installing-autoconf-automake-libtool-on-mac-osx-mountain-lion/ ) Use below script #!/bin/sh # SEE: http:/