LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-08-2004, 07:21 AM   #1
rene.dd
LQ Newbie
 
Registered: Jun 2004
Location: Dresden, Germany
Distribution: Debian
Posts: 1

Rep: Reputation: 0
Question Understanding the boot process?


Hi,

I'm trying to develop my own OS (call me crazy, but it's challenging and I want to do that).
I wrote a boot loader and the code that initializes my (not yet existing) kernel in assembly language. Now I'm trying to write my kernel in C. And here my first real problem occurs. Ok, I've not come far but anyway:

Can anybody explain to me how kernel sources have to be linked? I checked the linux sources and makefiles for help, but I don't really understand it.
If I compile my stuff the way the linux kernel is compiled, ld always assumes that my main function starts at something like 0x08048090, but I actually load it at somewhere about 0x6000 (0x0008:0x6xxx in 32bit pm).

Does anybody know how I can tell gcc or ld to organize the memory the way I want it or how the linux kernel linking process really works?

(Linux 0.0.0.1 is first loaded at 0x1000:0 and then copied down to 0x0000 (real mode), so there should have been the same problem).

Thank you.
René
 
Old 06-09-2004, 10:36 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
have you read this:
From Power Up To Bash Prompt
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux boot up process Vs. Windows boot up process darkskull Linux - Software 7 12-30-2006 04:21 PM
How to speed-up boot process? registering Mandriva 4 04-21-2005 02:21 AM
Linux CD boot process amnesty_puppy Linux - General 1 11-29-2004 06:41 AM
How do I change the look of the boot process? hecresper Fedora 4 02-02-2004 02:54 PM
The boot process, need help! kalzanth Linux - Software 10 08-23-2002 05:25 PM


All times are GMT -5. The time now is 11:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration