OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 3:20 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GRUB Error 28: Selected item cannot fit in memory
PostPosted: Tue Oct 12, 2021 12:39 pm 
Offline

Joined: Tue Oct 12, 2021 12:29 pm
Posts: 1
Hi everyone.

I've just started my first serious attempt at os development and I already set up a cmake system for the os. But now when I try adding C scripts, I get this error:
Code:
kernel /boot/kernel.elf
   [Multiboot-elf, <0xff000:0x154:0x0>

Error 28: Selected item cannot fit into memory


I already looked for possible solutions but none of them worked for me. The kernel itself looks fine though and the multiboot header is also working so I don't really have any idea why this error does occur.

The repo with all the code is here: https://github.com/ClemensU42/ShadowOS


Top
 Profile  
 
 Post subject: Re: GRUB Error 28: Selected item cannot fit in memory
PostPosted: Tue Oct 12, 2021 6:21 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
It's probably because you're not using a cross-compiler.

You really should be using a cross-compiler.


Top
 Profile  
 
 Post subject: Re: GRUB Error 28: Selected item cannot fit in memory
PostPosted: Fri Oct 15, 2021 8:07 pm 
Offline
Member
Member
User avatar

Joined: Wed Sep 28, 2005 11:00 pm
Posts: 85
Are you sure your linker flags are set properly? You'd need to pass your linker script to ld.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 43 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