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 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951
|
<HTML
><HEAD
><TITLE
>The aboot Loader</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.52"><LINK
REL="HOME"
TITLE="SRM Firmware Howto"
HREF="t1.html"><LINK
REL="PREVIOUS"
TITLE="The Raw Loader"
HREF="x162.html"><LINK
REL="NEXT"
TITLE="Sharing a Disk With DEC Unix"
HREF="x661.html"></HEAD
><BODY
CLASS="SECT1"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>SRM Firmware Howto</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x162.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x661.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="ABOOT"
>The aboot Loader</A
></H1
><P
>When using the SRM firmware, <TT
CLASS="LITERAL"
>aboot</TT
> is the preferred way of
booting Linux. It supports:</P
><P
> <P
></P
><UL
><LI
><P
> direct booting from various filesystems (<TT
CLASS="LITERAL"
>ext2</TT
>, <TT
CLASS="LITERAL"
>ISO9660</TT
>, and
<TT
CLASS="LITERAL"
>UFS</TT
>, the DEC Unix filesystem)</P
></LI
><LI
><P
> listing directories and following symbolic links on ext2 (version 0.6 and later)</P
></LI
><LI
><P
> booting of executable object files (both ELF and ECOFF)</P
></LI
><LI
><P
> booting compressed kernels</P
></LI
><LI
><P
> network booting (using bootp)</P
></LI
><LI
><P
> partition tables in DEC Unix format (which is
compatible with BSD Unix partition tables)</P
></LI
><LI
><P
> interactive booting and default configurations for
SRM consoles that cannot pass long option strings</P
></LI
><LI
><P
> load initrd images to load modules at boot time (0.7 and later)</P
></LI
></UL
> </P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN235"
>Getting and Building aboot</A
></H2
><P
>The latest sources for <TT
CLASS="LITERAL"
>aboot</TT
> are available from <A
HREF="ftp://ftp.alphalinux.org/pub/Linux-Alpha/aboot"
TARGET="_top"
>alphalinux.org</A
> and <A
HREF="http://www.alphalinux.org/mirrors"
TARGET="_top"
>alphalinux.org mirrors</A
>. They can
also be obtained via CVS from www.alphalinux.org, to get the latest version from CVS use these commands:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>bash$ export CVSROOT=':pserver:anonymous@www.alphalinux.org:/home/axplinux/cvs/development'
bash$ cvs login
bash# cvs -z3 co aboot</PRE
></TD
></TR
></TABLE
>
(Note there is no password for the CVS login, just press enter)</P
><P
>The description in this manual applies to <TT
CLASS="LITERAL"
>aboot</TT
> version 0.6
or newer. Please note that many distributions ship aboot with them so
downloading aboot from this directory is probably not neccesary.</P
><P
> Once you downloaded and extracted the latest tar file, take a
look at the <TT
CLASS="LITERAL"
>README</TT
> and <TT
CLASS="LITERAL"
>INSTALL</TT
> files for
installation hints. In particular, be sure to adjust the variables in
<TT
CLASS="LITERAL"
>Makefile</TT
> and in <TT
CLASS="LITERAL"
>include/config.h</TT
> to match your
environment. Normally, you won't need to change anything when
building under Linux, but it is always a good idea to double check.
If you're satisfied with the configuration, simply type <TT
CLASS="LITERAL"
>make</TT
>
to build it (if you're not building under Linux, be advised that
<TT
CLASS="LITERAL"
>aboot</TT
> requires GNU <TT
CLASS="LITERAL"
>make</TT
>).</P
><P
>After running <TT
CLASS="LITERAL"
>make</TT
>, the <TT
CLASS="LITERAL"
>aboot</TT
> directory should contain the
following files:</P
><P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>aboot</DT
><DD
><P
>This is the actual <TT
CLASS="LITERAL"
>aboot</TT
> executable (either an
ECOFF or ELF object file).</P
></DD
><DT
>bootlx</DT
><DD
><P
>Same as above, but it contains only the text, data
and bss segments---that is, this file is not an object file.</P
></DD
><DT
>sdisklabel/writeboot</DT
><DD
><P
>Utility to install <TT
CLASS="LITERAL"
>aboot</TT
> on a
hard disk.</P
></DD
><DT
>tools/e2writeboot</DT
><DD
><P
>Utility to install <TT
CLASS="LITERAL"
>aboot</TT
> on an ext2
filesystem (usually used for floppies only).</P
></DD
><DT
>tools/isomarkboot</DT
><DD
><P
>Utility to install <TT
CLASS="LITERAL"
>aboot</TT
> on a iso9660
filesystem (used by CD-ROM distributors).</P
></DD
><DT
>tools/abootconf</DT
><DD
><P
>Utility to configure an installed <TT
CLASS="LITERAL"
>aboot</TT
>.</P
></DD
></DL
></DIV
></P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN286"
>Floppy Installation</A
></H2
><P
> The bootloader can be installed on a floppy using the
<TT
CLASS="LITERAL"
>e2writeboot</TT
> command (note: this can't be done on a Jensen since
its firmware does <I
CLASS="EMPHASIS"
>not</I
> support booting from floppy). This command
requires that the disk is not overly fragmented as it needs to find
enough contiguous file blocks to store the entire <TT
CLASS="LITERAL"
>aboot</TT
> image
(currently about 90KB). If <TT
CLASS="LITERAL"
>e2writeboot</TT
> fails because of this,
reformat the floppy and try again (e.g., with <TT
CLASS="LITERAL"
>fdformat(1)</TT
>). For
example, the following steps install <TT
CLASS="LITERAL"
>aboot</TT
> on floppy disk
assuming the floppy is in drive <TT
CLASS="LITERAL"
>/dev/fd0</TT
>:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># fdformat /dev/fd0
# mke2fs /dev/fd0
# e2writeboot /dev/fd0 bootlx</PRE
></TD
></TR
></TABLE
> </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN297"
>Harddisk Installation</A
></H2
><P
>Since the <TT
CLASS="LITERAL"
>e2writeboot</TT
> command may fail on highly fragmented
disks and since reformatting a harddisk is not without pain, it is
generally safer to install <TT
CLASS="LITERAL"
>aboot</TT
> on a harddisk using the
<TT
CLASS="LITERAL"
>swriteboot</TT
> command. <TT
CLASS="LITERAL"
>swriteboot</TT
> requires that the first few
sectors are reserved for booting purposes. We suggest that the disk
be partitioned such that the first partition starts at an offset of
2048 sectors. This leaves 1MB of space for storing <TT
CLASS="LITERAL"
>aboot</TT
>. On
a properly partitioned disk, it is then possible to install <TT
CLASS="LITERAL"
>aboot</TT
>
as follows (assuming the disk is <TT
CLASS="LITERAL"
>/dev/sda</TT
>):
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># swriteboot /dev/sda bootlx</PRE
></TD
></TR
></TABLE
> </P
><P
>On systems where partition <TT
CLASS="LITERAL"
>c</TT
> in the entire disk it will be
necessary to 'force' the write of aboot. In this case use the <TT
CLASS="LITERAL"
>-f</TT
>
flag followed by the partition number (in the case of partition <TT
CLASS="LITERAL"
>c</TT
>
this is 3):
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># swriteboot /dev/sda bootlx -f3</PRE
></TD
></TR
></TABLE
> </P
><P
>On a Jensen, you will want to leave some more space, since you need to
write a kernel to this place, too---2MB should be sufficient when
using compressed kernels. Use <TT
CLASS="LITERAL"
>swriteboot</TT
> as described in Section
<A
HREF="aboot.html#BOOTING"
>the section called <I
>Booting Linux</I
></A
> to write <TT
CLASS="LITERAL"
>bootlx</TT
> together with the Linux
kernel.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN317"
>CD-ROM Installation</A
></H2
><P
> To make a CD-ROM bootable by SRM, simply build <TT
CLASS="LITERAL"
>aboot</TT
> as
described above. Then, make sure that the <TT
CLASS="LITERAL"
>bootlx</TT
> file is present
on the iso9660 filesystem (e.g., copy <TT
CLASS="LITERAL"
>bootlx</TT
> to the directory
that is the filesystem master, then run <TT
CLASS="LITERAL"
>mkisofs</TT
> on that
directory). After that, all that remains to be done is to mark the
filesystem as SRM bootable. This is achieved with a command of the
form:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># isomarkboot filesystem bootlx</PRE
></TD
></TR
></TABLE
> </P
><P
>The command above assumes that <TT
CLASS="LITERAL"
>filesystem</TT
> is a file containing
the iso9660 filesystem and that <TT
CLASS="LITERAL"
>bootlx</TT
> has been copied into the
root directory of that filesystem. That's it!</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="BUILDING-LINUX"
>Building the Linux Kernel</A
></H2
><P
>A bootable Linux kernel can be built with the following steps.
During the <TT
CLASS="LITERAL"
>make config</TT
>, be sure to answer "yes" to the question
whether you want to boot the kernel via SRM (for certain platforms
this is automatically selected). Note that if you build a generic
kernel (by selecting "Generic" as the alpha system type), the kernel
is able to guess whether it is running under SRM or not.
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># cd /usr/src/linux
# make config
# make dep
# make boot
# make modules (if applicable)
# make modules_install (if applicable)</PRE
></TD
></TR
></TABLE
> </P
><P
>The last command will build the file
<TT
CLASS="LITERAL"
>arch/alpha/boot/vmlinux.gz</TT
> which can then be copied to the
disk from which you want to boot from. In our floppy disk example
above, this would entail:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># mount /dev/fd0 /mnt
# cp arch/alpha/boot/vmlinux.gz /mnt
# umount /mnt</PRE
></TD
></TR
></TABLE
> </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="BOOTING"
>Booting Linux</A
></H2
><P
> With the SRM firmware and <TT
CLASS="LITERAL"
>aboot</TT
> installed, Linux is generally
booted with a command of the form:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="LITERAL"
>boot</TT
> <I
CLASS="EMPHASIS"
>devicename</I
> <TT
CLASS="LITERAL"
>-fi</TT
> <I
CLASS="EMPHASIS"
>filename</I
>
<TT
CLASS="LITERAL"
>-fl</TT
> <I
CLASS="EMPHASIS"
>flags</I
></PRE
></TD
></TR
></TABLE
> </P
><P
>The <I
CLASS="EMPHASIS"
>filename</I
> and <I
CLASS="EMPHASIS"
>flags</I
> arguments are optional. If
they are not specified, SRM uses the default values stored in
environment variables <TT
CLASS="LITERAL"
>BOOTDEF_DEV</TT
> ,
<TT
CLASS="LITERAL"
>BOOT_OSFILE</TT
> and <TT
CLASS="LITERAL"
>BOOT_OSFLAGS</TT
>. The
syntax and meaning of these two arguments is described in more detail
below. To list the current values of these variables type <TT
CLASS="LITERAL"
>show
boot*</TT
> at the SRM command prompt. This will also show a
boot_dev variable (among others), this variable is read only
and needs to be changed via the bootdef_dev variable.</P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="DEVICE-NAMING"
>Device Naming</A
></H3
><P
>This corresponds to the device from which SRM will attempt to boot. Examples include:</P
><P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>dva0</DT
><DD
><P
>- First floppy drive, <TT
CLASS="LITERAL"
>/dev/fd0</TT
> under Linux</P
></DD
><DT
>dqa0</DT
><DD
><P
>- Primary IDE cdrom or hard disk as Master, <TT
CLASS="LITERAL"
>/dev/hda</TT
> under Linux</P
></DD
><DT
>dqa1</DT
><DD
><P
>- Primary IDE cdrom or hard disk as Slave, <TT
CLASS="LITERAL"
>/dev/hdb</TT
> under Linux</P
></DD
><DT
>dka0</DT
><DD
><P
>- SCSI disk on first bus, Device 0, <TT
CLASS="LITERAL"
>/dev/sda</TT
> under Linux</P
></DD
><DT
>ewa0</DT
><DD
><P
>- First Ethernet Device, <TT
CLASS="LITERAL"
>/dev/eth0</TT
> under Linux</P
></DD
></DL
></DIV
></P
><P
>For example to boot from the disk at SCSI id 6, you would enter:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>>>> boot dka600</PRE
></TD
></TR
></TABLE
> </P
><P
>To list the devices currently installed in the system type <TT
CLASS="LITERAL"
>show
dev</TT
> at the SRM command line. In contrast to Linux device naming, the
partition number on a disk device is <I
CLASS="EMPHASIS"
>not</I
> given as part of the
device name (you may see extra numbers after the device names when
running <TT
CLASS="LITERAL"
>show dev</TT
> - these correspond to things like PCI bus and
device numbers and are not useful to the user). Remember, as
mentioned in <A
HREF="x31.html#HOW-SRM-BOOTS"
>the section called <I
>How Does SRM Boot an OS?</I
></A
>, that SRM knows <I
CLASS="EMPHASIS"
>nothing</I
>
about partitions or disklabels - it merely reads a boot block and
secondary bootstrap from sectors on a disk. Therefore, the partition
number is given as part of the boot filename.</P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN392"
>Boot Filename</A
></H3
><P
>The filename argument takes the form:
<SPAN
CLASS="QUOTE"
>"[<I
CLASS="EMPHASIS"
>n</I
>/]<I
CLASS="EMPHASIS"
>filename</I
>"</SPAN
></P
><P
><I
CLASS="EMPHASIS"
>n</I
> is a single digit in the range 1..8 that gives the partition
number from which to boot from. <I
CLASS="EMPHASIS"
>filename</I
> is the path of the file
you want boot. For example to boot a kernel named vmlinux.gz from the second partition of SCSI
device 6, you would enter:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>>>> boot dka600 -file 2/vmlinux.gz</PRE
></TD
></TR
></TABLE
> </P
><P
>Or to boot from floppy drive 0, you'd enter:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>>>> boot dva0 -file vmlinux.gz</PRE
></TD
></TR
></TABLE
> </P
><P
>If a disk has no partition table, <TT
CLASS="LITERAL"
>aboot</TT
> pretends the disk
contains one <TT
CLASS="LITERAL"
>ext2</TT
> partition starting at the first diskblock.
This allows booting from floppy disks.</P
><P
>As a special case, partition number 0 is used to request booting
from a disk that does not (yet) contain a file system. When
specifying "partition" number 0, <TT
CLASS="LITERAL"
>aboot</TT
> assumes that the Linux
kernel is stored right behind the <TT
CLASS="LITERAL"
>aboot</TT
> image. Such a layout
can be achieved with the <TT
CLASS="LITERAL"
>swriteboot</TT
> command. For example, to
setup a filesystem-less boot from <TT
CLASS="LITERAL"
>/dev/sda</TT
>, one could use
the command:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># swriteboot /dev/sda bootlx vmlinux.gz</PRE
></TD
></TR
></TABLE
> </P
><P
>Booting a system in this way is not normally necessary. The
reason this feature exists is to make it possible to get Linux
installed on a systems that can't boot from a floppy disk (e.g., the
Jensen).</P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN414"
>Boot Flags</A
></H3
><P
>A number of bootflags can be specified. The syntax is:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>-flags "options..."</PRE
></TD
></TR
></TABLE
> </P
><P
>Where "options..." is any combination the following options (separated
by blanks). There are many more bootoptions, depending on what
drivers your kernel has installed. The options listed below are
therefore just examples to illustrate the general idea:</P
><P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>load_ramdisk=1</DT
><DD
><P
>Copy root file system from a (floppy) disk to the RAM disk
before starting the system. The RAM disk will be used in
lieu of the root device. This is useful to bootstrap Linux
on a system with only one floppy drive.</P
></DD
><DT
>floppy=<I
CLASS="EMPHASIS"
>str</I
></DT
><DD
><P
>Sets floppy configuration to <I
CLASS="EMPHASIS"
>str</I
>.</P
></DD
><DT
>root=<I
CLASS="EMPHASIS"
>dev</I
></DT
><DD
><P
>Select device <I
CLASS="EMPHASIS"
>dev</I
> as the root-file
system. The device can be specified as a major/minor hex number (e.g.,
0x802 for /dev/sda2) or one of a few canonical names (e.g.,
<TT
CLASS="LITERAL"
>/dev/fd0</TT
>, <TT
CLASS="LITERAL"
>/dev/sda2</TT
>).</P
></DD
><DT
>single</DT
><DD
><P
>Boot system in single user mode.</P
></DD
><DT
>kgdb</DT
><DD
><P
>Enable kernel-gdb (works only if <TT
CLASS="LITERAL"
>CONFIG_KGDB</TT
> is
enabled; a second Alpha system needs to be connected over the serial
port in order to make this work)</P
></DD
></DL
></DIV
></P
><P
>Some SRM implementations (e.g., the one for the Jensen) are
handicapped and allow only short option strings (e.g., at most 8
characters). In such a case, <TT
CLASS="LITERAL"
>aboot</TT
> can be booted with the
single-character boot flag "i". With this flag, <TT
CLASS="LITERAL"
>aboot</TT
> will
enter interactive mode</P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN451"
>Using aboot interactively</A
></H3
><P
>As of version 0.6, <TT
CLASS="LITERAL"
>aboot</TT
> supports a simple command-oriented
interactive mode. Note that this is <I
CLASS="EMPHASIS"
>different</I
> from the prompt
which previous versions issued when booted with the "i" flag, or after
failing to load a kernel. You can get a summary of the available
commands by typing "h" or "?" at the prompt:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>>>> boot dka0 -fl i
aboot> ?
h, ? Display this message
q Halt the system and return to SRM
p 1-8 Look in partition <num> for configuration/kernel
l List pre-configured kernels
d <dir> List directory <dir> in current filesystem
b <file> <args> Boot kernel in <file> (- for raw boot)
with arguments <args>
0-9 Boot pre-configuration 0-9 (list with 'l')
aboot> b 3/vmlinux.gz root=/dev/sda3 single</PRE
></TD
></TR
></TABLE
> </P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN457"
>The aboot.conf configuration file</A
></H3
><P
>Since booting in that manner quickly becomes tedious, <TT
CLASS="LITERAL"
>aboot</TT
>
allows to define short-hands for frequently used command lines. In
particular, a single digit option (0-9) requests that <TT
CLASS="LITERAL"
>aboot</TT
> uses
the corresponding option string stored in file
<TT
CLASS="LITERAL"
>/etc/aboot.conf</TT
>. A sample <TT
CLASS="LITERAL"
>aboot.conf</TT
> is shown below:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>#
# aboot default configurations
#
0:3/vmlinux.gz root=/dev/sda3
1:3/vmlinux.gz root=/dev/sda3 single
2:3/vmlinux.new.gz root=/dev/sda3
3:3/vmlinux root=/dev/sda3
8:- root=/dev/sda3 # fs-less boot of raw kernel
9:0/vmlinux.gz root=/dev/sda3 # fs-less boot of (compressed) ECOFF kernel
-</PRE
></TD
></TR
></TABLE
> </P
><P
>With this configuration file, the command
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>>>> boot dka0 -fl 1</PRE
></TD
></TR
></TABLE
>
corresponds exactly to the boot command shown above.</P
><P
>Finally, at the <TT
CLASS="LITERAL"
>aboot</TT
> prompt, it is possible to enter one of the
single character flags ("0"-"9") to get the same effect as if that
flag had been specified in the boot command line. As noted in the
help text cited above, you can also list the available default
configurations with the "l" command.</P
><DIV
CLASS="SECT4"
><H4
CLASS="SECT4"
><A
NAME="AEN469"
>Selecting the Partition of /etc/aboot.conf</A
></H4
><P
>When installed on a harddisk, <TT
CLASS="LITERAL"
>aboot</TT
> needs to know what
partition to search for the <TT
CLASS="LITERAL"
>/etc/aboot.conf</TT
> file. A newly
compiled <TT
CLASS="LITERAL"
>aboot</TT
> will search the <I
CLASS="EMPHASIS"
>second</I
> partition (e.g.,
<TT
CLASS="LITERAL"
>/dev/sda2</TT
>). Since it would be inconvenient to have to
recompile <TT
CLASS="LITERAL"
>aboot</TT
> just to change the partition number,
<TT
CLASS="LITERAL"
>abootconf</TT
> allows to directly modify an installed <TT
CLASS="LITERAL"
>aboot</TT
>.
Specifically, if you want to change <TT
CLASS="LITERAL"
>aboot</TT
> to use the <I
CLASS="EMPHASIS"
>third</I
>
partition on disk <TT
CLASS="LITERAL"
>/dev/sda</TT
>, you'd use the command:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># abootconf /dev/sda 3</PRE
></TD
></TR
></TABLE
></P
><P
>You can verify the current setting by simply omitting the partition
number. That is: <TT
CLASS="LITERAL"
>abootconf /dev/sda</TT
> will print the currently
selected partition number. Note that <TT
CLASS="LITERAL"
>aboot</TT
> does have to be
installed already for this command to succeed. As of version 0.6,
<TT
CLASS="LITERAL"
>swriteboot</TT
> it will preserve the existing configuration when
installing a new <TT
CLASS="LITERAL"
>aboot</TT
> on a hard disk.</P
><P
>Since <TT
CLASS="LITERAL"
>aboot </TT
> version 0.5, it is also possible to select the
<TT
CLASS="LITERAL"
> aboot.conf </TT
> partition via the boot command line. This can be
done with a command line of the form <I
CLASS="EMPHASIS"
>a</I
><TT
CLASS="LITERAL"
>:</TT
><I
CLASS="EMPHASIS"
>b</I
>
where <I
CLASS="EMPHASIS"
>a</I
>
is the partition that holds <TT
CLASS="LITERAL"
>/etc/aboot.conf</TT
> and <I
CLASS="EMPHASIS"
>b</I
> is a
single-letter option as described above (<TT
CLASS="LITERAL"
>0</TT
>-<TT
CLASS="LITERAL"
>9</TT
>, <TT
CLASS="LITERAL"
>i</TT
>, or
<TT
CLASS="LITERAL"
>h</TT
>). For example, if you type <TT
CLASS="LITERAL"
>boot -fl "3:h" dka100</TT
> the
system boots from SCSI ID 1, loads <TT
CLASS="LITERAL"
>/etc/aboot.conf</TT
> from the
third partition, prints its contents on the screen and waits for you
to enter the boot options.</P
></DIV
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="DHCP-AND-BOOTPD-SERVER-SETUP"
>Setting up a BOOTP capable server using DHCP</A
></H2
><P
>The following configuration assumes that the server is running RH-6.2.
Prerequisites packages are,
<P
></P
><UL
><LI
><P
>dhcp-2.0.5 </P
></LI
><LI
><P
>tftp-server-0.16.5</P
></LI
></UL
> </P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN512"
>DHCP & BOOTP configuation</A
></H3
><P
>Once those packages are installed there are a few setup issues to take care of.</P
><P
>Create the default directory to which files will be pulled from using tftp.</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># mkdir /tftpboot</PRE
></TD
></TR
></TABLE
><P
>Create the dhcp.leases file which is not create per default (though it should be) when
you install the dhcp package so the dhcp server may start. </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># mkdir -p /var/state/dhcp
# touch /var/state/dhcp/dhcpd.leases</PRE
></TD
></TR
></TABLE
><P
>Configure the inetd to accept the tftp service. Edit your /etc/inetd.conf file and locate
the following line. Then uncomment it and save the file.</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>#tftp dgram udp wait root /usr/sbin/tcpd in.tftpd</PRE
></TD
></TR
></TABLE
><P
>Create the /etc/dhcp.conf configuation file. An example config
is provided below with the directives which allow BOOTP. </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option nis-domain "alphalinux.org";
option domain-name "alphalinux.org";
option domain-name-servers 192.168.1.2;
range 192.168.1.3 192.168.1.254;
range dynamic-bootp 192.168.1.3 192.168.1.254;
default-lease-time 21600;
max-lease-time 43200;
allow bootp;
allow booting;
filename "/tftpboot/vmlinux.bootp";
} </PRE
></TD
></TR
></TABLE
><DIV
CLASS="SECT4"
><H4
CLASS="SECT4"
><A
NAME="AEN523"
>Examination of /etc/dhcp.conf</A
></H4
><P
>There are four directives that you should be concerned with.</P
><P
></P
><UL
><LI
><P
><TT
CLASS="LITERAL"
>range dynamic-bootp 192.168.1.3 192.168.1.254;</TT
>
which defines the range of ip's available for bootp.</P
></LI
><LI
><P
>
<TT
CLASS="LITERAL"
>allow bootp;</TT
>
which tells the dhcp server to allow the bootp protocol..</P
></LI
><LI
><P
>
<TT
CLASS="LITERAL"
>allow booting;</TT
>
which tells the dhcp server to allow the transfer of the file specified
either in the the "filename" directive or passed in the "-file" flag in SRM. </P
></LI
><LI
><P
>
<TT
CLASS="LITERAL"
>filename "/tftpboot/vmlinux.bootp";</TT
>
which is the default file which is transferred and executed when no filename
specified in SRM as an argument. </P
></LI
></UL
><P
>Lastly, Restart the inetd daemon so that the changes we made can take effect</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># service inet restart</PRE
></TD
></TR
></TABLE
><P
>You should now have a DHCP server that is capable of BOOTP.</P
></DIV
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN542"
>bootpd configuration</A
></H3
><P
>The bootpd is the older way of making a bootp server and for the most part is not used anymore
in lieu of more modern DHCP servers that are capable of handling the protocol with minimal configuration
and more flexibility. This style of setup does not allow just any client to be granted a BOOTP request.
Instead you must specify the ip address and MAC address of the allowed clients. Naturally this could get
quite tedious if you where say administrating more than a few machines. </P
><P
>bootpd rpms can be found on older versions of RedHat's distributions like version 5.2 and below. Note:
the rpm itself is named bootp though the package does contain the bootpd filename. It is available
for download at your favorite RedHat <A
HREF="ftp://ftp.freesoftware.com/.1/linux/redhat/old-releases/redhat-5.2/alpha/RedHat/RPMS/"
TARGET="_top"
>mirror</A
>.
The bootp package requires the tftp-server just as before and the location to where the files are grabbed from is the same. </P
><P
>Once installed you must configure your inetd service to talk to the bootpd daemon. Uncomment the following line in your /etc/inetd.conf .</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>#bootps dgram udp wait root /usr/sbin/tcpd bootpd</PRE
></TD
></TR
></TABLE
><P
>Then restart the inetd.</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># service inet restart</PRE
></TD
></TR
></TABLE
><P
>Configuring the <TT
CLASS="LITERAL"
>/etc/bootptab</TT
> file. The <TT
CLASS="LITERAL"
>bootptab</TT
> file
has one entry describing each client that is allowed to boot from
the server. For example, if you want to boot the machine
<TT
CLASS="LITERAL"
>voodoo.alphalinux.org</TT
>, then an entry of the following form would
be needed:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>voodoo.alphalinux.org:\
:hd=/tftpboot/:bf=vmlinux.bootp:\
:ht=ethernet:ha=08012B1C51F8:hn:vm=rfc1048:\
:ip=192.12.69.254:bs=auto:</PRE
></TD
></TR
></TABLE
> </P
><P
>This entry assumes that the machine's Ethernet address is
<TT
CLASS="LITERAL"
>08012B1C51F8</TT
> and that its IP address is 192.12.69.254. The
Ethernet address can be found with the <TT
CLASS="LITERAL"
>show device</TT
> command of the
SRM console or, if Linux is running, with the <TT
CLASS="LITERAL"
>ifconfig</TT
> command.
The entry also defines that if the client does not specify otherwise,
the file that will be booted is <TT
CLASS="LITERAL"
>vmlinux.bootp</TT
> in directory
<TT
CLASS="LITERAL"
>/tftpboot</TT
>. For more information on configuring <TT
CLASS="LITERAL"
>bootpd</TT
>,
please refer to its man page.</P
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="NETWORK-BOOTING"
>Booting Over the Network</A
></H2
><P
>Three steps are necessary before Linux can be booted via
a network. First you need an Ethernet adapter that is supported by SRM.
Most version of SRM support the DE500 series of cards, with newer
versions (5.6 and later) also supporting the Intel EtherExpress/Pro series
of cards.
Second, you need to set the SRM environment variables to
enable booting via the bootp protocol and third you need to setup
another machine as the your boot server. Enabling bootp in SRM is
usually done by setting the ewa0_protocol (DE500 cards) or eia0_protocol (Intel cards) variable to bootp.
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>>>> set ewa0_protocol bootp</PRE
></TD
></TR
></TABLE
></P
><P
>Also check to see that your ethernet device has a link light to whatever hub or switch it is connected to. If you
do not see a link light try forcing the negotiation of the ethernet device. For example:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>>>> set ewa0_mode FastFD</PRE
></TD
></TR
></TABLE
><P
> Would set the DE500 ethernet card to fast full duplex operation. To see a list of the available modes</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>>>> set ewa0_mode </PRE
></TD
></TR
></TABLE
><P
>Netboot using the aboot sources is currently broken though for the curious the steps needed are further below. Instead use the directions for netbooting using the kernel sources. </P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN572"
>Netboot using the kernel sources</A
></H3
><P
><P
></P
><OL
TYPE="1"
><LI
><P
>Make sure the kernel you want to boot has already been built </P
></LI
><LI
><P
>Execute the following while in the linux source dir:
<P
></P
><UL
><LI
><P
> <TT
CLASS="LITERAL"
>make bootimage</TT
>
</P
></LI
><LI
><P
> <TT
CLASS="LITERAL"
>make bootpfile</TT
>
</P
></LI
></UL
></P
><P
>This creates a uncompressed kernel named 'bootpfile' located in arch/alpha/boot/ . Note that this kernel is
significantly larger than that produced by the aboot sources. </P
></LI
><LI
><P
>Copy bootpfile to the bootp server's directory. With a default setup the tftp server would look in
/tftpboot so copy bootpfile into /tftpboot .
</P
></LI
></OL
></P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN590"
>Netboot using the aboot sources</A
></H3
><P
><P
></P
><OL
TYPE="1"
><LI
><P
>Build aboot with with the command <TT
CLASS="LITERAL"
>make netboot</TT
>. </P
></LI
><LI
><P
>Make sure the kernel that you want to boot has been built already.
By default, the aboot Makefile uses the kernel in /usr/src/linux/arch/alpha/boot/vmlinux.gz (edit the
Makefile if you want to use a different path). The result of make netboot is a file called vmlinux.bootp
which contains aboot and the Linux kernel, ready for network booting. </P
></LI
><LI
><P
> Copy vmlinux.bootp to the bootp server's directory. In the example above, you'd copy it into /tftpboot/vmlinux.bootp. </P
></LI
></OL
></P
><P
>Next, power up the client machine and boot it, specifying the Ethernet adapter as the boot device. Typically, SRM calls the DEC based Ethernet adapter ewa0 and the Intel based adapter
eia0, so to boot from that device, you'd use the command:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
> >>> boot ewa0 </PRE
></TD
></TR
></TABLE
></P
><P
>The -fi and -fl options can be used as usual. For example, </P
><P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
> >>> boot ewa0 -fi bootpfile -fl "root=/dev/hda2" </PRE
></TD
></TR
></TABLE
></P
><P
>In particular, you can ask aboot to prompt for Linux kernel arguments by specifying the option
-fl i . </P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN607"
>Updating the SRM console through BOOTP</A
></H3
><P
>Updating your SRM console over the network through BOOTP is just as easy as booting the Linux kernel
in the same manner. The hardware prerequisites are the same as netbooting Linux. </P
><P
>First you have to obtain an SRM image that is able to BOOTP over the network. These images normally
have a .exe extension. For DEC/Compaq Alpha products these images can be found at
<A
HREF="ftp://gatekeeper.dec.com/pub/DEC/Alpha/firmware/v5.8/"
TARGET="_top"
>ftp://gatekeeper.dec.com/pub/DEC/Alpha/firmware/v5.8/</A
>. You can also find these files on the Alpha Systems Firmware Update CD-ROM. <A
HREF="http://www.api-networks.com"
TARGET="_top"
>API NetWorks</A
> does not offer net bootable SRM images at this time though that may change in the near future.</P
><P
>For example say you had a DS20 and wanted to update it's firmware over the network using BOOTP. You would have to,
<P
></P
><OL
TYPE="1"
><LI
><P
>Get the correct firmware image for the DS20 that supported BOOTP execution which in this case the filename is
<TT
CLASS="LITERAL"
>ds20_v5_8.exe </TT
> from <A
HREF="ftp://gatekeeper.dec.com/pub/DEC/Alpha/firmware/v5.8/"
TARGET="_top"
>ftp://gatekeeper.dec.com/pub/DEC/Alpha/firmware/v5.8/</A
>.</P
></LI
><LI
><P
>Copy the file to the /tftpboot folder located on the BOOTP server.</P
></LI
></OL
></P
><P
>To execute the update from SRM you would do the following:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>>>> b ewa0 -fi ds20_v5_8.exe</PRE
></TD
></TR
></TABLE
><P
>SRM would then proceed to upgrade the firmware in the same fashion as if you had done the firmware update from a CD.</P
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN624"
>Partitioning Disks</A
></H2
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN626"
>What is a disklabel?</A
></H3
><P
>A disk label is a partition table. Unfortunately, there are several
formats the partition table can take, depending on the operating
system.</P
><P
>DOS partition tables are the standard used by Linux and
Windows. AlphaBIOS systems and every Linux kernel can read DOS
partition tables. Unfortunately, the SRM console's boot sector format
overlaps with parts of the DOS partition table on disk, and therefore
DOS partition tables cannot be used with SRM.</P
><P
>BSD disklabels are used by several variants of Unix, including
Tru64. SRM's boot block does not conflict with the BSD disklabel (in
fact, the BSD disklabel resides entirely within "reserved" areas of
the first sector), and Linux can use a BSD disklabel, provided that
support for BSD disklabels has been compiled into the kernel.</P
><P
>To boot from a disk using SRM, a BSD disklabel is required. If the
disk is not a boot disk, the BSD disklabel is not required. A BSD
disklabel can be created using fdisk, the standard Linux disk
partitioning tool.</P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN632"
>Partitioning the Easy Way: a DOS Disklabel</A
></H3
><P
>The simplest way to partition your disk is to let your Linux installer
do it for you, for example by using Red Hat's disk druid or fdisk. On
Red Hat 6.1, this will produce a valid BSD disklabel, but
<I
CLASS="EMPHASIS"
>only</I
> if the disk in question previously contained one. In
most cases, this will produce a DOS disklabel. It will be readable by
Linux, but you will not be able to boot from it via SRM. For this
reason, you will probably want to create a BSD disklabel manually in
order to boot Linux</P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN636"
>Partitioning with a BSD Disklabel</A
></H3
><P
> <P
></P
><OL
TYPE="1"
><LI
><P
>Start fdisk on the disk you're configuring</P
></LI
><LI
><P
>Choose to make a BSD disklabel - option 'b' (newer versions of
fdisk will detect existing BSD disklabels and automatically enter
disklabel mode)</P
></LI
><LI
><P
>You'll notice some things: Partitions are letters instead of
numbers, from a-h Partition 'c' covers the whole of the disk. This is
the convention, don't touch it. While you can see it, note down the
disk parameters as you'll use them more often than with the
DOS-disklabel approach</P
></LI
><LI
><P
>Creating a new partition uses the same procedure as the
DOS-disklabel approach, except that the partitions are referred to by
letter instead of number. That is, 'n' to make a new partition
followed by the partition letter followed by the starting block
followed by the end block</P
></LI
><LI
><P
>Setting partition type is slightly different, because the
numbering scheme is different (1 is swap, 8 is ext2).</P
></LI
><LI
><P
>When you are finished, write ('w') and quit ('q') as normal.</P
></LI
></OL
> </P
><P
>There are some important catches that you must be aware of when
partitioning using a BSD disklabel:
<P
></P
><UL
><LI
><P
>Partition 'a' should start about 1M into the disk: don't start
it at sector 1, try starting at sector 10 (for example). This leaves
plenty of space for writing the boot block (see below)</P
></LI
><LI
><P
>There is a bug in some versions of fdisk which makes the disk
look one sector bigger than it actually is. The listing when you
create the BSD disklabel is correct. The last sector of partition 'c'
is correct. The default last sector when creating a new partition is
1 sector too big</P
></LI
><LI
><P
>Always adjust for this extra sector. This bug exists in the
version of fdisk shipped with Red Hat 6.0. Not making an adjustment
for this problem almost always leads to "Access beyond end of device"
errors from the Linux kernel.</P
></LI
></UL
> </P
><P
>Once you have made a BSD disklabel, continue the installation. After
installation, you can write a boot block to your disk to make it
bootable from SRM.</P
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x162.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="t1.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x661.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The Raw Loader</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
> </TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Sharing a Disk With DEC Unix</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>
|