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

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.
1.11    ! wiki       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.
        !            32: 
        !            33:            partition> prompt, type "W" to save the changes to the disklabel.
        !            34:            Confirm this choice by typing "y" at the Label disk prompt.
        !            35: 
1.10      wiki       36:    - Type "Q" and press return to quit disklabel.
1.11    ! wiki       37:    - At the # prompt, type
        !            38: 
        !            39:            fsck -fy /dev/rld0a
        !            40:            resize_ffs -y /dev/rld0a
        !            41:    - This may take a few minutes, be patient!
        !            42: 
        !            43:            fsck -fy /dev/rld0a
        !            44:            mount /dev/ld0e /boot
        !            45:            mv /boot/cmdline.txt.orig /boot/cmdline.txt
        !            46:            reboot
        !            47:     - When the system comes back up, the root file-system will have been expanded to
1.10      wiki       48:           fill the SD card.
1.7       wiki       49: 
                     50: # Updating the firmware
1.8       wiki       51:  - [rpi firmware files](https://github.com/raspberrypi/firmware/tree/master/boot)
                     52:    - Copy all files except 'kernel*img' into /boot and reboot
1.7       wiki       53: 
1.9       wiki       54: # Additional links
                     55:  - [ARM userland utilities](https://github.com/jaredmcneill/userland)
                     56:  - [Additional kernel drivers for VCHIQ](https://github.com/jaredmcneill/vchiq-netbsd)
                     57: 
1.1       jakllsch   58: # What works
1.6       wiki       59:  - multi-user boot with root on SD card
                     60:  - serial or graphics console (with EDID query / parsing)
                     61:  - X windows.
1.4       wiki       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
1.2       jakllsch   65:  - I²C: works, could use enhancements, man page
                     66:  - SPI: works, could use enhancements, man page
1.1       jakllsch   67: 
                     68: # What needs work
1.5       wiki       69:  - VCHIQ; work in progress - will provide audio.
1.4       wiki       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
1.1       jakllsch   75:  - GPIO

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