1: [[!meta title="NetBSD/evbarm on Allwinner Technology SoCs"]]
2:
3: # Supported boards
4: - [Banana Pi](http://www.bananapi.org/p/product.html) (BPI)
5: - Cubieboard, Cubieboard 2 (CUBIEBOARD)
6: - Cubietruck (CUBIETRUCK)
7: - [Merrii Hummingbird A31](http://www.merrii.com/en/pla_d.asp?id=172) (HUMMINGBIRD_A31)
8:
9: # Supported hardware
10: - SoCs
11: - Cortex-A8: A10
12: - Cortex-A7: A20, A31
13: - SD/MMC controller (DMA)
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 host
26: - OHCI
27: - EHCI
28: - OTG (not yet working on A31)
29: - SATA (A10/A20)
30: - Gigabit Ethernet (GMAC)
31:
32: # TODO
33: - MULTIPROCESSOR is not yet stable
34: - HDMI (some work completed here for A20)
35: - Framebuffer
36: - OTG (A31)
37: - USB device mode
38: - Bluetooth / WiFi (Cubietruck, Hummingbird A31)
39: - 3G (Hummingbird A31)
40: - SD/MMC UHS-I support (needs sdmmc(4) changes)
41:
42: # Installation
43:
44: ## A10 / A20 based boards
45:
46: * Start with an ARMv7 image from *evbarm-earmv7hf/binary/gzimg/* such as *beaglebone.img*
47: * 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/>
48: * Write the *u-boot-sunxi-with-spl.bin* loader to the base image:
49: [[!template id=programlisting text="""
50: # dd if=u-boot-sunxi-with-spl.bin of=beaglebone.img bs=1k seek=8 conv=notrunc
51: """]]
52: * Write the image to an SD card.
53: * Copy the kernel (netbsd.ub) for your board to the root of the MS-DOS partition.
54: * Create or edit uEnv.txt on the MS-DOS partition:
55: [[!template id=programlisting text="""
56: bootargs=root=ld0a
57: uenvcmd=mmc dev 0; mmc rescan; fatload mmc 0:1 82000000 netbsd.ub; bootm 82000000
58: """]]
59:
60: ## A31 based boards
61:
62: TBD.
63:
64: # Big (endian) fun
65:
66: You can run this boards with a little endian (this is the default and implied by above install instructions)
67: or with a big endian kernel and userland. However, kernel and userland endianness needs to match.
68:
69: To build a big endian release (or sets) use
70: [[!template id=programlisting text="""
71: ./build.sh -m evbearmv7hf-eb
72: """]]
73: 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.
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb