Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: lilo-22.8   Print


Base Nav: first previous next last All Tab 2 spacerspacer
Source code is available here.

Run these commands:

cd /sources/  &&
tar -xzf lilo-22.8.src.tar.gz &&
cd lilo-22.8 &&
make &&
make install

The output should look something like this:

Targets:
  make all		# binaries
  make dosexe		# DOS lilo.com utility
  make diagnostic	# standalone diagnostics
  make alles		# all above + static binary
  make docs		# doc/[user,tech].[ps,dvi] docs
  make floppy		# 2 standalone bootable diagnostic
floppies
  make install		# install binaries
Maintenance:
  make test		# test for all needed utilities
(as86, ld86, etc.)
  make tidy		# remove listings & other
unnecessary files
  make clean		# remove objects & ready for a
fresh 'make all'
  make spotless 	# remove editor temps, & all of the
above
./checkit
GCC version 2.91 or later is required
gcc version 3.4.5
OKAY
AS86 version 0.16.10 or later is required
as86 version 0.16.17
OKAY
LD86 version 0.16.10 or later is required
ld86 version 0.16.17
OKAY
BCC version 0.16.10 or later is recommended
bcc is not present
You will not be able to make floppy2, diag2.img, or
lilo.com
echo Tested >test.img	
gcc -Os -Wall -g `if [ -f /usr/include/linux/version.h ];
then echo -DHAS_VERSION_H; fi` `if [ -f
/usr/include/libdevmapper.h ]; then echo
-DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r
$ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines;
else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM
-DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS
-DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID
-DDEVMAPPER; fi ) | sed 's/-D/-DLCF_/g'` -DSHS_MAIN -o
version common.c
echo ""#define CFLAGS \"""" -Os -Wall -g `if [ -f
/usr/include/linux/version.h ]; then echo -DHAS_VERSION_H;
fi` `if [ -f /usr/include/libdevmapper.h ]; then echo
-DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r
$ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines;
else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM
-DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS
-DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID
-DDEVMAPPER; fi ) | sed 's/-D/-DLCF_/g'` ""\"""" >flags.i
tail -$((`wc -l _TmP_
for i in boot.c bsect.c cfg.c common.c device.c edit.c
geometry.c identify.c lilo.c map.c partition.c probe.c
raid.c shs2.c temp.c bdata.h bitmap.h boot.h bsect.h cfg.h
common.h config.h device.h edit.h geometry.h identify.h
lilo.h loader.h map.h md-int.h partition.h probe.h raid.h
shs2.h temp.h version.h vesainfo.h ; do cat $i >>_TmP_ ;
done
echo ""#define CSOURCE "" `./version _TmP_` >>flags.i
rm -f _TmP_
gcc -c -Os -Wall -g `if [ -f /usr/include/linux/version.h
]; then echo -DHAS_VERSION_H; fi` `if [ -f
/usr/include/libdevmapper.h ]; then echo
-DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r
$ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines;
else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM
-DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS
-DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID
-DDEVMAPPER; fi ) | sed 's/-D/-DLCF_/g'` lilo.c
gcc -c -Os -Wall -g `if [ -f /usr/include/linux/version.h
]; then echo -DHAS_VERSION_H; fi` `if [ -f
/usr/include/libdevmapper.h ]; then echo
-DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r
$ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines;
else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM
-DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS
-DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID
-DDEVMAPPER; fi ) | sed 's/-D/-DLCF_/g'` raid.c
gcc -c -Os -Wall -g `if [ -f /usr/include/linux/version.h
]; then echo -DHAS_VERSION_H; fi` `if [ -f
/usr/include/libdevmapper.h ]; then echo
-DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r
$ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines;
else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM
-DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS
-DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID
-DDEVMAPPER; fi ) | sed 's/-D/-DLCF_/g'` map.c
gcc -c -Os -Wall -g `if [ -f /usr/include/linux/version.h
]; then echo -DHAS_VERSION_H; fi` `if [ -f
/usr/include/libdevmapper.h ]; then echo
-DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r
$ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines;
else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM
-DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS
-DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID
-DDEVMAPPER; fi ) | sed 's/-D/-DLCF_/g'` geometry.c
gcc -c -Os -Wall -g `if [ -f /usr/include/linux/version.h
]; then echo -DHAS_VERSION_H; fi` `if [ -f
/usr/include/libdevmapper.h ]; then echo
-DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r
$ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines;
else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM
-DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS
-DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID
-DDEVMAPPER; fi ) | sed 's/-D/-DLCF_/g'` boot.c
gcc -c -Os -Wall -g `if [ -f /usr/include/linux/version.h
]; then echo -DHAS_VERSION_H; fi` `if [ -f
/usr/include/libdevmapper.h ]; then echo
-DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r
$ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines;
else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM
-DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS
-DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID
-DDEVMAPPER; fi ) | sed 's/-D/-DLCF_/g'` device.c
gcc -c -Os -Wall -g `if [ -f /usr/include/linux/version.h
]; then echo -DHAS_VERSION_H; fi` `if [ -f
/usr/include/libdevmapper.h ]; then echo
-DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r
$ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines;
else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM
-DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS
-DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID
-DDEVMAPPER; fi ) | sed 's/-D/-DLCF_/g'` common.c
gcc -c -Os -Wall -g `if [ -f /usr/include/linux/version.h
]; then echo -DHAS_VERSION_H; fi` `if [ -f
/usr/include/libdevmapper.h ]; then echo
-DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r
$ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines;
else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM
-DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS
-DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID
-DDEVMAPPER; fi ) | sed 's/-D/-DLCF_/g'` bsect.c
gcc -c -Os -Wall -g `if [ -f /usr/include/linux/version.h
]; then echo -DHAS_VERSION_H; fi` `if [ -f
/usr/include/libdevmapper.h ]; then echo
-DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r
$ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines;
else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM
-DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS
-DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID
-DDEVMAPPER; fi ) | sed 's/-D/-DLCF_/g'` cfg.c
.
.
.
rm -f _TmP_.S
as86 -0 -a -w -l pseudo1.lis -o pseudo1.o pseudo1.s
ld86 -0 -s -o pseudo1.img pseudo1.o
dd if=pseudo1.img of=pseudo1.b bs=32 skip=1
32+0 records in
32+0 records out
1024 bytes (1.0 kB) copied, 0 s, Infinity B/s
cat pseudo1.b disk.com >diag1.img
if [ -x /usr/bin/bcc -o -x /usr/local/bin/bcc ]; then \
	make diagnostic; \
	make dosexe; fi
mkdir -p $ROOT/sbin $ROOT/etc $ROOT/boot \
  $ROOT/usr/sbin $ROOT`if [ -f /usr/bin/manpath ]; then
manpath | sed ""s/:.*//""; else echo /usr/share/man;
fi`/man5 $ROOT`if [ -f /usr/bin/manpath ]; then manpath |
sed ""s/:.*//""; else echo /usr/share/man; fi`/man8
if [ -f diag1.img ]; then \
  cp -f diag1.img $ROOT/boot; fi
if [ -f diag2.img ]; then \
  cp -f diag2.img $ROOT/boot; fi
if [ ! -L $ROOT/boot/boot.b -a -f $ROOT/boot/boot.b ]; then
\
  mv $ROOT/boot/boot.b $ROOT/boot/boot.old; fi
if [ -f $ROOT/boot/boot-bmp.b ]; then \
  mv $ROOT/boot/boot-bmp.b $ROOT/boot/boot-bmp.old; fi
if [ -f $ROOT/boot/boot-menu.b ]; then \
  mv $ROOT/boot/boot-menu.b $ROOT/boot/boot-menu.old; fi
if [ -f $ROOT/boot/boot-text.b ]; then \
  mv $ROOT/boot/boot-text.b $ROOT/boot/boot-text.old; fi
if [ -f $ROOT/boot/chain.b ]; then \
  mv $ROOT/boot/chain.b $ROOT/boot/chain.old; fi
if [ -f $ROOT/boot/os2_d.b ]; then \
  mv $ROOT/boot/os2_d.b $ROOT/boot/os2_d.old; fi
if [ -f $ROOT/boot/mbr.b ]; then \
  mv $ROOT/boot/mbr.b $ROOT/boot/mbr.old; fi
if [ -f os2_d.b  -a  1 = 0 ]; then \
  cp os2_d.b $ROOT/boot; fi
if [ 1 = 0 ]; then \
  cp boot-text.b boot-menu.b boot-bmp.b chain.b mbr.b
$ROOT/boot; fi
if [ ! -L $ROOT/boot/boot.b  -a  1 = 0 ]; then \
  ln -s boot-menu.b $ROOT/boot/boot.b; fi
if [ 1 = 1 ]; then \
  rm -f $ROOT/boot/boot.b; fi
cp mkrescue $ROOT/sbin
cp lilo $ROOT/sbin
strip $ROOT/sbin/lilo
cp keytab-lilo.pl $ROOT/usr/sbin
cp manPages/lilo.8 $ROOT`if [ -f /usr/bin/manpath ]; then
manpath | sed ""s/:.*//""; else echo /usr/share/man;
fi`/man8
cp manPages/mkrescue.8 $ROOT`if [ -f /usr/bin/manpath ];
then manpath | sed ""s/:.*//""; else echo /usr/share/man;
fi`/man8
cp manPages/lilo.conf.5 $ROOT`if [ -f /usr/bin/manpath ];
then manpath | sed ""s/:.*//""; else echo /usr/share/man;
fi`/man5
if [ -d $ROOT/dosC/boot -a -f lilo.com ]; then \
  cp lilo.com $ROOT/dosC/boot; fi
/sbin/lilo must now be run to complete the update.
rm os2_d.o chain.img bootsect.img mbr2.o pseudo1.img
os2_d.img bitmap.img disk.img second.img bootsect.o mbr.o
pseudo1.o first.img third.img disk.o


~~~
Please read our Terms of Use and our Privacy Policy
A tip o' the hat to the folks at Linux From Scratch, who provided a lot of the know-how and framing for the NoNIC OS.

Copyright 2006-2009 NoNIC.org

Created by:
MCJ
MCJ CMS