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

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