Page 1 of 1

FriendlyARM NanoPi M1 on NetBSD

Posted: Thu May 14, 2020 4:37 am
by dpostolov
Hi to All! Sorry for my bad English...

I am successfully working with NanoPi M1 under NetBSD 9.0.

If you are interested in information on how to install NetBSD 9.0 on M1, then the instructions below (perhaps also partially relevant for M1 Plus):

Configuration: FriendlyARM NanoPi M1 Allwinner H3 SoC, HDMI Video output, 1GB RAM, 128GB micro-SD SanDisk Ultra, NetBSD 9.0 RELEASE armv7, Xfce 4.14, SeaMonkey Browser.

1. NetBSD 9.0 (STABLE & CURRENT) images from site: armbsd.org
- 1. Unpack and write image to micro-sd card.
- 2. Set audio-codec to "okay" in .dts file (compile with dtc (Device Tree Compiler) m1.dtb -> m1.dts).
- 3. Compile modified m1.dts to m1.dtb.
- 4. Rewrite m1.dtb to /dtb in fat partition.
- 5. Power On M1 and boot.
- 6. Set mixerctl for none-zero audio output (for example mixerctl -w outputs.master=120,120).
- 7. test sound: # cat /dev/urandom > /dev/audio; for break Ctrl-C.
2. NetBSD 9.0 RELEASE from site: ftp.netbsd.org/pub/NetBSD/NetBSD-9.0/evbarm-earmv7hf/binary/gzimg/armv7.img.gz
--- / --- write .img and .spl.bin with seek=8 (install on NetBSD amd64 nanopi-m1 package)
3. Download pkqsrc-2019Q4 and unpack it.
4. Build (make install clean) from pkgsrc 'nano' text editor, 'pkgin' package manager, 'links' console browser.
5. Edit pkgin repositories.conf to ftp.netbsd.org, earmv7hf and 9.0_2019Q4.
6. pkgin update.
7. Build from pkgsrc meta-pkgs/xfce4 and xfce4-extras (maybe one STOP just do again 'make install clean' and the build will continue and complete successfully.
8. pkgin install seamonkey xscreensaver-demo.
9. Build from pkgsrc or install from pkgin additional software.
10. startxfce4