Premade kernel sources + image

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.
Locked
elijaheac
Posts: 8
Joined: Sat Jan 28, 2012 11:05 pm

Premade kernel sources + image

Post 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.
User avatar
har
Posts: 4
Joined: Sun Jan 29, 2012 4:36 am

Re: Premade kernel sources + image

Post 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?
elijaheac
Posts: 8
Joined: Sat Jan 28, 2012 11:05 pm

Re: Premade kernel sources + image

Post 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.
elijaheac
Posts: 8
Joined: Sat Jan 28, 2012 11:05 pm

Re: Premade kernel sources + image

Post 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.
elijaheac
Posts: 8
Joined: Sat Jan 28, 2012 11:05 pm

Re: Premade kernel sources + image

Post 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.
User avatar
casnix
Member
Member
Posts: 67
Joined: Fri Jan 14, 2011 7:24 pm

Re: Premade kernel sources + image

Post 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.
You are a computer.
~ MCS ~
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: Premade kernel sources + image

Post 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.
elijaheac
Posts: 8
Joined: Sat Jan 28, 2012 11:05 pm

Re: Premade kernel sources + image

Post 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.
sds2017
Member
Member
Posts: 61
Joined: Tue Jul 05, 2011 10:05 am

Re: Premade kernel sources + image

Post 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.
elijaheac
Posts: 8
Joined: Sat Jan 28, 2012 11:05 pm

Re: Premade kernel sources + image

Post 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?
User avatar
casnix
Member
Member
Posts: 67
Joined: Fri Jan 14, 2011 7:24 pm

Re: Premade kernel sources + image

Post 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/
You are a computer.
~ MCS ~
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Premade kernel sources + image

Post 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
Locked