Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 0
Question Understanding the boot process?


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 is first loaded at 0x1000:0 and then copied down to 0x0000 (real mode), so there should have been the same problem).

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

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


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 05:21 PM
How to speed-up boot process? registering Mandriva 4 04-21-2005 03:21 AM
Linux CD boot process amnesty_puppy Linux - General 1 11-29-2004 07:41 AM
How do I change the look of the boot process? hecresper Fedora 4 02-02-2004 03:54 PM
The boot process, need help! kalzanth Linux - Software 10 08-23-2002 06:25 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:42 AM.

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