I am trying to print a number that I have stored. I’m not sure if I am close or way off. Any help would be appreciated though. Here is my code: It compiles and runs, but I don’t see anything printed. From what I understand, I need the address of where to start printing in r1, how many bytes in
Tag: arm
How to install cross compiler (on ubuntu 12.04 LTS) for microprocessor SA1100?
Can someone please tell me how to install the cross compiler (programming language C) for the SA1100 microprocessor? I have ubuntu 12.04 LTS. I´m a complete noob to Linux, I just installed Ubuntu yesterday. I need a special variant of the GCC compiler that is named “arm-unknown-linux-gnu-gcc” but don know how to do it. Can someone please help me? Answer
Buildroot : Which gcc for cross compilation?
I am newbee to buildroot. I can see multiple gccs in buildroot. I assume all are for cross compilation. What are the difference between those ? Answer The one you should use is buildroot-2012.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc. The other ones are purely internals binaries.
High mem in arm Architecture
High memory (highmem) is used when the size of physical memory approaches or exceeds the maximum size of virtual memory. The traditional split for architectures using this approach is 3:1, 3GiB for userspace and the top 1GiB for kernel space. This means kernel can at most map 1 GiB of physical memory. In mobile devices average physical memory present is
Problems running MPI (OpenMPI) app on Linux on ARM
I am trying to follow this tutorial for building and running an MPI application on an ARM based Ubuntu 11.10 system. When installing open-mpi environment on my PC machine, the sample program runs well. However, trying the same on the ARM machine, the terminal hangs up and I need to kill the MPI process from a second terminal in order
How to access physical addresses from user space in Linux?
On a ARM based system running Linux, I have a device that’s memory mapped to a physical address. From a user space program where all addresses are virtual, how can I read content from this address? Answer You can map a device file to a user process memory using mmap(2) system call. Usually, device files are mappings of physical memory
How to print out registers in Linux kernel?
I want to print out values of a couple of registers from the linux kernel code running on ARM. Particularly I have the following assembly in linux – How do I print out the values of r2, r3 and r5 in kmsg? I do not want to use the variable names and want to get the values from registers. Answer
Is QEMU good for learning programming in assembler for ARM and PowerPC?
I want to learn programming in assembler for PowerPC and ARM, but I’m unable to buy real hardware for this purpose. I’m thinking about using QEMU for that. However I’m not sure if it emulates both architectures enough well, that I’ll compile and run my programs in native assembler on it? Answer QEMU works well for testing program correction (i.e.