Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
[Multiboot-elf, <0x8048000:0xb7:0x0>]
Error 28: Selected item cannot fit into memory.
The kernel is 2 blocks long, and I am feeding GRUB 'kernel 200+2'.
I am at a loss to correct this problem. The kernel was just compiled by my new cross-compiler. I removed error 13 with the cross compiler but now I have this. I think the problem is related to the .text section in my assembly loader, but I am unsure. This kernel and all other code is EXACTLY as the bare bones tutorial describes, including this .text section.
Use/Fix your linker script. ld links to a default address, which is not 1MB but rather 128MB. I don't think the emulator provides that much RAM for you
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
OP Here. I am NOT hosting and building on a x64 arch to target a x32 arch. there is another GRUB error 28 post in the forums relating to that. That is not my problem, in so far as I know.
I suggest you actually read what I said instead of making a fool of yourself.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
I was in the process of posting that above without reading your post. My post above had nothing to do wit your suggestion. I was not making a fool of myself.
Please do your homework if you don't want to get caught riding the Fail Express.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
I have tried. But I do not know how. I am admitting defeat, as I am an experienced usermode application programmer, but my skills with linker scripts are failing me. Standard win32 programming almost never requires manual modification of a linker script. In OS development I obviously need to know, so any help would be appreciated, specifically, how do I force the linker script to not link by defaulting to 128mb?
This kernel and all other code is EXACTLY as the bare bones tutorial describes
Somehow, I find it strange that you did find the relevant tutorial but neglected the linker script contained in there. As well as againnot doing your homework.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]