Annotation of wikisrc/ports/evbarm/raspberry_pi.mdwn, revision 1.15

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

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb