NetBSD 9 armv6hf on Raspberry Pi 3B+

NetBSD 9 armv6hf on Raspberry Pi 3B+

Download NetBSD image

1
2
3
$ aria2c https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.1/evbarm-earmv6hf/binary/gzimg/rpi.img.gz

$ aria2c https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/evbarm-earmv6hf/binary/gzimg/rpi.img.gz

Write image to SDXC card

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ cat rpi.img.gz | gzip -cd | sudo dd of=/dev/sdb bs=4M oflag=sync status=progress; time sync
1201602560 bytes (1.2 GB, 1.1 GiB) copied, 70 s, 17.2 MB/s
0+18474 records in
0+18474 records out
1210712064 bytes (1.2 GB, 1.1 GiB) copied, 70.5264 s, 17.2 MB/s

real 0m0.008s
user 0m0.002s
sys 0m0.000s

$ vi /media/${USER}/NETBSD/cmdline.txt

root=ld0a
#root=ld0a console=fb

Booting Raspberry Pi

1
$ sudo minicom -b 115200 -8 -D /dev/ttyUSB0
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
# dmesg
[ 1.0000000] NetBSD/evbarm (fdt) booting ...
[ 1.0000000] [ Kernel symbol table missing! ]
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[ 1.0000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[ 1.0000000] 2018, 2019, 2020 The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All rights reserved.

[ 1.0000000] NetBSD 9.1 (RPI2) #0: Sun Oct 18 19:24:30 UTC 2020
[ 1.0000000] mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/RPI2
[ 1.0000000] total memory = 948 MB
[ 1.0000000] avail memory = 930 MB
[ 1.0000000] running cgd selftest aes-xts-256 aes-xts-512 done
[ 1.0000000] armfdt0 (root)
[ 1.0000000] simplebus0 at armfdt0: Raspberry Pi 3 Model B Plus Rev 1.3
[ 1.0000000] simplebus1 at simplebus0
[ 1.0000000] simplebus2 at simplebus0
[ 1.0000000] cpus0 at simplebus0
[ 1.0000000] simplebus3 at simplebus0
[ 1.0000000] cpu0 at cpus0: 600 MHz Cortex-A53 r0p4 (Cortex V8A core)
[ 1.0000000] cpu0: DC enabled IC enabled WB enabled EABT branch prediction enabled
[ 1.0000000] cpu0: 32KB/64B 2-way L1 VIPT Instruction cache
[ 1.0000000] cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.0000000] cpu0: 512KB/64B 16-way write-through L2 PIPT Unified cache
[ 1.0000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.0000000] cpu1 at cpus0
[ 1.0000000] cpu2 at cpus0
[ 1.0000000] cpu3 at cpus0
[ 1.0000000] fclock0 at simplebus2: 19200000 Hz fixed clock (osc)
[ 1.0000000] simplebus4 at simplebus1
[ 1.0000000] fclock1 at simplebus2: 480000000 Hz fixed clock (otg)
[ 1.0000000] bcmicu0 at simplebus1
[ 1.0000000] bcmicu1 at simplebus1: Multiprocessor
[ 1.0000000] bcmcprman0 at simplebus1: BCM283x Clock Controller
[ 1.0000000] gtmr0 at simplebus0: Generic Timer
[ 1.0000000] gtmr0: interrupting on local_intc irq 3
[ 1.0000000] armgtmr0 at gtmr0: Generic Timer (19200 kHz, virtual)
[ 1.0000030] bcmaux0 at simplebus1
[ 1.0000030] /soc/thermal@7e212000 at simplebus1 not configured
[ 1.0000030] /soc/dsi@7e209000 at simplebus1 not configured
[ 1.0000030] bcmgpio0 at simplebus1: GPIO controller
[ 1.0000030] bcmgpio0: pins 0..31 interrupting on icu irq 177
[ 1.0000030] bcmgpio0: pins 32..54 interrupting on icu irq 178
[ 1.0000030] gpio0 at bcmgpio0: 54 pins
[ 1.0000030] /soc/firmware/gpio at simplebus4 not configured
[ 1.0000030] bcmdmac0 at simplebus1: DMA0 DMA2 DMA4 DMA5 DMA8 DMA9 DMA10
[ 1.0000030] /soc/power at simplebus1 not configured
[ 1.0000030] /wifi-pwrseq at simplebus0 not configured
[ 1.0000030] bsciic0 at simplebus1: Broadcom Serial Controller
[ 1.0000030] iic0 at bsciic0: I2C bus
[ 1.0000030] /phy at simplebus0 not configured
[ 1.0000030] bcmpmwdog0 at simplebus1: Power management, Reset and Watchdog controller
[ 1.0000030] bcmmbox0 at simplebus1: VC mailbox
[ 1.0000030] bcmmbox0: interrupting on icu irq 193
[ 1.0000030] vcmbox0 at bcmmbox0
[ 1.0000030] plcom0 at simplebus1: ARM PL011 UART
[ 1.0000030] plcom0: txfifo disabled
[ 1.0000030] plcom0: interrupting on icu irq 185
[ 1.0000030] bcmsdhost0 at simplebus1: SD HOST controller
[ 1.0000030] bcmsdhost0: interrupting on icu irq 184
[ 1.0000030] bsciic1 at simplebus1: Broadcom Serial Controller
[ 1.0000030] iic1 at bsciic1: I2C bus
[ 1.0000030] com0 at simplebus1: BCM AUX UART, working fifo
[ 1.0000030] com0: console
[ 1.0000030] com0: interrupting on icu irq 157
[ 1.0000030] /soc/pwm@7e20c000 at simplebus1 not configured
[ 1.0000030] sdhc0 at simplebus1: SDHC controller
[ 1.0000030] sdhc0: interrupting on icu irq 190
[ 1.0000030] bsciic2 at simplebus1: Broadcom Serial Controller
[ 1.0000030] iic2 at bsciic2: I2C bus
[ 1.0000030] /soc/vec@7e806000 at simplebus1 not configured
[ 1.0000030] /soc/hdmi@7e902000 at simplebus1 not configured
[ 1.0000030] dwctwo0 at simplebus1: USB controller
[ 1.0000030] dwctwo0: interrupting on icu irq 137
[ 1.0000030] /soc/gpu at simplebus1 not configured
[ 1.0000030] genfb0 at simplebus1
[ 1.0000030] wsdisplay0 at genfb0 kbdmux 1
[ 1.0000030] vchiq0 at simplebus1: BCM2835 VCHIQ
[ 1.0000030] /arm-pmu at simplebus0 not configured
[ 1.0000030] gpioleds0 at simplebus0: ACT
[ 1.0000030] /soc/timer@7e003000 at simplebus1 not configured
[ 1.0000030] /soc/txp@7e004000 at simplebus1 not configured
[ 1.0000030] bcmrng0 at simplebus1: RNG
[ 1.0000030] cpu3: 600 MHz Cortex-A53 r0p4 (Cortex V8A core)
[ 1.0000030] cpu3: DC enabled IC enabled WB enabled EABT branch prediction enabled
[ 1.3750171] cpu3: 32KB/64B 2-way L1 VIPT Instruction cache
[ 1.3750171] cpu3: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.3850020] cpu3: 512KB/64B 16-way write-through L2 PIPT Unified cache
[ 1.3950038] vfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.3950038] cpu1: 600 MHz Cortex-A53 r0p4 (Cortex V8A core)
[ 1.4050040] cpu1: DC enabled IC enabled WB enabled EABT branch prediction enabled
[ 1.4150064] cpu1: 32KB/64B 2-way L1 VIPT Instruction cache
[ 1.4150064] cpu1: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.4250063] cpu1: 512KB/64B 16-way write-through L2 PIPT Unified cache
[ 1.4350083] vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.4350083] cpu2: 600 MHz Cortex-A53 r0p4 (Cortex V8A core)
[ 1.4450082] cpu2: DC enabled IC enabled WB enabled EABT branch prediction enabled
[ 1.4550094] cpu2: 32KB/64B 2-way L1 VIPT Instruction cache
[ 1.4550094] cpu2: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.4650097] cpu2: 512KB/64B 16-way write-through L2 PIPT Unified cache
[ 1.4750113] vfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.5650203] sdmmc0 at bcmsdhost0
[ 1.5650203] sdhc0: SDHC 3.0, rev 153, platform DMA, 200000 kHz, HS 3.3V, re-tuning mode 1, 1024 byte blocks
[ 1.5752904] sdmmc1 at sdhc0 slot 0
[ 1.5752904] usb0 at dwctwo0: USB revision 2.0
[ 1.6052945] uhub0 at usb0: NetBSD (0000) DWC2 root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[ 1.6853009] sdmmc0: direct I/O error 5, r=6 p=0xbafd9f2c write
[ 1.7053052] sdmmc0: SD card status: 4-bit, C10, U1, V10, A1
[ 1.7053052] ld0 at sdmmc0: <0x27:0x5048:SD64G:0x60:0xda7f8e63:0x14a>
[ 1.7153056] ld0: 59616 MB, 7599 cyl, 255 head, 63 sec, 512 bytes/sect x 122093568 sectors
[ 1.7253063] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[ 1.7853115] sdmmc1: 4-bit width, 50.000 MHz
[ 1.7953121] sdmmc1: MAX_BLK_SIZE1 = 64
[ 1.7953121] sdmmc1: MAX_BLK_SIZE2 = 512
[ 1.7953121] sdmmc1: MAX_BLK_SIZE3 = 512
[ 1.8053134] sdmmc1: SDIO function
[ 1.8053134] (manufacturer 0x2d0, product 0xa9a6) at sdmmc1 function 1 not configured
[ 1.8153140] (manufacturer 0x2d0, product 0xa9a6) at sdmmc1 function 2 not configured
[ 1.8253161] (manufacturer 0x2d0, product 0xa9a6, standard function interface code 0x2) at sdmmc1 function 3 not configured
[ 3.4454558] uhub1 at uhub0 port 1: vendor 0424 (0x424) product 2514 (0x2514), class 9/0, rev 2.00/b.b3, addr 2
[ 3.4554575] uhub1: multiple transaction translators
[ 4.7656232] uhub2 at uhub1 port 1: vendor 0424 (0x424) product 2514 (0x2514), class 9/0, rev 2.00/b.b3, addr 3
[ 4.7756250] uhub2: multiple transaction translators
[ 5.1156698] uhub0: illegal enable change, port 1
[ 5.1256716] WARNING: 1 error while detecting hardware; check system log.
[ 5.1356726] boot device: ld0
[ 5.1356726] root on ld0a dumps on ld0b
[ 5.1456740] root file system type: ffs
[ 5.1556756] kern.module.path=/stand/evbarm/9.1/modules
[ 5.1556756] vchiq0: interrupting on icu irq 194
[ 5.1656772] vcaudio0 at vchiq0: auds
[ 5.1656772] WARNING: no TOD clock present
[ 5.1656772] WARNING: using filesystem time
[ 5.1789637] WARNING: CHECK AND RESET THE DATE!
[ 5.5657304] audio0 at vcaudio0: playback, capture, half duplex, independent
[ 5.5757316] audio0: slinear_le:16 -> slinear_le:16 2ch 48000Hz, blk 7680 bytes (40ms) for playback
[ 5.5857326] audio0: slinear_le:16 2ch 48000Hz, blk 7680 bytes (40ms) for recording
[ 5.5857326] spkr0 at audio0: PC Speaker (synthesized)
[ 5.5957336] wsbell at spkr0 not configured
Mon Oct 19 02:33:16 UTC 2020
Starting root file system check:
/dev/rld0a: file system is clean; not checking
Growing ld0 MBR partition #1 (1058MB -> 59520MB)
Growing ld0 disklabel (1154MB -> 59616MB)
Resizing /
[ 6.5258714] mue0 at uhub2 port 1 | 0%
[ 6.5358740] mue0: SMSC (0x424) LAN7800 USB 3.1 gigabit ethernet device (0x7800), rev 2.10/3.00, addr 4
[ 6.8259007] mue0: LAN7800 id 0x7800 rev 0x2
[ 6.8359016] ukphy0 at mue0 phy 1: SMSC LAN8742 10/100 media interface (OUI 0x00800f, model 0x0013), rev. 2
[ 6.8584752] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[ 6.8671794] mue0: Ethernet address b8:27:eb:66:13:38
reboot: rebooted by root
[ 184.4840826] rebootin[ 1.0000000] NetBSD/evbarm (fdt) booting ...
[ 1.0000000] [ Kernel symbol table missing! ]
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[ 1.0000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[ 1.0000000] 2018, 2019, 2020 The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All rights reserved.

[ 1.0000000] NetBSD 9.1 (RPI2) #0: Sun Oct 18 19:24:30 UTC 2020
[ 1.0000000] mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/RPI2
[ 1.0000000] total memory = 948 MB
[ 1.0000000] avail memory = 930 MB
[ 1.0000000] running cgd selftest aes-xts-256 aes-xts-512 done
[ 1.0000000] armfdt0 (root)
[ 1.0000000] simplebus0 at armfdt0: Raspberry Pi 3 Model B Plus Rev 1.3
[ 1.0000000] simplebus1 at simplebus0
[ 1.0000000] simplebus2 at simplebus0
[ 1.0000000] fclock0 at simplebus2: 19200000 Hz fixed clock (osc)
[ 1.0000000] simplebus3 at simplebus1
[ 1.0000000] fclock1 at simplebus2: 480000000 Hz fixed clock (otg)
[ 1.0000000] cpus0 at simplebus0
[ 1.0000000] simplebus4 at simplebus0
[ 1.0000000] cpu0 at cpus0: 600 MHz Cortex-A53 r0p4 (Cortex V8A core)
[ 1.0000000] cpu0: DC enabled IC enabled WB enabled EABT branch prediction enabled
[ 1.0000000] cpu0: 32KB/64B 2-way L1 VIPT Instruction cache
[ 1.0000000] cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.0000000] cpu0: 512KB/64B 16-way write-through L2 PIPT Unified cache
[ 1.0000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.0000000] cpu1 at cpus0
[ 1.0000000] cpu2 at cpus0
[ 1.0000000] cpu3 at cpus0
[ 1.0000000] bcmicu0 at simplebus1
[ 1.0000000] bcmicu1 at simplebus1: Multiprocessor
[ 1.0000000] bcmcprman0 at simplebus1: BCM283x Clock Controller
[ 1.0000000] gtmr0 at simplebus0: Generic Timer
[ 1.0000000] gtmr0: interrupting on local_intc irq 3
[ 1.0000000] armgtmr0 at gtmr0: Generic Timer (19200 kHz, virtual)
[ 1.0000030] bcmaux0 at simplebus1
[ 1.0000030] /soc/thermal@7e212000 at simplebus1 not configured
[ 1.0000030] /soc/dsi@7e209000 at simplebus1 not configured
[ 1.0000030] bcmgpio0 at simplebus1: GPIO controller
[ 1.0000030] bcmgpio0: pins 0..31 interrupting on icu irq 177
[ 1.0000030] bcmgpio0: pins 32..54 interrupting on icu irq 178
[ 1.0000030] gpio0 at bcmgpio0: 54 pins
[ 1.0000030] /soc/firmware/gpio at simplebus3 not configured
[ 1.0000030] bcmdmac0 at simplebus1: DMA0 DMA2 DMA4 DMA5 DMA8 DMA9 DMA10
[ 1.0000030] /soc/power at simplebus1 not configured
[ 1.0000030] /wifi-pwrseq at simplebus0 not configured
[ 1.0000030] bsciic0 at simplebus1: Broadcom Serial Controller
[ 1.0000030] iic0 at bsciic0: I2C bus
[ 1.0000030] /phy at simplebus0 not configured
[ 1.0000030] bcmpmwdog0 at simplebus1: Power management, Reset and Watchdog controller
[ 1.0000030] bcmmbox0 at simplebus1: VC mailbox
[ 1.0000030] bcmmbox0: interrupting on icu irq 193
[ 1.0000030] vcmbox0 at bcmmbox0
[ 1.0000030] plcom0 at simplebus1: ARM PL011 UART
[ 1.0000030] plcom0: txfifo disabled
[ 1.0000030] plcom0: interrupting on icu irq 185
[ 1.0000030] bcmsdhost0 at simplebus1: SD HOST controller
[ 1.0000030] bcmsdhost0: interrupting on icu irq 184
[ 1.0000030] bsciic1 at simplebus1: Broadcom Serial Controller
[ 1.0000030] iic1 at bsciic1: I2C bus
[ 1.0000030] com0 at simplebus1: BCM AUX UART, working fifo
[ 1.0000030] com0: console
[ 1.0000030] com0: interrupting on icu irq 157
[ 1.0000030] /soc/pwm@7e20c000 at simplebus1 not configured
[ 1.0000030] sdhc0 at simplebus1: SDHC controller
[ 1.0000030] sdhc0: interrupting on icu irq 190
[ 1.0000030] bsciic2 at simplebus1: Broadcom Serial Controller
[ 1.0000030] iic2 at bsciic2: I2C bus
[ 1.0000030] /soc/vec@7e806000 at simplebus1 not configured
[ 1.0000030] /soc/hdmi@7e902000 at simplebus1 not configured
[ 1.0000030] dwctwo0 at simplebus1: USB controller
[ 1.0000030] dwctwo0: interrupting on icu irq 137
[ 1.0000030] /soc/gpu at simplebus1 not configured
[ 1.0000030] genfb0 at simplebus1
[ 1.0000030] wsdisplay0 at genfb0 kbdmux 1
[ 1.0000030] vchiq0 at simplebus1: BCM2835 VCHIQ
[ 1.0000030] /arm-pmu at simplebus0 not configured
[ 1.0000030] gpioleds0 at simplebus0: ACT
[ 1.0000030] /soc/timer@7e003000 at simplebus1 not configured
[ 1.0000030] /soc/txp@7e004000 at simplebus1 not configured
[ 1.0000030] bcmrng0 at simplebus1: RNG
[ 1.0000030] cpu3: 600 MHz Cortex-A53 r0p4 (Cortex V8A core)
[ 1.0000030] cpu3: DC enabled IC enabled WB enabled EABT branch prediction enabled
[ 1.3927887] cpu3: 32KB/64B 2-way L1 VIPT Instruction cache
[ 1.3927887] cpu3: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.4027731] cpu3: 512KB/64B 16-way write-through L2 PIPT Unified cache
[ 1.4127749] vfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.4127749] cpu1: 600 MHz Cortex-A53 r0p4 (Cortex V8A core)
[ 1.4227752] cpu1: DC enabled IC enabled WB enabled EABT branch prediction enabled
[ 1.4327769] cpu1: 32KB/64B 2-way L1 VIPT Instruction cache
[ 1.4327769] cpu1: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.4427771] cpu1: 512KB/64B 16-way write-through L2 PIPT Unified cache
[ 1.4527794] vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.4527794] cpu2: 600 MHz Cortex-A53 r0p4 (Cortex V8A core)
[ 1.4627794] cpu2: DC enabled IC enabled WB enabled EABT branch prediction enabled
[ 1.4727806] cpu2: 32KB/64B 2-way L1 VIPT Instruction cache
[ 1.4727806] cpu2: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.4827808] cpu2: 512KB/64B 16-way write-through L2 PIPT Unified cache
[ 1.4927827] vfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.5827928] sdmmc0 at bcmsdhost0
[ 1.5827928] sdhc0: SDHC 3.0, rev 153, platform DMA, 200000 kHz, HS 3.3V, re-tuning mode 1, 1024 byte blocks
[ 1.5934123] sdmmc1 at sdhc0 slot 0
[ 1.5934123] usb0 at dwctwo0: USB revision 2.0
[ 1.6234170] uhub0 at usb0: NetBSD (0000) DWC2 root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[ 1.7034234] sdmmc0: direct I/O error 5, r=6 p=0xbafd9f2c write
[ 1.7234284] sdmmc0: SD card status: 4-bit, C10, U1, V10, A1
[ 1.7234284] ld0 at sdmmc0: <0x27:0x5048:SD64G:0x60:0xda7f8e63:0x14a>
[ 1.7351016] ld0: 59616 MB, 7599 cyl, 255 head, 63 sec, 512 bytes/sect x 122093568 sectors
[ 1.7434317] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[ 1.8034359] sdmmc1: 4-bit width, 50.000 MHz
[ 1.8134378] sdmmc1: MAX_BLK_SIZE1 = 64
[ 1.8134378] sdmmc1: MAX_BLK_SIZE2 = 512
[ 1.8134378] sdmmc1: MAX_BLK_SIZE3 = 512
[ 1.8234377] sdmmc1: SDIO function
[ 1.8234377] (manufacturer 0x2d0, product 0xa9a6) at sdmmc1 function 1 not configured
[ 1.8334395] (manufacturer 0x2d0, product 0xa9a6) at sdmmc1 function 2 not configured
[ 1.8434407] (manufacturer 0x2d0, product 0xa9a6, standard function interface code 0x2) at sdmmc1 function 3 not configured
[ 3.4635806] uhub1 at uhub0 port 1: vendor 0424 (0x424) product 2514 (0x2514), class 9/0, rev 2.00/b.b3, addr 2
[ 3.4735822] uhub1: multiple transaction translators
[ 4.7836926] uhub2 at uhub1 port 1: vendor 0424 (0x424) product 2514 (0x2514), class 9/0, rev 2.00/b.b3, addr 3
[ 4.7936943] uhub2: multiple transaction translators
[ 5.1337333] uhub0: illegal enable change, port 1
[ 5.1437353] WARNING: 1 error while detecting hardware; check system log.
[ 5.1537369] boot device: ld0
[ 5.1537369] root on ld0a dumps on ld0b
[ 5.1637379] root file system type: ffs
[ 5.1637379] kern.module.path=/stand/evbarm/9.1/modules
[ 5.1737393] vchiq0: interrupting on icu irq 194
[ 5.1837403] vcaudio0 at vchiq0: auds
[ 5.1837403] WARNING: no TOD clock present
[ 5.1837403] WARNING: using filesystem time
[ 5.1965977] WARNING: CHECK AND RESET THE DATE!
[ 5.6037960] audio0 at vcaudio0: playback, capture, half duplex, independent
[ 5.6037960] audio0: slinear_le:16 -> slinear_le:16 2ch 48000Hz, blk 7680 bytes (40ms) for playback
[ 5.6137977] audio0: slinear_le:16 2ch 48000Hz, blk 7680 bytes (40ms) for recording
[ 5.6237992] spkr0 at audio0: PC Speaker (synthesized)
[ 5.6237992] wsbell at spkr0 not configured
Mon Oct 19 02:33:17 UTC 2020
Starting root file system check:
/dev/rld0a: file system is clean; not checking
fdisk: Cannot determine the number of heads
[ 6.5539256] mue0 at uhub2 port 1
[ 6.5539256] mue0: SMSC (0x424) LAN7800 USB 3.1 gigabit ethernet device (0x7800), rev 2.10/3.00, addr 4
Not resizing /: already correct size
Starting file system checks:
/dev/rld0e: 23 files, 64640 free (16160 clusters)
[ 6.8439719] mue0: LAN7800 id 0x7800 rev 0x2
[ 6.8539714] ukphy0 at mue0 phy 1: SMSC LAN8742 10/100 media interface (OUI 0x00800f, model 0x0013), rev. 2
[ 6.8739766] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[ 6.8739766] mue0: Ethernet address b8:27:eb:66:13:38
random_seed: /var/db/entropy-file: Not present
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting network.
Hostname: rpi
IPv6 mode: host
Configuring network interfaces:.
Adding interface aliases:.
Waiting for DAD to complete for statically configured addresses...
Starting dhcpcd.
Building databases: dev, utmp, utmpx, services.
wsconscfg: screen 1 is already configured
wsconscfg: screen 2 is already configured
wsconscfg: screen 3 is already configured
Starting syslogd.
Mounting all file systems...
Clearing temporary files.
Updating fontconfig cache:Oct 19 02:33:31 rpi dhcpcd[144]: mue0: failed to request information
Oct 19 02:33:31 rpi dhcpcd[144]: mue0: failed to request information
done.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
Starting devpubd.
Starting local daemons:.
machdep.cpu.frequency.target: 600 -> 1400
Updating motd.
Starting ntpd.
ssh-keygen: 1024 SHA256:yt7uoKskNpzozjw9/kfjEfQZbQsyEEabfaqNKrePhyk root@rpi (DSA)
ssh-keygen: 521 SHA256:2V+CjCBNxilwoAs5FL7Ycg5Dj/KcDEr6r3ivXOvdX1Y root@rpi (ECDSA)
ssh-keygen: 256 SHA256:GDuRw/sMqVZvvDw9NvIM1t2T+uaU/hJYj07qlNQzprw root@rpi (ED25519)
ssh-keygen: 3072 SHA256:tckd8vNaKciCACT429kjQMWpcdKvwuf15JDwiPh3qh0 root@rpi (RSA)
Starting sshd.
postfix: rebuilding /etc/mail/aliases (missing /etc/mail/aliases.db)
Starting postfix.
Starting inetd.
Starting cron.
Mon Oct 19 02:34:28 UTC 2020

NetBSD/evbarm (rpi) (constty)

login:

Logging in to NetBSD

The default account for the images are root without password.

You must set the password and configure ssh to allow root login before you can log in remotely.

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
NetBSD/evbarm (rpi) (constty)

login: root
Oct 19 02:35:24 rpi login: ROOT LOGIN (root) on tty constty
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
2018, 2019, 2020 The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.

NetBSD 9.1 (RPI2) #0: Sun Oct 18 19:24:30 UTC 2020

Welcome to NetBSD!

We recommend that you create a non-root account and use su(1) for root access.
rpi# passwd
Changing password for root.
New Password:
Retype New Password:
rpi#

# vi /etc/ssh/sshd_config
PermitRootLogin yes
#PermitRootLogin prohibit-password

# /etc/rc.d/sshd reload
Reloading sshd config files.

System characteristics

uname

1
2
3
4
5
# uname -snrmp
NetBSD rpi 9.1 evbarm earmv6hf

# uname -ap
NetBSD rpi 9.1 NetBSD 9.1 (RPI2) #0: Sun Oct 18 19:24:30 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/RPI2 evbarm earmv6hf

cpu

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
# dmesg | grep cpu
[ 1.000000] cpus0 at simplebus0
[ 1.000000] cpu0 at cpus0: 600 MHz Cortex-A53 r0p4 (Cortex V8A core)
[ 1.000000] cpu0: DC enabled IC enabled WB enabled EABT branch prediction enabled
[ 1.000000] cpu0: 32KB/64B 2-way L1 VIPT Instruction cache
[ 1.000000] cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.000000] cpu0: 512KB/64B 16-way write-through L2 PIPT Unified cache
[ 1.000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.000000] cpu1 at cpus0
[ 1.000000] cpu2 at cpus0
[ 1.000000] cpu3 at cpus0
[ 1.000003] cpu3: 600 MHz Cortex-A53 r0p4 (Cortex V8A core)
[ 1.000003] cpu3: DC enabled IC enabled WB enabled EABT branch prediction enabled
[ 1.392789] cpu3: 32KB/64B 2-way L1 VIPT Instruction cache
[ 1.392789] cpu3: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.402773] cpu3: 512KB/64B 16-way write-through L2 PIPT Unified cache
[ 1.412775] vfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.412775] cpu1: 600 MHz Cortex-A53 r0p4 (Cortex V8A core)
[ 1.422775] cpu1: DC enabled IC enabled WB enabled EABT branch prediction enabled
[ 1.432777] cpu1: 32KB/64B 2-way L1 VIPT Instruction cache
[ 1.432777] cpu1: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.442777] cpu1: 512KB/64B 16-way write-through L2 PIPT Unified cache
[ 1.452779] vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.452779] cpu2: 600 MHz Cortex-A53 r0p4 (Cortex V8A core)
[ 1.462779] cpu2: DC enabled IC enabled WB enabled EABT branch prediction enabled
[ 1.472781] cpu2: 32KB/64B 2-way L1 VIPT Instruction cache
[ 1.472781] cpu2: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.482781] cpu2: 512KB/64B 16-way write-through L2 PIPT Unified cache
[ 1.492783] vfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals

memory

1
2
3
4
5
6
7
8
9
10
11
# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 976109568 254074880 722034688 0 197582848 228327424
Swap: 0 0 0
MemTotal: 953232 kB
MemFree: 705112 kB
MemShared: 0 kB
Buffers: 192952 kB
Cached: 222976 kB
SwapTotal: 0 kB
SwapFree: 0 kB

ure

Realtek RTL8152 Based USB Ethernet Adapter

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# dmesg | grep -i wifi
[ 1.000003] /wifi-pwrseq at simplebus0 not configured

# dmesg | grep ure0
[ 7.536410] ure0 at uhub3 port 1
[ 7.536410] ure0: Realtek (0xbda) USB 10/100 LAN (0x8152), rev 2.10/20.00, addr 5
[ 7.536410] ure0: RTL8152 ver 4c10
[ 7.606420] rlphy0 at ure0 phy 0: RTL8201E 10/100 media interface, rev. 2
[ 7.616422] ure0: Ethernet address 00:e0:4c:36:03:b4

# dmesg | grep mue0
[ 10.116755] mue0 at uhub2 port 1
[ 10.116755] mue0: vendor 0424 (0x424) product 7800 (0x7800), rev 2.10/3.00, addr 7
[ 10.406793] mue0: LAN7800 id 0x7800 rev 0x2
[ 10.406793] ukphy0 at mue0 phy 1: OUI 0x00800f, model 0x0013, rev. 2
[ 10.426797] mue0: Ethernet address b8:27:eb:66:13:38

sysctl

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
hw.disknames = ld0
hw.machine = evbarm
hw.machine_arch = earmv6hf
hw.model = raspberrypi,3-model-b-plus
hw.ncpu = 4
hw.ncpuonline = 4
hw.pagesize = 8192
hw.physmem = 994050048
hw.physmem64 = 994050048
hw.usermem = 980566016
hw.usermem64 = 980566016
kern.aio_listio_max = 512
kern.aio_max = 8192
kern.argmax = 262144
kern.clockrate: tick = 10000, tickadj = 40, hz = 100, profhz = 100, stathz = 100
kern.configname = RPI
kern.consdev = ttyE0
kern.dump_on_panic = 1
kern.expose_address = 1
kern.forkfsleep = 0
kern.fscale = 2048
kern.fsync = 1
kern.hardclock_ticks = 123376
kern.iov_max = 1024
kern.mbuf.mblowat = 16
kern.mbuf.mclbytes = 2048
kern.mbuf.mcllowat = 8
kern.mbuf.msize = 256
kern.mbuf.nmbclusters = 30336
kern.osrelease = 9.1
kern.osrevision = 901000000
kern.ostype = NetBSD
kern.timecounter.choice = clockinterrupt(q=0, f=100 Hz) armgtmr0(q=500, f=19200000 Hz) dummy(q=-1000000, f=1000000 Hz)
kern.timecounter.hardware = armgtmr0
kern.timecounter.timestepwarnings = 0
kern.version = NetBSD 9.1 (RPI2) #0: Sun Oct 18 19:24:30 UTC 2020
machdep.board_model = 0
machdep.board_revision = 10494163
machdep.booted_device = ld0
machdep.cpu.frequency.available = 600 1400
machdep.cpu.frequency.current = 1400
machdep.cpu.frequency.max = 1400
machdep.cpu.frequency.min = 600
machdep.cpu.frequency.target = 1400
machdep.cpu_arch = 8A
machdep.cpu_id = 1091555380
machdep.firmware_revision = 1536600398
machdep.fpu_id = 1090732084
machdep.fpu_present = 1
machdep.hwdiv_present = 1
machdep.neon_present = 1
machdep.powersave = 1
machdep.printfataltraps = 0
machdep.serial = 0x66661338
machdep.simd_present = 1
machdep.simdex_present = 1
machdep.synchprim_present = 32

mmc

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# dmesg | grep mmc
[ 1.582793] sdmmc0 at bcmsdhost0
[ 1.593412] sdmmc1 at sdhc0 slot 0
[ 1.703423] sdmmc0: direct I/O error 5, r=6 p=0xbafd9f2c write
[ 1.723428] sdmmc0: SD card status: 4-bit, C10, U1, V10, A1
[ 1.723428] ld0 at sdmmc0: <0x27:0x5048:SD64G:0x60:0xda7f8e63:0x14a>
[ 1.803436] sdmmc1: 4-bit width, 50.000 MHz
[ 1.813438] sdmmc1: MAX_BLK_SIZE1 = 64
[ 1.813438] sdmmc1: MAX_BLK_SIZE2 = 512
[ 1.813438] sdmmc1: MAX_BLK_SIZE3 = 512
[ 1.823438] sdmmc1: SDIO function
[ 1.823438] (manufacturer 0x2d0, product 0xa9a6) at sdmmc1 function 1 not configured
[ 1.833439] (manufacturer 0x2d0, product 0xa9a6) at sdmmc1 function 2 not configured
[ 1.843441] (manufacturer 0x2d0, product 0xa9a6, standard function interface code 0x2) at sdmmc1 function 3 not configured

mounts

1
2
3
4
5
6
7
# cat /proc/mounts
/dev/ld0a / ffs rw,noatime 0 0
/dev/ld0e /boot msdos rw 0 0
kernfs /kern kernfs rw 0 0
ptyfs /dev/pts ptyfs rw 0 0
procfs /proc proc rw 0 0
tmpfs /var/shm tmpfs rw 0 0

fdisk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# fdisk /dev/rld0
Disk: /dev/rld0
NetBSD disklabel disk geometry:
cylinders: 7599, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 122093568, bytes/sector: 512

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 122093568

Partitions aligned to 2048 sector boundaries, offset 63

Partition table:
0: Primary DOS with 32 bit FAT - LBA (sysid 12)
start 32768, size 163840 (80 MB, Cyls 2/10/9-12/60/48), Active
1: NetBSD (sysid 169)
start 196608, size 121896960 (59520 MB, Cyls 12/60/49-7599/248/9)
PBR is not bootable: All bytes are identical (0x00)
2: <UNUSED>
3: <UNUSED>
First active partition: 0
Drive serial number: 0 (0x00000000)

disklabel

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
# disklabel /dev/ld0
# /dev/ld0:
type: SCSI
disk: STORAGE DEVICE
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 1154
total sectors: 122093568
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0

8 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 121896960 196608 4.2BSD 0 0 0 # (Cyl. 96 - 59615)
c: 122093568 0 unused 0 0 # (Cyl. 0 - 59615)
d: 122093568 0 unused 0 0 # (Cyl. 0 - 59615)
e: 163840 32768 MSDOS # (Cyl. 16 - 95)

List of processes after startup

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# ps -axdlww
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
0 0 0 0 0 0 0 8336 - OKl ? 0:29.35 [system]
0 1 0 23194 80 0 6048 1752 wait Is ? 0:00.02 - init
0 144 1 0 85 0 8360 2432 kqueue Ss ? 0:00.12 |-- dhcpcd: [master] [ip4] [ip6]
0 195 1 0 85 0 11624 2688 kqueue Ss ? 0:00.09 |-- /usr/sbin/syslogd -s
0 471 1 8819 83 0 6896 1088 devmon Is ? 0:00.00 |-- /sbin/devpubd
0 539 1 24259 80 0 17032 3280 select Is ? 0:00.01 |-- /usr/sbin/sshd
0 552 1 0 85 0 11144 13152 pause Ss ? 0:00.10 |-- /usr/sbin/ntpd -p /var/run/ntpd.pid -g
0 874 1 0 85 0 14296 3064 kqueue Is ? 0:00.04 |-- /usr/libexec/postfix/master -w
12 652 874 0 85 0 15280 4288 kqueue I ? 0:00.05 | |-- pickup -l -t unix -u
12 890 874 15626 82 0 15480 4328 kqueue I ? 0:00.04 | `-- qmgr -l -t unix -u
0 932 1 0 85 0 8680 1896 nanoslp Ss ? 0:00.01 |-- /usr/sbin/cron
0 953 1 16709 81 0 6280 1728 kqueue Is ? 0:00.00 |-- /usr/sbin/inetd -l
0 1010 1 696 85 0 13616 4864 wait Is tty00 0:00.10 `-- login
0 662 1010 0 85 0 8368 2296 wait S tty00 0:00.04 `-- -sh
0 830 662 0 43 0 5936 1664 - O+ tty00 0:00.00 `-- ps -axdlww

ifconfig

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
# ifconfig -am
ure0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
capabilities=3ff00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
capabilities=3ff00<UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx>
capabilities=3ff00<UDP6CSUM_Rx,UDP6CSUM_Tx>
enabled=0
ec_capabilities=1<VLAN_MTU>
ec_enabled=0
address: 00:e0:4c:36:03:b4
media: Ethernet autoselect (none)
status: no carrier
supported Ethernet media:
media 10baseT
media 10baseT mediaopt full-duplex
media 100baseTX
media 100baseTX mediaopt full-duplex
media autoselect
inet6 fe80::8b76:8c43:8609:1582%ure0/64 flags 0x8<DETACHED> scopeid 0x1
inet6 2409:8a55:8bc:dda0:364e:fd36:9aea:b84b/64 flags 0x8<DETACHED>
inet 192.168.1.10/24 broadcast 192.168.1.255 flags 0x4<DETACHED>
mue0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx>
capabilities=7ff80<TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx>
capabilities=7ff80<TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
enabled=0
ec_capabilities=1<VLAN_MTU>
ec_enabled=0
address: b8:27:eb:66:13:38
media: Ethernet autoselect (100baseTX full-duplex)
status: active
supported Ethernet media:
media none
media 10baseT
media 10baseT mediaopt full-duplex
media 100baseTX
media 100baseTX mediaopt full-duplex
media 1000baseT
media 1000baseT mediaopt full-duplex
media autoselect
inet6 fe80::c8b7:f665:5170:7094%mue0/64 flags 0x0 scopeid 0x2
inet6 2409:8a55:8bc:dda0:e09b:1f2d:3b05:9cb3/64 flags 0x0
inet 192.168.1.5/24 broadcast 192.168.1.255 flags 0x0
lo0: flags=0x8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33176
inet6 ::1/128 flags 0x20<NODAD>
inet6 fe80::1%lo0/64 flags 0x0 scopeid 0x3
inet 127.0.0.1/8 flags 0x0

Compiler

1
2
3
4
5
6
7
8
9
10
11
# ld -v
GNU ld (NetBSD Binutils nb1) 2.31.1

# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/lto-wrapper
Target: armv6--netbsdelf-eabihf
Configured with: /usr/src/tools/gcc/../../external/gpl3/gcc/dist/configure --target=armv6--netbsdelf-eabihf --enable-long-long --enable-threads --with-bugurl=http://www.NetBSD.org/Misc/send-pr.html --with-pkgversion='NetBSD nb4 20200810' --with-system-zlib --without-isl --enable-__cxa_atexit --enable-libstdcxx-time=rt --enable-libstdcxx-threads --with-diagnostics-color=auto-if-env --with-default-libstdcxx-abi=new --with-mpc-lib=/var/obj/mknative/evbarm-earmv6hf/usr/src/external/lgpl3/mpc/lib/libmpc --with-mpfr-lib=/var/obj/mknative/evbarm-earmv6hf/usr/src/external/lgpl3/mpfr/lib/libmpfr --with-gmp-lib=/var/obj/mknative/evbarm-earmv6hf/usr/src/external/lgpl3/gmp/lib/libgmp --with-mpc-include=/usr/src/external/lgpl3/mpc/dist/src --with-mpfr-include=/usr/src/external/lgpl3/mpfr/dist/src --with-gmp-include=/usr/src/external/lgpl3/gmp/lib/libgmp/arch/arm --enable-tls --enable-initfini-array --disable-multilib --disable-libstdcxx-pch --build=armv6--netbsdelf-eabihf --host=armv6--netbsdelf-eabihf --with-sysroot=/var/obj/mknative/evbarm-earmv6hf/usr/src/destdir.evbarm
Thread model: posix
gcc version 7.5.0 (nb4 20200810)

NetBSD Packages Collection

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
export PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/$(uname -s)/$(uname -m)/$(uname -r | cut -f '1 2' -d.)/All/"
export PKG_PATH="http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/earmv6hf/9.1/All/;http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/earmv6hf/9.0/All/"

pkg_admin fetch-pkg-vulnerabilities

pkg_add -uv tmux bash pkgin avahi clang python38

pkg_info tmux

pkg_delete -r jpeg

cat << EOF > /usr/pkg/etc/pkgin/repositories.conf
#
# Pkgin repositories list
#
# Simply add repositories URIs one below the other
#
# WARNING: order matters, duplicates will not be added, if two
# repositories hold the same package, it will be fetched from
# the first one listed in this file.
#

http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/earmv6hf/9.1/All/
http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/earmv6hf/9.0/All/
EOF

pkgin update
pkgin upgrade
pkgin avail
pkgin list
pkgin search foo.*bar
pkgin install 'foo<5.0' bar baz
pkgin show-full-deps foo
pkgin show-rev-deps foo
pkgin requires foo
pkgin remove foo
pkgin autoremove
pkgin clean
pkgin export > my-packages
pkgin import my-packages
pkgin provides foo
pkgin pkg-content foo

Conclusion

NetBSD 9.1 earmv6hf can use my Realtek RTL8152 Based USB Ethernet Adapter, it’s works very good. But is can’t found WiFi Adapter in Raspberry Pi 3 Model B Plus Rev 1.3, it’s really disappointing.