/usr/share/doc/HOWTO/ja-html/inside-lilo.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 | <HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-2022-JP">
<TITLE>
LILO "the Linux Loader" $B$NF0:n$K$D$$$F(B
</TITLE>
</HEAD>
<BODY BGCOLOR=white>
<A HREF="INDEX-JF.html">JF-INDEX (document list of JF Project)</A>
<HR>
<H1> LILO "the Linux Loader" $B$NF0:n$K$D$$$F(B</H1>
<H2>$B:4LnIp=S(B / <CODE>Taketoshi Sano</CODE>, (<CODE>kgh12351@nifty.ne.jp</CODE>) </H2> $Date: 2000/12/15 18:39:54 $, ($Revision: 1.10 $)
<P><HR>
<EM>$B$3$NJ8=q$O!"(BLILO "the Linux Loader" $B$NF0:n$K$D$$$F@bL@$9$k$b$N$G$9!#(B
$B$J$*!"BP>]$H$7$F$$$k(B LILO $B$O(B version 21.5.1 $B$G$"$j!"8=;~E@$G$N:G?7HG(B
$B$G$"$k(B LILO version 21.6 $B$H$O0[$J$j$^$9!#(B</EM>
<HR>
<P>
<H2><A NAME="toc1">1.</A> <A HREF="#s1">$B5/F0;~$NF0:n(B</A></H2>
<UL>
<LI><A HREF="#ss1.1">1.1 1st boot loader</A>
<LI><A HREF="#ss1.2">1.2 2nd boot loader</A>
<LI><A HREF="#ss1.3">1.3 BIOS $B$K$h$k%G%#%9%/%G!<%?$N%m!<%I(B</A>
<LI><A HREF="#ss1.4">1.4 Option linear</A>
<LI><A HREF="#ss1.5">1.5 Option lba32</A>
<LI><A HREF="#ss1.6">1.6 $B$=$NB>(B</A>
</UL>
<P>
<H2><A NAME="toc2">2.</A> <A HREF="#s2">/sbin/lilo $B%3%^%s%I$r<B9T$7$?;~$NF0:n(B</A></H2>
<P>
<H2><A NAME="toc3">3.</A> <A HREF="#s3">$BJdB-(B</A></H2>
<UL>
<LI><A HREF="#ss3.1">3.1 $B$3$NJ8=q$K$D$$$F(B</A>
<LI><A HREF="#ss3.2">3.2 MBR $BMQ%V!<%H%;%l%/%?$K$D$$$F(B</A>
<LI><A HREF="#ss3.3">3.3 $B;29M(B</A>
</UL>
<HR>
<H2><A NAME="s1">1.</A> <A HREF="#toc1">$B5/F0;~$NF0:n(B</A></H2>
<P>$B5/F0;~$K<B9T$5$l$k(B LILO $B$N%3!<%I$K$O!"(B1st boot loader $B$H(B 2nd boot loader $B$N(B
2 $B<oN`$,$"$j$^$9!#(B
<P>$B$3$l$i$N%3!<%I$ODL>o!"(B/boot/boot.b $B$H$$$&%U%!%$%k$NCf$KJ]B8$5$l$F$$$^$9!#(B
/boot/boot.b $B$N@hF,(B 438bytes $B$,(B 1st boot loader $B$N%3!<%I$G$"$j!"(B
$B@hF,$+$i(B 512bytes $B$r=|$$$?;D$j$,(B 2nd boot loader $B$N%3!<%I$KAjEv$7$^$9!#(B
<P><CODE>"lilo"</CODE> $B%3%^%s%I$r<B9T$9$k$H%3%^%s%I%i%$%s%*%W%7%g%s$N(B
<CODE>-b bootdev</CODE> $B$d@_Dj%U%!%$%k(B lilo.conf $B$N(B<CODE>boot=bootdev</CODE>
$B$K$h$C$F;XDj$5$l$?>l=j$N%V!<%H%;%/%?!<$K(B 1st boot loader $B$,%$%s%9%H!<%k(B
$B$5$l$^$9!#(B
$B$3$N$H$-F1;~$K(B <CODE>"lilo"</CODE> $B%3%^%s%I$N%*%W%7%g%s$d(B
$B@_Dj%U%!%$%k(B lilo.conf $B$K$h$C$F;XDj$5$l$?(B timeout$B!"(Bdelay$B!"(Bprompt$B!"(B
$B%G%U%)%k%H$N(B ($B%+!<%M%k$N(B) $B5/F0%*%W%7%g%s$J$I$N%Q%i%a!<%?!"$^$?(B 2nd boot
loader $B$d%^%C%W(B ($B%+!<%M%k0LCV>pJs(B) $B%U%!%$%k!"$=$l$K(B ($B;XDj$5$l$?>l9g$K$O(B)
$B5/F0%a%C%;!<%8%U%!%$%k$d%-!<%\!<%IJQ49%F!<%V%k%U%!%$%k$N%G%#%9%/>e$N0LCV$r(B
$B<($9%;%/%?!<%"%I%l%9$J$I$N>pJs$,(B 1st boot loader $B$NCf$N%G!<%?NN0h$KJ]B8$5$l$^$9!#(B
<P>1st boot loader $B$O(B 2nd boot loader $B$r%a%b%j!<$K%m!<%I$9$k$N$,LrL\$G$9!#(B
LILO $B$N5/F0%3!<%I$N<gMW$J5!G=$O$9$Y$F(B 2nd boot loader $B$NCf$K$"$j$^$9!#(B
2nd boot loader $B$O(B 1st boot loader $B$NCf$K4^$^$l$F$$$k>pJs$r$b$H$K(B
$B%^%C%W%U%!%$%k$r%m!<%I$7$F$=$N>pJs$r2r@O$7!"$=$N7k2L$K=>$C$F(B
$B%+!<%M%k%3!<%I$r%m!<%I$7$^$9!#$^$?I,MW$J>l9g$K$O(B initrd $B$G;HMQ$9$k(B
$B%k!<%H%$%a!<%8$N%m!<%I$b(B 2nd boot loader $B$,<B9T$7$^$9!#(B
$B5/F0%W%m%s%W%H$NI=<($d;HMQ$9$k%+!<%M%k$NA*Br$b(B 2nd boot loader $B$N(B
$B5!G=$G$9!#(B
<P>
<P>
<H2><A NAME="ss1.1">1.1 1st boot loader</A>
</H2>
<P>LILO $B$K$h$k%V!<%H$G$O!":G=i$K%V!<%H%;%/%?!<$N@hF,(B 438 bytes $B$K5-O?$5$l$?(B
1st boot loader $B$,(B BIOS $B$^$?$O(B MBR $B$KCV$+$l$?B>$N%V!<%H%m!<%@!<$K$h$C$F(B
$B%m!<%I$5$l$^$9!#%m!<%I$K@.8y$7!"(B1st boot loader $B$,<B9T$r3+;O$9$k$H(B
$B:G=i$N(B "L" $B$H$$$&J8;z$,I=<($5$l$^$9!#(B
<P>$B<!$K(B 1st boot loader $B$O(B <CODE>"lilo"</CODE> $B%3%^%s%I<B9T;~$K(B
$B<+J,$NCf$K5-O?$5$l$?(B 2nd boot loader $B$N%G%#%9%/>e$N0LCV(B ($B%;%/%?!<%"%I%l%9(B)
$B$r(B BIOS $B$KDs<($7$F!"%;%/%?!<C10L$G(B BIOS $B$K(B 2nd boot loader $B$r%m!<%I$5$;$^$9!#(B
$B%m!<%I$K@.8y$9$k$H!"%3%s%=!<%k$K(B "I" $B$H$$$&J8;z$rI=<($7$F(B 2nd boot loader $B$K(B
$B@)8f$rEO$7$^$9!#(B
<P>lilo $B$N%=!<%9%3!<%I$G(B 1st boot loader $B$KAjEv$9$k$N$O(B first.S $B$G$9!#(B
($B$J$s$F$o$+$j$d$9$$L>A0$G$7$g$&!*(B)
$B>e5-$N(B "L", "I", $B$NI=<($r<B9T$7$F$$$k$N$O!"(B
$B$=$l$>$l(B
<P>
<BLOCKQUOTE><CODE>
<PRE>
go:
; cli ! no interrupts
mov ds,ax ! AX is already set
;; mov es,ax ! (ES may be wrong when restarting)
mov ax,#STACKSEG
mov ss,ax
mov sp,#STACK ! set the stack
sti ! now it is safe
mov al,#0x0d ! gimme a CR ...
call display
mov al,#0x0a ! ... an LF ...
call display
mov al,#0x4c ! ... an 'L' ...
call display
</PRE>
</CODE></BLOCKQUOTE>
<P>$B$H(B
<P>
<BLOCKQUOTE><CODE>
<PRE>
done: mov al,#0x49 ! display an 'I'
call display
jmpi 0,SECONDSEG ! start the second stage loader
</PRE>
</CODE></BLOCKQUOTE>
<P>$B$NItJ,$G$9!#%3%a%s%H$rFI$a$P!"2?$r$7$F$$$k$+A[A|$,$D$-$^$9$M!#(B
<P>$B$b$&$A$g$C$H>\$7$/(B 1st boot loader $B$NF0:n$r@bL@$9$k$?$a$K!"(B
lilo $B$N%=!<%9$H0l=o$KG[I[$5$l$F$$$k(B tech.tex $B$+$i0zMQ$7$^$9!#(B
($B$3$N(B tech.tex $B$O8E$$%P!<%8%g%s$rBP>]$K=q$+$l$F$$$k$N$G!"8=>u$N(B
$B%3!<%I$H$OI,$:$7$b0lCW$7$F$$$J$$ItJ,$,$"$j$^$9!#$?$@$74pK\E*$J(B
$B=hM}$NN.$l$O$"$^$jJQ$C$F$$$J$$$H;W$&$N$G!"35N,$rCN$k>e$G$N;29M(B
$B$K$O$J$k$G$7$g$&!#(B)
<BLOCKQUOTE>
The boot sector is loaded by the ROM-BIOS at address 0x07C00. It moves
itself to address 0x9A000, sets up the stack (growing downwards from
0x9B000 to 0x9A200), loads the secondary boot loader at address
0x9B000 and transfers control to it.
</BLOCKQUOTE>
<BLOCKQUOTE>
ROM-BIOS $B$,(B 1st boot loader $B$r(B 0x07C00 $B$K%m!<%I$9$k$H!"(B
1st boot loader $B$O<+J,<+?H$r(B 0x9A00 $B$K%3%T!<$7!"%9%?%C%/$r(B
0x9B000 $B$+$i(B 0x9A200 $B$X$HMQ0U$7!"(B2nd boot loader $B$r(B 0x9B000 $B$K(B
$B%m!<%I$7$F$=$3$X@)8f$r0\9T$7$^$9!#(B
</BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss1.2">1.2 2nd boot loader</A>
</H2>
<P>2nd boot loader $B$,<B9T$r3+;O$9$k$H!"(B 2 $BHVL\$N(B "L" $B$H$$$&J8;z$,I=<($5$l$^$9!#(B
$B<!$K(B 2nd boot loader $B$O!"(Bmap $B%U%!%$%k$N@hF,$NItJ,$r%m!<%I$7$^$9!#(B
$B$3$3$K$O(B LILO $B$N%V!<%H%a%K%e!<$GA*Br;h$H$7$FI=<($5$l$k%i%Y%k$NL>A0$d!"(B
$B%Q%9%o!<%I$J$I$N>pJs$,5-O?$5$l$F$$$^$9!#(B
<P>$B$3$N@hF,ItJ,$N9=B$$O(B LILO $B$N%=!<%9%3!<%I$K$"$k(B common.h $BCf$G(B
$B0J2<$N$h$&$K5,Dj$5$l$F$$$^$9!#(B
<P>
<BLOCKQUOTE><CODE>
<PRE>
typedef struct {
char name[MAX_IMAGE_NAME+1];
char password[MAX_PW+1];
unsigned short rd_size[2]; /* RAM disk size in bytes, 0 if none */
SECTOR_ADDR initrd,start;
unsigned short start_page; /* page at which the kernel is loaded high, 0
if loading low */
unsigned short flags,vga_mode;
} IMAGE_DESCR;
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>$B$3$N%^%C%W%U%!%$%k@hF,ItJ,$N%m!<%I$,40N;$9$k$H(B "O" $B$H$$$&J8;z$r(B
$B%3%s%=!<%k$KI=<($7!";XDj$5$l$?BT$A;~4V$N$"$$$@!"%-!<F~NO$r%A%'%C%/$7$^$9!#(B
<P>$B$3$N8e!"%W%m%s%W%HI=<($d%-!<F~NO$KBP$9$k=hM}$r9T$$!"$3$l$+$i5/F0$9$k%+!<%M%k$K(B
$BBP1~$7$?%"%I%l%9%^%C%W$r>e5-$N(B SECTOR_ADDR initrd,start $B$K$h$C$F;XDj$5$l$?(B
$B%;%/%?!<%"%I%l%9$+$i%m!<%I$7!"$3$N%^%C%W%U%!%$%k$K5-O?$5$l$F$$$k%+!<%M%k$d(B
initrd $B%U%!%$%k$N%;%/%?!<%"%I%l%9$r2rFI$7$F!"$=$l$>$l$r%m!<%I$7$F$$$-$^$9!#(B
<P>$BI,MW$J%;%/%?!<$N%m!<%I$,$9$Y$F@.8y$7$?8e!"%+!<%M%k%3!<%I$K@)8f$r0\9T$7$F(B
LILO $B$OF0:n$r40N;$7$^$9!#(B
<P>2nd boot loader $B$NF0:n$K$D$$$F:F$S(B tech.tex $B$+$i0zMQ$7$F$*$-$^$9!#(B
<P>
<BLOCKQUOTE>
The secondary boot loader loads the descriptor table at 0x9D200 and the
sector containing the default command line at 0x9D600. If the default command
line is enabled, its magic number is invalidated and the sector is written
back to disk. This potentially dangerous operation can be disabled by defining
<CODE>LCF_READONLY</CODE> when passing <CODE>second.S</CODE> through <I>cpp</I>.
Next, the secondary boot loader checks for user input. If either the default is
used or if the user has specified an alternate image, the options sector is
loaded at 0x9D600 and the parameter line is constructed at 0x9D800.
If the resulting line contains the option <CODE>"lock"</CODE>, the command line as
entered by the user (it is saved before the final line is constructed) is
written to the disk as the new default command line. Also, if a fallback
command line is set, it is copied to the default command line sector.
</BLOCKQUOTE>
<BLOCKQUOTE>
2nd boot loader $B$O%G%9%/%j%W%?%F!<%V%k(B (map file $B$r%m!<%I$9$k$?$a$NCf4V>pJs(B)
$B$r(B 0x9D200 $B$X!"%G%U%)%k%H$N%3%^%s%I%i%$%s%Q%i%a!<%?(B (lilo.conf $B$G;XDj$5$l$?(B
$B$b$N(B) $B$r(B 0x9D600 $B$X%m!<%I!#<!$K%f!<%6!<$+$i$NF~NO$rD4$Y!"A*Br$5$l$?%$%a!<%8$N(B
$B%*%W%7%g%s%;%/%?!<$r(B 0x9D600 $B$X%m!<%I$7$F5/F0%Q%i%a!<%?>pJs$r(B 0x9D800 $B$K9=@.!#(B
</BLOCKQUOTE>
<P>
<BLOCKQUOTE>
Next, the floppy boot sector of that image is
loaded at 0x90000 (The floppy boot sector is only used as a source of
setup information.),
the setup part is loaded at 0x90200 and the kernel part is loaded at 0x10000,
or, if the kernel has been compiled for being loaded ``high'' (i.e. with
<CODE>make bzImage</CODE>), it is loaded at 0x100000 instead. During the load
operations, the sectors of the map file are loaded at 0x9D000.
</BLOCKQUOTE>
<BLOCKQUOTE>
$B<!$K!"(B($B%+!<%M%k$N(B) $B%U%m%C%T!<%V!<%H%;%/%?!<$r(B 0x90000 $B$X%m!<%I$7!"(B
$B%;%C%H%"%C%W%3!<%I$r(B 0x90200 $B$X!"%+!<%M%kK\BN%3!<%I$r(B 0x10000 $B$^$?$O(B
0x100000 $B$X%m!<%I$9$k!#A0<T$O%+!<%M%k$,(B zImage $B$N>l9g!"8e<T$O(B bzImage $B$N(B
$B>l9g$G$"$k!#(B
($B$J$*%+!<%M%k$N%U%m%C%T!<%V!<%H%;%/%?!<$H$O%U%m%C%T!<%G%#%9%/$+$i(B
Linux $B%+!<%M%k$r5/F0$9$k$?$a$N%3!<%I$G$"$j!"%+!<%M%k%U%!%$%k$N@hF,(B
512bytes $B$KAjEv$9$k!#$3$3$K$O(B <CODE>rdev</CODE> $B%3%^%s%I$G@_Dj$G$-$k(B
$B%k!<%H%G%P%$%9$d%9%o%C%W%G%P%$%9$J$I$N%+!<%M%k%Q%i%a!<%?$,5-O?$5$l$F(B
$B$$$k$?$a!"(BHDD $B$+$i5/F0$9$k>l9g$K$b%a%b%j!<$K%m!<%I$5$l$k!#(B
$B$^$?%+!<%M%k$N%;%C%H%"%C%W%3!<%I$H$O%U%m%C%T!<%V!<%H%;%/%?!<$K(B
$BB3$/ItJ,$G$"$j!"(BBIOS $B4X78$N=i4|2=$d%a%b%j!<%5%$%:$J$I%G%P%$%9>pJs$N<hF@!"(B
$B%S%G%*4X78$N@_Dj$d(B CPU $B$N(B 32bit $B%b!<%I$X$N0\9T$J$I$r9T$J$&!#(B)
$B%^%C%W%U%!%$%kCf$N%+!<%M%k0LCV>pJs(B ($B%;%/%?!<%"%I%l%9(B) $B$O$3$N%+!<%M%k(B
$B%m!<%I:n6H<B9TCf$K(B 0x9D000 $B$X=g<!%m!<%I$5$l!"?7$7$$%;%/%?!<$r%m!<%I$9$k(B
$B$?$S$K<!$N%;%/%?!<0LCV>pJs$K$h$C$F>e=q$-$5$l$F$$$/!#(B
</BLOCKQUOTE>
<P>
<BLOCKQUOTE>
If the loaded image is a kernel image, control is transferred to
its setup code.
</BLOCKQUOTE>
<BLOCKQUOTE>
$B%m!<%I$5$l$?%$%a!<%8$,%+!<%M%k$J$i!"(B0x90200 $B$X%m!<%I$7$?%+!<%M%k$N(B
$B%;%C%H%"%C%W%3!<%I$X@)8f$r0\9T$7$F(B LILO $B$NF0:n$O40N;!#(B
</BLOCKQUOTE>
<P>
<BLOCKQUOTE>
If a different operating system is booted, things are a bit more difficult:
the chain loader is loaded at 0x90200 and the boot sector of the other OS
is loaded at 0x90400. The chain loader moves the partition table (loaded at
0x903BE as part of the chain loader) to 0x00600 and the boot sector to
0x07C00. After that, it passes control to the boot sector.
</BLOCKQUOTE>
<BLOCKQUOTE>
$BB>$N(B OS $B$r5/F0$9$k>l9g$O!"$A$g$$$HOC$,0c$C$F$/$k!#%A%'%$%s%m!<%@$O(B 0x90200
$B$K%m!<%I$5$l!"B>$N(B OS $B$N5/F0%;%/%?$O(B 0x90400 $B$K%m!<%I$5$l$k!#<!$K%A%'%$%s(B
$B%m!<%@$O%Q!<%F%#%7%g%s%F!<%V%k(B ($B%A%'%$%s%m!<%@$N0lIt$H$7$F(B 0x903BE $B$K%m!<%I(B
$B$5$l$F$$$k(B) $B$r(B 0x00600 $B$K%3%T!<$7!"(B($BB>$N(B OS $B$N(B) $B5/F0%;%/%?$r(B (ROM-BIOS $B$,(B
1st boot loader $B$r%m!<%I$9$k$H$NF1$8>l=j$G$"$k(B) 0x07C00 $B$K%3%T!<$9$k!#(B
$B$3$N8e$G!"(B0x07C00 $B$N5/F0%;%/%?$X@)8f$r0\9T$9$l$P!"$"$?$+$b(B ROM-BIOS $B$K(B
$B$h$C$F%m!<%I$5$l$?$N$HF1MM$KB>$N(B OS $B$N5/F0$,3+;O$5$l$k!"$H$$$&@#K!!#(B
</BLOCKQUOTE>
<P>
<BLOCKQUOTE>
Chain loaders that allow booting from a second drive (either floppy or hard
disk) also install a small function to intercept BIOS calls and to swap
the drive numbers at the top of available memory.
</BLOCKQUOTE>
<BLOCKQUOTE>
2 $BHVL\$N%I%i%$%V$+$i5/F0$9$k$?$a$N%A%'%$%s%m!<%@$K$O!"(BBIOS $B%3!<%k$r(B
$B%H%i%C%W(B (intercept) $B$7$F%I%i%$%VHV9f$rF~$l49$($k(B (swap) $B$?$a$N(B
$B$A$g$C$H$7$?4X?t$rMxMQ2DG=$J%a%b%j!<$N0lHV>e$K%$%s%9%H!<%k$7$F$*$/$H(B
$B$$$&:n6H$bI,MW$K$J$k!#(B
</BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss1.3">1.3 BIOS $B$K$h$k%G%#%9%/%G!<%?$N%m!<%I(B</A>
</H2>
<P>1st boot loader $B$*$h$S(B 2nd boot loader $B$H$b!"%G%#%9%/$^$?$O%U%m%C%T!<$+$i(B
$B%U%!%$%k$r%a%b%j!<$K%m!<%I$9$k:n6H$O!"$9$Y$F(B BIOS $B$rMxMQ$7$F9T$J$$$^$9!#(B
$B$3$N$?$a$K(B LILO $B$O(B BIOS $B$,M}2r$G$-$k$h$&!"BP>]$H$9$k%G%#%9%/$N%G%P%$%9(B ID $B$H(B
$B%;%/%?!<%"%I%l%9$K$h$C$F%m!<%I$9$k%U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fCm0U2<$5$$!#(B
<P>
<P>
<H2><A NAME="ss1.5">1.5 Option lba32</A>
</H2>
<P>$B$3$N%*%W%7%g%s$O(B LILO 21-3 $B0J9_$G%5%]!<%H$5$l$?$b$N$G$9!#(B
<P>$B%^%6!<%\!<%I$b%G%#%9%/%I%i%$%V$b:G6a$N$b$N$G!"$I$&$7$F$b(B 1023 $B%7%j%s%@$N(B
$BJI$rD6$($F5/F0$5$;$?$$>l9g$K$O!"$3$N%*%W%7%g%s$r;n$7$F$_$k$HNI$$$G$7$g$&!#(B
<P>
<P>
<H2><A NAME="ss1.6">1.6 $B$=$NB>(B</A>
</H2>
<P>Linux $B%+!<%M%k$N5/F0%3!<%I$N>\:Y$K$D$$$F$O!"(B
<A HREF="http://www.linux.or.jp/JF/JFdocs/readkernel.html">$B%3%a%s%H$+$iFI$`(B Linux $B%+!<%M%k(B</A>
$B$r;2>H$7$F$/$@$5$$!#0J2<$O(B LILO $B$K4XO"$9$kItJ,$N35N,$G$9!#(B
<P>Linux $B%+!<%M%k$N@hF,(B 512bytes $B$O%+!<%M%k$,<+A0$G;}$C$F$$$k%V!<%H%m!<%@!<$G$"$j!"(B
"make zdisk" $B$G:n@.$7$?%V!<%H%U%m%C%T!<$+$i$N5/F0$G$O$3$l$,;H$o$l$^$9!#(B
<P>$B$3$N<+A0$N%V!<%H%m!<%@!<$O(B i386 $B7O$N>l9g(B $B%+!<%M%k%=!<%9%D%j!<$N(B
arch/i386/boot/bootsect.S $B$K$"$j$^$9!#(B
<P>LILO $B$d(B LOADLIN $B$+$i$N5/F0$G$O!"%+!<%M%k$N%m!<%I$,40N;$9$k$H$3$NItJ,(B
(bootsect) $B$rHt$P$7$F<!$N(B setup.S $B$d(B video.S $B$N%3!<%I$K@)8f$r0\9T$7$^$9!#(B
CPU $B$NF0:n$r(B 16bit $B%b!<%I$+$i(B 32bit $B%b!<%I$K0\9T$9$k$N$O(B setup.S $B$NCf(B
$B$G<B9T$7$F$$$^$9!#(B
<P>$B$3$l$i$N<B9T$,=*$o$k$H<!$K(B arch/i386/boot/compressed/head.S $B$,(B
$B<B9T$5$l$^$9!#$3$A$i$O:G=i$+$i(B 32bit $B%b!<%I$G<B9T$5$l$k$3$H$rA0Ds$H(B
$B$7$?%3!<%I$K$J$C$F$$$^$9!#$3$N(B head.S $B$NCf$K$"$k(B decompress_kernel() $B$,(B
$B05=L$5$l$?%+!<%M%kK\BN$rE83+$7$^$9!#(B head.S $B$N<B9T$OE83+$5$l$?%+!<%M%k(B
$BK\BN$K@)8f$rEO$7$F40N;$7$^$9!#(B
<P>
<P>
<HR>
<H2><A NAME="s2">2.</A> <A HREF="#toc2">/sbin/lilo $B%3%^%s%I$r<B9T$7$?;~$NF0:n(B</A></H2>
<P><CODE>"lilo"</CODE> $B%3%^%s%I$OJLL>(B map creator ($B%^%C%W:n@.%D!<%k(B) $B$H(B
$B8F$P$l$F$*$j!"$=$N<g$J5!G=$O@_Dj%U%!%$%k(B lilo.conf $B$N2rFI$H!"$=$NCf$N;XDj(B
$B$*$h$S%3%^%s%I%i%$%s%*%W%7%g%s$K$h$k;XDj$K=>$C$F%^%C%W%U%!%$%k(B (bootloader $B$,(B
$B5/F0;~$K;HMQ$9$k%U%!%$%k(B) $B$r:n@.$7!"$=$NCf$KI,MW$J(B Map Descriptor Table $B$r(B
$BE,@Z$K5-O?$9$k$3$H$G$9!#(B
<P>$BDL>o(B <CODE>"lilo"</CODE> $B%3%^%s%I$O(B lilo.conf $B$r2rFI$7$F!"(B
$B;HMQ$9$k%+!<%M%k$4$H$K;XDj$5$l$?(B Image $B%U%!%$%k(B ($B$*$h$S!"$b$7$"$l$P(B
initrd $B%U%!%$%k(B) $B$KBP$9$k%;%/%?!<%"%I%l%9$r<hF@$7!"$=$l$r5/F0;~$K(B
$B;HMQ$9$k(B Map Descriptor Table $B$N%G!<%?7?<0$K$7$F%^%C%W%U%!%$%k$K(B
$BJ]B8$7$^$9!#(B
<P><CODE>"lilo"</CODE> $B%3%^%s%I$G%U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,$"$j$^$9!#(B
<P>$B:G6a$O(B MBM $B$d(B SBM $B$J$I$N?7$7$$%V!<%H%^%M!<%8%c$b?M5$$,$"$k$h$&$G$9!#(B
MBM $B$O5/F0%a%K%e!<$NGX7J$H$7$F9%$-$J2hA|$rI=<($G$-$kE@$,FCD'$G$9!#(B
<P>$B$3$NCf$G$bFC$K8D?ME*$J$*A&$a$O(B
<A HREF="http://www.tsden.org/takamiti/extipl/">extIPL</A>
$B$G$9!#%P!<%8%g%s(B 5 ($B8=:_%Y!<%?HG$N%F%9%H8x3+Cf$G$9(B) $B$+$i$O(B LBA32
$B%"%/%;%9$K$b@5<0BP1~$7!"$^$?5/F0;~$N%a%K%e!<$,(B GUI $BIw$J$b$N$H$J$j!"(B
$B%Q!<%F%#%7%g%s$r<1JL$9$kJ8;zNs$rG$0U$K@_Dj$G$-$k$h$&$K$b$J$j$^$7$?!#(B
$B$^$?3HD%NN0hFb$NO@M}NN0h$+$i$b=>MhF1MM5/F02DG=$G$9!#(B
$B%=!<%98x3+(B (Ver 5 $B$+$i%i%$%;%s%9$,(B GPL2 $B$K$J$j$^$7$?(B) $B$G$"$j!"$+$D(B
Linux $B>e$G(B make $B$G$-$k(B (gcc + nasm) $BE@$b8+F($;$J$$%]%$%s%H$G$9!#(B
<P>
<P>
<H2><A NAME="ss3.3">3.3 $B;29M(B</A>
</H2>
<P>
<UL>
<LI>
<A HREF="http://www.linux.or.jp/JF/JFdocs/readkernel.html">$B%3%a%s%H$+$iFI$`(B Linux $B%+!<%M%k(B</A></LI>
<LI>
<A HREF="http://www.linux.or.jp/JF/JFdocs/hdd-intro.html">$B%O!<%I%G%#%9%/%I%i%$%V$N4pACCN<1(B</A></LI>
<LI>
<A HREF="http://www.linux.or.jp/JF/JFdocs/Large-Disk-HOWTO.html">Large Disk HOWTO</A></LI>
<LI>
<A HREF="http://www.linux.or.jp/JF/JFdocs/LILO.html">Lilo mini-Howto</A></LI>
<LI>
<A HREF="http://www.linux.or.jp/JF/JFdocs/LILO-FAQ.html">LILO FAQ</A></LI>
<LI>
<A HREF="http://www.linux.or.jp/JF/JFdocs/GAG.html">GAG (GRAPHICAL BOOT MANAGER)</A></LI>
<LI>
<A HREF="http://www.tsden.org/takamiti/extipl/">extIPL</A></LI>
<LI>
<A HREF="http://www.geocities.co.jp/SiliconValley-Bay/2414/linuxboot/boot.html">$B%V!<%H?'!9(B</A></LI>
<LI>
<A HREF="http://www.tkcity.net/~nobusan/hardware/boot_hdd/multi_boot/index.html">$B%^%k%A%V!<%H$N;EJ}(B</A></LI>
<LI>
<A HREF="http://www.tkcity.net/~nobusan/hardware/boot_hdd/index.html">$B%V!<%H$H%O!<%I%G%#%9%/$N$9$Y$F(B</A></LI>
</UL>
<P>
<HR>
sgml21html conversion date: Sat Dec 16 03:56:52 JST 2000
</BODY>
</HTML>
|