--- wikisrc/ports/evbarm/install_using_sysinst.mdwn 2018/11/19 20:08:42 1.3 +++ wikisrc/ports/evbarm/install_using_sysinst.mdwn 2018/11/19 20:14:38 1.4 @@ -19,14 +19,14 @@ external media (SATA hard disk, USB stic Now that the SD card is populated with `armv7.img` we can login as `root` (by default the password is empty) and run `sysinst`: -```` +[[!template id=programlisting text=""" # sysinst -```` +"""]] The first menu is about the system type (Respberry PI or Other), we select the latter ("Other"): -```` +[[!template id=programlisting text=""" @@ -53,12 +53,12 @@ latter ("Other"): -```` +"""]] We want to install NetBSD/evbarm on the hard disk so let's select "Install NetBSD to hard disk": -```` +[[!template id=programlisting text=""" NetBSD/evbarm 8.0 @@ -85,13 +85,13 @@ We want to install NetBSD/evbarm on the -```` +"""]] Before proceeding with the installation, if the hard disk had any important data it is better to stop and doing a backup before proceeding. If it is empty and/or we can safetely remove its data we can proceed: -```` +[[!template id=programlisting text=""" You have chosen to install NetBSD on your hard disk. This will change information on your hard disk. You should have made a full backup before @@ -118,12 +118,12 @@ we can safetely remove its data we can p -```` +"""]] Now we can see all the available disks. The hard disk attached via SATA is a 120GB SSD recognized as `wd0`: -```` +[[!template id=programlisting text=""" On which disk do you want to install NetBSD? @@ -150,13 +150,13 @@ Now we can see all the available disks. -```` +"""]] We now need to edit MBR partition table. We will create two MBR partitions: the first one a FAT32 for `/boot` and the other for NetBSD. We select "Edit the MBR partition table": -```` +[[!template id=programlisting text=""" We are now going to install NetBSD on the disk wd0. @@ -183,11 +183,11 @@ partition table": -```` +"""]] First we select the second entry ("b"), set the "type:" to "NetBSD": -```` +[[!template id=programlisting text=""" The Current MBR partition table is shown below. Flgs: a => Active partition, I => Install here. @@ -214,14 +214,14 @@ First we select the second entry ("b"), +-----------------------------------+ -```` +"""]] We reserve for the NetBSD MBR partition all the end of the disk, starting at 92MB (1MB that will be empty and 91MB that will be for the FAT32), we also select to make it active ("active: Yes") and we will use it to install NetBSD ("install: Yes"): -```` +[[!template id=programlisting text=""" The Current MBR partition table is shown below. Flgs: a => Active partition, I => Install here. @@ -248,13 +248,13 @@ we will use it to install NetBSD ("insta -```` +"""]] We now select the first partition ("a") and create a "Windows FAT32", starting at 1MB and ending at 92MB before the "NetBSD" partition. We also make it active ("active: Yes"): -```` +[[!template id=programlisting text=""" The Current MBR partition table is shown below. Flgs: a => Active partition, I => Install here. @@ -281,11 +281,11 @@ at 1MB and ending at 92MB before the "Ne -```` +"""]] Here the final MBR partition table: -```` +[[!template id=programlisting text=""" The Current MBR partition table is shown below. Flgs: a => Active partition, I => Install here. @@ -312,12 +312,12 @@ Here the final MBR partition table: -```` +"""]] Now that the MBR partition table is written we can proceed to set sizes of NetBSD partitions: -```` +[[!template id=programlisting text=""" NetBSD uses a BSD disklabel to carve up the NetBSD portion of the disk into multiple BSD partitions. You must now set up your BSD disklabel. @@ -344,11 +344,11 @@ sizes of NetBSD partitions: -```` +"""]] We set the swap size to 4G and we reserve the rest of the space for "/": -```` +[[!template id=programlisting text=""" You can now change the sizes for the system partitions. The default is to allocate all the space to the root file system. However, you may wish to @@ -375,11 +375,11 @@ We set the swap size to 4G and we reserv -```` +"""]] The summary of the current BSD disklabel is: -```` +[[!template id=programlisting text=""" We now have your BSD disklabel partitions as: This is your last chance to change them. @@ -406,14 +406,14 @@ The summary of the current BSD disklabel -```` +"""]] We can adjust the disklabel, for example we can use FFSv2 for "/" and for the disklabel "e" set its mount point to "/boot" in order that an `/etc/fstab` entry will be populated (please note that "/boot" will not be automatically mounted by default): -```` +[[!template id=programlisting text=""" We now have your BSD disklabel partitions as: This is your last chance to change them. @@ -440,7 +440,7 @@ that "/boot" will not be automatically m -```` +"""]] We have finally ready to proceed with [[!template id=man name="sysinst" section="8"]] as usual and install @@ -449,7 +449,7 @@ note that the "Binary set directory" nee `/evbarm/binary/sets` to `/evbarm-earmv7hf/binary/sets` (it's missing an `-earmv7hf' due different evbarm-s): -```` +[[!template id=programlisting text=""" The following are the http site, directory, user, and password that will be used. If "user" is "ftp", then the password is not needed. @@ -476,7 +476,7 @@ missing an `-earmv7hf' due different evb -```` +"""]] The installation will proceed as usual and for more information please give a look to @@ -485,10 +485,10 @@ please give a look to *TODOleot*: add information how to populate `/boot` and prepare `boot.cmd`, `boot.scr`. -```` +[[!template id=programlisting text=""" # mount /dev/wd0e /mnt # cp -r /boot/* /mnt/ -```` +"""]] # References