Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - embargo

#1
Update!
I was able to properly initialise the ethernet switch and now working on proper initialisation of duality port WAN/SFP.

Building against FreeBSD 13.0-CURRENT without HardenedBSD patches...
#2
So, I was able to build a kernel with FreeBSD13 sources and now the switch is recognized, but I'm stuck in configuring the assigned ports (WAN, LAN, OPT)...

The WAN port is unresponsive (it is dual-personality port so I believe it is switched to the SFP mode) and I still fight with the LAN port assignment...

The SoC has three ethernet interfaces... two of them are connected to the switch-chip and the last is connected as a separate PHY (the dual personality port for WAN).


mvneta0          d8:58:d7:00:2d:17 NETA controller
mvneta1          d8:58:d7:00:2d:15 NETA controller
mvneta2          d8:58:d7:00:2d:16 NETA controller ======> WAN


It does not matter how I chose the LAN port (mvneta0 or mvneta1) I still cannot do a ping of the router.

Second thing I'm stuck is, that when the system boots up, it just prints the interface assignment, HTTPS fingerprint and then the console is unresponsive. Any hints?

*** OPNsense.localdomain: OPNsense 20.7.3_5 (armv7/OpenSSL) ***

LAN (mvneta0)   -> v4: 192.168.1.1/24
WAN (mvneta2)   ->

HTTPS: SHA256 CF 5B 5D A2 58 E0 F7 CF 91 9E 3A A8 DD B4 94 36
               62 17 49 B4 89 C4 7D 3A 8A 1C 5B 84 73 E1 F7 62



Full boot log:

U-Boot SPL 2020.07 (Oct 15 2020 - 00:10:34 +0200)
High speed PHY - Version: 2.0
MiniPCIe/mSATA card detection... MiniPCIe
Detected Device ID 6820
board SerDes lanes topology details:
| Lane # | Speed |  Type       |
--------------------------------
|   0    |   5   | PCIe0       |
|   1    |   5   | USB3 HOST0  |
|   2    |   5   | PCIe1       |
|   3    |   5   | USB3 HOST1  |
|   4    |   5   | PCIe2       |
|   5    |   0   | SGMII2      |
--------------------------------
:** Link is Gen1, check the EP capability
PCIe, Idx 0: remains Gen1
:** Link is Gen1, check the EP capability
PCIe, Idx 1: remains Gen1
PCIe, Idx 2: detected no link
High speed PHY - Ended Successfully
mv_ddr: mv_ddr-armada-18.09.2
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
mv_ddr: completed successfully
Trying to boot from SPI

                                                                                   
U-Boot 2020.07 (Oct 15 2020 - 00:10:34 +0200)                                     
                                                                                   
SoC:   MV88F6820-A0 at 1600 MHz                                                   
DRAM:  1 GiB (800 MHz, 32-bit, 2T, ECC not enabled)                               
Disabling MCU watchdog... disabled
WDT:   Started with servicing (60s timeout)
MMC:   mv_sdh: 0
Loading Environment from SPI Flash... SF: Detected s25fl164k with page size 256 Bytes, erase size 4 KiB, total 8 MiB
OK
Model: Turris Omnia
Turris Omnia:
  RAM size: 1024 MiB
  Serial Number: 0000000B000043EF
Regdomain set to **
PCI: Failed autoconfig bar 10
PCI: Failed autoconfig bar 14
PCI: Failed autoconfig bar 18
PCI: Failed autoconfig bar 1c
PCI: Failed autoconfig bar 10
PCI: Failed autoconfig bar 14
PCI: Failed autoconfig bar 18
PCI: Failed autoconfig bar 1c
Net:   eth0: ethernet@70000, eth1: ethernet@30000, eth2: ethernet@34000
Hit any key to stop autoboot:  0
=> boot
starting USB...
Bus usb@58000: USB EHCI 1.00
Bus usb3@f0000: MVEBU XHCI INIT controller @ 0xf10f4000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb3@f8000: MVEBU XHCI INIT controller @ 0xf10fc000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@58000 for devices... 1 USB Device(s) found
scanning bus usb3@f0000 for devices... 1 USB Device(s) found
scanning bus usb3@f8000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Device 0: Vendor: Generic  Rev: 8.07 Prod: Flash Disk     
            Type: Removable Hard Disk
            Capacity: 7800.0 MB = 7.6 GB (15974400 x 512)
... is now current device
Scanning usb 0:1...
Found U-Boot script /boot.scr
199 bytes read in 3 ms (64.5 KiB/s)
## Executing script at 01800000
269360 bytes read in 12 ms (21.4 MiB/s)
## Starting application at 0x01000000 ...
Consoles: U-Boot console 
Compatible U-Boot API signature found @0x3fbc6c18

FreeBSD/armv7 U-Boot loader, Revision 1.2
(Wed Oct 14 03:08:58 CEST 2020 root@mafl)

DRAM: 1024MB
MMC: no card present
Number of U-Boot devices: 1
U-Boot env: loaderdev not set, will probe all devices.
Found U-Boot device: disk
  Probing all <unknown> devices...
  Checking unit=0 slice=<auto> partition=<auto>... good.
Booting from disk0s2a:
Loading /boot/defaults/loader.conf
/boot/kernel/kernel text=0x1b4 text=0x612a4c text=0x1c0260 data=0x90358 data=0x0+0xbc000 syms=[0x4+0x89550+0x4+0xee07a]
/boot/entropy size=0x1000
/boot/kernel/carp.ko text=0x2e40 text=0x6140 data=0x600+0x2c syms=[0x4+0x1ed0+0x4+0x1364]
/boot/kernel/if_bridge.ko text=0x3124 text=0x693c data=0x5ec+0x4 syms=[0x4+0x2540+0x4+0x1809]
loading required module 'bridgestp'
/boot/kernel/bridgestp.ko text=0x10a0 text=0x43d0 data=0x148+0x18 syms=[0x4+0xea0+0x4+0x84e]
/boot/kernel/if_enc.ko text=0xf44 text=0x9ec data=0x414 syms=[0x4+0xb80+0x4+0xbca]
/boot/kernel/if_gif.ko text=0x1e50 text=0x3e90 data=0x504+0x2c syms=[0x4+0x1b20+0x4+0xfed]
/boot/kernel/if_gre.ko text=0x2318 text=0x4f18 data=0x40c+0x24 syms=[0x4+0x1d80+0x4+0x10a0]
/boot/kernel/if_lagg.ko text=0x41d8 text=0x7dd8 data=0x528+0x4 syms=[0x4+0x2590+0x4+0x164c]
can't find 'if_tap'
can't find 'if_tun'
/boot/kernel/pf.ko text=0x83d8 text=0x32858 data=0x2fe4+0xe8 syms=[0x4+0x5c00+0x4+0x365e]
/boot/kernel/pflog.ko text=0xb13 text=0x7fc data=0x224 syms=[0x4+0x9c0+0x4+0x748]
/boot/kernel/pfsync.ko text=0x2d88 text=0x7a68 data=0x584+0x4 syms=[0x4+0x1dc0+0x4+0x1347]

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...               
/boot/dtb/armada-385-turris-omnia.dtb size=0x5ea5
Loaded DTB from file 'armada-385-turris-omnia.dtb'.
Kernel entry at 0x1400200...
Kernel args: (null)
SOC: Marvell 88F6820, TClock 250MHz, Frequency 1600MHz
  Instruction cache prefetch enabled, data cache prefetch disabled
---<<BOOT>>---
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2020 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 13.0-CURRENT #9 4fc33ba62dd-c272274(master)-dirty: Sun Oct 18 01:28:25 CEST 2020
    root@mafl:/usr/obj/usr/src/arm.armv7/sys/SMP-OMNIA arm
FreeBSD clang version 11.0.0 (git@github.com:llvm/llvm-project.git llvmorg-11.0.0-0-g176249bd673)
WARNING: WITNESS option enabled, expect reduced performance.
CPU: ARM Cortex-A9 r4p1 (ECO: 0x00000000)
CPU Features:
  Multiprocessing, Thumb2, Security, VMSAv7, Coherent Walk
Optional instructions:
  UMULL, SMULL, SIMD(ext)
LoUU:2 LoC:2 LoUIS:2
Cache level 1:
32KB/32B 4-way data cache WB Read-Alloc Write-Alloc
32KB/32B 4-way instruction cache Read-Alloc
real memory  = 1073737728 (1023 MB)
avail memory = 1033797632 (985 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
random: unblocking device.
wlan: mac acl policy registered
random: entropy device external interface
[ath_hal] loaded
000.000023 [4346] netmap_init               netmap: loaded module
WARNING: Device "openfirm" is Giant locked and may be deleted before FreeBSD 13.0.
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
simplebus1: <Flattened device tree simple bus> on simplebus0
l2cache0: <PL310 L2 cache controller> mem 0x8000-0x8fff on simplebus1
l2cache0: cannot allocate IRQ, not using interrupt
l2cache0: Part number: 0x3, release: 0x9
l2cache0: Warning: L2 Cache should not already be active; trying to de-activate and re-initialize...
l2cache0: L2 Cache enabled: 1024KB/32B 16 ways
gic0: <ARM Generic Interrupt Controller> mem 0xd000-0xdfff,0xc100-0xc1ff on simplebus1
gic0: pn 0x39, arch 0x1, rev 0x2, implementer 0x43b irqs 192
mpic0: <Marvell Integrated Interrupt Controller> mem 0x20a00-0x20ccf,0x21070-0x210c7 irq 17 on simplebus1
gpio0: <Marvell Integrated GPIO Controller> mem 0x18100-0x1813f,0x181c0-0x181c7 irq 9,10,11,12 on simplebus1
gpio0: 4 IRQs available
gpio0: Disable interrupts (offset = 0 + EDGE(0x18)
gpio0: Disable interrupts (offset = 0 + LEV(0x1C))
gpio0: Setup intr 0
gpio0: Setup intr 1
gpio0: Setup intr 2
gpio0: Setup intr 3
gpio0: Clear int status (offset = 0)
gpiobus0: <GPIO bus> on gpio0
gpio1: <Marvell Integrated GPIO Controller> mem 0x18140-0x1817f,0x181c8-0x181cf irq 13,14,15,16 on simplebus1
gpio1: 4 IRQs available
gpio1: Disable interrupts (offset = 0 + EDGE(0x18)
gpio1: Disable interrupts (offset = 0 + LEV(0x1C))
gpio1: Setup intr 0
gpio1: Setup intr 1
gpio1: Setup intr 2
gpio1: Setup intr 3
gpio1: Clear int status (offset = 0)
gpiobus1: <GPIO bus> on gpio1
mp_tmr0: <ARM MPCore Timers> mem 0xc200-0xc21f irq 3 on simplebus1
Timecounter "MPCore" frequency 800000000 Hz quality 800
mp_tmr1: <ARM MPCore Timers> mem 0xc600-0xc61f irq 4 on simplebus1
Event timer "MPCore" frequency 800000000 Hz quality 1000
twsi0: <Marvell Integrated I2C Bus Controller> mem 0x11000-0x1101f irq 5 on simplebus1
iicbus0: <OFW I2C bus> on twsi0
iic0: <I2C generic I/O> on iicbus0
iicbus0: <unknown card> at addr 0xe0
uart0: <16550 or compatible> mem 0x12000-0x120ff irq 7 on simplebus1
uart0: console (-1,n,8,1)
uart1: <16550 or compatible> mem 0x12100-0x121ff irq 8 on simplebus1
gpioc0: <GPIO controller> on gpio0
gpioc1: <GPIO controller> on gpio1
wdt0: <Marvell Watchdog Timer> mem 0x20300-0x20333,0x20704-0x20707,0x18260-0x18263 irq 24,25 on simplebus1
pmsu0: <Power Management Service Unit> mem 0x22000-0x22fff on simplebus1
mvneta0: <NETA controller> mem 0x70000-0x73fff irq 26 on simplebus1
mvneta0: version is 10
mvneta0: Ethernet address: d8:58:d7:00:2d:17
mvneta1: <NETA controller> mem 0x30000-0x33fff irq 27 on simplebus1
mvneta1: version is 10
mvneta1: Ethernet address: d8:58:d7:00:2d:15
mdio0: <MDIO> on mvneta1
mdioproxy0: <MII/MDIO proxy, MDIO side> on mdio0
e6000sw0: <Marvell 88E6176> on mdio0
e6000sw0: multi-chip addressing mode (0x10)
e6000sw0: PHY at port 0
miibus0: <MII bus> on e6000sw0
ukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus0
ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
e6000sw0: PHY at port 1
miibus1: <MII bus> on e6000sw0
ukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus1
ukphy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
e6000sw0: PHY at port 2
miibus2: <MII bus> on e6000sw0
ukphy2: <Generic IEEE 802.3u media interface> PHY 2 on miibus2
ukphy2:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
e6000sw0: PHY at port 3
miibus3: <MII bus> on e6000sw0
ukphy3: <Generic IEEE 802.3u media interface> PHY 3 on miibus3
ukphy3:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
e6000sw0: PHY at port 4
miibus4: <MII bus> on e6000sw0
ukphy4: <Generic IEEE 802.3u media interface> PHY 4 on miibus4
ukphy4:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
e6000sw0: CPU port at 5
e6000sw0: fixed port at 5
e6000sw0: switch is ready.
etherswitch0: <Switch controller> on e6000sw0
mvneta2: <NETA controller> mem 0x34000-0x37fff irq 28 on simplebus1
mvneta2: version is 10
mvneta2: Ethernet address: d8:58:d7:00:2d:16
miibus5: <MII bus> on mvneta2
ukphy5: <Generic IEEE 802.3u media interface> PHY 1 on miibus5
ukphy5:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
ehci0: <Marvell Integrated USB 2.0 controller> mem 0x58000-0x584ff irq 29 on simplebus1
usbus0: EHCI version 1.0
usbus0 on ehci0
cesa0: <Marvell Cryptographic Engine and Security Accelerator> mem 0x90000-0x9ffff irq 30,31 on simplebus1
rtc0: <Marvell Integrated RTC> mem 0xa3800-0xa381f,0x184a0-0x184ab irq 32 on simplebus1
rtc0: registered as a time-of-day clock, resolution 1.000000s
ahci0: <Marvell AHCI Controller> mem 0xa8000-0xa9fff irq 33 on simplebus1
ahci0: AHCI v1.00 with 2 6Gbps ports, Port Multiplier supported with FBS
ahci0: quirks=0x200010<2CH,MRVL_SR_DEL>
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
armada_thermal0: <Armada380 Thermal Control> mem 0xe4078-0xe407b,0xe4070-0xe4077 on simplebus1
device_attach: armada_thermal0 attach returned 6
sdhci_fdt0: <ARMADA38X SDHCI controller> mem 0xd8000-0xd8fff,0xdc000-0xdc0ff,0x18454-0x18457 irq 36 on simplebus1
sdhci_fdt0: 1 slot(s) allocated
xhci0: <Generic USB 3.0 controller> mem 0xf0000-0xf3fff,0xf4000-0xf7fff irq 37 on simplebus1
xhci0: 32 bytes context size, 32-bit DMA
usbus1 on xhci0
xhci1: <Generic USB 3.0 controller> mem 0xf8000-0xfbfff,0xfc000-0xfffff irq 38 on simplebus1
xhci1: 32 bytes context size, 32-bit DMA
usbus2 on xhci1
cesa1: <Marvell Cryptographic Engine and Security Accelerator> mem 0x90000-0x9ffff irq 39,40 on simplebus1
spi0: <Marvell SPI controller> mem 0xf001000000010600-0xf00100000001064f irq 1 on simplebus0
pcib_ctrl0: <Marvell Integrated PCIe Bus Controller> on simplebus0
pcib0: <Marvell Integrated PCI/PCI-E Controller> on pcib_ctrl0
pci0: <PCI bus> on pcib0
ath0: <Atheros 9287> mem 0xf1800000-0xf180ffff at device 1.0 on pci0
ath0: [HT] enabling HT modes
ath0: [HT] enabling short-GI in 20MHz mode
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 stream STBC transmit enabled
ath0: [HT] 2 RX streams; 2 TX streams
ath0: AR9287 mac 384.2 RF5133 phy 15.15
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0
pcib1: <Marvell Integrated PCI/PCI-E Controller> on pcib_ctrl0
pci1: <PCI bus> on pcib1
pcib2: <Marvell Integrated PCI/PCI-E Controller> on pcib_ctrl0
pci2: <PCI bus> on pcib2
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpu1: <Open Firmware CPU> on cpulist0
cryptosoft0: <software crypto>
Timecounters tick every 1.000 msec
mvneta0: link state changed to UP
mvneta1: link state changed to UP
e6000sw0port0: link state changed to DOWN
e6000sw0port1: link state changed to DOWN
e6000sw0port2: link state changed to DOWN
e6000sw0port3: link state changed to DOWN
e6000sw0port4: link state changed to DOWN
usbus0: 480Mbps High Speed USB v2.0
usbus1: 5.0Gbps Super Speed USB v3.0
usbus2: 5.0Gbps Super Speed USB v3.0
spibus0: <OFW SPI bus> on spi0
spibus0: <unknown card> at cs 0 mode 0
Release APs
WARNING: WITNESS option enabled, expect reduced performance.
ugen2.1: <Generic XHCI root HUB> at usbus2
ugen0.1: <Marvell EHCI root HUB> at usbus0
uhub0 on usbus2
uhub1 on usbus0
uhub0: <Generic XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus2
uhub1: <Marvell EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Generic XHCI root HUB> at usbus1
uhub2 on usbus1
uhub2: <Generic XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1
Trying to mount root from ufs:/dev/ufs/OPNsense [rw]...
Root mount waiting for: usbus0 CAM usbus1 usbus2
uhub0: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
mmc0: <MMC/SD bus> on sdhci_fdt0
mmcsd0: 8GB <MMCHC H8G4a� 10.1 SN 22A18C4C MFG 04/2016 by 144 0x004a> (read-only) at mmc0 50.0MHz/8bit/65535-block
mmcsd0boot0: 4MB partition 1 (read-only) at mmcsd0
mmcsd0boot1: 4MB partition 2 (read-only) at mmcsd0
mmcsd0rpmb: 4MB partition 3 (read-only) at mmcsd0
uhub1: 1 port with 1 removable, self powered
ugen2.2: <Generic Mass Storage> at usbus2
umass0 on uhub0
umass0: <Generic Mass Storage, class 0/0, rev 2.00/1.00, addr 1> on usbus2
umass0:  SCSI over Bulk-Only; quirks = 0x4101
umass0:2:0: Attached to scbus2
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
e6000sw0port4: link state changed to UP
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <Generic Flash Disk 8.07> Removable Direct Access SPC-2 SCSI device
da0: Serial Number 34809E2F
da0: 40.000MB/s transfers
da0: 7800MB (15974400 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
mountroot: waiting for device /dev/ufs/OPNsense...
Mounting filesystems...
tunefs: soft updates remains unchanged as enabled
tunefs: file system reloaded
da0 recovering is not needed
da0s1 resized
growfs: requested size 2.0GB is not larger than the current filesystem size 2.0GB
camcontrol: ATA ATA_IDENTIFY via pass_16 failed
camcontrol: ATA ATAPI_IDENTIFY via pass_16 failed
** /dev/ufs/OPNsense
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 195824 free (600 frags, 24403 blocks, 0.1% fragmentation)
/etc/rc.d/hostid: WARNING: hostid: unable to figure out a UUID from DMI data, generating a new one
Setting hostuuid: 08f289ce-112b-11eb-a3a7-d858d7002d17.
Setting hostid: 0x59d6b41a.
Press any key to start the configuration importer: .........
Bootstrapping config.xml...done.
Configuring crash dump device: /dev/null
.ELF ldconfig path: /lib /usr/lib /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg /usr/local/lib/ipsec /usr/local/lE
Soft Float compatibility ldconfig path:
done.
>>> Invoking early script 'update'
>>> Invoking early script 'configd'
Starting configd.
>>> Invoking early script 'templates'
Generating configuration: OK
>>> Invoking early script 'backup'
>>> Invoking backup script 'captiveportal'
>>> Invoking backup script 'dhcpleases'
>>> Invoking backup script 'duid'
>>> Invoking backup script 'netflow'
>>> Invoking backup script 'rrd'
>>> Invoking early script 'carp'
CARP event system: OK
Launching the init system...done.
Initializing...........done.
mvneta2: link state changed to DOWN
Starting device manager...devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
devmatch: Can't read linker hints file.
done.
Configuring login behaviour...done.

Default interfaces not found -- Running interface assignment option.

Press any key to start the manual interface assignment: 5

Valid interfaces are:
mvneta0          d8:58:d7:00:2d:17 NETA controller
mvneta1          d8:58:d7:00:2d:15 NETA controller
mvneta2          d8:58:d7:00:2d:16 NETA controller
[ar5210] loaded
[ar5211] loaded
[ar5212] loaded
[ar5416] loaded
[ar9300] loaded
[ath_rate] loaded
[ath_dfs] loaded
[ath] loaded
ath0              Atheros 9287

You now have the opportunity to configure VLANs.  If you don't require VLANs
for initial connectivity, say no here and use the GUI to configure VLANs later.

Do you want to configure VLANs now? [y/N]: n

If you do not know the names of your interfaces, you may choose to use
auto-detection. In that case, disconnect all interfaces now before
hitting 'a' to initiate auto detection.

Enter the WAN interface name or 'a' for auto-detection: mvneta2

Enter the LAN interface name or 'a' for auto-detection
NOTE: this enables full Firewalling/NAT mode.
(or nothing if finished): mvneta0

Enter the Optional interface 1 name or 'a' for auto-detection
(or nothing if finished):

The interfaces will be assigned as follows:

WAN  -> mvneta2
LAN  -> mvneta0

Do you want to proceed? [y/N]: y

Writing configuration...done.
Configuring loopback interface...lo0: link state changed to UP
done.
Configuring kernel modules...done.
Setting up extended sysctls...done.
Setting timezone...done.
Writing firmware setting...done.
Writing trust files...done.
Setting hostname: OPNsense.localdomain
Generating /etc/hosts...done.
Configuring system logging...done.
Configuring loopback interface...done.
Creating wireless clone interfaces...done.
Configuring LAN interface...done.
Configuring WAN interface...done.
Creating IPsec VTI instances...done.
Generating /etc/resolv.conf...done.
Configuring firewall........done.
Starting PFLOG...done.
Starting web GUI...done.
Configuring CRON...done.
Setting up routes...done.
Generating /etc/hosts...done.
lock order reversal:
1st 0xdfe3a62c ufs (ufs, lockmgr) @ /usr/src/sys/kern/vfs_mount.c:1018
2nd 0xdfe9f29c devfs (devfs, lockmgr) @ /usr/src/sys/kern/vfs_mount.c:1029
lock order devfs -> ufs established at:
#0 0xc033c784 at witness_checkorder+0x520
#1 0xc02a1430 at lockmgr_lock_flags+0x184
#2 0xc0563744 at ffs_lock+0x58
#3 0xc03c5518 at _vn_lock+0x58
#4 0xc03a4488 at vfs_domount+0xfd4
#5 0xc03a28b8 at vfs_donmount+0x880
#6 0xc03a6d34 at kernel_mount+0x5c
#7 0xc03a9404 at parse_mount+0x3bc
#8 0xc03a792c at vfs_mountroot+0x560
#9 0xc02625b0 at start_init+0x14
#10 0xc028c2d4 at fork_exit+0xa0
#11 0xc05ca880 at swi_exit+0
lock order ufs -> devfs attempted at:
#0 0xc033cfa0 at witness_checkorder+0xd3c
#1 0xc02a3354 at lockmgr_xlock+0x54
#2 0xc03c5518 at _vn_lock+0x58
#3 0xc03a4488 at vfs_domount+0xfd4
#4 0xc03a28b8 at vfs_donmount+0x880
#5 0xc03a2018 at sys_nmount+0x60
#6 0xc05e82a4 at swi_handler+0x16c
#7 0xc05ca880 at swi_exit+0
Starting DHCPv4 service...done.
Starting DHCPv6 service...done.
Starting router advertisement service...done.
Starting Unbound DNS...done.
Setting up gateway monitors...done.
Configuring firewall........done.
Starting PFLOG...done.
Syncing OpenVPN settings...done.
Starting NTP service...deferred.
Starting Unbound DNS...done.
Generating RRD graphs...done.
Configuring system logging...done.
>>> Invoking start script 'newwanip'
>>> Invoking start script 'freebsd'
>>> Invoking start script 'syslog-ng'
Stopping syslog_ng.
Waiting for PIDS: 64756.
Starting syslog_ng.
>>> Invoking start script 'carp'
>>> Invoking start script 'cron'
Starting Cron: OK
>>> Invoking start script 'beep'
Root file system: /dev/ufs/OPNsense
Sun Oct 18 10:21:37 UTC 2020

*** OPNsense.localdomain: OPNsense 20.7.3_5 (armv7/OpenSSL) ***

LAN (mvneta0)   -> v4: 192.168.1.1/24
WAN (mvneta2)   ->

HTTPS: SHA256 CF 5B 5D A2 58 E0 F7 CF 91 9E 3A A8 DD B4 94 36
               62 17 49 B4 89 C4 7D 3A 8A 1C 5B 84 73 E1 F7 62



#3
I realized that the e6000sw module and etherswitch is not built during the process even when I specified it in config for my target.

Does anybody know how does the build process work?


include         ARMADA38X                                                                                                             
                                                                                                                                       
ident           SMP-OMNIA                                                                                                             
                                                                                                                                       
# Remove to build a debug kernel:                                                                                                     
nomakeoptions   DEBUG                                                                                                                 
                                                                                                                                       
options         DDB                                                                                                                   
options         GEOM_BDE                                                                                                               
options         GEOM_ELI                                                                                                               
options         GEOM_MIRROR                                                                                                           
options         GEOM_UZIP                                                                                                             
options         IPFIREWALL_DEFAULT_TO_ACCEPT                                                                                           
options         IPFIREWALL_VERBOSE                                                                                                     
options         IPSTEALTH                                                                                                             
options         MROUTING                                                                                                               
options         PPS_SYNC                                                                                                               
options         TCP_SIGNATURE                                                                                                         
                                                                                                                                       
# Wireless features                                                                                                                   
device          wlan_acl                                                                                                               
device          wlan_xauth                                                                                                             
                                                                                                                                       
# Not all architectures have a consistent GENERIC                                                                                     
device          netmap                                                                                                                 
                                                                                                                                       
# Network                                                                                                                             
device          ether                                                                                                                 
device          vlan                                                                                                                   
device          mii                                                                                                                   
device          bpf                                                                                                                   
device          re                                                                                                                     
device          mdio                                                                                                                   
device          etherswitch                                                                                                           
device          e6000sw                                                                                                               
device          neta                                                                                                                   
                                                                                                                                       
# Needed for GEOM                                                                                                                             
device          xz                                                                                                                     
                                                                                                                                       
# HardenedBSD goodies                                                                                                                 
options         PAX                                                                                                                   
options         PAX_ASLR                                                                                                               
options         PAX_HARDENING                                                                                                         
options         PAX_SEGVGUARD                                                                                                         
options         PAX_INSECURE_MODE                                                                                                     
options         PAX_CONTROL_ACL                                                                                                       
options         PAX_CONTROL_ACL_OVERRIDE_SUPPORT                                                                                       
options         PAX_CONTROL_EXTATTR                                                                                                   
options         PAX_JAIL_SUPPORT                                                                                                       
#4
Hello,
I've built the OPNsense arm image and I can boot it on the TO, but unfortunately it does not recognize the attached 88E6176 (e6000sw driver) ethernet switch. I used the armada-385-turris-omnia.dts and double checked it is defined here.

Instead of it, the system detects 3 mvneta interfaces. The inner logic is that two of the mvneta interfaces are connected to the switch and the rest acts as a WAN port.

Can someone point how to fix it?

Log from the serial console ====> https://0paste.com/103156

Thank you.
#5
Hello all,
I've been able to go through the whole process of building OPNsense for my device, but I'm stuck that I need to generate dtb file from specific dts.

I'm using the ARMADA38X and it always compiles the armada-388-clearfog.dtb but I need to use the armada-385-turris-omnia.dts

How can I achieve that? What is the correct option?