OSDev.org

The Place to Start for Operating System Developers
It is currently Mon May 20, 2024 1:12 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: UEFI bootup on AArch64
PostPosted: Thu Jan 21, 2021 11:52 am 
Offline

Joined: Thu Jan 21, 2021 10:33 am
Posts: 1
Hello,

i am trying to port a research operating system from x64 to AArch64. And encountered the problem that objcopy has no target efi-app-aarch64. Even pei-arm-little seems to be broken with made up magic numbers. I have found three possible approaches to deal with that.

The easiest way seems to pluck elf2efi from iPXE and extend it. Is it sufficient to copy the content unsupported sections from the ELF to the PE and set the right characteristics?
Gnuefi generates the efi header in assembly and relocates itself. But everything except the data seems to be put in the text section.
The most elegant way seems to me to use clang, lld and the gnuefi headers. But I can't switch from GCC to clang without a lot of effort, otherwise I would have to rewrite our plugins.

Did I miss something? A bootloader or other project that can load ELFs like under x64? I just want to get the contents of my ELF loaded into memory without making too big changes to the section structure and at the same time I would like to have access to stuff like the device tree and the memory map.

Any advice is appreciated.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group