arm

Displaying an image on ARM 9 board

hi all, I need to display images on an embedded system. The board configuration is as follows: It is AT91sam9263-EK, with Linux 2.6.20 kernel running on it. Are there any image processing libraries for this board.The processor is ARM926EJ-S. thank you all ...

Is a signed Android APK-File running on x86- and ARM-Android devices?

Android APK-Files are not binaries but byte-code-files. So is it possible to install the same APK-File on both - on x86-Android-Devices and ARM-Android-Devices? There are some x86-Netbooks with Android installed planned and I wonder if it is possible to run the APK-Files on both kinds of devices? Best regards, Tom ...

Cannot start session in PHP on ARM

I have PHP installed on ARM91. It works fine until I use session_start. Then I get the following Warning: session_start(): read returned less bytes than requested This does not seem to be a permission problem - the sess_* files are created. When you try to put anything into such session, it creates sparse file (17GB size) for the session...

How to Verify Atomic Writes?

Hello all, I have searched diligently (both within the S[O|F|U] network and elsewhere) and believe this to be an uncommon question. I am working with an Atmel AT91SAM9263-EK development board (ARM926EJ-S core, ARMv5 instruction set) running Debian Linux 2.6.28-4. I am writing using (I believe) the tty driver to talk to an RS-485 seria...

Is forcing I2C communication safe?

Hi. For a project I'm working on I have to talk to a multi-function chip via I2C. I can do this from linux user-space via the I2C /dev/i2c-1 interface. However, It seems that a driver is talking to the same chip at the same time. This results in my I2C_SLAVE accesses to fail with An errno-value of EBUSY. Well - I can override this via ...

Ubuntu ARM requirements (CLI only)

Hi. I am using Ubuntu ARM as testing platform on a QEMU emulator. The emulator has 256MB of RAM, but I'm wondering: what are the minimum requirements for running Ubuntu ARM? (CLI only) ...

Who is refreshing hardware watchdog in Linux?

Processor AT91SAM9G20 kernel 2.6 Watchdog is enabled at bootstrap level and configured for 16 seconds. Watchdog mode register can be configured only once. When code hangs either in bootstrap or bootloader or kernel board is taking reboot. But once kernel comes up even though watchdog is not refreshed in any of the application board is no...

How instructions are differentiated from data?

Hi, While reading ARM core document, I got this doubt. How does the CPU differentiate the read data from data bus, whether to execute it as an instruction or as a data that it can operate upon? Refer to the excerpt from the document - "Data enters the processor core through the Data bus. The data may be an instruction to execu...

GCC, ARMboot - Creating standalone application without any library and any OS

I have an embedded hardware system which contains a bootloader based on ARMboot (which is very similar to Uboot and PPCboot). This bootloader normally serves to load uClinux image from the flash. However, now I am trying to use this bootloader to run a standalone helloworld application, which does not require any linked library. Actuall...

iPhone: deactivating Thumbmode for single sourcefiles

Hi! Xcode with GCC 4.2 it seems it's possible to deactivate thumbmode for the whole project, and activate it for single sourcefiles by putting the -mthumb compiler flag in the "Additional Compiler Flags" list of the this file. I'm looking for a way to do the oposite. activating Thumb for the whole project, but deactivating it for some...

iPhone -mthumb-interlinking

hi! os i figured out how to use the -mthumb and -mno-thumb compiler flag and more or less understand what it's doing. But what is the -mthumb-interlinking flag doing? when is it needed, and is it set for the whole project if i set 'compile for thumb' in my project settings? thanks for the info! ...

HD Photo source compile on ARM?

I've downloaded HD Photo Device Porting Kit 1.0 and successfully compiled and executed it on x86 PC. I want to port the image viewer program to ARM-based Windows Mobile Smartphone, but there is some missing ARM code. First, no "/image/x86/x86.h" equivalent header file for ARM. But the file is very simple, so I copied and renamed it to ...

XML Library for C/C++

Hey I'm looking for an XML parser for C/C++, just a parser which I give a string as an argument and it returns me a parsed document represented by a class/struct. The problem is that I am compiling it for the ARM9 processor and I need really just simple code no ./configure and stuff like that and no specific Makefile, just some files wh...

Assembly: convert floatingpointvalue to signed byte

Hi! I currently try to write a program for the VFP unit of the iPhone using ARM assembly code. The VFP can do floatingpoint calculations, but AFAIK no integer arithmetic. However, it can convert a float to a signed integer (4 bytes). Also, according to this quickreference: http://www.voti.nl/hvu/arm/ARMquickref.pdf it seems it does not ...

vector<bool>::push_back bug in GCC 3.4.3?

The following code crashes for me using GCC to build for ARM: #include <vector> using namespace std; void foo(vector<bool>& bools) { bools.push_back(true); } int main(int argc, char** argv) { vector<bool> bools; bool b = false; bools.push_back(b); } My compiler is: arm_v5t_le-gcc (GCC) 3.4.3 (MontaVista 3.4.3-25.0....

iPhone ARMv6 VFP asm latency, throughput and hazards

Hi! in this document: http://infocenter.arm.com/help/topic/com.arm.doc.ddi0301g/DDI0301G_arm1176jzfs_r0p7_trm.pdf on page 21-25 (pdf page 875) the througput and latency timings are given for the assembly instructions of the VFP unit. Are those numbers independant of vectorsize? 1: let's take FMULS which has throughput of 1 and latenc...

Strange behaviour of ldr [pc, #value]

Hi, I was debugging some c++ code (WinCE 6 on ARM platform), and i find some behavior strange: 4277220C mov r3, #0x93, 30 42772210 str r3, [sp] 42772214 ldr r3, [pc, #0x69C] 42772218 ldr r2, [pc, #0x694] 4277221C mov r1, #0 42772220 ldr r0, [pc, #...

Xscale compilers for Linux? (also Xscale compile flags question)

I am currently using a GCC 3.3.3 based cross compiler to compile for a Xscale PXA270 development board. However, I was wondering if there are other Xscale compilers out there that run on Linux (or Windows for that matter)? The cross compiler setup I am using has horrendous performance on the target device, with certain programs that do...

assembler programming in user space

Hi, Is it possible to have a piece of code like this in user space? I mean is it possible to read/write co-processor register in user space in Netbsd / Linux? XYZ]# cat pmc.c static inline int arm11_pmc_ctrl_read(void) { unsigned int val; __asm volatile ("mrc p15, 0, %0, c15, c12, 0" : "=r" (val)); return val; } int mai...

socket() returns 0 C client / server app

I'm working on an application that contains several server sockets that each run in a unique thread. An external utility (script) is called by one of the threads. This script calls a utility (client) that sends a message to one of the server sockets. Initially, I was using system() to execute this external script, but we couldn't use t...