Re: writing to a partition



Allan Adler <ara@xxxxxxxxxxxxxxxxxxxx> writes:

Allan Adler <ara@xxxxxxxxxxxxxxxxxxxx> writes:

Dan Espen <daneNO@xxxxxxxxxxxxxxxxxxxxxxxxx> writes:
http://lilo.go.dyndns.org/pub/linux/lilo/

Got it. Thanks. More when I imagine I know more...

I've untarred lilo-22.8.src.tar.gz and have been looking it over. What I
would like to do first is experiment naively with the assembler files.
Some of them actually do things while others just gather information.
For example, the file biosdata.S just collects information about the
BIOS. I'm not sure but I think the various labels in the Makefile ending
in .s, such as disk.s are intended to convert the corresponding .S files
(plus stuff they need) into the .s files. For example, if I execute
make disk.s
it produces disk.s, but uses 3 .S files and 2 .h files. How would I
start with disk.S and produce an executable that I can run from my
Gnome terminal window? Ditto for the other .S files.

When I simply imitate what the Makefile says, I execute:
as86 -w -l disk.lis -o disk.o disk.s
and get disk.o and then
ld86 -s -o disk.img disk.o
and get disk.img. I tried
gcc -o disk disk.o
but gcc can't make sense of disk.o. If I execute
gcc -o disk disk.s
I get lots of error messages.

So, what is the right way to do this?

Use the makefile to do all your compiles.

Why do you think you'll be able to run
the lilo boot process in a terminal window?
I don't think you will and I don't think it's
going to work on a VT either.

It expects to be run from boot.
.



Relevant Pages

  • Re: writing to a partition
    ... Gnome terminal window? ... When I simply imitate what the Makefile says, I execute: ... but gcc can't make sense of disk.o. ... Use the makefile to do all your compiles. ...
    (comp.os.linux.misc)
  • Re: NEWBIE: Same question, different way..
    ... The compiler won't execute a makefile. ... It should display something that tells you that gcc is there, but again, ...
    (comp.os.linux.misc)
  • Re: MAKEFILE - only the first command ever works
    ... Still not sure about how to execute a batch command though.... ... switch into project B's directory, execute its makefile, copy its output back ... %userprofile%\Visual Studio Projects\MyComponent1 ...
    (microsoft.public.vc.language)
  • Re: MAKEFILE - only the first command ever works
    ... Still not sure about how to execute a batch command though.... ... switch into project B's directory, execute its makefile, copy its output back ... %userprofile%\Visual Studio Projects\MyComponent1 ...
    (microsoft.public.win32.programmer.tools)
  • Gnomba Compile Error
    ... rm -f Makefile gnomba.spec ... Making distclean in src ... Making distclean in intl ... checking for gcc... ...
    (Ubuntu)