Page 1 of 1

Premade kernel sources + image

Posted: Sun Jan 29, 2012 10:47 am
by elijaheac
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

Posted: Sun Jan 29, 2012 11:06 am
by har
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?

Re: Premade kernel sources + image

Posted: Sun Jan 29, 2012 11:19 am
by elijaheac
berkus wrote:I can recommend Bare Bones from the wiki in that case.
I'm asking for something to download, because it isn't working just to type it in.

Re: Premade kernel sources + image

Posted: Sun Jan 29, 2012 11:22 am
by elijaheac
har wrote:What do you want for a start system?
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.

Re: Premade kernel sources + image

Posted: Sun Jan 29, 2012 11:46 am
by elijaheac
berkus wrote:Guys, your recommended readings are the wiki pages about Required_Knowledge and Beginner_Mistakes. Start there.
I have. Is there something you think I missed?
I am intending to do most of it myself, I'm just having trouble getting the base kernel working.

Re: Premade kernel sources + image

Posted: Sun Jan 29, 2012 12:03 pm
by casnix
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).
elijaheac wrote:
berkus wrote:Guys, your recommended readings are the wiki pages about Required_Knowledge and Beginner_Mistakes. Start there.
I have. Is there something you think I missed?
I am intending to do most of it myself, I'm just having trouble getting the base kernel working.
You say you're having trouble? Please describe your problem. Otherwise we can only guess what your problem is.

Re: Premade kernel sources + image

Posted: Sun Jan 29, 2012 12:24 pm
by bluemoon
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

Posted: Sun Jan 29, 2012 12:58 pm
by elijaheac
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).
elijaheac wrote:
berkus wrote:Guys, your recommended readings are the wiki pages about Required_Knowledge and Beginner_Mistakes. Start there.
I have. Is there something you think I missed?
I am intending to do most of it myself, I'm just having trouble getting the base kernel working.
You say you're having trouble? Please describe your problem. Otherwise we can only guess what your problem is.
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.

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

Posted: Sun Jan 29, 2012 1:45 pm
by sds2017
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

Posted: Sun Jan 29, 2012 2:43 pm
by elijaheac
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.
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?

Re: Premade kernel sources + image

Posted: Sun Jan 29, 2012 2:57 pm
by casnix
elijaheac wrote:
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.
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?
I would suggest looking into the 'mkdir' command...

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/

Re: Premade kernel sources + image

Posted: Sun Jan 29, 2012 5:06 pm
by AJ
Hi,
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.
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).
Cheers,
Adam