Annotation of wikisrc/ports/evbarm/raspberry_pi.mdwn, revision 1.12
1.1 jakllsch 1: [[!meta title="NetBSD/evbarm on Raspberry Pi"]]
2:
1.3 wiki 3: [[images/raspberrypi.jpg]]
4:
1.1 jakllsch 5: This page attempts to document and coordinate efforts towards NetBSD/evbarm on [Raspberry Pi](http://www.raspberrypi.org).
6:
1.3 wiki 7: (Raspberry Pi [image](http://www.flickr.com/photos/42325803@N07/8118758647/) by Christopher Lee used under CC-By-2.0 license)
8:
1.7 wiki 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
1.10 wiki 12: - <i>gunzip and dd</i> this img to your sd card.
13:
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
20:
21: "disklabel -i ld0" and press return.
1.12 ! wiki 22: - At the partition> prompt
! 23:
! 24: type "A" and press return. You will see
! 25: - a message like:
1.10 wiki 26:
27: Adjust disklabel sector from 4194304 to 62333952 [n]?
28: Type "y" and press return.
1.12 ! wiki 29: - partition> prompt
! 30:
! 31: type "a" and press return.
1.11 wiki 32: Filesystem type prompt, press return to use the current value (4.2BSD).
33: Start offset prompt, press return to use the current value.
34: Partition size prompt, type "$" and press return to grow the
35: partition to use all available free space.
36:
1.12 ! wiki 37: - partition> prompt
! 38:
! 39: type "W" to save the changes to the disklabel.
1.11 wiki 40: Confirm this choice by typing "y" at the Label disk prompt.
1.12 ! wiki 41: Type "Q" and press return to quit disklabel.
1.11 wiki 42: - At the # prompt, type
43:
44: fsck -fy /dev/rld0a
45: resize_ffs -y /dev/rld0a
46: - This may take a few minutes, be patient!
47:
48: fsck -fy /dev/rld0a
49: mount /dev/ld0e /boot
50: mv /boot/cmdline.txt.orig /boot/cmdline.txt
51: reboot
52: - When the system comes back up, the root file-system will have been expanded to
1.10 wiki 53: fill the SD card.
1.7 wiki 54:
55: # Updating the firmware
1.8 wiki 56: - [rpi firmware files](https://github.com/raspberrypi/firmware/tree/master/boot)
57: - Copy all files except 'kernel*img' into /boot and reboot
1.7 wiki 58:
1.9 wiki 59: # Additional links
60: - [ARM userland utilities](https://github.com/jaredmcneill/userland)
61: - [Additional kernel drivers for VCHIQ](https://github.com/jaredmcneill/vchiq-netbsd)
62:
1.1 jakllsch 63: # What works
1.6 wiki 64: - multi-user boot with root on SD card
65: - serial or graphics console (with EDID query / parsing)
66: - X windows.
1.4 wiki 67: - USB (host); control, interrupt and bulk transfers. Has some stability issues that are being worked on. man page missing.
68: - USB Ethernet
69: - RNG: works
1.2 jakllsch 70: - I²C: works, could use enhancements, man page
71: - SPI: works, could use enhancements, man page
1.1 jakllsch 72:
73: # What needs work
1.5 wiki 74: - VCHIQ; work in progress - will provide audio.
1.4 wiki 75: - USB (host); isochronous transfers. DMA support.
76: - DMA controller driver / dmover(9) backend
77: - Teach sdhc(4) about dmover; not Raspberry Pi specific
78: - hardfloat; not Raspberry Pi specific
79: - earm ABI; not Raspberry Pi specific
1.1 jakllsch 80: - GPIO
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb