summaryrefslogtreecommitdiff
path: root/static/netbsd/man8/bootmini2440.8
blob: dbf816b0b436c48641ef124dd1b159d6a7f2be1c (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
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
.\" $NetBSD: bootmini2440.8,v 1.4 2012/06/02 14:04:34 njoly Exp $
.\"
.\" Copyright (c) 2012 The NetBSD Foundation, Inc.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to The NetBSD Foundation
.\" by Paul Fleischer <paul@xpg.dk>.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd January 31, 2012
.Dt BOOTMINI2440 8 evbarm
.Os
.Sh NAME
.Nm bootmini2440
.Nd bootloader for FriendlyARM MINI2440 evaluation board
.Sh DESCRIPTION
.Nm
is a program to load
.Tn ELF
.Nx
kernel, which works on top of
.Tn U-Boot .
It loads and executes a kernel from an SD memory card, or over
the network using the
.Tn NFS/TFTP
protocol.
.Pp
The
.Nm
bootloader can be loaded anywhere by
.Tn U-Boot ,
although care should be taken that the bootloader can load the
.Nx
kernel without overwriting itself.
The kernel is, by default, made to be loaded at 0x30200000.
The recommended location for
.Nm
is 0x30A00000.
.Pp
.Nm
takes a number of arguments, which all are optional:
.Dl Ar mac=xx:xx:xx:xx:xx:xx Ar opt1 ... Ar optN Ar bootname
.Bl -tag -width xx
.It Va mac=
is used to set the MAC-address of the on-board DM9000 Ethernet
chip.
As Mini2440 has no EEPROM to store DM9000 MAC-address, this
is necessary in order to have a working Ethernet controller.
If this argument is left unspecified, a default value of 08:08:11:18:12:27
is used.
.It Va opt1 ... Va optN
is one of single, kdb, ask, quiet, or verbose.
Their meaning is described in
.Xr boothowto 9 .
.It Va bootname
is one of the following:
.Pp
.Dl net: Ns Ar ip Ns : Ns Ar filename
.Dl net: Ns Ar filename
.Dl net:
.Dl tftp: Ns Ar filename
.Dl tftp:
.Dl ld0 Ns Ar p : Ns Ar filename
.Dl ld0 Ns Ar p :
.Pp
.Bl -tag -width xx
.It net: Ns Va ip Ns : Ns Va filename
use
.Tn DHCP
to determine own IP-address and load kernel specified by
.Ar filename
from the server specified by
.Ar ip
using
.Tn NFS .
.It net: Ns Ar filename
use
.Tn DHCP
to determine own IP-address and server IP-address.
Load kernel specified by
.Ar filename
from the server using
.Tn NFS .
.It net:
use
.Tn DHCP
to determine own IP-address, server IP-address, and kernel to load.
Load the kernel using
.Tn NFS .
.It tftp: Ns Ar filename
use
.Tn DHCP
to determine own IP-address and server IP-address.
Load kernel specified by
.Ar filename
from the server using
.Tn TFTP .
.It tftp:
use
.Tn DHCP
to determine own IP-address, server IP-address, and kernel to load.
Load kernel using
.Tn TFTP .
.It ld0 Ns Va p : Ns Va filename
load kernel from an SD card.
The kernel specified by
.Ar filename
is attempted loaded on the partition given by
.Ar p .
.It ld0 Ns Va p :
load kernel from an SD card.
The kernel will be loaded from the file
.Dq Pa netbsd
on the partition specified by
.Ar p .
.El
.El
.Sh EXAMPLES
.Ss Loading Nm
Use
.Tn U-Boot
to load
.Nm
at 0x30A00000 from an
.Tn NFS
share:
.Dl Uboot> nfs 30A00000 10.0.0.1:/srv/mini2440/bootmini2440
.Ss Booting Nx
Load the kernel from an
.Tn NFS
share, overwriting the default MAC-address, and
booting into single user-mode:
.Dl Uboot> go 30A00000 single mac=08:08:11:20:22:30 net:10.0.0.1:/srv/mini2440/netbsd
.Pp
Load the kernel from an SD card, overwriting the default
MAC-address, and booting into single user-mode:
.Dl Uboot> go 30A00000 single mac=08:08:11:20:22:30 ld0a:netbsd
.Sh SEE ALSO
.Xr dhcpd 8 ,
.Xr diskless 8 ,
.Xr nfsd 8 ,
.Xr tftpd 8 ,
.Xr boothowto 9
.Sh HISTORY
The
.Nx Ns Tn /evbarm
.Nm
first appeared in
.Nx 6.0 .
.Sh BUGS
.Nm
cannot currently function properly without
.Tn U-Boot
(or equivalent).
Although it performs clock and
.Tn UART
configuration, it cannot bootstrap itself from
.Tn NAND
flash.