--- wikisrc/ports/evbarm/allwinner.mdwn 2014/12/21 23:08:18 1.45 +++ wikisrc/ports/evbarm/allwinner.mdwn 2015/04/02 18:36:59 1.50 @@ -1,5 +1,7 @@ [[!meta title="NetBSD/evbarm on Allwinner Technology SoCs"]] +NetBSD 7.0 has support for A10, A20, and A31 SoCs. NetBSD -current adds support for A80 SoCs. + [[!toc levels=2]] # Supported boards @@ -71,8 +73,7 @@ * Start with an ARMv7 image from *evbarm-earmv7hf/binary/gzimg/* such as *beagleboard.img* * Download a U-Boot build for your board - * A10/A20: Download from the linux-sunxi web site - * A31: The standard u-boot-sunxi tree doesn't support A31 yet. Until sun6i support is merged, a build is available at + * Download the correct build from the linux-sunxi web site . * Write the *u-boot-sunxi-with-spl.bin* loader to the empty space at the start of the base image: [[!template id=programlisting text=""" # dd if=u-boot-sunxi-with-spl.bin of=beagleboard.img bs=1k seek=8 conv=notrunc @@ -87,22 +88,12 @@ uenvcmd=mmc dev 0; mmc rescan; fatload m ## A80 based boards -* Cubieboard 4 SDK (lubuntu) U-Boot env: +* Cubieboard 4 U-Boot for SD card: [[!template id=programlisting text=""" -baudrate=115200 -boot_normal=fatload mmc 0:1 20007800 uimage;bootm 20007800 -bootcmd=run setargs_cubie boot_normal -bootdelay=3 -console=ttyS0,115200 -console1=tty1 -init=/init -loglevel=8 -mmc_root=/dev/mmcblk0p2 -setargs_cubie=setenv bootargs console=${console1} console=${console} root=${mmc_root} loglevel=${loglevel} -stderr=serial -stdin=serial -stdout=serial +# dd if=u-boot-spl.bin of=/dev/sdd bs=1k seek=8 +# dd if=u-boot-sun9iw1p1.bin of=/dev/sdd bs=1k seek=19096 """]] +* First partition needs to be at +20MB offset. Format it as MSDOS, copy 'netbsd.ub' to it as 'uImage'. # Big (endian) fun