xref: /openbsd-src/distrib/notes/octeon/install (revision 9f11ffb7133c203312a01e4b986886bc88c7d74b)
1dnl	$OpenBSD: install,v 1.17 2018/12/21 14:33:43 visa Exp $
2OpenBSDInstallPrelude
3
4OpenBSDInstallPart2
5
6OpenBSDInstallPart3(,"octcf0 for internal CompactFlash storage.")
7dnl sd0 for USB storage, or wd0 for internal hard disk storage attached to the SATA port
8
9OpenBSDInstallPart4
10
11OpenBSDInstallMBRPart1
12
13dnl OpenBSDInstallMBRPart2
14	The fdisk(8) utility will be invoked to let you edit your MBR
15	partitioning.  The current MBR partitions defined will be
16	displayed and you will be allowed to modify them, and add new
17	partitions.
18
19	The setup will need two partitions, one 'OpenBSD' for the
20	OpenBSD/MACHINE installation, and one 'MSDOS' for the
21	U-Boot scripts/bootloader.
22
23	If you use the whole disk option, the install script
24	will create a small 'MSDOS' partition and use the rest of
25	the disk for the OpenBSD installation.
26
27	After your OpenBSD MBR partition has been setup, the real
28	partition setup can follow.
29
30OpenBSDInstallPart5({:-
31	U-Boot partitions defined on the disk will usually show up as
32	partition 'i', 'j' and so on.-:})
33
34dnl OpenBSDInstallPart6({:-CD-ROM, -:})
35OpenBSDInstallPart6
36
37OpenBSDURLInstall
38
39dnl OpenBSDCDROMInstall
40
41OpenBSDNFSInstall
42
43OpenBSDDISKInstall({:-"octcfN" or -:},,{:-, Linux (ext2) or MS-DOS-:})
44
45OpenBSDCommonInstall
46
47OpenBSDInstallWrapup
48
49OpenBSD/MACHINE currently lacks a real bootloader. It is possible however to
50boot into OpenBSD upon powering on the machine.
51
52From the U-Boot commandline, make a copy of the current ${bootcmd} so you can
53restore it later if needed:
54
55	# setenv old_bootcmd "${bootcmd}"
56
57${bootcmd} is run by U-Boot when ${autoload} is enabled. Now create a new
58${bootcmd} which will load an ELF file called 'bsd' from the first active FAT
59partition on the first CF card. The FAT partition has been created by the
60installer.
61
62	# setenv bootcmd 'fatload ide 0:1 ${loadaddr} bsd;bootoctlinux rootdev=/dev/octcf0'
63	# setenv bootdelay 5
64	# saveenv
65	Saving Environment to Flash...
66	Un-Protected 1 sectors
67	Erasing Flash...
68	. done
69	Erased 1 sectors
70	Writing to Flash... .done
71	Protected 1 sectors
72	#
73
74If you have installed onto SD/MMC, SATA or USB, use the following
75bootcmd instead:
76
77  fatload <bootdev> 0 ${loadaddr} bsd; bootoctlinux rootdev=sd0
78
79Replace ``<bootdev>'' with ``mmc'', ``sata'' or ``usb'' as appropriate.
80
81For stable root disk selection, you can use the root disk's
82disklabel(8) UID (DUID) as the value of the rootdev parameter.
83
84On multi-core systems, the numcores parameter enables the secondary CPUs.
85Use the total number of cores on your system as the value of the parameter.
86
87  fatload usb 0 ${loadaddr} bsd; bootoctlinux rootdev=sd0 numcores=2
88
89On the EdgeRouter Lite, bootcmd may also reset the USB controller for
90more reliable USB device detection:
91
92  usb reset; fatload usb 0 ${loadaddr} bsd; bootoctlinux rootdev=sd0 numcores=2
93
94OpenBSDCongratulations
95
96OpenBSDUnattendedInstallation
97