[question]how do i boot with grub binaries?
[question]how do i boot with grub binaries?
i have tried a method that showes up several places in which stage1 and stage2 are combined then PartCopied to the disk.
when i do this it boots,but it corrupts the FS and i cannot load "kernel.bin" nor can i add more files because windows just wants to format.
is the a way to get this to work?
(i tried making a bootloader but it doesn't load anything 'cept the welcome message.)
when i do this it boots,but it corrupts the FS and i cannot load "kernel.bin" nor can i add more files because windows just wants to format.
is the a way to get this to work?
(i tried making a bootloader but it doesn't load anything 'cept the welcome message.)
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: [question]how do i boot with grub binaries?
STFW. Same question was asked two threads down, and full instructions are available on the wiki.
Re: [question]how do i boot with grub binaries?
What is your FS?
How is the bootsector?
If you copy your nsectors second stage on the main structure of a FAT12 I guess, It is corrupted!
You can use the second stage as a file and so you have to load it from stage 1 or you have to add some reserved sectors on the MBR...
How is the bootsector?
If you copy your nsectors second stage on the main structure of a FAT12 I guess, It is corrupted!
You can use the second stage as a file and so you have to load it from stage 1 or you have to add some reserved sectors on the MBR...
Re: [question]how do i boot with grub binaries?
I KNEW you would say something like that!why are you so negative???Combuster wrote:STFW. Same question was asked two threads down, and full instructions are available on the wiki.
they dont.the only ones shown are links to the bad one
(btw i joined to learn about OS development.if writing about building OS is wrong please tell me where to do so.)
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: [question]how do i boot with grub binaries?
Because someone is ignoring forum rules, repeatedly? You made two posts that break important forum rules, another 4 that are simply offtopic, and only one that can actually be considered to contribute something.iON wrote:why are you so negative???
Does the following sound familiar to you? (if not, I have to add not even reading the forum rules to the list of complaints)
What we are, unapologetically, is hostile to people who seem to be unwilling to think or to do their own homework before asking questions. People like that are time sinks — they take without giving back, and they waste time we could have spent on another question more interesting and another person more worthy of an answer. We call people like this "losers" (and for historical reasons we sometimes spell it "lusers").
I can ignore you too. Do you prefer not having your problem solved?
Re: [question]how do i boot with grub binaries?
sorry.
nevermind...
i quit.
nevermind...
i quit.
Re: [question]how do i boot with grub binaries?
The relevant part of the Wiki is GRUB, section "Installing to floppy". It doesn't say anything about PartCopy, but goes into detail about the two-stage process involved to have stage2 properly reside in the filesystem. Proper reading of the article even reveals links to ready-made floppy images you can use.
Every good solution is obvious once you've found it.
Re: [question]how do i boot with grub binaries?
Apology accepted.iON wrote:sorry.
You may want to reconsider that.nevermind...
i quit.
Programming is not about using a language to solve a problem, it's about using logic to find a solution !
Re: [question]how do i boot with grub binaries?
No, i just quit trying to find how to make an OS here specificly.berkus wrote:It takes some discipline and patience to do OSdev, if person lacks either or worse, both, better let them go.
the wiki is good,though.
i have been trying to look for another site dedicated to OSdeving,but havn't found one.
(i will still work on ION OS but unless i can find some help for once ill go back to doing it myself.)
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: [question]how do i boot with grub binaries?
iON wrote:unless i can find some help for once
The relevant part of the Wiki is GRUB
The same question was asked two threads down
You can use the second stage as a file and so you have to load it from stage 1 or you have to add some reserved sectors on the MBR
It really, really helps if you don't exclusively interpret everything said to you as an insult.Do you prefer not having your problem solved?
Re: [question]how do i boot with grub binaries?
Just thought that this guy needed a fresh start.berkus wrote:It takes some discipline and patience to do OSdev, if person lacks either or worse, both, better let them go.
That's the point. He has all the answers he needed, he's just ignoring them.Combuster wrote:It really, really helps if you don't exclusively interpret everything said to you as an insult.
Programming is not about using a language to solve a problem, it's about using logic to find a solution !
Re: [question]how do i boot with grub binaries?
I finaly made a working bootloader!
thanks goes to:
http://www.brokenthorn.com/Resources/OSDev6.html
i got it to load.no "ELF"junk that never works
thanks goes to:
http://www.brokenthorn.com/Resources/OSDev6.html
i got it to load.no "ELF"junk that never works
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
Re: [question]how do i boot with grub binaries?
Linking kernels as ELF and loading them in GRUB works perfectly well (thats how my kernel is, as many others are too), you simply did it wrong.iON wrote:I finaly made a working bootloader!
thanks goes to:
http://www.brokenthorn.com/Resources/OSDev6.html
i got it to load.no "ELF"junk that never works
-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
Re: [question]how do i boot with grub binaries?
I meant multiboot.i couldnt get GRUB to use my custom multiboot-compat systems.
i think i will be using ELF when i want all the files to be the same kind(hint:thats a good thing!)
i might share small builds of the cli if i can get that done.just exited about seeing it boot something
i think i will be using ELF when i want all the files to be the same kind(hint:thats a good thing!)
i might share small builds of the cli if i can get that done.just exited about seeing it boot something
Re: [question]how do i boot with grub binaries?
im realy not sure.i might try working on linux but not now.berkus wrote:Sorry? Did you just say you cannot implement multiboot support in your kernel properly?iON wrote:I meant multiboot.i couldnt get GRUB to use my custom multiboot-compat systems.
so far im researching functions,etc.
the reason i dont "ld -T link.ld kernst.o fun.o otherfun.o -o mygreat kernel.bin"is because it gives me the error:
Code: Select all
ld:cannot perform PE operations on non-PE.
Code: Select all
ld:kernst.o: unrecognized file format
i was orginaly going to do this for fun and enjoy learning,but not much anymore
This is only in a fraction related+grub wont compile on windows.