From owner-freebsd-mips@FreeBSD.ORG Sun Oct 12 10:15:01 2014 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C84E5C88 for ; Sun, 12 Oct 2014 10:15:01 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 AFEE3213 for ; Sun, 12 Oct 2014 10:15:01 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9CAF1iC027227 for ; Sun, 12 Oct 2014 10:15:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-mips@FreeBSD.org Subject: [Bug 191587] [mips] 'strip' corrupts static libraries Date: Sun, 12 Oct 2014 10:15:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: daniel.engberg.lists@pyret.net X-Bugzilla-Status: In Discussion X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-mips@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Oct 2014 10:15:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191587 daniel.engberg.lists@pyret.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.engberg.lists@pyret. | |net --- Comment #16 from daniel.engberg.lists@pyret.net --- If you want to build pkg (for now)... make -DWITH_DEBUG install clean Hardware: Ubnt EdgeRouter Lite FreeBSD 11.0-CURRENT #0 r272938: Sat Oct 11 23:39:28 UTC 2014 -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-mips@FreeBSD.ORG Sat Oct 18 23:00:02 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A61FF126 for ; Sat, 18 Oct 2014 23:00:02 +0000 (UTC) Received: from isis.morrow.me.uk (isis.morrow.me.uk [204.109.63.142]) by mx1.freebsd.org (Postfix) with ESMTP id 649726B8 for ; Sat, 18 Oct 2014 23:00:02 +0000 (UTC) Received: from anubis.morrow.me.uk (unknown [93.89.81.46]) (Authenticated sender: mauzo) by isis.morrow.me.uk (Postfix) with ESMTPSA id B89FF45089 for ; Sat, 18 Oct 2014 22:59:54 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.8.3 isis.morrow.me.uk B89FF45089 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=morrow.me.uk; s=dkim201101; t=1413673195; bh=PAWDCcmJ08OxMjIHLgKvt0ta4cjAqrWva3nCD0c6Vs0=; h=Date:From:To:Subject; b=n3M2rhFaIkCssp1XwQwo81Zhxx+5gBX8faXfKCMmnTrlr6HPcn9CVO+icxjMyOX8C 7ZxVN3gWQoV9QJd+nGGvTBfaLQyfVatw9vpCnNGCN+fK+Ne8P/gETyVArcNbqslotH J3bf6fVEP2PffF3ZF8dZTegMwi3TCAOcoC7FPJhQ= X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.98.4 at isis.morrow.me.uk Received: by anubis.morrow.me.uk (Postfix, from userid 5001) id 832ED15D7B; Sat, 18 Oct 2014 23:59:50 +0100 (BST) Date: Sat, 18 Oct 2014 23:59:50 +0100 From: Ben Morrow To: freebsd-mips@freebsd.org Subject: Trying to get MALTA64 running under qemu Message-ID: <20141018225950.GA12023@anubis.morrow.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2014 23:00:02 -0000 I'm considering buying an ERL to use as a local router, but before I did I thought I'd make sure the ports I want to run work properly with MIPS, so I'm trying to bring up a qemu-system-mips64 instance. I've built world and kernel (using MALTA64) for mips.mips64, and built a disk image following the instructions on the MipsEmulation page on the wiki. The source I am using is a slightly patched 10-STABLE from 2014-09-09; the patches have nothing to do with MIPS. However, when I try to bring qemu up, the system appears to hang after probing the ata devices. Over the course of about 30 seconds the qemu process goes up to 100% of one CPU, and no more output appears on the console. This appears to happen regardless of the disk images I pass to qemu; I've tried passing a UFS image, a file full of zeros, no disks at all, and (just in case) both -hda and -hdc. I've included the boot log below; I'd appreciate any advice. Ben % uname -m amd64 % pkg info -E qemu qemu-0.11.1_16 % qemu-system-mips64 -M malta -kernel yarrow.kernel -hda yarrow.ufs -nographic entry: platform_start() cmd line: yarrow.kernel envp: memsize = 134217728 modetty0 = 38400n8r memsize = 08000000 Cache info: picache_stride = 4096 picache_loopcount = 8 pdcache_stride = 4096 pdcache_loopcount = 8 cpu0: MIPS Technologies processor v160.130 MMU: Standard TLB, 48 entries L1 i-cache: 4 ways of 256 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line Config1=0xdea3519b Physical memory chunk(s): 0x622000 - 0x7ffffff, 127787008 bytes (31198 pages) Maxmem is 0x8000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2014 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 10.1-PRERELEASE #0 3c1e5d7(mauzo/10-S): Sat Oct 18 02:43:24 BST 2014 root@anubis:/usr/obj/mips.mips64/usr/src/sys/MALTA64 mips gcc version 4.2.1 20070831 patched [FreeBSD] Preloaded elf kernel "kernel" at 0xffffffff8061b2c0. real memory = 134217728 (131072K bytes) Physical memory chunk(s): 0x0073f000 - 0x07cadfff, 123138048 bytes (30063 pages) avail memory = 121868288 (116MB) random device not loaded; using insecure entropy mem: null: nfslock: pseudo-device nexus0: gt0: on nexus0 pcib0: on gt0 pci0: on pcib0 pci0: domain=0, physical bus=0 found-> vendor=0x11ab, dev=0x4620, revid=0x10 domain=0, bus=0, slot=0, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=0 map[14]: type Prefetchable Memory, range 32, base 0x1000000, size 24, memory disabled map[18]: type Memory, range 32, base 0x1c000000, size 26, memory disabled map[1c]: type Memory, range 32, base 0x1f000000, size 24, memory disabled map[20]: type Memory, range 32, base 0x14000000, size 26, memory disabled map[24]: type I/O Port, range 32, base 0x14000000, size 26, port disabled pcib0: no IRQ mapping for 0/0/0/1 found-> vendor=0x8086, dev=0x7110, revid=0x00 domain=0, bus=0, slot=10, func=0 class=06-01-00, hdrtype=0x00, mfdev=1 cmdreg=0x0007, statreg=0x0200, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x8086, dev=0x7111, revid=0x00 domain=0, bus=0, slot=10, func=1 class=01-01-80, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[20]: type I/O Port, range 32, base 0, size 4, port disabled found-> vendor=0x8086, dev=0x7112, revid=0x01 domain=0, bus=0, slot=10, func=2 class=0c-03-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=d, irq=0 map[20]: type I/O Port, range 32, base 0, size 5, port disabled pcib0: no IRQ mapping for 0/10/2/4 found-> vendor=0x8086, dev=0x7113, revid=0x03 domain=0, bus=0, slot=10, func=3 class=06-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=0 pcib0: no IRQ mapping for 0/10/3/1 found-> vendor=0x1022, dev=0x2000, revid=0x10 domain=0, bus=0, slot=11, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0007, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x06 (1500 ns), maxlat=0xff (63750 ns) intpin=a, irq=0 map[10]: type I/O Port, range 32, base 0, size 5, enabled map[14]: type Memory, range 32, base 0, size 5, enabled found-> vendor=0x1013, dev=0x00b8, revid=0x00 domain=0, bus=0, slot=18, func=0 class=03-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0003, statreg=0x0000, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[10]: type Prefetchable Memory, range 32, base 0, size 25, enabled map[14]: type Memory, range 32, base 0, size 12, enabled uart0: on obio0 uart0: console (9600,n,8,1) uart0: fast interrupt pci0: at device 10.0 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376 at device 10.1 on pci0 atapci0: Lazy allocation of 0x10 bytes rid 0x20 type 4 at 0x100 ata0: at channel 0 on atapci0 ata1: at channel 1 on atapci0 pci0: at device 10.2 (no driver attached) pci0: at device 10.3 (no driver attached) le0: irq 10 at device 11.0 on pci0 le0: Lazy allocation of 0x20 bytes rid 0x10 type 4 at 0x120 le0: 16 receive buffers, 4 transmit buffers le0: bpf attached le0: Ethernet address: 52:54:00:12:34:56 vgapci0: at device 18.0 on pci0 vgapci0: Boot video device clock0: on nexus0 Timecounter "MIPS32" frequency 100000000 Hz quality 800 Event timer "MIPS32" frequency 100000000 Hz quality 800 Device configuration finished. Timecounters tick every 10.000 msec tcp_init: net.inet.tcp.tcbhashsize auto tuned to 2048 lo0: bpf attached ata0: reset tp1 mask=03 ostat0=50 ostat1=00 ata0: stat0=0x50 err=0x01 lsb=0x00 msb=0x00 ata0: stat1=0x00 err=0x00 lsb=0xff msb=0xff ata0: reset tp2 stat0=50 stat1=00 devices=0x1 ata1: reset tp1 mask=03 ostat0=50 ostat1=00 ata1: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: stat1=0x00 err=0x00 lsb=0xff msb=0xff ata1: reset tp2 stat0=00 stat1=00 devices=0x10000 (The emulator hangs at this point. I've left it for over an hour and it just sits there at 100% CPU, making no further progress.)