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