From owner-freebsd-mips@FreeBSD.ORG Mon May 16 02:05:22 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B895E106564A for ; Mon, 16 May 2011 02:05:22 +0000 (UTC) (envelope-from ehmoeok@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6D2258FC16 for ; Mon, 16 May 2011 02:05:22 +0000 (UTC) Received: by iyj12 with SMTP id 12so4738465iyj.13 for ; Sun, 15 May 2011 19:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to:x-mailer; bh=N2/0Lu8ttWVHj2Fw1bUtBdKoltrfIgwOgw/TrB7bKJw=; b=VjYnvtnhRvlzNn2ouH9LtTALKF3on9B5Yc18k5ns0EqCzTpJYTpn0MHI2MqGvYwuOL XWdBwbxLHC23YtL2k/h9HPnVZftF5IMOyNRcAA/nOOSEHk8MIEZc1C5XO+XC5xrjw8nW LVOa0hKfY0R3WfXK/7H+D1dEMJ4odTqyGpH6w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; b=Z4S3EzmR0uBDW5Dmf/aPau4hIbkJ6X8dWa7l1jSBaO2P9cT8JTRFve3sAwz2Uml17S mOujCEKgCI7fgxe9KwFe/iqMO/Gp/ccsNPHxkRHfHEX1HqqDec0Uyb8VVgHlCRm76mlH FzFVn/OZmfhRgM8xjAW2LODu4zV2Mp8SnYLX4= Received: by 10.42.115.138 with SMTP id k10mr4633745icq.81.1305511521702; Sun, 15 May 2011 19:05:21 -0700 (PDT) Received: from [192.168.1.100] (24-148-20-70.c3-0.stn-ubr3.chi-stn.il.cable.rcn.com [24.148.20.70]) by mx.google.com with ESMTPS id un1sm1821615icb.21.2011.05.15.19.05.18 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 15 May 2011 19:05:19 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary=Apple-Mail-23-786803332 From: Erik Moe In-Reply-To: <70891B7B-238D-4D7F-8475-58B77D0A7274@bluezbox.com> Date: Sun, 15 May 2011 21:05:17 -0500 Message-Id: <22FC61A7-D139-42EB-A04A-CD7DD8FA68B7@gmail.com> References: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com> <4DC9DA05.7050901@freebsd.org> <4DC9E4ED.8070203@freebsd.org> <5BF1630A-DC4C-4301-B27D-61004D238361@gmail.com> <4DCC857C.5050903@freebsd.org> <295FD17B-AED3-4468-8803-BCB78B4B06A1@gmail.com> <50EFCE6E-255B-4EA5-84CA-986D20413D17@gmail.com> <70891B7B-238D-4D7F-8475-58B77D0A7274@bluezbox.com> To: Oleksandr Tymoshenko X-Mailer: Apple Mail (2.1084) Cc: freebsd-mips@freebsd.org Subject: Re: FreeBSD MIPS and RB133c X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2011 02:05:22 -0000 --Apple-Mail-23-786803332 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Yes, I played with this some this weekend. I don't really have the = experience writing drivers for FreeBSD, but I think there was an issue = with synchronization between the top half and the bottom half of the = adm5120 switch driver. I did a lot of experimentation, looked at other = drivers for examples and I came up with a patch that gets the RB133C to = boot the kernel multi-user and mount a root NFS filesystem. RouterBOOT booter 2.18 RouterBoard 133C3 CPU frequency: 175 MHz Memory size: 16 MB Press any key within 6 seconds to enter setup...... trying dhcp protocol... OK resolved mac address 00:0C:29:29:27:66 Gateway: 192.168.11.1 transfer started ........................... transfer ok, time=3D5.52s setting up elf image... OK jumping to kernel code entry: mips_init() Cache info: picache_stride =3D 4096 picache_loopcount =3D 2 pdcache_stride =3D 4096 pdcache_loopcount =3D 2 cpu0: MIPS Technologies processor v11.128 MMU: Standard TLB, 16 entries L1 i-cache: 2 ways of 256 sets, 16 bytes per line L1 d-cache: 2 ways of 256 sets, 16 bytes per line Config1=3D0x1e994c8a Physical memory chunk(s): 0x436000 - 0xffffff, 12361728 bytes (3018 pages) Maxmem is 0x1000000 GDB: debug ports: uart GDB: current port: uart KDB: debugger backends: ddb gdb KDB: current backend: ddb Copyright (c) 1992-2011 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 9.0-CURRENT #72 r221418M: Sun May 15 20:21:23 CDT 2011 = emoe@freebsd.localdomain:/usr/home/emoe/obj/mips/mips.mipsel/usr/home/emoe= /svn/mips/sys/ADM5120.nfs mips WARNING: WITNESS option enabled, expect reduced performance. real memory =3D 16777216 (16384K bytes) Physical memory chunk(s): 0x004c2000 - 0x00f95fff, 11354112 bytes (2772 pages) avail memory =3D 10993664 (10MB) mem: null: nfslock: pseudo-device nexus0: clock0: on nexus0 Timecounter "MIPS32" frequency 175000000 Hz quality 800 Event timer "MIPS32" frequency 175000000 Hz quality 800 obio0 at mem 0-0x1ffffffe on nexus0 admsw0: on obio0 admsw0: ADM5120 Switch Engine, 6 ports admsw0: base Ethernet address 00:0c:42:07:b2:4e admsw0: Ethernet address: 00:0c:42:07:b2:4e admsw1: Ethernet address: 00:0c:42:07:b2:4f admsw2: Ethernet address: 00:0c:42:07:b2:50 admsw3: Ethernet address: 00:0c:42:07:b2:51 admsw4: Ethernet address: 00:0c:42:07:b2:52 admsw5: Ethernet address: 00:0c:42:07:b2:53 uart0: on obio0 uart0: fast interrupt uart0: console (115200,n,8,1) Device configuration finished. Timecounters tick every 10.000 msec bootpc_init: wired to interface 'admsw0' Sending DHCP Discover packet from interface admsw0 (00:0c:42:07:b2:4e) Received DHCP Offer packet on admsw0 from 192.168.11.2 (accepted) (no = root path) Sending DHCP Request packet from interface admsw0 (00:0c:42:07:b2:4e) Received DHCP Ack packet on admsw0 from 192.168.11.2 (accepted) (got = root path) admsw0 at 192.168.11.15 server 192.168.11.2 boot file boot/kernel/kernel subnet mask 255.255.255.0 router 192.168.11.1 rootfs = 192.168.11.2:/usr/home/emoe/nfsroot=20 Adjusted interface admsw0 WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from nfs: []... NFS ROOT: 192.168.11.2:/usr/home/emoe/nfsroot warning: no time-of-day clock registered, system time will not be set = accurately warning: no time-of-day clock registered, system time will not be set = accurately start_init: trying /sbin/init Setting hostuuid: 1c57c506-1dd2-11b2-9a4c-000c4207b24e. Setting hostid: 0xcb6fff12. No suitable dump device was found. Entropy harvesting:. Starting file system checks: mount_nfs: can't update /var/db/mounttab for = 192.168.11.2:/home/emoe/nfsroot Mounting local file systems:. /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). Starting Network: lo0 admsw0 admsw1 admsw2 admsw3 admsw4 admsw5. lo0: flags=3D8049 metric 0 mtu 16384 options=3D3 inet 127.0.0.1 netmask 0xff000000=20 admsw0: flags=3D8843 metric 0 = mtu 1500 ether 00:0c:42:07:b2:4e inet 192.168.11.15 netmask 0xffffff00 broadcast 192.168.11.255 media: Ethernet autoselect (none) status: no carrier admsw1: flags=3D8842 metric 0 mtu = 1500 ether 00:0c:42:07:b2:4f media: Ethernet autoselect (none) status: no carrier admsw2: flags=3D8842 metric 0 mtu = 1500 ether 00:0c:42:07:b2:50 media: Ethernet autoselect (10baseT/UTP) status: active admsw3: flags=3D8842 metric 0 mtu = 1500 ether 00:0c:42:07:b2:51 media: Ethernet autoselect (none) status: no carrier admsw4: flags=3D8842 metric 0 mtu = 1500 ether 00:0c:42:07:b2:52 media: Ethernet autoselect (none) status: no carrier admsw5: flags=3D8842 metric 0 mtu = 1500 ether 00:0c:42:07:b2:53 media: Ethernet autoselect (10baseT/UTP ) status: active Starting devd. Starting Network: admsw1. admsw1: flags=3D8842 metric 0 mtu = 1500 ether 00:0c:42:07:b2:4f media: Ethernet autoselect (none) status: no carrier Starting Network: admsw2. admsw2: flags=3D8842 metric 0 mtu = 1500 ether 00:0c:42:07:b2:50 media: Ethernet autoselect (10baseT/UTP) status: active Starting Network: admsw3. admsw3: flags=3D8842 metric 0 mtu = 1500 ether 00:0c:42:07:b2:51 media: Ethernet autoselect (none) status: no carrier Starting Network: admsw4. admsw4: flags=3D8842 metric 0 mtu = 1500 ether 00:0c:42:07:b2:52 media: Ethernet autoselect (none) status: no carrier Starting Network: admsw5. admsw5: flags=3D8842 metric 0 mtu = 1500 ether 00:0c:42:07:b2:53 media: Ethernet autoselect (10baseT/UTP ) status: active devd: cannot open pid file: Operation not supported Mounting NFS file systems:. Creating and/or trimming log files. Starting syslogd. syslogd: cannot open pid file: Operation not supported /etc/rc: WARNING: Dump device does not exist. Savecore not run. ELF ldconfig path: /lib /usr/lib /usr/lib/compat Clearing /tmp (X related). Updating motd:. Jan 1 00:02:28 sm-mta[1535]: NOQUEUE: SYSERR(root): cannot = flock(/var/run/sendmail.pid, fd=3D5, type=3D6, omode=3D40001, euid=3D0): = Operation not supported Starting cron. cron: can't open or create /var/run/cron.pid: Operation not supported /etc/rc: WARNING: failed to start cron Jan 1 00:02:29 sm-msp-queue[1539]: A0102SMC001537: SYSERR(root): = cannot flock(/var/spool/clientmqueue/sm-client.pid, fd=3D4, type=3D6, = omode=3D40001, euid=3D25): Operation not supported Jan 1 00:02:32 kernel: pid 1535 (sendmail), uid 0, was killed: out of = swap space Starting background file system checks in 60 seconds. Thu Jan 1 00:02:38 UTC 1970 FreeBSD/mips (Amnesiac) (ttyu0) login: root Jan 1 00:09:39 login: ROOT LOGIN (root) ON ttyu0 FreeBSD 9.0-CURRENT (ADM5120.nfs) #72 r221418M: Sun May 15 20:21:23 CDT = 2011 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases = are at http://www.FreeBSD.org/releases/ - always consult the ERRATA = section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. Edit /etc/motd to change this login announcement. # ls .cshrc .login .profile # ls /dev console devctl kmem pci = ttyu0.init ctty fd log stderr = ttyu0.lock cuau0 fido mem stdin zero cuau0.init geom.ctl nfslock stdout cuau0.lock klog null ttyu0 # =20 --Apple-Mail-23-786803332 Content-Disposition: attachment; filename=admsw-hack.diff Content-Type: application/octet-stream; name="admsw-hack.diff" Content-Transfer-Encoding: 7bit Index: if_admsw.c =================================================================== --- if_admsw.c (revision 221418) +++ if_admsw.c (working copy) @@ -89,6 +89,7 @@ #include #include #include +#include #include #include @@ -113,12 +114,31 @@ #include #include -/* TODO: add locking */ -#define ADMSW_LOCK(sc) do {} while(0); -#define ADMSW_UNLOCK(sc) do {} while(0); +typedef enum { + ADMSW_DBG_MII = 0x00000001, + ADMSW_DBG_INTR = 0x00000002, + ADMSW_DBG_TX = 0x00000004, + ADMSW_DBG_RX = 0x00000008, + ADMSW_DBG_ERR = 0x00000010, + ADMSW_DBG_RESET = 0x00000020, +} arge_debug_flags; + +#ifdef ADMSW_DEBUG +#define ADMSWDEBUG(_sc, _m, ...) \ + do { \ + if ((_m) & (_sc)->sc_debug) \ + device_printf((_sc)->sc_dev, __VA_ARGS__); \ + } while (0) +#else +#define ADMSWDEBUG(_sc, _m, ...) +#endif +#define ADMSW_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) +#define ADMSW_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) +#define ADMSW_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sc_mtx, MA_OWNED) + static uint8_t vlan_matrix[SW_DEVS] = { - (1 << 6) | (1 << 0), /* CPU + port0 */ + (1 << 6) | 0x3f, /* CPU + all ports */ (1 << 6) | (1 << 1), /* CPU + port1 */ (1 << 6) | (1 << 2), /* CPU + port2 */ (1 << 6) | (1 << 3), /* CPU + port3 */ @@ -128,6 +148,7 @@ /* ifnet entry points */ static void admsw_start(struct ifnet *); +static void admsw_start_locked(struct ifnet *); static void admsw_watchdog(void *); static int admsw_ioctl(struct ifnet *, u_long, caddr_t); static void admsw_init(void *); @@ -145,7 +166,8 @@ static int admsw_mediachange(struct ifnet *); static void admsw_mediastatus(struct ifnet *, struct ifmediareq *); -static int admsw_intr(void *); +static int admsw_intr_filter(void *); +static void admsw_int_task(void *, int pending); /* bus entry points */ static int admsw_probe(device_t dev); @@ -386,6 +408,14 @@ device_printf(dev, "ADM5120 Switch Engine, %d ports\n", SW_DEVS); sc->ndevs = 0; + mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, + MTX_DEF); + TASK_INIT(&sc->sc_int_task, 0, admsw_int_task, sc); + sc->sc_tq = taskqueue_create_fast("admswtaskq", M_WAITOK, + taskqueue_thread_enqueue, &sc->sc_tq); + taskqueue_start_threads(&sc->sc_tq, 1, PI_NET, "%s taskq", + device_get_nameunit(sc->sc_dev)); + /* XXXMIPS: fix it */ enaddr[0] = 0x00; enaddr[1] = 0x0C; @@ -415,8 +445,9 @@ return (ENXIO); } - if ((error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET, - admsw_intr, NULL, sc, &sc->sc_ih)) != 0) { + error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET | INTR_MPSAFE, + admsw_intr_filter, NULL, sc, &sc->sc_ih); + if (error != 0) { device_printf(dev, "WARNING: unable to register interrupt handler\n"); return (error); @@ -559,8 +590,15 @@ static int admsw_detach(device_t dev) { + struct admsw_softc *sc = (struct admsw_softc *) device_get_softc(dev); + KASSERT(mtx_initialized(&sc->sc_mtx), + ("admsw mutex not initialized")); + printf("TODO: DETACH\n"); + + mtx_destroy(&sc->sc_mtx); + return (0); } @@ -590,6 +628,23 @@ static void admsw_start(struct ifnet *ifp) { + struct admsw_softc *sc; + + sc = ifp->if_softc; + + ADMSW_LOCK(sc); + admsw_start_locked(ifp); + ADMSW_UNLOCK(sc); +} + +/* + * admsw_start_locked: + * + * Start packet transmission on the interface. + */ +static void +admsw_start_locked(struct ifnet *ifp) +{ struct admsw_softc *sc = ifp->if_softc; struct mbuf *m0, *m; struct admsw_descsoft *ds; @@ -599,6 +654,8 @@ int error, nexttx, len, i; static int vlan = 0; + ADMSW_LOCK_ASSERT(sc); + /* * Loop through the send queues, setting up transmit descriptors * unitl we drain the queues, or use up all available transmit @@ -614,9 +671,11 @@ if ((ifp->if_drv_flags & (IFF_DRV_RUNNING|IFF_DRV_OACTIVE)) == IFF_DRV_RUNNING) { /* Grab a packet off the queue. */ - IF_DEQUEUE(&ifp->if_snd, m0); - if (m0 != NULL) - break; + if (!IFQ_DRV_IS_EMPTY(&ifp->if_snd)) { + IFQ_DRV_DEQUEUE(&ifp->if_snd, m0); + if (m0 != NULL) + break; + } } i++; if (i == SW_DEVS) @@ -717,7 +776,7 @@ BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE); REG_WRITE(SEND_TRIG_REG, 1); - /* printf("send slot %d\n",nexttx); */ + ADMSWDEBUG(sc, ADMSW_DBG_TX, "send slot %d\n", nexttx); /* * Store a pointer to the packet so we can free it later. @@ -779,9 +838,10 @@ ifp = sc->sc_ifnet[0]; /* Try to get more packets going. */ - admsw_start(ifp); + /* admsw_start_locked(ifp); */ } + /* * admsw_ioctl: [ifnet interface function] * @@ -794,8 +854,6 @@ struct ifdrv *ifd; int error, port; - ADMSW_LOCK(sc); - switch (cmd) { case SIOCSIFMEDIA: case SIOCGIFMEDIA: @@ -825,7 +883,9 @@ } else { error = copyin(ifd->ifd_data, vlan_matrix, sizeof(vlan_matrix)); + ADMSW_LOCK(sc); admsw_setvlan(sc, vlan_matrix); + ADMSW_UNLOCK(sc); } break; @@ -843,43 +903,70 @@ } /* Try to get more packets going. */ - admsw_start(ifp); + /* admsw_start(ifp); */ - ADMSW_UNLOCK(sc); return (error); } - /* - * admsw_intr: + * admsw_intr_filter: * - * Interrupt service routine. + * Interrupt filter routine. */ static int -admsw_intr(void *arg) +admsw_intr_filter(void *arg) { struct admsw_softc *sc = arg; - uint32_t pending; + uint32_t status; - pending = REG_READ(ADMSW_INT_ST); - REG_WRITE(ADMSW_INT_ST, pending); + status = REG_READ(ADMSW_INT_ST); - if (sc->ndevs == 0) - return (FILTER_STRAY); + ADMSWDEBUG(sc, ADMSW_DBG_INTR, "intr status = (%b)\n", status, + "\20\4RXLD\3RXHD\2SLD\1SHD"); - if ((pending & ADMSW_INTR_RHD) != 0) + if (status & INT_MASK) { + REG_WRITE(ADMSW_INT_MASK, INT_MASK); + taskqueue_enqueue(sc->sc_tq, &sc->sc_int_task); + return(FILTER_HANDLED); + } + + return (FILTER_STRAY); +} + +/* + * admsw_int_task: + * + * Interrupt task routine. + */ +static void +admsw_int_task(void *arg, int pending) +{ + struct admsw_softc *sc = arg; + uint32_t status; + + ADMSW_LOCK(sc); + + status = REG_READ(ADMSW_INT_ST); + REG_WRITE(ADMSW_INT_ST, status); + + if ((status & ADMSW_INTR_RHD) != 0) admsw_rxintr(sc, 1); - if ((pending & ADMSW_INTR_RLD) != 0) + if ((status & ADMSW_INTR_RLD) != 0) admsw_rxintr(sc, 0); - if ((pending & ADMSW_INTR_SHD) != 0) + if ((status & ADMSW_INTR_SHD) != 0) admsw_txintr(sc, 1); - if ((pending & ADMSW_INTR_SLD) != 0) + if ((status & ADMSW_INTR_SLD) != 0) admsw_txintr(sc, 0); - return (FILTER_HANDLED); + REG_WRITE(ADMSW_INT_MASK, REG_READ(ADMSW_INT_MASK) & + ~(ADMSW_INTR_SHD | ADMSW_INTR_SLD | + ADMSW_INTR_RHD | ADMSW_INTR_RLD | + ADMSW_INTR_HDF | ADMSW_INTR_LDF)); + + ADMSW_UNLOCK(sc); } /* @@ -896,7 +983,10 @@ int i, vlan; int gotone = 0; - /* printf("txintr: txdirty: %d, txfree: %d\n",sc->sc_txdirty, sc->sc_txfree); */ + ADMSW_LOCK_ASSERT(sc); + + ADMSWDEBUG(sc, ADMSW_DBG_TX, "txdirty: %d, txfree: %d\n", + sc->sc_txdirty, sc->sc_txfree); for (i = sc->sc_txdirty; sc->sc_txfree != ADMSW_NTXLDESC; i = ADMSW_NEXTTXL(i)) { @@ -922,7 +1012,7 @@ panic("admsw_txintr: bad vlan\n"); ifp = sc->sc_ifnet[vlan]; gotone = 1; - /* printf("clear tx slot %d\n",i); */ + ADMSWDEBUG(sc, ADMSW_DBG_TX, "clear tx slot %d\n",i); ifp->if_opackets++; @@ -937,7 +1027,7 @@ ifp = sc->sc_ifnet[0]; /* Try to queue more packets. */ - admsw_start(ifp); + admsw_start_locked(ifp); /* * If there are no more pending transmissions, @@ -948,7 +1038,8 @@ } - /* printf("txintr end: txdirty: %d, txfree: %d\n",sc->sc_txdirty, sc->sc_txfree); */ + ADMSWDEBUG(sc, ADMSW_DBG_TX, "end: txdirty: %d, txfree: %d\n", + sc->sc_txdirty, sc->sc_txfree); } /* @@ -965,7 +1056,7 @@ uint32_t stat; int i, len, port, vlan; - /* printf("rxintr\n"); */ + ADMSW_LOCK_ASSERT(sc); if (high) panic("admsw_rxintr: high priority packet\n"); @@ -1025,7 +1116,7 @@ break; } - /* printf("process slot %d\n",i); */ + ADMSWDEBUG(sc, ADMSW_DBG_RX, "process slot %d\n",i); bus_dmamap_sync(sc->sc_bufs_dmat, ds->ds_dmamap, BUS_DMASYNC_POSTREAD); @@ -1064,7 +1155,9 @@ BPF_MTAP(ifp, m); /* Pass it on. */ + ADMSW_UNLOCK(sc); (*ifp->if_input)(ifp, m); + ADMSW_LOCK(sc); ifp->if_ipackets++; } --Apple-Mail-23-786803332 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On May 12, 2011, at 10:47 PM, Oleksandr Tymoshenko wrote: > This one looks like problem in IRQ handling - corrupted function = pointer or=20 > something :( I need to review all code to refresh it in my memory. It = was=20 > first MIPS platfrom I've been working on and I guess there are a lot = of bugs.=20 >=20 >=20 > On 2011-05-12, at 8:06 PM, Erik Moe wrote: >=20 >> I've been doing a little hacking of my own, trying to understand the = issue. I'm pretty sure what I'm doing is wrong, but I've actually = gotten to the point where the kernel mounts the NFS root filesystem = before i panics.=20 >>=20 >> --- if_admsw.c.orig 2011-05-12 13:16:43.000000000 -0500 >> +++ if_admsw.c 2011-05-12 13:18:04.000000000 -0500 >> @@ -118,7 +118,7 @@ >> #define ADMSW_UNLOCK(sc) do {} while(0); >>=20 >> static uint8_t vlan_matrix[SW_DEVS] =3D { >> - (1 << 6) | (1 << 0), /* CPU + port0 */ >> + (1 << 6) | 0x3f, /* CPU + all ports */ >> (1 << 6) | (1 << 1), /* CPU + port1 */ >> (1 << 6) | (1 << 2), /* CPU + port2 */ >> (1 << 6) | (1 << 3), /* CPU + port3 */ >> @@ -779,7 +779,7 @@ >> ifp =3D sc->sc_ifnet[0]; >>=20 >> /* Try to get more packets going. */ >> - admsw_start(ifp); >> + /* admsw_start(ifp); */ >> } >>=20 >> /* >> @@ -843,7 +843,7 @@ >> } >>=20 >> /* Try to get more packets going. */ >> - admsw_start(ifp); >> + /* admsw_start(ifp); */ >>=20 >> ADMSW_UNLOCK(sc); >> return (error); >> @@ -937,7 +937,7 @@ >> ifp =3D sc->sc_ifnet[0]; >>=20 >> /* Try to queue more packets. */ >> - admsw_start(ifp); >> + /* admsw_start(ifp); */ >>=20 >> /* >> * If there are no more pending transmissions, >>=20 >> RouterBOOT booter 2.18 >>=20 >> RouterBoard 133C3 >>=20 >> CPU frequency: 175 MHz >> Memory size: 16 MB >>=20 >> Press any key within 6 seconds to enter setup...... >> trying dhcp protocol... OK >> resolved mac address 00:0C:29:29:27:66 >> Gateway: 192.168.11.1 >> transfer started ........................... transfer ok, time=3D5.52s >> setting up elf image... OK >> jumping to kernel code >> entry: mips_init() >> Cache info: >> picache_stride =3D 4096 >> picache_loopcount =3D 2 >> pdcache_stride =3D 4096 >> pdcache_loopcount =3D 2 >> cpu0: MIPS Technologies processor v11.128 >> MMU: Standard TLB, 16 entries >> L1 i-cache: 2 ways of 256 sets, 16 bytes per line >> L1 d-cache: 2 ways of 256 sets, 16 bytes per line >> Config1=3D0x1e994c8a >> Physical memory chunk(s): >> 0x2d6000 - 0xffffff, 13803520 bytes (3370 pages) >> Maxmem is 0x1000000 >> GDB: debug ports: uart >> GDB: current port: uart >> KDB: debugger backends: ddb gdb >> KDB: current backend: ddb >> Copyright (c) 1992-2011 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 9.0-CURRENT #40 r221418M: Thu May 12 13:20:24 CDT 2011 >> = emoe@freebsd.localdomain:/usr/home/emoe/obj/mips/mips.mipsel/usr/home/emoe= /svn/mips/sys/ADM5120.nfs mips >> real memory =3D 16777216 (16384K bytes) >> Physical memory chunk(s): >> 0x00362000 - 0x00f8efff, 12767232 bytes (3117 pages) >> avail memory =3D 12513280 (11MB) >> mem: >> null: >> nfslock: pseudo-device >> nexus0: >> clock0: on nexus0 >> Timecounter "MIPS32" frequency 175000000 Hz quality 800 >> Event timer "MIPS32" frequency 175000000 Hz quality 800 >> obio0 at mem 0-0x1ffffffe on nexus0 >> admsw0: on obio0 >> admsw0: ADM5120 Switch Engine, 6 ports >> admsw0: base Ethernet address 00:0c:42:07:b2:4e >> admsw0: Ethernet address: 00:0c:42:07:b2:4e >> admsw1: Ethernet address: 00:0c:42:07:b2:4f >> admsw2: Ethernet address: 00:0c:42:07:b2:50 >> admsw3: Ethernet address: 00:0c:42:07:b2:51 >> admsw4: Ethernet address: 00:0c:42:07:b2:52 >> admsw5: Ethernet address: 00:0c:42:07:b2:53 >> uart0: on obio0 >> uart0: fast interrupt >> uart0: console (115200,n,8,1) >> Device configuration finished. >> Timecounters tick every 10.000 msec >> bootpc_init: wired to interface 'admsw0' >> Sending DHCP Discover packet from interface admsw0 = (00:0c:42:07:b2:4e) >> Received DHCP Offer packet on admsw0 from 192.168.11.2 (accepted) (no = root path) >> Sending DHCP Request packet from interface admsw0 (00:0c:42:07:b2:4e) >> Received DHCP Ack packet on admsw0 from 192.168.11.2 (accepted) (got = root path) >> admsw0 at 192.168.11.15 server 192.168.11.2 boot file = boot/kernel/kernel >> subnet mask 255.255.255.0 router 192.168.11.1 rootfs = 192.168.11.2:/usr/home/emoe/nfsroot=20 >> Adjusted interface admsw0 >> Trying to mount root from nfs: []... >> NFS ROOT: 192.168.11.2:/usr/home/emoe/nfsroot >> warning: no time-of-day clock registered, system time will not be set = accurately >> warning: no time-of-day clock registered, system time will not be set = accurately >> start_init: trying /sbin/init >> Setting hostuuid: 1c57c506-1dd2-11b2-9a4c-000c4207b24e. >> Setting hostid: 0xcb6fff12. >> No suitable dump device was found. >> Entropy harvesting:. >> Starting file system checks: >> mount_nfs: can't update /var/db/mounttab for = 192.168.11.2:/home/emoe/nfsroot >> Mounting local file systems:. >> /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). >> Starting Network: lo0 admsw0 admsw1 admsw2 admsw3 admsw4 admsw5. >> lo0: flags=3D8049 metric 0 mtu 16384 >> options=3D3 >> inet 127.0.0.1 netmask 0xff000000=20 >> admsw0: flags=3D8843 metric 0 = mtu 1500 >> ether 00:0c:42:07:b2:4e >> inet 192.168.11.15 netmask 0xffffff00 broadcast 192.168.11.255 >> media: Ethernet autoselect (none) >> status: no carrier >> admsw1: flags=3D8842 metric 0 = mtu 1500 >> ether 00:0c:42:07:b2:4f >> media: Ethernet autoselect (none) >> status: no carrier >> admsw2: flags=3D8842 metric 0 = mtu 1500 >> ether 00:0c:42:07:b2:50 >> media: Ethernet autoselect (10baseT/UTP) >> status: active >> admsw3: flags=3D8842 metric 0 = mtu 1500 >> ether 00:0c:42:07:b2:51 >> media: Ethernet autoselect (none) >> status: no carrier >> admsw4: flags=3D8842 metric 0 = mtu 1500 >> ether 00:0c:42:07:b2:52 >> media: Ethernet autoselect (none) >> status: no carrier >> admsw5: flags=3D8842 metric 0 = mtu 1500 >> ether 00:0c:42:07:b2:53 >> media: Ethernet autoselect (10baseT/UTP ) >> status: active >> Starting devd. >> Starting Network: admsw1. >> admsw1: flags=3D8842 metric 0 = mtu 1500 >> ether 00:0c:42:07:b2:4f >> media: Ethernet autoselect (none) >> status: no carrier >> Starting Network: admsw2. >> admsw2: flags=3D8842 metric 0 = mtu 1500 >> ether 00:0c:42:07:b2:50 >> media: Ethernet autoselect (10baseT/UTP) >> status: active >> Starting Network: admsw3. >> admsw3: flags=3D8842 metric 0 = mtu 1500 >> ether 00:0c:42:07:b2:51 >> media: Ethernet autoselect (none) >> status: no carrier >> Starting Network: admsw4. >> admsw4: flags=3D8842 metric 0 = mtu 1500 >> ether 00:0c:42:07:b2:52 >> media: Ethernet autoselect (none) >> status: no carrier >> Starting Network: admsw5. >> admsw5: flags=3D8842 metric 0 = mtu 1500 >> ether 00:0c:42:07:b2:53 >> media: Ethernet autoselect (10baseT/UTP ) >> status: active >> devd: cannot open pid file: Operation not supported >> panic: _mtx_lock_sleep: recursed on non-recursive mutex mbuf @ = /usr/home/emoe/svn/mips/sys/vm/uma_core.c:2010 >>=20 >> KDB: enter: panic >> [ thread pid 1053 tid 100029 ] >> Stopped at kdb_enter+0x4c: lui at,0x802c >> db> bt >> Tracing pid 1053 tid 100029 td 0x8047e600 >> db_trace_thread+30 (?,?,?,?) ra 800030b0 sp c03e0ee0 sz 24 >> 80002f9c+114 (0,?,ffffffff,?) ra 8000266c sp c03e0ef8 sz 32 >> 800022e4+388 (?,?,?,?) ra 800027f0 sp c03e0f18 sz 168 >> db_command_loop+70 (?,?,?,?) ra 80004e34 sp c03e0fc0 sz 24 >> 80004d40+f4 (?,?,?,?) ra 80100a6c sp c03e0fd8 sz 424 >> kdb_trap+104 (?,?,?,?) ra 801fec20 sp c03e1180 sz 40 >> trap+b98 (?,?,?,?) ra 801f6c70 sp c03e11a8 sz 168 >> MipsKernGenException+134 (0,a,802e5fe4,109) ra 80100cf8 sp c03e1250 = sz 200 >> kdb_enter+4c (?,?,?,?) ra 800c9c74 sp c03e1318 sz 24 >> panic+f4 (?,8023f064,8024dea0,7da) ra 800ba01c sp c03e1330 sz 40 >> _mtx_lock_sleep+68 (?,?,?,?) ra 800ba260 sp c03e1358 sz 32 >> _mtx_lock_flags+104 (?,?,?,?) ra 801d2fd0 sp c03e1378 sz 32 >> uma_zalloc_arg+104 (80ffa470,c03e1408,1,?) ra 80214c14 sp c03e1398 sz = 80 >> 80214b98+7c (?,?,?,?) ra 8021510c sp c03e13e8 sz 64 >> 80214e94+278 (?,?,?,?) ra 80215328 sp c03e1428 sz 56 >> 8021527c+ac (?,?,?,?) ra 800a24fc sp c03e1460 sz 40 >> intr_event_handle+98 (?,?,?,?) ra 802162e0 sp c03e1488 sz 48 >> 8021627c+64 (?,?,?,?) ra 800a24fc sp c03e14b8 sz 32 >> intr_event_handle+98 (?,?,?,?) ra 802180f4 sp c03e14d8 sz 48 >> cpu_intr+184 (c03e1558,?,?,?) ra 801f714c sp c03e1508 sz 56 >> MipsKernIntr+134 (80ffa460,0,80451000,9f5) ra 801d3c38 sp c03e1540 sz = 200 >> uma_dbg_free+1c (?,?,?,?) ra 801d2a78 sp c03e1608 sz 48 >> uma_zfree_arg+98 (?,?,?,?) ra 8012f428 sp c03e1638 sz 64 >> sbcompress+270 (?,?,?,?) ra 8012f750 sp c03e1678 sz 40 >> sbappendstream_locked+70 (?,?,?,?) ra 8012f7b0 sp c03e16a0 sz 32 >> sbappendstream+44 (?,?,?,?) ra 801b3f94 sp c03e16c0 sz 32 >> 801b3e58+13c (?,?,?,?) ra 80134348 sp c03e16e0 sz 56 >> sosend_generic+4a8 (?,0,?,?) ra 8013048c sp c03e1718 sz 104 >> sosend+34 (?,?,?,?) ra 801bf5cc sp c03e1780 sz 40 >> 801bf134+498 (?,?,6,80452300) ra 801be568 sp c03e17a8 sz 192 >> 801bdfb0+5b8 (805840e0,?,6,80452300) ra 800266d8 sp c03e1868 sz 104 >> newnfs_request+d94 (?,?,0,?) ra 8006060c sp c03e18d0 sz 184 >> nfscl_request+80 (?,?,?,?) ra 80049ba4 sp c03e1988 sz 56 >> nfsrpc_read+4fc (?,?,?,8047e600) ra 80059224 sp c03e19c0 sz 288 >> ncl_readrpc+38 (80484d20,?,?,?) ra 8006518c sp c03e1ae0 sz 232 >> ncl_getpages+310 (?,?,?,?) ra 80219b84 sp c03e1bc8 sz 112 >> VOP_GETPAGES_APV+d4 (?,?,?,?) ra 801f12c8 sp c03e1c38 sz 24 >> 801f1204+c4 (?,?,?,?) ra 801d622c sp c03e1c50 sz 80 >> vm_fault_hold+fb8 (8042a1e0,4059b000,1,0) ra 801d7220 sp c03e1ca0 sz = 280 >> vm_fault+14 (?,?,?,?) ra 801fe5a4 sp c03e1db8 sz 32 >> trap+51c (?,?,?,?) ra 801f6e6c sp c03e1dd8 sz 168 >> MipsUserGenException+10c (?,?,?,4059b670) ra 0 sp c03e1e80 sz 0 >> pid 1053 >> db>=20 >>=20 >>=20 >>=20 >>=20 >=20 --Apple-Mail-23-786803332-- From owner-freebsd-mips@FreeBSD.ORG Mon May 16 02:08:18 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F321D106564A for ; Mon, 16 May 2011 02:08:18 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id A43758FC0A for ; Mon, 16 May 2011 02:08:18 +0000 (UTC) Received: by yie12 with SMTP id 12so1601188yie.13 for ; Sun, 15 May 2011 19:08:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=J6275ZBHUi3o+i5fyKTF7GSFartoBhjz7LiLOh1VSVY=; b=G/DfDns1YRtF5D9TZel3MuA+Frzcb1M5HlieCSyLACrN0kUj67RPnYgkhBF791LIVn viYDznGT8tvPEKDqMSDHnDsjWG8YRDKjcIE9Iv947O9Vo/QaDYilAyyL+KyLSWhobWLP YTr3547PjZPRtUIXMe5F+NLbPuVkkFu5/hlbg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=tztSS8VhXuhKcBlqYmPA9pA3isTgNrTXWyJnDKZvV4O8N12IT8f2eweDvsSPZ0T81c 7FK5wXy9l+dSFBxv6I3eCrTsOvutSQzfjL8IZzFKLTirJVrwe5daZMENUKZ9Byh/QVlS X+ghS4BptlXQXSKyGsCZfGRiShuUQjPHAumbc= MIME-Version: 1.0 Received: by 10.150.14.13 with SMTP id 13mr3134098ybn.438.1305511697619; Sun, 15 May 2011 19:08:17 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.91.12 with HTTP; Sun, 15 May 2011 19:08:17 -0700 (PDT) In-Reply-To: <22FC61A7-D139-42EB-A04A-CD7DD8FA68B7@gmail.com> References: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com> <4DC9DA05.7050901@freebsd.org> <4DC9E4ED.8070203@freebsd.org> <5BF1630A-DC4C-4301-B27D-61004D238361@gmail.com> <4DCC857C.5050903@freebsd.org> <295FD17B-AED3-4468-8803-BCB78B4B06A1@gmail.com> <50EFCE6E-255B-4EA5-84CA-986D20413D17@gmail.com> <70891B7B-238D-4D7F-8475-58B77D0A7274@bluezbox.com> <22FC61A7-D139-42EB-A04A-CD7DD8FA68B7@gmail.com> Date: Mon, 16 May 2011 10:08:17 +0800 X-Google-Sender-Auth: 7WZ2_pcLkARCiTqZRjmpUp7hlew Message-ID: From: Adrian Chadd To: Erik Moe Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: FreeBSD MIPS and RB133c X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2011 02:08:19 -0000 On 16 May 2011 10:05, Erik Moe wrote: > Yes, I played with this some this weekend. =A0I don't really have the exp= erience writing drivers for FreeBSD, but I think there was an issue with sy= nchronization between the top half and the bottom half of the adm5120 switc= h driver. =A0I did a lot of experimentation, looked at other drivers for ex= amples and I came up with a patch that gets the RB133C to boot the kernel m= ulti-user and mount a root NFS filesystem. > Hey, great work! I Hope you and Gonzo can figure out exactly what is needed to commit to -HEAD so this port can be made to work. ;) Adrian From owner-freebsd-mips@FreeBSD.ORG Tue May 17 20:59:53 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B805106566C; Tue, 17 May 2011 20:59:53 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 2F1EB8FC13; Tue, 17 May 2011 20:59:53 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.4) with ESMTP id p4HKxq2g067189; Tue, 17 May 2011 16:59:52 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.4/Submit) id p4HKxqSs067188; Tue, 17 May 2011 20:59:52 GMT (envelope-from tinderbox@freebsd.org) Date: Tue, 17 May 2011 20:59:52 GMT Message-Id: <201105172059.p4HKxqSs067188@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2011 20:59:53 -0000 TB --- 2011-05-17 20:39:59 - tinderbox 2.7 running on freebsd-current.sentex.ca TB --- 2011-05-17 20:39:59 - starting HEAD tinderbox run for mips/mips TB --- 2011-05-17 20:39:59 - cleaning the object tree TB --- 2011-05-17 20:40:06 - cvsupping the source tree TB --- 2011-05-17 20:40:06 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2011-05-17 20:40:19 - building world TB --- 2011-05-17 20:40:19 - MAKEOBJDIRPREFIX=/obj TB --- 2011-05-17 20:40:19 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2011-05-17 20:40:19 - TARGET=mips TB --- 2011-05-17 20:40:19 - TARGET_ARCH=mips TB --- 2011-05-17 20:40:19 - TZ=UTC TB --- 2011-05-17 20:40:19 - __MAKE_CONF=/dev/null TB --- 2011-05-17 20:40:19 - cd /src TB --- 2011-05-17 20:40:19 - /usr/bin/make -B buildworld >>> World build started on Tue May 17 20:40:19 UTC 2011 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] cc -O -pipe -G0 -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c /src/lib/libsbuf/../../sys/kern/subr_sbuf.c building static sbuf library ranlib libsbuf.a cat /src/lib/libsbuf/Symbol.map | cpp - - | awk -v vfile=/src/lib/libsbuf/Version.def -f /src/share/mk/version_gen.awk > Version.map File /src/lib/libsbuf/Version.def: Unknown directive: `/*'. File /src/lib/libsbuf/Version.def: Unknown directive: `* $FreeBSD: src/lib/libsbuf/Version.def,v 1.1 2011/05/17 17:37:58 phk Exp $'. File /src/lib/libsbuf/Version.def: Unknown directive: `*/'. 3 error(s) total. *** Error code 1 Stop in /src/lib/libsbuf. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2011-05-17 20:59:52 - WARNING: /usr/bin/make returned exit code 1 TB --- 2011-05-17 20:59:52 - ERROR: failed to build world TB --- 2011-05-17 20:59:52 - 840.77 user 218.09 system 1192.66 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Wed May 18 00:26:26 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 758131065673 for ; Wed, 18 May 2011 00:26:26 +0000 (UTC) (envelope-from gonzo@launchpad.bluezbox.com) Received: from launchpad.bluezbox.com (hq.bluezbox.com [70.38.37.145]) by mx1.freebsd.org (Postfix) with ESMTP id 33D418FC0C for ; Wed, 18 May 2011 00:26:25 +0000 (UTC) Received: from localhost ([127.0.0.1]) by launchpad.bluezbox.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.73 (FreeBSD)) (envelope-from ) id 1QMUal-000Gqg-EC for freebsd-mips@freebsd.org; Tue, 17 May 2011 17:26:24 -0700 Message-ID: <4DD31231.5010000@freebsd.org> Date: Tue, 17 May 2011 17:26:25 -0700 From: Oleksandr Tymoshenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-mips@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: gonzo@launchpad.bluezbox.com X-Spam-Level: ---- X-Spam-Report: Spam detection software, running on the system "hq.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 15/04/2011 9:12 AM, Artem Belevich wrote: > On Fri, Apr 15, 2011 at 5:26 AM, Andrew Duane wrote: >> I'm assuming it's a change to "ld", but it could be one of the directive scripts. I spent yesterday combing changes to the tree, and looking for any files that could have caused this. I came up empty, but then I'm not really sure what I'm looking for. Is there a toolchain person who might know? There's a good person here at Juniper, but he's on California time.... > > Pass --verbose to linker and see what's in the linker script it uses. > I suspect the issue may be somewhere there. > You can then tweak the linker script, put .interp in the right place > and pass the new script to linker with -T. > > That should get you by until proper toolchain fix is available. [...] Content analysis details: (-4.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Subject: Re: Trouble with dynamic executables X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 00:26:26 -0000 On 15/04/2011 9:12 AM, Artem Belevich wrote: > On Fri, Apr 15, 2011 at 5:26 AM, Andrew Duane wrote: >> I'm assuming it's a change to "ld", but it could be one of the directive scripts. I spent yesterday combing changes to the tree, and looking for any files that could have caused this. I came up empty, but then I'm not really sure what I'm looking for. Is there a toolchain person who might know? There's a good person here at Juniper, but he's on California time.... > > Pass --verbose to linker and see what's in the linker script it uses. > I suspect the issue may be somewhere there. > You can then tweak the linker script, put .interp in the right place > and pass the new script to linker with -T. > > That should get you by until proper toolchain fix is available. This patch should fix it: http://people.freebsd.org/~gonzo/patches/elf64.diff This bug was introduced due to some change in ldscripts generation logic. I'm not sure if it's proper fix. May be someone with better toolchain knowledge will suggest something better. From owner-freebsd-mips@FreeBSD.ORG Wed May 18 13:16:55 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37D90106564A; Wed, 18 May 2011 13:16:55 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og117.obsmtp.com (exprod7og117.obsmtp.com [64.18.2.6]) by mx1.freebsd.org (Postfix) with ESMTP id A6FD18FC13; Wed, 18 May 2011 13:16:54 +0000 (UTC) Received: from P-EMHUB02-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob117.postini.com ([64.18.6.12]) with SMTP ID DSNKTdPGxVtaI1iGQXr+hx15JcUioe55rQxQ@postini.com; Wed, 18 May 2011 06:16:54 PDT Received: from p-emfe01-wf.jnpr.net (172.28.145.24) by P-EMHUB02-HQ.jnpr.net (172.24.192.36) with Microsoft SMTP Server (TLS) id 8.2.254.0; Wed, 18 May 2011 05:59:24 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe01-wf.jnpr.net ([fe80::d0d1:653d:5b91:a123%11]) with mapi; Wed, 18 May 2011 08:59:23 -0400 From: Andrew Duane To: Oleksandr Tymoshenko , "freebsd-mips@freebsd.org" Date: Wed, 18 May 2011 08:59:21 -0400 Thread-Topic: Trouble with dynamic executables Thread-Index: AcwU8kGe2cK0iQNIStOTbzxOqJXEpQAaPnbw Message-ID: References: <4DD31231.5010000@freebsd.org> In-Reply-To: <4DD31231.5010000@freebsd.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: RE: Trouble with dynamic executables X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 13:16:55 -0000 Thanks! I will try this patch out as soon as I get a chance. I had to repur= pose my boot disk, but I can get it back today. One question: I assume the new INITIAL_READONLY_SECTIONS statement is suppo= sed to be one line? The .diff file shows it broken up into three lines. But= I am betting that's just line wrap from some tool. =A0................................... Andrew Duane Juniper Networks o=A0=A0=A0+1 978 589 0551 m=A0 +1 603-770-7088 aduane@juniper.net =A0 -----Original Message----- From: owner-freebsd-mips@freebsd.org [mailto:owner-freebsd-mips@freebsd.org= ] On Behalf Of Oleksandr Tymoshenko Sent: Tuesday, May 17, 2011 8:26 PM To: freebsd-mips@freebsd.org Subject: Re: Trouble with dynamic executables On 15/04/2011 9:12 AM, Artem Belevich wrote: > On Fri, Apr 15, 2011 at 5:26 AM, Andrew Duane wrote: >> I'm assuming it's a change to "ld", but it could be one of the directive= scripts. I spent yesterday combing changes to the tree, and looking for an= y files that could have caused this. I came up empty, but then I'm not real= ly sure what I'm looking for. Is there a toolchain person who might know? T= here's a good person here at Juniper, but he's on California time.... > > Pass --verbose to linker and see what's in the linker script it uses. > I suspect the issue may be somewhere there. > You can then tweak the linker script, put .interp in the right place > and pass the new script to linker with -T. > > That should get you by until proper toolchain fix is available. This patch should fix it: http://people.freebsd.org/~gonzo/patches/elf64.diff This bug was introduced due to some change in ldscripts generation logic. I'm not sure if it's proper fix. May be someone with better toolchain knowledge will suggest something better. _______________________________________________ freebsd-mips@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mips To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@FreeBSD.ORG Wed May 18 18:59:36 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 094F81065670 for ; Wed, 18 May 2011 18:59:36 +0000 (UTC) (envelope-from gonzo@launchpad.bluezbox.com) Received: from launchpad.bluezbox.com (hq.bluezbox.com [70.38.37.145]) by mx1.freebsd.org (Postfix) with ESMTP id C3B008FC13 for ; Wed, 18 May 2011 18:59:35 +0000 (UTC) Received: from localhost ([127.0.0.1]) by launchpad.bluezbox.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.73 (FreeBSD)) (envelope-from ) id 1QMly0-000MiS-UP; Wed, 18 May 2011 11:59:33 -0700 Message-ID: <4DD41715.2050203@freebsd.org> Date: Wed, 18 May 2011 11:59:33 -0700 From: Oleksandr Tymoshenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Andrew Duane References: <4DD31231.5010000@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: gonzo@launchpad.bluezbox.com X-Spam-Level: ---- X-Spam-Report: Spam detection software, running on the system "hq.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 18/05/2011 5:59 AM, Andrew Duane wrote: > Thanks! I will try this patch out as soon as I get a chance. I had to repurpose my boot disk, but I can get it back today. > Not really. It can be multiline. Though it's the only place where this variable is used and I'm not completely sure it's really required there. As a workaround it worked for me, but proper fix will require more svn history digging. [...] Content analysis details: (-4.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Cc: "freebsd-mips@freebsd.org" Subject: Re: Trouble with dynamic executables X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 18:59:36 -0000 On 18/05/2011 5:59 AM, Andrew Duane wrote: > Thanks! I will try this patch out as soon as I get a chance. I had to repurpose my boot disk, but I can get it back today. > Not really. It can be multiline. Though it's the only place where this variable is used and I'm not completely sure it's really required there. As a workaround it worked for me, but proper fix will require more svn history digging. From owner-freebsd-mips@FreeBSD.ORG Fri May 20 17:49:54 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 489E4106564A for ; Fri, 20 May 2011 17:49:54 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og122.obsmtp.com (exprod7og122.obsmtp.com [64.18.2.22]) by mx1.freebsd.org (Postfix) with ESMTP id C1E4D8FC13 for ; Fri, 20 May 2011 17:49:53 +0000 (UTC) Received: from P-EMHUB01-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob122.postini.com ([64.18.6.12]) with SMTP ID DSNKTdapwHqKzW7Q0uY/ib1zHrIYG54SGqIQ@postini.com; Fri, 20 May 2011 10:49:53 PDT Received: from p-emfe02-wf.jnpr.net (172.28.145.25) by P-EMHUB01-HQ.jnpr.net (172.24.192.35) with Microsoft SMTP Server (TLS) id 8.2.254.0; Fri, 20 May 2011 10:46:08 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe02-wf.jnpr.net ([fe80::c126:c633:d2dc:8090%11]) with mapi; Fri, 20 May 2011 13:46:07 -0400 From: Andrew Duane To: "mips@freebsd.org" Date: Fri, 20 May 2011 13:46:07 -0400 Thread-Topic: Two repeatable panics on CURRENT Thread-Index: AcwXFcwZTwVcf4QjTbqfgjYq28DLHQ== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: Two repeatable panics on CURRENT X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 17:49:54 -0000 I'm almost finished bringing up -CURRENT on my octeon blade, but have two p= erfectly repeatable panics that I could use some help sorting out. Like clockwork, in 5 minutes or so, I get: panic: sched_priority: invalid priority 224: nice 0, ticks 1735208 ftick 1= 2676621 ltick 12677623 tick pri 52 That is difficult, because there's really no time to log in or do much of a= nything. Also, when I halt the system: Waiting (max 60 seconds) for system process `vnlru' to stop...done Waiting (max 60 seconds) for system process `bufdaemon' to stop...done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining...0 0 timed out All buffers synced. 2: lock order reversal: 0 1st 0x9800000001e23bd8 ufs (ufs) @ /aduane/FreeBSDCurrent/src/sys/kern/= vfs_mount.c:1190 3=09 2nd 0x9800000001eaa458 devfs (devfs) @ /aduane/FreeBSDCurrent/src/sys/ker= n/vfs_subr.c:0 2134 This is with WITNESS turned on. I may turn it off for now, but does someone= know about this? -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr aduane@juniper.net Westford, MA 01886-3418 =20 From owner-freebsd-mips@FreeBSD.ORG Fri May 20 17:53:39 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05686106564A for ; Fri, 20 May 2011 17:53:39 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id CE0428FC13 for ; Fri, 20 May 2011 17:53:38 +0000 (UTC) Received: by iyj12 with SMTP id 12so4444805iyj.13 for ; Fri, 20 May 2011 10:53:38 -0700 (PDT) Received: by 10.42.196.10 with SMTP id ee10mr5204343icb.13.1305914018179; Fri, 20 May 2011 10:53:38 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.42.221.199 with HTTP; Fri, 20 May 2011 10:53:18 -0700 (PDT) In-Reply-To: References: From: Juli Mallett Date: Fri, 20 May 2011 10:53:18 -0700 X-Google-Sender-Auth: _XBfNV9wDJRUza34EGeDmWOKNGw Message-ID: To: Andrew Duane Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "mips@freebsd.org" Subject: Re: Two repeatable panics on CURRENT X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 17:53:39 -0000 On Fri, May 20, 2011 at 10:46, Andrew Duane wrote: > I'm almost finished bringing up -CURRENT on my octeon blade, but have two= perfectly repeatable panics that I could use some help sorting out. > [...] > Also, when I halt the system: > > =A0 =A0 =A0 =A0Waiting (max 60 seconds) for system process `vnlru' to sto= p...done > =A0 =A0 =A0 =A0Waiting (max 60 seconds) for system process `bufdaemon' to= stop...done > =A0 =A0 =A0 =A0Waiting (max 60 seconds) for system process `syncer' to st= op... > =A0 =A0 =A0 =A0Syncing disks, vnodes remaining...0 0 timed out > =A0 =A0 =A0 =A0All buffers synced. > =A0 =A0 =A0 =A02: lock order reversal: > =A0 =A0 =A0 =A00 =A01st 0x9800000001e23bd8 ufs (ufs) @ /aduane/FreeBSDCur= rent/src/sys/kern/vfs_mount.c:1190 3 > =A0 =A0 =A0 =A02nd 0x9800000001eaa458 devfs (devfs) @ /aduane/FreeBSDCurr= ent/src/sys/kern/vfs_subr.c:0 2134 > > This is with WITNESS turned on. I may turn it off for now, but does someo= ne know about this? Does the system actually panic after that? That reversal is, I think, at least very close to being harmless. From owner-freebsd-mips@FreeBSD.ORG Fri May 20 18:15:36 2011 Return-Path: Delivered-To: mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71B2B106564A; Fri, 20 May 2011 18:15:36 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og106.obsmtp.com (exprod7og106.obsmtp.com [64.18.2.165]) by mx1.freebsd.org (Postfix) with ESMTP id E7BAA8FC20; Fri, 20 May 2011 18:15:35 +0000 (UTC) Received: from P-EMHUB03-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob106.postini.com ([64.18.6.12]) with SMTP ID DSNKTdavx/amIOn6AfdsP8/z5ajmQFGYy+fD@postini.com; Fri, 20 May 2011 11:15:36 PDT Received: from p-emfe02-wf.jnpr.net (172.28.145.25) by P-EMHUB03-HQ.jnpr.net (172.24.192.37) with Microsoft SMTP Server (TLS) id 8.2.254.0; Fri, 20 May 2011 11:12:36 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe02-wf.jnpr.net ([fe80::c126:c633:d2dc:8090%11]) with mapi; Fri, 20 May 2011 14:12:36 -0400 From: Andrew Duane To: Juli Mallett Date: Fri, 20 May 2011 14:12:32 -0400 Thread-Topic: Two repeatable panics on CURRENT Thread-Index: AcwXFtqP25v5PMzhRLOZdGu/3uyN+QAAoH0g Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "mips@freebsd.org" Subject: RE: Two repeatable panics on CURRENT X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 18:15:36 -0000 It drops into KDB (with a mostly garbage backtrace). I think I will turn WI= TNESS off for now....=20 /Andrew =20 -----Original Message----- From: juli@clockworksquid.com [mailto:juli@clockworksquid.com] On Behalf Of= Juli Mallett Sent: Friday, May 20, 2011 1:53 PM To: Andrew Duane Cc: mips@freebsd.org Subject: Re: Two repeatable panics on CURRENT On Fri, May 20, 2011 at 10:46, Andrew Duane wrote: > I'm almost finished bringing up -CURRENT on my octeon blade, but have two= perfectly repeatable panics that I could use some help sorting out. > [...] > Also, when I halt the system: > > =A0 =A0 =A0 =A0Waiting (max 60 seconds) for system process `vnlru' to sto= p...done > =A0 =A0 =A0 =A0Waiting (max 60 seconds) for system process `bufdaemon' to= stop...done > =A0 =A0 =A0 =A0Waiting (max 60 seconds) for system process `syncer' to st= op... > =A0 =A0 =A0 =A0Syncing disks, vnodes remaining...0 0 timed out > =A0 =A0 =A0 =A0All buffers synced. > =A0 =A0 =A0 =A02: lock order reversal: > =A0 =A0 =A0 =A00 =A01st 0x9800000001e23bd8 ufs (ufs) @ /aduane/FreeBSDCur= rent/src/sys/kern/vfs_mount.c:1190 3 > =A0 =A0 =A0 =A02nd 0x9800000001eaa458 devfs (devfs) @ /aduane/FreeBSDCurr= ent/src/sys/kern/vfs_subr.c:0 2134 > > This is with WITNESS turned on. I may turn it off for now, but does someo= ne know about this? Does the system actually panic after that? That reversal is, I think, at least very close to being harmless. From owner-freebsd-mips@FreeBSD.ORG Fri May 20 19:03:23 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F7AB1065672; Fri, 20 May 2011 19:03:23 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og114.obsmtp.com (exprod7og114.obsmtp.com [64.18.2.215]) by mx1.freebsd.org (Postfix) with ESMTP id CEB218FC19; Fri, 20 May 2011 19:03:22 +0000 (UTC) Received: from P-EMHUB01-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob114.postini.com ([64.18.6.12]) with SMTP ID DSNKTda6+Yc1klQ7d8tsb2qq9FHdLL6W78+k@postini.com; Fri, 20 May 2011 12:03:23 PDT Received: from p-emfe01-wf.jnpr.net (172.28.145.24) by P-EMHUB01-HQ.jnpr.net (172.24.192.35) with Microsoft SMTP Server (TLS) id 8.2.254.0; Fri, 20 May 2011 12:00:35 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe01-wf.jnpr.net ([fe80::d0d1:653d:5b91:a123%11]) with mapi; Fri, 20 May 2011 15:00:34 -0400 From: Andrew Duane To: Oleksandr Tymoshenko Date: Fri, 20 May 2011 15:00:34 -0400 Thread-Topic: Trouble with dynamic executables Thread-Index: AcwVjby1UfECONIrS42kg6pi/yrvAQBkmIeA Message-ID: References: <4DD31231.5010000@freebsd.org> <4DD41715.2050203@freebsd.org> In-Reply-To: <4DD41715.2050203@freebsd.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-mips@freebsd.org" Subject: RE: Trouble with dynamic executables X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 19:03:23 -0000 By the way, this did fix my issue. The MIPS toolchain guy here thinks that = it might really just be spackling over the real problem though. I can't rea= lly say.=20 /Andrew =20 -----Original Message----- From: gonzo@launchpad.bluezbox.com [mailto:gonzo@launchpad.bluezbox.com] On= Behalf Of Oleksandr Tymoshenko Sent: Wednesday, May 18, 2011 3:00 PM To: Andrew Duane Cc: freebsd-mips@freebsd.org Subject: Re: Trouble with dynamic executables On 18/05/2011 5:59 AM, Andrew Duane wrote: > Thanks! I will try this patch out as soon as I get a chance. I had to rep= urpose my boot disk, but I can get it back today. > Not really. It can be multiline. Though it's the only place where this variable is used and I'm not completely sure it's really required there. As a workaround it worked for me, but proper fix will require more svn history digging. From owner-freebsd-mips@FreeBSD.ORG Fri May 20 19:07:12 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE87A106566B; Fri, 20 May 2011 19:07:12 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 88B438FC18; Fri, 20 May 2011 19:07:12 +0000 (UTC) Received: by pzk27 with SMTP id 27so2324278pzk.13 for ; Fri, 20 May 2011 12:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=x7+SvW2EDmstLgb35grbDBzT8bEz6kpsSVJ9JSBotAA=; b=ERwpo0j/lWZUnTs8NO+Y5mpT5uwyiPH6PLq7rh9j8pPCsI5JoublFgha+jwZrX7uUR XyCXM/Y9VsgUrpf9QrheMJ2Ggu/AWejeUlTl05/ZE0jGTtcQ9zb2/zuw64zoVo1hKbd0 oh00jXNqlBpSYUqzMG9iiYee6Bx35DKHZslCE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=F5wP1LcjJuNK4L3rS3VCLlgTbKia1riCfoqMnDN6rBHKyJGEwWkQXZ+45LHU7SUCI4 sbUS98tu2RVi7QOWa+OeNg+284yWFfrSg7t72TXjdk7tpb/691YBIyegg3T/vFDQQ/Ot 5vQxOqtxXAnsteZb/gX8eeN0SGNtAp7O2mf7Y= MIME-Version: 1.0 Received: by 10.142.224.17 with SMTP id w17mr2989935wfg.63.1305918431918; Fri, 20 May 2011 12:07:11 -0700 (PDT) Received: by 10.142.222.7 with HTTP; Fri, 20 May 2011 12:07:11 -0700 (PDT) In-Reply-To: References: <4DD31231.5010000@freebsd.org> <4DD41715.2050203@freebsd.org> Date: Sat, 21 May 2011 00:37:11 +0530 Message-ID: From: "Jayachandran C." To: Andrew Duane Content-Type: text/plain; charset=ISO-8859-1 Cc: Oleksandr Tymoshenko , "freebsd-mips@freebsd.org" Subject: Re: Trouble with dynamic executables X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 19:07:12 -0000 On Sat, May 21, 2011 at 12:30 AM, Andrew Duane wrote: > By the way, this did fix my issue. The MIPS toolchain guy here thinks that it might really just be spackling over the real problem though. I can't really say. > I wonder why I don't see this on XLR, can you post your buildworld env and command line? Thanks, JC.