1: [[!meta title="NetBSD/evbarm on DE0 Nano-SoC"]]
2:
3: NetBSD runs on the Terasic DE0 Nano-SoC board, based on the
4: Altera/Intel Cyclone V.
5: The `evbearmv7hf-el` version of NetBSD should be used.
6:
7: # Hardware supported
8:
9: Currently, ethernet, USB, micro-SD slot, and UART are supported.
10: FPGA, GPIO's, SPI, ADC, accelerometer, and so on are not yet supported.
11:
12: # Image build and installation
13:
14: Basically, you need to `dd` u-boot from `sysutils/u-boot-de0-nanosoc` into
15: a new partition of type 162 (0xA2) in `armv7.img`, and that's it.
16:
17: Here are the precise instructions under NetBSD.
18:
19: [[!template id=programlisting text="""
20: $ gunzip -c armv7.img.gz > armv7-for-nanosoc.img
21: $ fdisk -f -u -2 -s 162/2048/2048 armv7-for-nanosoc.img
22: $ dd if=/usr/pkg/share/u-boot/de0-nanosoc/u-boot-with-spl.sfp of=armv7-for-nanosoc.img seek=2048 conv=notrunc
23: # dd if=armv7-for-nanosoc.img of=/dev/rXXN bs=1m conv=sync
24: """]]
25:
26: # dmesg
27:
28: [[!template id=programlisting text="""
29: >> NetBSD/evbarm efiboot (arm), Revision 1.13 ()
30: Press return to boot now, any other key for boot prompt
31: booting netbsd - starting in 0 seconds.
32: 6727600+2108376+1397800 [494666+457680+477547]=0xb25820
33: [ 1.0000000] NetBSD/evbarm (fdt) booting ...
34: [ 1.0000000] [ Kernel symbol table missing! ]
35: [ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
36: [ 1.0000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
37: [ 1.0000000] 2018, 2019, 2020 The NetBSD Foundation, Inc. All rights reserved.
38: [ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
39: [ 1.0000000] The Regents of the University of California. All rights reserved.
40:
41: [ 1.0000000] NetBSD 9.0 (GENERIC) #0:
42: [ 1.0000000] mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC
43: [ 1.0000000] total memory = 1023 MB
44: [ 1.0000000] avail memory = 1003 MB
45: [ 1.0000000] armfdt0 (root)
46: [ 1.0000000] simplebus0 at armfdt0: Terasic DE-0(Atlas)
47: [ 1.0000000] simplebus1 at simplebus0
48: [ 1.0000000] cpus0 at simplebus0
49: [ 1.0000000] simplebus2 at simplebus0
50: [ 1.0000000] cpu0 at cpus0: Cortex-A9 r3p0 (Cortex V7A core)
51: [ 1.0000000] cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
52: [ 1.0000000] cpu0: 32KB/32B 4-way L1 VIPT Instruction cache
53: [ 1.0000000] cpu0: 32KB/32B 4-way write-back-locking-C L1 PIPT Data cache
54: [ 1.0000000] cpu0: 512KB/32B 8-way write-back-locking-D L2 PIPT Unified cache
55: [ 1.0000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
56: [ 1.0000000] cpu1 at cpus0
57: [ 1.0000000] cycvrstmgr0 at simplebus1: reset manager
58: [ 1.0000000] simplebus3 at simplebus1
59: [ 1.0000000] gic0 at simplebus0: GIC
60: [ 1.0000000] armgic0 at gic0: Generic Interrupt Controller, 256 sources (245 valid)
61: [ 1.0000000] armgic0: 32 Priorities, 224 SPIs, 5 PPIs, 16 SGIs
62: [ 1.0000000] cycvclkmgr0 at simplebus1: clock manager
63: [ 1.0000000] syscon0 at simplebus1: System Controller Registers
64: [ 1.0000000] syscon1 at simplebus1: System Controller Registers
65: [ 1.0000000] syscon2 at simplebus1: System Controller Registers
66: [ 1.0000000] l2cc0 at simplebus1
67: [ 1.0000000] arml2cc0 at l2cc0: ARM PL310 r3p3 L2 Cache Controller (disabled)
68: [ 1.0000000] arml2cc0: cache enabled
69: [ 1.0000000] a9tmr0 at simplebus1
70: [ 1.0000000] a9tmr0: interrupting on GIC irq 27
71: [ 1.0000000] arma9tmr0 at a9tmr0: A9 Global 64-bit Timer (231 MHz)
72: [ 1.0000000] com0 at simplebus1: ns16550a, working fifo
73: [ 1.0000000] com0: console
74: [ 1.0000000] com0: interrupting on GIC irq 194
75: [ 1.0000000] com1 at simplebus1: ns16550a, working fifo
76: [ 1.0000000] com1: interrupting on GIC irq 195
77: [ 1.0000000] fregulator0 at simplebus0: 3.3V
78: [ 1.0000000] usbnopphy0 at simplebus1: USB PHY
79: [ 1.0000000] /soc/fpgamgr@ff706000 at simplebus1 not configured
80: [ 1.0000000] /soc/gpio@ff70a000 at simplebus1 not configured
81: [ 1.0000000] /soc/sram@ffff0000 at simplebus1 not configured
82: [ 1.0000000] /soc/amba/pdma@ffe01000 at simplebus3 not configured
83: [ 1.0000000] /soc/gpio@ff709000 at simplebus1 not configured
84: [ 1.0000000] armpmu0 at simplebus0: Performance Monitor Unit
85: [ 1.0000000] /soc/fpga_bridge@ff400000 at simplebus1 not configured
86: [ 1.0000000] /soc/fpga_bridge@ff500000 at simplebus1 not configured
87: [ 1.0000000] awge0 at simplebus1: GMAC
88: [ 1.0000000] awge0: interrupting on GIC irq 152
89: [ 1.0000000] awge0: Core version: 00001037
90: [ 1.0000000] awge0: Ethernet address f2:00:74:49:ce:e1
91: [ 1.0000000] awge0: HW feature mask: 170d69bf
92: [ 1.0000000] awge0: Using enhanced descriptor format
93: [ 1.0000000] ukphy0 at awge0 phy 1: OUI 0x0010a1, model 0x0022, rev. 2
94: [ 1.0000000] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
95: [ 1.0000000] /soc/gpio@ff708000 at simplebus1 not configured
96: [ 1.0000000] /soc/i2c@ffc04000 at simplebus1 not configured
97: [ 1.0000000] /soc/eccmgr at simplebus1 not configured
98: [ 1.0000000] dwcmmc0 at simplebus1: MHS (50000000 Hz)
99: [ 1.0000000] dwcmmc0: interrupting on GIC irq 171
100: [ 1.0000000] /soc/snoop-control-unit@fffec000 at simplebus1 not configured
101: [ 1.0000000] /soc/timer0@ffc08000 at simplebus1 not configured
102: [ 1.0000000] /soc/timer1@ffc09000 at simplebus1 not configured
103: [ 1.0000000] /soc/timer2@ffd00000 at simplebus1 not configured
104: [ 1.0000000] /soc/timer3@ffd01000 at simplebus1 not configured
105: [ 1.0000000] dwctwo0 at simplebus1: DesignWare USB2 OTG
106: [ 1.0000000] dwctwo0: interrupting on GIC irq 160
107: [ 1.0000000] dwcwdt0 at simplebus1: DesignWare Watchdog Timer
108: [ 1.0000000] dwcwdt0: default watchdog period is 15 seconds
109: [ 1.0000000] gpioleds0 at simplebus0:
110: [ 1.0000000] /soc/base_fpga_region at simplebus1 not configured
111: [ 1.0000000] /soc/sdramedac at simplebus1 not configured
112: [ 1.0000370] cpu1: Cortex-A9 r3p0 (Cortex V7A core)
113: [ 1.0000370] cpu1: DC enabled IC enabled WB enabled LABT branch prediction enabled
114: [ 1.0100305] cpu1: 32KB/32B 4-way L1 VIPT Instruction cache
115: [ 1.0100305] cpu1: 32KB/32B 4-way write-back-locking-C L1 PIPT Data cache
116: [ 1.0200189] cpu1: 512KB/32B 8-way write-back-locking-D L2 PIPT Unified cache
117: [ 1.0300185] vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
118: [ 1.0300185] armpmu0: interrupting on GIC irq 208
119: [ 1.0400229] armpmu0: interrupting on GIC irq 209
120: [ 1.0400229] sdmmc0 at dwcmmc0
121: [ 1.1700197] usb0 at dwctwo0: USB revision 2.0
122: [ 1.1800215] sdmmc0: SD card status: 4-bit, C6
123: [ 1.1800215] ld0 at sdmmc0: <0x1b:0x534d:00000:0x10:0x7e34ebec:0x0d4>
124: [ 1.1919757] uhub0 at usb0: NetBSD (0000) DWC2 root hub (0000), class 9/0, rev 2.00/1.00, addr 1
125: [ 1.2049057] ld0: 14991 MB, 7614 cyl, 64 head, 63 sec, 512 bytes/sect x 30702592 sectors
126: [ 1.2128828] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
127: [ 1.9200187] boot device: ld0
128: [ 1.9200187] root on ld0a dumps on ld0b
129: [ 1.9300197] root file system type: ffs
130: [ 1.9300197] kern.module.path=/stand/evbarm/9.0/modules
131: [ 1.9400190] WARNING: no TOD clock present
132: [ 1.9400190] WARNING: using filesystem time
133: [ 1.9528594] WARNING: CHECK AND RESET THE DATE!
134: """]]
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb