File:  [NetBSD Developer Wiki] / wikisrc / ports / evbarm / allwinner.mdwn
Revision 1.8: download - view: text, annotated - select for diffs
Mon Oct 20 11:09:01 2014 UTC (6 years, 6 months ago) by wiki
Branches: MAIN
CVS tags: HEAD
web commit by jmcneill

    1: [[!meta title="NetBSD/evbarm on Allwinner Technology SoCs"]]
    2: 
    3: [[!template  id=note text="""
    4: [[images/hummingbird_a31.jpg]]
    5: Merrii Hummingbird A31"""]]
    6: 
    7: # Supported boards
    8:  - BananaPi (BPI)
    9:  - Cubieboard, Cubieboard 2 (CUBIEBOARD)
   10:  - Cubietruck (CUBIETRUCK)
   11:  - Merrii Hummingbird A31 (HUMMINGBIRD_A31)
   12: 
   13: # Supported hardware
   14:  - SoCs
   15:    - Cortex-A8: A10
   16:    - Cortex-A7: A20, A31 SoCs
   17:  - SD/MMC controller
   18:  - DMA controller
   19:  - GPIO
   20:  - UART
   21:  - I2C
   22:  - P2WI (A31)
   23:  - PMU
   24:    - AXP209 (A20)
   25:    - AXP221 (A31)
   26:  - Watchdog timer
   27:  - RTC
   28:  - Audio codec
   29:  - USB
   30:    - OHCI
   31:    - EHCI
   32:    - MOTG (not yet working on A31)
   33:  - SATA (A10/A20)
   34:  - Gigabit Ethernet (GMAC)
   35: 
   36: # Installation
   37: 
   38: ## A10 / A20 based boards
   39: 
   40: * Start with an ARMv7 image from *evbarm-earmv7hf/binary/gzimg/* such as *beaglebone.img*
   41: * Download a U-Boot build for your board from the linux-sunxi web site <http://dl.linux-sunxi.org/nightly/u-boot-sunxi/u-boot-sunxi/u-boot-sunxi-latest/>
   42: * Write the *u-boot-sunxi-with-spl.bin* loader to the base image:
   43: [[!template  id=programlisting text="""
   44: # dd if=u-boot-sunxi-with-spl.bin of=beaglebone.img bs=1k seek=8 conv=notrunc
   45: """]]
   46: * Write the image to an SD card.
   47: * Copy the kernel (netbsd.ub) for your board to the root of the MSDOS partition.
   48: * Create or edit uEnv.txt on the MSDOS partition:
   49: [[!template  id=programlisting text="""
   50: bootargs=root=ld0a
   51: uenvcmd=mmc dev 0; mmc rescan; fatload mmc 0:1 82000000 netbsd.ub; bootm 82000000
   52: """]]
   53: 
   54: ## A31 based boards
   55: 
   56: TBD.
   57: 
   58: # Big (endian) fun
   59: 
   60: You can run this boards with a little endian (this is the default and implied by above install instructions)
   61: or with a big endian kernel and userland. However, kernel and userland endianes needs to match.
   62: 
   63: To build a big endian release (or sets) use 
   64: [[!template  id=programlisting text="""
   65: ./build.sh -m evbearmv7hf-eb 
   66: """]]
   67: where -eb means endianes big, hf is hardware floating point support, and earm is the modern "extended" ABI for ARM cpus, and finally v7 is version 7 of the supported instruction set.

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