1: [[!meta title="NetBSD/evbarm on Raspberry Pi"]]
5: This page attempts to document and coordinate efforts towards NetBSD/evbarm on [Raspberry Pi](http://www.raspberrypi.org).
7: (Raspberry Pi [image](http://www.flickr.com/photos/42325803@N07/8118758647/) by Christopher Lee used under CC-By-2.0 license)
9: # Installation
10: - You may use the rpi.img file created by an arm build.
11: - An example can be found in the '/evbarm/binary/gzimg/' directory under releng.netbsd.org
12: - <i>gunzip and dd</i> this img to your sd card.
14: - Growing the root file-system
15: - Copy /boot/cmdline.txt to /boot/cmdline.txt.orig
16: - Edit /boot/cmdline.txt and add the '-s' flag to the end of the first line of text.
17: - Reboot, and at the prompt to enter the passname of shell, press
18: return for the default (/bin/sh).
19: - At the # prompt, type
21: "disklabel -i ld0" and press return.
22: - At the partition> prompt, type "A" and press return. You will see
23: a message like:
25: Adjust disklabel sector from 4194304 to 62333952 [n]?
26: Type "y" and press return.
27: partition> prompt, type "a" and press return.
28: Filesystem type prompt, press return to use the current value (4.2BSD).
29: Start offset prompt, press return to use the current value.
30: Partition size prompt, type "$" and press return to grow the
31: partition to use all available free space.
33: partition> prompt, type "W" to save the changes to the disklabel.
34: Confirm this choice by typing "y" at the Label disk prompt.
36: - Type "Q" and press return to quit disklabel.
37: - At the # prompt, type
39: fsck -fy /dev/rld0a
40: resize_ffs -y /dev/rld0a
41: - This may take a few minutes, be patient!
43: fsck -fy /dev/rld0a
44: mount /dev/ld0e /boot
45: mv /boot/cmdline.txt.orig /boot/cmdline.txt
47: - When the system comes back up, the root file-system will have been expanded to
48: fill the SD card.
50: # Updating the firmware
51: - [rpi firmware files](https://github.com/raspberrypi/firmware/tree/master/boot)
52: - Copy all files except 'kernel*img' into /boot and reboot
54: # Additional links
55: - [ARM userland utilities](https://github.com/jaredmcneill/userland)
56: - [Additional kernel drivers for VCHIQ](https://github.com/jaredmcneill/vchiq-netbsd)
58: # What works
59: - multi-user boot with root on SD card
60: - serial or graphics console (with EDID query / parsing)
61: - X windows.
62: - USB (host); control, interrupt and bulk transfers. Has some stability issues that are being worked on. man page missing.
63: - USB Ethernet
64: - RNG: works
65: - I²C: works, could use enhancements, man page
66: - SPI: works, could use enhancements, man page
68: # What needs work
69: - VCHIQ; work in progress - will provide audio.
70: - USB (host); isochronous transfers. DMA support.
71: - DMA controller driver / dmover(9) backend
72: - Teach sdhc(4) about dmover; not Raspberry Pi specific
73: - hardfloat; not Raspberry Pi specific
74: - earm ABI; not Raspberry Pi specific
75: - GPIO
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb