Grub Error 28 Osdev
Contents |
All times are UTC - 6 hours Information The requested topic does not exist. Board index All times are UTC - 6 hours Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; http://f.osdev.org/viewtopic.php?f=1&t=22152 it only takes a minute: Sign up Simple kernel won't boot in GRUB up vote 22 down vote favorite 13 I'm learning a bit of OS development from OSDev.org. I have a kernel and I'm trying to boot in GRUB Legacy (0.97) using qemu. However, when I type kernel 200+9, I get the message [Multiboot-elf, <0x100000:0x80:0x4008>(bad), entry=0x10000c] This is what http://stackoverflow.com/questions/14311761/simple-kernel-wont-boot-in-grub I expect except for the (bad) part. If I type boot now GRUB just hangs. I think the numbers 0x100000, 0x44, 0x4008 stand for the .text segment start address, the .bss start address, and the .bss section size, respectively. I think this because running objdump -h on the kernel image gives this output: kernel.bin: file format elf32-i386 Sections: Idx Name Size VMA LMA File off Algn 0 .text 00000044 00100000 00100000 00001000 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE 1 .bss 00004008 00100044 00100044 00001044 2**2 ALLOC So you can see that the numbers I mentioned almost match up. The issue is that instead of 100044, the start of .bss is just 44. And I think this is the reason why GRUB is saying bad. I can't have a section below 1 MB in memory (low memory). But objdump is telling me my sections are above that threshold, so I don't know what's wrong. Anyway, I'll paste my code below, it's relatively short. Although my question is probably very basic if you've done OS dev before, so the cod
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more http://stackoverflow.com/questions/tagged/osdev about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question Tagged Questions info newest frequent votes active unanswered Operating System development: kernel, shell, networking, cross-compiling, etc. learn more… | top users | synonyms 1 vote 0answers 21 views GRUB error 13: invalid or unsupported executable format on custom kernel I am trying to grub error learn OS Dev and I started building my own kernel based on The Little book about OS Development. When I loaded the kernel using bochs GRUB complains with: error 13: invalid or ... operating-system nasm osdev grub bochs asked Oct 13 at 2:28 B. Kostas 1288 0 votes 0answers 58 views Floppy driver doesn't work when writing to sectors [on hold] I am trying to develop a floppy write grub error 28 function for the OS I created. The problem is that the floppy write function does not work and seems to get stuck in a loop. I am trying to use DMA when writing ... c osdev asked Oct 11 at 14:29 Ajay 716 0 votes 0answers 62 views How to call a C function from Assembly code I am having trouble converting from Assembly code to C. I have somehow loaded my kernel by placing it after the padding in the second stage bootloader and increasing the number of sectors to load in ... c linker x86 bootloader osdev asked Oct 10 at 1:07 amanuel2 2,294540 1 vote 0answers 25 views How does an OS communicate with device drivers I know that an OS provides an api for a device driver to access the configuration space so that the device driver knows the memory addresses assigned to the device and can control the device. However, ... driver osdev asked Oct 7 at 13:02 Ajay 716 1 vote 1answer 63 views Assembly language OS boot loader “using of nonexisting segment register 7” error I'm currently working on a basic OS for a university assignment. I am working in x86 assembly language. I seem to have an i