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