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

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
1.17    ! wiki       10:  - Use the latest HEAD/-current which builds for install
        !            11:    - As the raspberry pi port is still not part the stable release, you will want to use the
        !            12:      HEAD branch to download installation sets.
        !            13:    - You may use the rpi.img file created by an arm build.
1.7       wiki       14:    - An example can be found in the '/evbarm/binary/gzimg/' directory under releng.netbsd.org
1.17    ! wiki       15:      - On nyftp.netbsd.org/pub/NetBSD-daily/HEAD/YYYYMMDDHHMMZ (it will look like pub/NetBSD-daily/HEAD/201305220150Z)
1.15      wiki       16:    - 'obj/releasedir/evbarm/binary/gzimg/' if you run (for example) './build.sh -m evbarm -u release'
1.10      wiki       17:      - <i>gunzip and dd</i> this img to your sd card.
                     18: 
1.14      wiki       19:           dd if=rpi.img of=/dev/disk1
                     20: 
                     21:  - Using a serial console
                     22:    - By default the rpi.img is set to use the HDMI output; to change mount rpi.img (it's a FAT filesystem)
                     23: 
                     24:           edit cmdline.txt and remove '"console=fb"'
                     25:    - proceed with the 'dd'
                     26: 
1.10      wiki       27:  - Growing the root file-system
1.17    ! wiki       28:    - During the partitioning process, do not delete or format the
        !            29:      first MSDOS (FAT) partition, as the Raspberry pi firmware is
        !            30:      hard coded to boot on the SDCAD / 1st MSDOS partition / Firmware
        !            31:      updates and boot loader.
1.10      wiki       32:    - Copy /boot/cmdline.txt to /boot/cmdline.txt.orig
1.15      wiki       33:    - 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       34:    - Reboot, and at the prompt to enter the passname of shell, press
                     35:           return for the default (/bin/sh).
                     36:    - At the # prompt, type
                     37: 
                     38:         "disklabel -i ld0" and press return.
1.15      wiki       39:    - At the partition> prompt type "A" and press return.
1.10      wiki       40: 
                     41:            Adjust disklabel sector from 4194304 to 62333952 [n]?
                     42:            Type "y" and press return.
1.15      wiki       43:    - partition> prompt type "a" and press return.
1.12      wiki       44: 
1.11      wiki       45:            Filesystem type prompt, press return to use the current value (4.2BSD).
                     46:            Start offset prompt, press return to use the current value.
                     47:            Partition size prompt, type "$" and press return to grow the
                     48:            partition to use all available free space.
1.15      wiki       49:    - partition> prompt type "W" to save the changes to the disklabel.
1.11      wiki       50: 
                     51:            Confirm this choice by typing "y" at the Label disk prompt.
1.12      wiki       52:            Type "Q" and press return to quit disklabel.
1.15      wiki       53:    - At the # prompt (shell), type
1.11      wiki       54: 
                     55:            fsck -fy /dev/rld0a
                     56:            resize_ffs -y /dev/rld0a
                     57:    - This may take a few minutes, be patient!
                     58: 
                     59:            fsck -fy /dev/rld0a
                     60:            mount /dev/ld0e /boot
                     61:            mv /boot/cmdline.txt.orig /boot/cmdline.txt
                     62:            reboot
                     63:     - When the system comes back up, the root file-system will have been expanded to
1.10      wiki       64:           fill the SD card.
1.7       wiki       65: 
1.16      wiki       66: # Installation with sshramdisk image
                     67:  - You may use the  rpi_inst.img.gz file created by an evbarm build.
                     68:  - Connect Ethernet Cable to RPI.
                     69:  - After starting DHCP client,SSH login to RPI with user "sysinst",passwd "netbsd".
1.17    ! wiki       70:    - Be careful to note the ip address given during DHCP so you don't lose your connection
        !            71:    - Also for after the sysinst is done and the system reboots
        !            72:  - sysinst started!
1.16      wiki       73: 
1.7       wiki       74: # Updating the firmware
1.8       wiki       75:  - [rpi firmware files](https://github.com/raspberrypi/firmware/tree/master/boot)
                     76:    - Copy all files except 'kernel*img' into /boot and reboot
1.7       wiki       77: 
1.9       wiki       78: # Additional links
                     79:  - [ARM userland utilities](https://github.com/jaredmcneill/userland)
                     80: 
1.1       jakllsch   81: # What works
1.6       wiki       82:  - multi-user boot with root on SD card
                     83:  - serial or graphics console (with EDID query / parsing)
                     84:  - X windows.
1.4       wiki       85:  - USB (host); control, interrupt and bulk transfers. Has some stability issues that are being worked on. man page missing.
                     86:  - USB Ethernet
                     87:  - RNG: works
1.2       jakllsch   88:  - I²C: works, could use enhancements, man page
                     89:  - SPI: works, could use enhancements, man page
1.13      jmcneill   90:  - VCHIQ: work in progress. man page missing. (-current)
                     91:  - Audio: works. man page missing. (-current)
1.1       jakllsch   92: 
                     93: # What needs work
1.4       wiki       94:  - USB (host); isochronous transfers. DMA support.
                     95:  - DMA controller driver / dmover(9) backend
                     96:  - Teach sdhc(4) about dmover; not Raspberry Pi specific
                     97:  - hardfloat; not Raspberry Pi specific
                     98:  - earm ABI; not Raspberry Pi specific
1.1       jakllsch   99:  - GPIO

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