Alright, I got it to work, but only the 32-bit-elf files with the apt arm-none-eabi-gcc, for now
This should light up GPIO pin 21
Compiling commands
and the .elf file is a
Code:
ldr r0, gpiomov r1, #8str r1, [r0, #8]ldr r1, pin21str r1, [r0, #28] bx lrpin21:.word 0x00200000gpio:.word 0x3f200000
Compiling commands
- 1. arm-none-eabi-gcc -Wall -O2 -nostdlib -c main.s -o kernel7.o
2. arm-none-eabi-ld -nostdlib -T link.ld kernel7.o -o kernel7.elf
3. arm-none-eabi-objcopy -O binary kernel7.elf kernel7.img
and the .elf file is a
I will try to get a 64-bit executable working with aarch-elf-gcckernel7.elf: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, not stripped
Statistics: Posted by theINCORRECTone — Mon Jun 24, 2024 9:31 am