Premade kernel sources + image
Premade kernel sources + image
I have been having a lot of trouble just getting my base environment set up, so I was wondering if there is a small, basic kernel image + sources + scripts package I could download to my Ubuntu installation. I could code it from there, and use it as a jumping off point. What I mean is something like a working Bare Bones kernel from the wiki.
Re: Premade kernel sources + image
I have the same problem. Spending two weeks of search trying compiling linking. And I learned alot of course, but no start for my own OS.
Maybe somebody can setup a good starting point. Sources for a bootloader and kernel. I use my own filesystem, so no need for fat12/16.
Excuse me if hyjack your thread.
But I need at sector 0 a bootloader and a kernel starting from 1. My FS can I point to start at any sector I like.
What do you want for a start system?
Maybe somebody can setup a good starting point. Sources for a bootloader and kernel. I use my own filesystem, so no need for fat12/16.
Excuse me if hyjack your thread.
But I need at sector 0 a bootloader and a kernel starting from 1. My FS can I point to start at any sector I like.
What do you want for a start system?
Re: Premade kernel sources + image
I'm asking for something to download, because it isn't working just to type it in.berkus wrote:I can recommend Bare Bones from the wiki in that case.
Re: Premade kernel sources + image
I don't really care, as I just want to get started with something, such as FAT or something just as easy to read, then add new filesystems and stuff.har wrote:What do you want for a start system?
Re: Premade kernel sources + image
I have. Is there something you think I missed?berkus wrote:Guys, your recommended readings are the wiki pages about Required_Knowledge and Beginner_Mistakes. Start there.
I am intending to do most of it myself, I'm just having trouble getting the base kernel working.
Re: Premade kernel sources + image
Okay, 1) When you say you're having problems compiling and linking, are you using the default GCC and ld/ar that comes with your current distro (Ubuntu?)? If so, you need, absolutely NEED to make a cross compiler! It will NOT work otherwise!
And 2) If you're absolutely refusing the Bare Bones, I would suggest JamesM's kernel development tutorials (I recommend them even if you're done with the Bare Bones wiki tutorial).
And 2) If you're absolutely refusing the Bare Bones, I would suggest JamesM's kernel development tutorials (I recommend them even if you're done with the Bare Bones wiki tutorial).
You say you're having trouble? Please describe your problem. Otherwise we can only guess what your problem is.elijaheac wrote:I have. Is there something you think I missed?berkus wrote:Guys, your recommended readings are the wiki pages about Required_Knowledge and Beginner_Mistakes. Start there.
I am intending to do most of it myself, I'm just having trouble getting the base kernel working.
You are a computer.
~ MCS ~
~ MCS ~
Re: Premade kernel sources + image
No offense but if you have the required knowledge you should get a barebone environment working in a week.
I think many people here got some good kernel skeleton but decided not to upload simply because it will hurt people, like giving a knife to a child.
A barebone is relatively easy in terms of osdev, You need to do it yourself, if you can't you are not ready yet.
By the way, what issue you encounter on the tutorials? Any error message? May be we can help to get you ready.
I think many people here got some good kernel skeleton but decided not to upload simply because it will hurt people, like giving a knife to a child.
A barebone is relatively easy in terms of osdev, You need to do it yourself, if you can't you are not ready yet.
By the way, what issue you encounter on the tutorials? Any error message? May be we can help to get you ready.
Re: Premade kernel sources + image
I have another post, look at that. I was forgetting that that post is not the same as this one. Also, I am using Bare Bones, that's what is giving me the errors. I was originally thinking about using JamesM's tutorials, but the site isn't responding to my browser.casnix wrote:Okay, 1) When you say you're having problems compiling and linking, are you using the default GCC and ld/ar that comes with your current distro (Ubuntu?)? If so, you need, absolutely NEED to make a cross compiler! It will NOT work otherwise!
And 2) If you're absolutely refusing the Bare Bones, I would suggest JamesM's kernel development tutorials (I recommend them even if you're done with the Bare Bones wiki tutorial).
You say you're having trouble? Please describe your problem. Otherwise we can only guess what your problem is.elijaheac wrote:I have. Is there something you think I missed?berkus wrote:Guys, your recommended readings are the wiki pages about Required_Knowledge and Beginner_Mistakes. Start there.
I am intending to do most of it myself, I'm just having trouble getting the base kernel working.
I'm sorry that I was being confusing about what was happening.
EDIT: I have realized what may be wrong. I need a cross compiler! I was thinking I wouldn't need one, the wiki says you don't really need one, but I guess I do.
Re: Premade kernel sources + image
Type osdev in google but, then click on the video tab and there will be several tutorials on operating system development. They might help you.
Re: Premade kernel sources + image
Part of it is also just getting started that is hard. Now I'm having trouble building the cross-compiler. I have followed the tutorial exactly, but /usr/local/cross does not exist. Is there any reason this might be?bluemoon wrote:No offense but if you have the required knowledge you should get a barebone environment working in a week.
I think many people here got some good kernel skeleton but decided not to upload simply because it will hurt people, like giving a knife to a child.
A barebone is relatively easy in terms of osdev, You need to do it yourself, if you can't you are not ready yet.
By the way, what issue you encounter on the tutorials? Any error message? May be we can help to get you ready.
Re: Premade kernel sources + image
I would suggest looking into the 'mkdir' command...elijaheac wrote:Part of it is also just getting started that is hard. Now I'm having trouble building the cross-compiler. I have followed the tutorial exactly, but /usr/local/cross does not exist. Is there any reason this might be?bluemoon wrote:No offense but if you have the required knowledge you should get a barebone environment working in a week.
I think many people here got some good kernel skeleton but decided not to upload simply because it will hurt people, like giving a knife to a child.
A barebone is relatively easy in terms of osdev, You need to do it yourself, if you can't you are not ready yet.
By the way, what issue you encounter on the tutorials? Any error message? May be we can help to get you ready.
Although unless you are root or use sudo you probably can't just mkdir /usr/local/cross.
So in your terminal/cygwin/bash/msys type:
$ sudo mkdir /usr/local/cross/
You are a computer.
~ MCS ~
~ MCS ~
Re: Premade kernel sources + image
Hi,
Adam
elijaheac wrote:EDIT: I have realized what may be wrong. I need a cross compiler! I was thinking I wouldn't need one, the wiki says you don't really need one, but I guess I do.
Cheers,BareBones Tutorial First Paragraph wrote:This tutorial assumes you have a compiler / assembler / linker toolchain capable of handling ELF files. On a Windows machine, you are strongly encouraged to set up a GCC Cross-Compiler, as it removes all the various toolchain-specific issues you might have ("PE operation on a non-PE file", "unsupported file format", and a number of others). While technically a Linux machine already has an ELF-capable toolchain, you are still encouraged to build a cross-compiler, as it is the first step to do, and it keeps you from relying on things you shouldn't (header files, for example).
Adam