summaryrefslogtreecommitdiff
path: root/distrib/notes/loongson/install
blob: c5a959d198a3f19981df252e4a0125291d2966ba (plain)
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
dnl	$OpenBSD: install,v 1.3 2010/02/04 21:32:11 jasper Exp $
OpenBSDInstallPrelude

Booting the installation media:

The easiest way to boot into the OpenBSD installer is to copy the bsd.rd
installation kernel to the main Linux partition, and boot from it.

Assuming the installation kernel has been copied to /boot/bsd.rd on the
Linux system, at the PMON prompt, enter:

    PMON> boot /dev/fs/ext2@wd0/boot/bsd.rd

to boot the installation kernel.

Alternatively, if your particular PMON flavour supports `fat' filesystems,
you can boot the kernel from an usb key with:

dnl check syntax
    PMON> boot /dev/fs/msdos@usb0:/bsd.rd

Netbooting the installation kernel can be done as well:
    PMON> ifaddr rtl0 <your ip>
    PMON> boot tftp://<server ip>/bsd.rd

OpenBSDInstallPart2

OpenBSDInstallPart3(,"sd0 for USB storage, or wd0 for internal storage
	(either a disk drive or an SSD)")

OpenBSDInstallPart4

OpenBSDInstallMBRPart1

dnl not until we have boot blocks... and then we'll probably need to
dnl add text to mention the necessary little boot partition...
dnl OpenBSDInstallMBRPart2
	The fdisk(8) utility will be invoked to let you edit your MBR
	partitioning.  The current MBR partitions defined will be
	displayed and you will be allowed to modify them, and add new
	partitions.

	After your OpenBSD MBR partition has been setup, the real
	partition setup can follow.

OpenBSDInstallPart5({:-
	If you have left Linux partitions defined on the disk, these will
	usually show up as partition 'i', 'j' and so on.-:})

OpenBSDInstallPart6({:-CD-ROM, -:})

OpenBSDURLInstall

OpenBSDCDROMInstall

OpenBSDDISKInstall({:-"wdN" or -:},,{:-, Linux (ext2) or MS-DOS-:})

OpenBSDCommonInstall

dnl usb tape drives anyone?
dnl OpenBSDTAPEInstall
dnl
OpenBSDInstallWrapup

	As the OpenBSD/MACHINE port is very new, there is not yet a proper
	bootloader. In addition to these steps, you will need, for the time
	being, to copy the kernel image to the Linux partition and boot
	from it. This annoyance is being worked on and should disappear
	very soon.

	After the installation is complete, you should add an OpenBSD
	entry to the boot menu to be able to boot OpenBSD more easily.

	The boot menu contents are found in /boot/boot.cfg on the Linux
	partition. To add an OpenBSD entry, simply add a new entry in the
	file, such as:

	title OpenBSD
		kernel /dev/fs/ext2@wd0/boot/bsd
		args ""

	In the example above, /dev/fs/ext2@wd0/boot/bsd is the PMON path
	to the kernel image.

	You may make OpenBSD the default option by changing the ``default''
	line near the top of the file. The value on this line is the index
	of the default entry, starting at zero. So if you added the OpenBSD
	entry as the fourth entry in the file, it would become the default
	choice with:

	default 3

	The timeout until the default choice is selected, in seconds, can be
	modified on the ``timeout'' line.

	Note that using the boot menu currently disables root device
	discovery and kernel symbol loading. Therefore it may be
	more convenient to switch to the PMON prompt using 'c' and
	boot with the command

	PMON> boot -k $bsd

	after having set the bsd variable to your boot path

	PMON> set bsd /dev/fs/ext2@wd0/boot/bsd

OpenBSDCongratulations