From owner-freebsd-mips@freebsd.org Fri Jul 29 07:02:00 2016 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 545B4BA6CE6 for ; Fri, 29 Jul 2016 07:02:00 +0000 (UTC) (envelope-from mail@m.jwh.me.uk) Received: from eva.tinkyfi.com (eva.tinkyfi.com [91.121.236.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0CB8B1C64 for ; Fri, 29 Jul 2016 07:01:59 +0000 (UTC) (envelope-from mail@m.jwh.me.uk) Received: from jwhstick1 (cpc82705-staf9-2-0-cust342.3-1.cable.virginm.net [81.108.23.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mail@m.jwh.me.uk) by eva.tinkyfi.com (Postfix) with ESMTPSA id 3s0zx31bzmzGSN0 for ; Fri, 29 Jul 2016 06:54:31 +0000 (UTC) From: "Joe Holden" To: Subject: MIPS64/ERL Date: Fri, 29 Jul 2016 07:54:32 +0100 Message-ID: <002401d1e966$0f79c6b0$2e6d5410$@m.jwh.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdHpZSEFIvdJqsuCQ22I10YepBK3Rg== Content-Language: en-gb X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2016 07:02:00 -0000 Hi guys, Just build 11.0-BETA2 for Edgerouter LIte coming from 10.x and there appears to be some issues: Observing sporadic panics on one acting as a router (Remote, can't easily get serial console to it), and lockups on one I am using to build packages with poudriere (doesn't emit anything on serial, just doesn't respond with eg top running), neither will boot with WITNESS et al enabled so can't really give much more info, just wondering if there is anything likely to have broken it, boot attached for poudriere: root@nas:~ # cu -l /dev/cuau0 -s 115200 Connected Looking for valid bootloader image.... Jumping to start of image at address 0xbfc80000 U-Boot 1.1.1 (UBNT Build ID: 4493936-g009d77b) (Build time: Sep 20 2012 - 15:48: 51) BIST check passed. UBNT_E100 r1:2, r2:12, serial #: DC9FDB29A0A7 Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate) DRAM: 512 MB Clearing DRAM....... done Flash: 4 MB Net: octeth0, octeth1, octeth2 USB: (port 0) scanning bus for devices... 1 USB Devices found scanning bus for storage devices... Device 0: Vendor: Verbatim Prod.: STORE N GO Rev: 1100 Type: Removable Hard Disk Capacity: 3840.0 MB = 3.7 GB (7864320 x 512) 0 reading kernel ........................................... .... 9556888 bytes read argv[2]: coremask=0x3 ELF file is 64 bit Allocating memory for ELF segment: addr: 0xffffffff80100080 (adjusted to: 0x100080), size 0x82d2c0 Allocated memory for ELF segment: addr: 0xffffffff80100080, size 0x82d2c0 Processing PHDR 0 Loading 7a624c bytes at ffffffff80100080 Clearing 87074 bytes at ffffffff808a62cc ## Loading Linux kernel with entry point: 0xffffffff80100080 ... Bootloader: Done loading app on coremask: 0x3 Using runtime CPU model checks. CPU Model: CN5020p1.1-500-SCP CPU clock: 500MHz Core Mask: 0x3 Board: CUST_UBIQUITI_E100 Board Type: 20002 Revision: 2/12 Serial number: DC9FDB29A0A7 MAC address base: dc:9f:db:29:a0:a7 (3 configured) Cache info: icache is virtual picache_stride = 8192 picache_loopcount = 4 pdcache_stride = 256 pdcache_loopcount = 64 cpu0: Cavium processor v1.6 MMU: Standard TLB, 64 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes) L1 i-cache: 4 ways of 64 sets, 128 bytes per line L1 d-cache: 64 ways of 2 sets, 128 bytes per line L2 cache: disabled Config1=0xfe3303da Config2=0x80000167 Config3=0x1080 Physical memory chunk(s): 0x92e000 - 0x802dfff, 124780544 bytes (30464 pages) 0x8101000 - 0xff00fff, 132120576 bytes (32256 pages) 0x410000000 - 0x41fefffff, 267386880 bytes (65280 pages) Maxmem is 0x41ff00000 pcpu is available at virtual address 0xc000000000000000. Octeon SDK: Cavium Inc. OCTEON SDK version 2.3.0, build 427 Available Octeon features: SAAD CRYPTO USB Copyright (c) 1992-2016 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 11.0-BETA2 #14 r303405M: Thu Jul 28 18:14:57 BST 2016 root@b:/usr/obj/mips.mips64/usr/src/sys/ERL mips gcc version 4.2.1 20070831 patched [FreeBSD] Preloaded elf kernel "kernel" at 0xffffffff80901c30. real memory = 524288000 (512000K bytes) Physical memory chunk(s): 0x00a4b000 - 0x0802dfff, 123613184 bytes (30179 pages) 0x08101000 - 0x0ff00fff, 132120576 bytes (32256 pages) 0x410000000 - 0x41f190fff, 253300736 bytes (61841 pages) avail memory = 505479168 (482MB) Create COP2 context zone AP #1 started! FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs ULE: setup cpu 0 ULE: setup cpu 1 random: entropy device external interface null: mem: crypto: nexus0: random: harvesting attach, 8 bytes (4 bits) from nexus0 clock0: on nexus0 Timecounter "MIPS32" frequency 500000000 Hz quality 800 Event timer "MIPS32" frequency 500000000 Hz quality 800 random: harvesting attach, 8 bytes (4 bits) from clock0 rnd0: on nexus0 random: harvesting attach, 8 bytes (4 bits) from rnd0 cryptocteon0: on nexus0 crypto: assign cryptocteon0 driver id 0, flags 83886080 crypto: cryptocteon0 registers alg 6 flags 0 maxoplen 0 crypto: cryptocteon0 registers alg 7 flags 0 maxoplen 0 crypto: cryptocteon0 registers alg 1 flags 0 maxoplen 0 crypto: cryptocteon0 registers alg 2 flags 0 maxoplen 0 crypto: cryptocteon0 registers alg 11 flags 0 maxoplen 0 random: harvesting attach, 8 bytes (4 bits) from cryptocteon0 cryptosoft0: on nexus0 crypto: assign cryptosoft0 driver id 1, flags 100663296 crypto: cryptosoft0 registers alg 1 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 2 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 3 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 4 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 5 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 16 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 6 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 7 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 18 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 19 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 20 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 8 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 15 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 9 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 10 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 13 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 14 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 11 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 22 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 23 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 25 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 24 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 26 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 27 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 28 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 21 flags 0 maxoplen 0 crypto: cryptosoft0 registers alg 17 flags 0 maxoplen 0 random: harvesting attach, 8 bytes (4 bits) from cryptosoft0 ciu0: on nexus0 obio0 on ciu0 uart1: on obio0 uart1: console (115200,n,8,1) uart1: fast interrupt uart1: PPS capture mode: DCDinvalid random: harvesting attach, 8 bytes (4 bits) from uart1 uart0: on obio0 uart0: console (115200,n,8,1) uart0: fast interrupt uart0: PPS capture mode: DCDinvalid random: harvesting attach, 8 bytes (4 bits) from uart0 random: harvesting attach, 8 bytes (4 bits) from obio0 octebus0: on ciu0 Interface 0 has 3 ports (RGMII) Warning: Enabling IPD when IPD already enabled. Warning: Enabling PKO when PKO already enabled. octe0: on octebus0 miibus0: on octe0 atphy0: PHY 7 on miibus0 atphy0: OUI 0x00c82e, model 0x0007, rev. 2 atphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseSX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto random: harvesting attach, 8 bytes (4 bits) from atphy0 random: harvesting attach, 8 bytes (4 bits) from miibus0 octe0: bpf attached octe0: Ethernet address: dc:9f:db:29:a0:a7 random: harvesting attach, 8 bytes (4 bits) from octe0 octe1: on octebus0 miibus1: on octe1 atphy1: PHY 6 on miibus1 atphy1: OUI 0x00c82e, model 0x0007, rev. 2 atphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseSX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto random: harvesting attach, 8 bytes (4 bits) from atphy1 random: harvesting attach, 8 bytes (4 bits) from miibus1 octe1: bpf attached octe1: Ethernet address: dc:9f:db:29:a0:a8 random: harvesting attach, 8 bytes (4 bits) from octe1 octe2: on octebus0 miibus2: on octe2 atphy2: PHY 5 on miibus2 atphy2: OUI 0x00c82e, model 0x0007, rev. 2 atphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseSX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto random: harvesting attach, 8 bytes (4 bits) from atphy2 random: harvesting attach, 8 bytes (4 bits) from miibus2 octe2: bpf attached octe2: Ethernet address: dc:9f:db:29:a0:a9 random: harvesting attach, 8 bytes (4 bits) from octe2 random: harvesting attach, 8 bytes (4 bits) from octebus0 octusb0: on ciu0 usbus0 on octusb0 octusb0: usbpf: Attached random: harvesting attach, 8 bytes (4 bits) from usbus0 random: harvesting attach, 8 bytes (4 bits) from octusb0 gpio0: on ciu0 gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [GIANT-LOCKED] gpio0: [pin0] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin1] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin2] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin3] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin4] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin5] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin6] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin7] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin8] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin9] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin10] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin11] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin12] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin13] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin14] output=0, invinput=0, intr=0, intr_type=level gpio0: [pin15] output=0, invinput=0, intr=0, intr_type=level gpiobus0: on gpio0 random: harvesting attach, 8 bytes (4 bits) from gpiobus0 gpioc0: on gpio0 random: harvesting attach, 8 bytes (4 bits) from gpioc0 random: harvesting attach, 8 bytes (4 bits) from gpio0 random: harvesting attach, 8 bytes (4 bits) from ciu0 Device configuration finished. procfs registered Timecounter "Octeon" frequency 500000000 Hz quality 900 Timecounters tick every 10.000 msec crypto: vlan: initialized, using hash tables with chaining usbus0: 480Mbps High Speed USB v2.0 lo0: bpf attached tcp_init: net.inet.tcp.tcbhashsize auto tuned to 4096 SMP: AP CPU #1 launched. Trying to mount root from ufs:/dev/ufs/root []... Root mount waiting for: usbus0 ugen0.1: at usbus0 uhub0: on usbus0 uhub0: 1 port with 1 removable, self powered random: harvesting attach, 8 bytes (4 bits) from uhub0 Root mount waiting for: usbus0 Root mount waiting for: usbus0 ugen0.2: at usbus0 umass0: on usbus0 umass0:0:0: Attached to scbus0 random: harvesting attach, 8 bytes (4 bits) from umass0 (probe0:mountroot: waiting for device /dev/ufs/root... umass-sim0:0:0:0): Down reving Protocol Version from 2 to 0? pass0 at umass-sim0 bus 0 scbus0 target 0 lun 0 pass0: Removable Direct Access SCSI device pass0: Serial Number 9711080000013961 pass0: 40.000MB/s transfers GEOM: new disk da0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI device da0: Serial Number 9711080000013961 da0: 40.000MB/s transfers da0: 3840MB (7864320 512 byte sectors) da0: quirks=0x2 da0: Delete methods: WARNING: / was not properly dismounted WARNING: /: TRIM flag on fs but disk does not support TRIM warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init Setting hostuuid: 76ef854b-5405-11e6-82e6-dc9fdb29a0a7. Setting hostid: 0x1064d44b. Starting file system checks: ** SU+J Recovering /dev/ufs/root ** Reading 30638080 byte journal from inode 19473. ** Building recovery table. ** Resolving unreferenced inode list. ** Processing journal entries. ** 17 journal records in 1024 bytes for 53.12% utilization ** Freed 0 inodes (0 dirs) 0 blocks, and 0 frags. ***** FILE SYSTEM MARKED CLEAN ***** Mounting local filesystems:. ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/perl5/5.20/mach/CORE random: unblocking device. Setting hostname: erl-build1. Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTAC H,CACHED Feeding entropy: . octe0: link state changed to DOWN octe1: link state changed to DOWN Starting Network: lo0 octe0 octe1 octe2. lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 groups: lo octe0: flags=8a43 metric 0 mtu 1500 options=b ether dc:9f:db:29:a0:a7 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active octe1: flags=8a43 metric 0 mtu 1500 options=b ether dc:9f:db:29:a0:a8 inet 10.99.1.1 netmask 0xfffffffc broadcast 10.99.1.3 nd6 options=29 media: Ethernet autoselect (1000bocte2: link state changed to DOWN aseT ) status: active octe2: flags=8a02 metric 0 mtu 1500 options=b ether dc:9f:db:29:a0:a9 nd6 options=29 media: Ethernet autoselect (none) status: no carrier Starting devd. Starting Network: octe2. octe2: flags=8a02 metric 0 mtu 1500 options=b ether dc:9f:db:29:a0:a9 nd6 options=29 media: Ethernet autoselect (none) status: no carrier Starting dhclient. DHCPREQUEST on octe0 to 255.255.255.255 port 67 DHCPACK from 172.21.88.254 bound to 172.21.88.17 -- renewal in 21600 seconds. add host 127.0.0.1: gateway lo0 fib 0: route already in table add host ::1: gateway lo0 fib 0: route already in table add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Creating and/or trimming log files. Starting syslogd. Clearing /tmp (X related). Starting iscsid. Starting iscsictl. iscsictl: /etc/iscsi.conf is world-readable pass1 at iscsi1 bus 0 scbus1 target 0 lun 0 pass1: Fixed Direct Access SPC-4 SCSI device pass1: Serial Number MYSERIAL 2 pass1: 150.000MB/s transfers pass1: Command Queueing enabled GEOM: new disk da1 da1 at iscsi1 bus 0 scbus1 target 0 lun 0 da1: Fixed Direct Access SPC-4 SCSI device da1: Serial Number MYSERIAL 2 da1: 150.000MB/s transfers da1: Command Queueing enabled da1: 307200MB (629145600 512 byte sectors) da1: Delete methods: Starting distccd. Starting local daemons:** /dev/ufs/poudriere USE JOURNAL? yes ** SU+J Recovering /dev/ufs/poudriere ** Reading 33554432 byte journal from inode 3. RECOVER? yes ** Building recovery table. ** Resolving unreferenced inode list. ** Processing journal entries. WRITE CHANGES? yes ** 32130 journal records in 1130496 bytes for 90.95% utilization ** Freed 0 inodes (0 dirs) 0 blocks, and 0 frags. ***** FILE SYSTEM MARKED CLEAN ***** . Updating motd:. Mounting late filesystems:. Starting ntpd. Performing sanity check on sshd configuration. Starting sshd. Starting cron. Starting background file system checks in 60 seconds. Fri Jul 29 06:35:18 UTC 2016 FreeBSD/mips (erl-build1) (ttyu0) login: