From: Frederic Marmond <fmarmond@eprocess.fr>
To: zad <zacido@tiscali.it>
Cc: linux-assembly <linux-assembly@vger.kernel.org>
Subject: Re: again simple problem under linux
Date: Thu, 13 Nov 2003 10:23:06 +0100 [thread overview]
Message-ID: <3FB34D7A.3010406@eprocess.fr> (raw)
In-Reply-To: <3FB3535C.3070104@tiscali.it>
it is pretty easy:
get the lilo source, and remove all around the first.S in the makefile.
Then, you'll see some 'dd' calls, to get only the good part of your prog.
It took me one hour to make the framework of my own boot loader this way!
You'll have to code it in 100% assembly, but it is very easy (not linux
related though), in real mode, bios calls for disk access, ...
Read the documentation and have a look at the lilo first.S code!
Then, to test it (raw basic way):
- get a spare HD (more secure)
- put your resulting code into the MBR (dd if=your_resulting_bin
of=/dev/hdc for exemple)
- add the entry to your lilo.conf file (other=/dev/hdc)
- try it with lilo! (you'll need to reboot), then, you'll be able to
(reboot) get back to your linux
If you need some more specific help, feel free to ask more precise question!
Fred
zad wrote:
> thanks a lot ..peter & C.
> I have another question .
> I'm tring to make a bootloader for a system start up , so whene a pc
> starts up (if it has a IA32) uses the real mode (this is way I won't
> use the Linux'syscalls)
> But how can I test that code on a linux machine ?
> Is It just not possible?
> And how can I merge more executable files in one to use it at the boot?
> I read some papers about the boot and all makes reference at the Ralf
> Brown's list for read from floppy , set the video mode and so on.
> Do u know where can I have more informations?
> thanks at all
> by zad
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-assembly" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2003-11-13 9:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-12 18:37 simple problem under linux zad
[not found] ` <04e301c3a946$5179af80$6501a8c0@rhyde>
2003-11-12 19:04 ` again " zad
2003-11-13 3:52 ` peter w krause
2003-11-13 9:48 ` zad
2003-11-13 9:23 ` Frederic Marmond [this message]
[not found] ` <3FD87CCB.3060503@tiscali.it>
2003-12-11 14:17 ` bootloader prob Frederic Marmond
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FB34D7A.3010406@eprocess.fr \
--to=fmarmond@eprocess.fr \
--cc=linux-assembly@vger.kernel.org \
--cc=zacido@tiscali.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).