OSDev.org

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

All times are UTC - 6 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: error: out of memory
PostPosted: Wed Jun 27, 2018 6:23 pm 
Offline
User avatar

Joined: Sun Jun 10, 2018 4:27 pm
Posts: 4
failed to boot both default and fallback entries.

this is the error I get when I try to boot my OS with qemu, OR virtualbox. I compiled many times in different ways configured some settings a bunch of times and nothing worked. All the time the same error.

_________________
finesseOS


Top
 Profile  
 
 Post subject: Re: error: out of memory
PostPosted: Wed Jun 27, 2018 8:00 pm 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 898
Well that's too bad. Thanks for sharing.

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
 Post subject: Re: error: out of memory
PostPosted: Wed Jun 27, 2018 9:16 pm 
Offline
User avatar

Joined: Sun Jun 10, 2018 4:27 pm
Posts: 4
kzinti wrote:
Well that's too bad. Thanks for sharing.


not helping.

_________________
finesseOS


Top
 Profile  
 
 Post subject: Re: error: out of memory
PostPosted: Wed Jun 27, 2018 9:37 pm 
Offline
User avatar

Joined: Sun Jun 10, 2018 4:27 pm
Posts: 4
FIXED FINALLY

edit - reason is because the RAM was too less which i did not realize the OS needed like 1 GiB and i put 264 megabytes =D> =D> =D>

_________________
finesseOS


Top
 Profile  
 
 Post subject: Re: error: out of memory
PostPosted: Wed Jun 27, 2018 11:30 pm 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 898
thewebparadox wrote:
not helping.


There wasn't anything in your post to help you with.

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
 Post subject: Re: error: out of memory
PostPosted: Thu Jun 28, 2018 3:55 am 
Offline
Member
Member

Joined: Wed Jun 17, 2015 9:40 am
Posts: 501
Location: Athens, Greece
Hi,


Assuming you just started out (otherwise you would had already some previous build that worked), having a requirement of 1 GiB is definitely too much. I suggest you look into it. Are you sure your code is loaded at the address you expect it (usually 0x00100000)? Even if built with the most "unoptimised for size" options, a Bare Bones kernel should be way less than 100 KiB, let alone 1 GiB.


Regards,
glauxosdever


Top
 Profile  
 
 Post subject: Re: error: out of memory
PostPosted: Thu Jun 28, 2018 4:09 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
It's good when an error message tells you exactly what the problem is. :)


Top
 Profile  
 
 Post subject: Re: error: out of memory
PostPosted: Thu Jun 28, 2018 6:45 pm 
Offline
Member
Member

Joined: Fri Aug 26, 2016 1:41 pm
Posts: 671
Have to agree with glaux, I think there is something more to this. I assume the out of memory error was from Grub? If you posted your code (on github or some other service) to this point we could take a look. I have a suspicion you are masking another problem by changing memory size.

I am curious if you are doing the higher half kernel?


Top
 Profile  
 
 Post subject: Re: error: out of memory
PostPosted: Fri Jun 29, 2018 2:14 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2646
Location: Devon, UK
Hi,

My best guess (given that I don't have Combuster's famous crystal ball...) is that one of two things is happening:

  1. You have a lower half stub and higher half kernel in the same flat binary and your linker has kindly padded the kernel out to a multi-GiB file. In this case switch to ELF.
  2. You have linked the higher-half kernel to some high memory address and the linker is attempting to place your kernel at that physical location. In this case, make use of proper linker directives to separate your kernel's physical and linear addresses.

Cheers,
Adam


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Garnek0, Google [Bot] and 67 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