File:  [NetBSD Developer Wiki] / wikisrc / ports / evbarm / allwinner.mdwn
Revision 1.19: download - view: text, annotated - select for diffs
Mon Oct 20 23:55:52 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: [[!toc levels=2]]
    4: 
    5: # Supported boards
    6:  - [Banana Pi](http://www.bananapi.org/p/product.html) (BPI)
    7:  - Cubieboard, Cubieboard 2 (CUBIEBOARD)
    8:  - Cubietruck (CUBIETRUCK)
    9:  - [Merrii Hummingbird A31](http://www.merrii.com/en/pla_d.asp?id=172) (HUMMINGBIRD_A31)
   10: 
   11: # Supported hardware
   12:  - SoCs
   13:    - Cortex-A8: A10
   14:    - Cortex-A7: A20, A31
   15:  - SD/MMC controller (DMA)
   16:  - DMA controller
   17:  - GPIO
   18:  - UART
   19:  - I2C
   20:  - P2WI (A31)
   21:  - PMU
   22:    - AXP209 (A20)
   23:    - AXP221 (A31)
   24:  - Watchdog timer
   25:  - RTC
   26:  - Audio codec
   27:  - USB host
   28:    - OHCI
   29:    - EHCI
   30:    - OTG (not yet working on A31)
   31:  - SATA (A10/A20)
   32:  - Gigabit Ethernet (GMAC)
   33: 
   34: # TODO
   35:  - MULTIPROCESSOR is not yet stable
   36:  - HDMI (some work completed here for A20)
   37:  - Framebuffer
   38:  - OTG (A31)
   39:  - USB device mode
   40:  - Bluetooth / WiFi (Cubietruck, Hummingbird A31)
   41:  - 3G (Hummingbird A31)
   42:  - SD/MMC UHS-I support (needs sdmmc(4) changes)
   43:  - TV input (Hummingbird A31)
   44:  - NAND
   45:  - Fast Ethernet (EMAC)
   46: 
   47: # Installation
   48: 
   49: ## A10 / A20 based boards
   50: 
   51: * Start with an ARMv7 image from *evbarm-earmv7hf/binary/gzimg/* such as *beaglebone.img*
   52: * 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/>
   53: * Write the *u-boot-sunxi-with-spl.bin* loader to the base image:
   54: [[!template  id=programlisting text="""
   55: # dd if=u-boot-sunxi-with-spl.bin of=beaglebone.img bs=1k seek=8 conv=notrunc
   56: """]]
   57: * Write the image to an SD card.
   58: * Copy the kernel (netbsd.ub) for your board to the root of the MS-DOS partition.
   59: * Create or edit uEnv.txt on the MS-DOS partition:
   60: [[!template  id=programlisting text="""
   61: bootargs=root=ld0a
   62: uenvcmd=mmc dev 0; mmc rescan; fatload mmc 0:1 82000000 netbsd.ub; bootm 82000000
   63: """]]
   64: 
   65: ## A31 based boards
   66: 
   67: TBD.
   68: 
   69: # Big (endian) fun
   70: 
   71: You can run this boards with a little endian (this is the default and implied by above install instructions)
   72: or with a big endian kernel and userland. However, kernel and userland endianness needs to match.
   73: 
   74: To build a big endian release (or sets) use 
   75: [[!template  id=programlisting text="""
   76: ./build.sh -m evbearmv7hf-eb 
   77: """]]
   78: where -eb means endianness 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.
   79: 
   80: # Board specific notes
   81: 
   82: ## Merrii Hummingbird A31
   83: 
   84: There doesn't appear to be a meaningful way to generate a MAC address on these boards. U-Boot from the A31 SDK and from the u-boot-sunxi tree both lack GMAC support, and the Security ID registers (at 0x01c23800) appear to be empty.
   85: 
   86: To overcome this, you can specify your own MAC address in *uEnv.txt*:
   87: [[!template  id=programlisting text="""
   88: bootargs=root=ld0a awge0.mac-address=02:a0:3d:88:1a:1e
   89: """]]

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