[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hello world example with qemu-system-arm
From: |
Peter Maydell |
Subject: |
Re: Hello world example with qemu-system-arm |
Date: |
Sat, 14 May 2022 11:57:33 +0100 |
On Fri, 13 May 2022 at 23:59, James Gutbub <jgutbub@asu.edu> wrote:
>
> arm-none-eabi-as -march=armv7-a startup.s -o startup.o
>
> arm-none-eabi-ld startup.o -Map=test.map -o test.elf -e _Reset
>
>
>
> qemu-arm -cpu cortex-a7 -d in_asm,exec,cpu,int,unimp,guest_errors,nochain -D
> test.log test.elf
>
>
>
> qemu-arm: Unable to reserve 0xffff0000 bytes of virtual address space at
> 0x1000 (Permission denied) for use as guest address space (check your virtual
> memory ulimit setting, min_mmap_addr or reserve less using -R option)
You don't say what's in your test.map, but it is probably
trying to put bits of the ELF file in places that make
qemu-arm's attempt to reserve address space unhappy.
'-R 0' will probably be enough to work around this.
-- PMM