File:  [NetBSD Developer Wiki] / wikisrc / ports / evbarm / install_using_sysinst.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Mon Nov 19 14:03:19 2018 UTC (3 years, 10 months ago) by leot
Branches: MAIN
CVS tags: HEAD
Include all sysinst(8) "screenshots".

(Still completely not documented though!)

    1: [[!meta title="NetBSD/evbarm install via sysinst(8) on a SATA hard disk, USB stick or (u)SD card"]]
    2: 
    3: In this document we will see step by step how to install NetBSD/evbarm on an
    4: external media (SATA hard disk, USB stick or (u)SD card) using
    5: [[!template id=man name="sysinst" section="8"]].
    6: 
    7: 
    8: # Populating (u)SD card with `armv7.img`
    9: 
   10: *TODOleot*: (mostly) copy-paste instructions from allwinner.mdwn
   11: 
   12: *TODOleot*: Adjust/provide u-boot incantantions to boot on a BPI
   13: 
   14: 
   15: # Installing via sysinst(8)
   16: 
   17: *TODOleot*: Document all sysinst(8) "screenshot"!
   18: 
   19: 
   20: ````
   21: # sysinst
   22: ````
   23: 
   24: ````
   25: 
   26: 
   27: 
   28: 
   29: 
   30: 
   31: 
   32: 
   33: 
   34: 
   35:                     +-------------------------------------+
   36:                     | What kind of system do you have?    |
   37:                     |                                     |
   38:                     | a: Raspberry PI                     |
   39:                     |>b: Other                            |
   40:                     +-------------------------------------+
   41: 
   42: 
   43: 
   44: 
   45: 
   46: 
   47: 
   48: 
   49: 
   50: 
   51: ````
   52: 
   53: ````
   54: 
   55:  NetBSD/evbarm 8.0
   56: 
   57:  This menu-driven tool is designed to help you install NetBSD to a hard disk,
   58:  or upgrade an existing NetBSD system, with a minimum of work.
   59:  In the following menus type the reference letter (a, b, c, ...) to select an
   60:  item, or type CTRL+N/CTRL+P to select the next/previous item.
   61:  The arrow keys and Page-up/Page-down may also work.
   62:  Activate the current selection from the menu by typing the enter key.
   63: 
   64:  If you booted from a floppy, you may now remove the disk.
   65:  Thank you for using NetBSD!
   66:                +-----------------------------------------------+
   67:                | NetBSD-8.0 Install System                     |
   68:                |                                               |
   69:                |>a: Install NetBSD to hard disk                |
   70:                | b: Upgrade NetBSD on a hard disk              |
   71:                | c: Re-install sets or install additional sets |
   72:                | d: Reboot the computer                        |
   73:                | e: Utility menu                               |
   74:                | f: Config menu                                |
   75:                | x: Exit Install System                        |
   76:                +-----------------------------------------------+
   77: 
   78: 
   79: 
   80: ````
   81: 
   82: ````
   83: 
   84:  You have chosen to install NetBSD on your hard disk.  This will change
   85:  information on your hard disk.  You should have made a full backup before
   86:  this procedure!  This procedure will do the following things:
   87:          a) Partition your disk
   88:          b) Create new BSD file systems
   89:          c) Load and install distribution sets
   90:          d) Some initial system configuration
   91: 
   92:  (After you enter the partition information but before your disk is changed,
   93:  you will have the opportunity to quit this procedure.)
   94: 
   95:  Shall we continue?
   96:                                +---------------+
   97:                                | yes or no?    |
   98:                                |               |
   99:                                | a: No         |
  100:                                |>b: Yes        |
  101:                                +---------------+
  102: 
  103: 
  104: 
  105: 
  106: 
  107: 
  108: 
  109: ````
  110: 
  111: ````
  112: 
  113:  On which disk do you want to install NetBSD?
  114: 
  115: 
  116:                      +-----------------------------------+
  117:                      | Available disks                   |
  118:                      |                                   |
  119:                      |>a: wd0 (112G, SanDisk SDSSDA120G) |
  120:                      | b: Extended partitioning          |
  121:                      | x: Exit                           |
  122:                      +-----------------------------------+
  123: 
  124: 
  125: 
  126: 
  127: 
  128: 
  129: 
  130: 
  131: 
  132: 
  133: 
  134: 
  135: 
  136: 
  137: 
  138: ````
  139: 
  140: ````
  141: 
  142:  We are now going to install NetBSD on the disk wd0.
  143: 
  144:  NetBSD requires a single partition in the disk's MBR partition table, this is
  145:  split further by the NetBSD disklabel.  NetBSD can also access file systems
  146:  in other MBR partitions.
  147: 
  148:  If you select 'Use the entire disk' then the previous contents of the disk
  149:  will be overwritten and a single MBR partition used to cover the entire disk.
  150:  If you want to install more than one operating system then edit the MBR
  151:  partition table and create a partition for NetBSD.
  152: 
  153:  A few hundred MB is enough for a basic installation, but you should allow
  154:  extra for additional software and user files.
  155:  Allow at least 5GB if you want to build NetBSD itself.
  156:                       +---------------------------------+
  157:                       | Which would you like to do?     |
  158:                       |                                 |
  159:                       |>a: Edit the MBR partition table |
  160:                       | b: Use the entire disk          |
  161:                       +---------------------------------+
  162: 
  163: 
  164: 
  165: 
  166: 
  167: ````
  168: 
  169: ````
  170: 
  171:  The Current MBR partition table is shown below.
  172:  Flgs: a => Active partition, I => Install here.
  173:  Select the partition you wish to change:
  174: 
  175:     Total disk size 114473 MB.
  176:                +-----------------------------------------------------------+
  177:     Start( MB) |>a:       type: unused                                     |
  178:     ---------- | b:      start: 0 MB                                       |
  179:  a:            | c:       size: 0 MB                                       |
  180: >b:            | d:        end: 0 MB                                       |
  181:  c:            | e:     active: No                                         |
  182:  d:          +-----------------------------------+                         |
  183:  e: Change in| a: Don't change                   |linders/MB)              |
  184:  x: Partition| b: Delete partition               |                         |
  185:              |>c: NetBSD                         |-------------------------+
  186:              | d: Extended partition, LBA        |
  187:              | e: FreeBSD/386BSD                 |
  188:              | f: OpenBSD                        |
  189:              | g: Linux native                   |
  190:              | h: Linux swap                     |
  191:              | i: DOS FAT12                      |
  192:              | <: page up, >: page down          |
  193:              +-----------------------------------+
  194: 
  195: 
  196: ````
  197: 
  198: ````
  199: 
  200:  The Current MBR partition table is shown below.
  201:  Flgs: a => Active partition, I => Install here.
  202:  Select the partition you wish to change:
  203: 
  204:     Total disk size 114473 MB.
  205:                +-----------------------------------------------------------+
  206:     Start( MB) | a:       type: NetBSD                                     |
  207:     ---------- | b:      start: 92 MB                                      |
  208:  a:            | c:       size: 114381 MB                                  |
  209: >b:            | d:        end: 114473 MB                                  |
  210:  c:            | e:     active: Yes                                        |
  211:  d:            | f:    install: Yes                                        |
  212:  e: Change inpu| g: Change input units (sectors/cylinders/MB)              |
  213:  x: Partition t|>x: Partition OK                                           |
  214:                +-----------------------------------------------------------+
  215: 
  216: 
  217: 
  218: 
  219: 
  220: 
  221: 
  222: 
  223: 
  224: 
  225: ````
  226: 
  227: ````
  228: 
  229:  The Current MBR partition table is shown below.
  230:  Flgs: a => Active partition, I => Install here.
  231:  Select the partition you wish to change:
  232: 
  233:     Total disk size 114473 MB.
  234:                +-----------------------------------------------------------+
  235:     Start( MB) | a:       type: Windows FAT32                              |
  236:     ---------- | b:      start: 1 MB                                       |
  237: >a:            | c:       size: 91 MB                                      |
  238:  b:         92 | d:        end: 92 MB                                      |
  239:  c:            | e:     active: Yes                                        |
  240:  d:            | f:    install: No                                         |
  241:  e: Change inpu| g: Change input units (sectors/cylinders/MB)              |
  242:  x: Partition t|>x: Partition OK                                           |
  243:                +-----------------------------------------------------------+
  244: 
  245: 
  246: 
  247: 
  248: 
  249: 
  250: 
  251: 
  252: 
  253: 
  254: ````
  255: 
  256: ````
  257: 
  258:  The Current MBR partition table is shown below.
  259:  Flgs: a => Active partition, I => Install here.
  260:  Select the partition you wish to change:
  261: 
  262:     Total disk size 114473 MB.
  263: 
  264:     Start( MB)  Size( MB) Flg Kind
  265:     ---------- ---------- --- ----------------
  266: >a:          1         91 a   Windows FAT32
  267:  b:         92     114381   I NetBSD
  268:  c:                           unused
  269:  d:                           unused
  270:  e: Change input units (sectors/cylinders/MB)
  271:  x: Partition table OK
  272: 
  273: 
  274: 
  275: 
  276: 
  277: 
  278: 
  279: 
  280: 
  281: 
  282: 
  283: ````
  284: 
  285: ````
  286: 
  287:  NetBSD uses a BSD disklabel to carve up the NetBSD portion of the disk into
  288:  multiple BSD partitions.  You must now set up your BSD disklabel.
  289: 
  290:  You can use a simple editor to set the sizes of the NetBSD partitions, or
  291:  keep the existing partition sizes and contents.
  292: 
  293:  You will then be given the opportunity to change any of the disklabel fields.
  294: 
  295:  The NetBSD part of your disk is 114381 Megabytes.  A full installation
  296:  requires at least 288 Megabytes without X and at least 348 Megabytes if the X
  297:  sets are included.
  298:                      +-----------------------------------+
  299:                      | Choose your installation          |
  300:                      |                                   |
  301:                      |>a: Set sizes of NetBSD partitions |
  302:                      | b: Use existing partition sizes   |
  303:                      +-----------------------------------+
  304: 
  305: 
  306: 
  307: 
  308: 
  309: 
  310: 
  311: 
  312: ````
  313: 
  314: ````
  315: 
  316:  You can now change the sizes for the system partitions.  The default is to
  317:  allocate all the space to the root file system.  However, you may wish to
  318:  have separate /usr (additional system files), /var (log files etc) or /home
  319:  (users' home directories) file systems.
  320: 
  321:  Free space will be added to the partition marked with a '+'.
  322: 
  323:         MB         Cylinders   Sectors   Filesystem
  324:     a:   2208(110284)      4488   4523904 + /
  325:     b:   4096              8323   8389584   swap
  326:     c:      0                 0         0   /tmp (mfs)
  327:     d:      0                 0         0   /usr
  328:     e:      0                 0         0   /var
  329:     f:      0                 0         0   /home
  330:     g: Add a user defined partition
  331:     h: Change input units (sectors/cylinders/MB)
  332:    >x: Accept partition sizes.  Free space 108076 MB, 13 free partitions.
  333: 
  334: 
  335: 
  336: 
  337: 
  338: 
  339: 
  340: 
  341: ````
  342: 
  343: ````
  344: 
  345:  We now have your BSD disklabel partitions as:
  346:  This is your last chance to change them.
  347: 
  348:     Start  MB   End  MB  Size  MB FS type    Newfs Mount Mount point
  349:     --------- --------- --------- ---------- ----- ----- -----------
  350: >a:        92    110375    110284 FFSv1      Yes   Yes   /
  351:  b:    110376    114472      4096 swap
  352:  c:         0    114472    114473 Whole disk
  353:  d:         0         0         0 unused
  354:  e:         1        91        91 Boot partition
  355:  f:         0         0         0 unused
  356:  g: Show all unused partitions
  357:  h: Change input units (sectors/cylinders/MB)
  358:  x: Partition sizes ok
  359: 
  360: 
  361: 
  362: 
  363: 
  364: 
  365: 
  366: 
  367: 
  368: 
  369: 
  370: ````
  371: 
  372: ````
  373: 
  374:  We now have your BSD disklabel partitions as:
  375:  This is your last chance to change them.
  376: 
  377:     Start  MB   End  MB  Size  MB FS type    Newfs Mount Mount point
  378:     --------- --------- --------- ---------- ----- ----- -----------
  379:  a:        92    110375    110284 FFSv2      Yes   Yes   /
  380:  b:    110376    114472      4096 swap
  381:  c:         0    114472    114473 Whole disk
  382:  d:         0         0         0 unused
  383:  e:         1        91        91 Boot partition             /boot
  384:  f:         0         0         0 unused
  385:  g: Show all unused partitions
  386:  h: Change input units (sectors/cylinders/MB)
  387: >x: Partition sizes ok
  388: 
  389: 
  390: 
  391: 
  392: 
  393: 
  394: 
  395: 
  396: 
  397: 
  398: 
  399: ````
  400: 
  401: ````
  402: 
  403:  The following are the http site, directory, user, and password that will be
  404:  used.  If "user" is "ftp", then the password is not needed.
  405: 
  406:  a: Host                      ftp.NetBSD.org
  407:  b: Base directory            pub/NetBSD/NetBSD-8.0
  408: >c: Binary set directory      /evbarm-earmv7hf/binary/sets
  409:  d: Source set directory      /source/sets
  410:  e: User                      ftp
  411:  f: Password
  412:  g: Proxy
  413:  h: Transfer directory        /usr/INSTALL
  414:  i: Delete after install      No
  415:  j: Configure network
  416:  k: Exit
  417:  x: Get Distribution
  418: 
  419: 
  420: 
  421: 
  422: 
  423: 
  424: 
  425: 
  426: 
  427: 
  428: ````
  429: 
  430: ````
  431: # mount /dev/wd0e /mnt
  432: # cp -r /boot/* /mnt/
  433: ````
  434: 
  435: *TODOleot*: add a reference to The NetBSD Guide for further steps of the
  436: installation. 
  437: 
  438: *TODOleot*: add information how to populate `/boot` and prepare `boot.cmd`,
  439: `boot.scr`.
  440: 
  441: 
  442: # References
  443: 
  444: *TODOleot*: add a reference to the instructions shared via PR port-evbarm/50806.

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb