From owner-freebsd-mips@FreeBSD.ORG Mon Jan 21 11:06:48 2013 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A3E77C8F for ; Mon, 21 Jan 2013 11:06:48 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7D790723 for ; Mon, 21 Jan 2013 11:06:48 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0LB6mGD054128 for ; Mon, 21 Jan 2013 11:06:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0LB6mBW054126 for freebsd-mips@FreeBSD.org; Mon, 21 Jan 2013 11:06:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Jan 2013 11:06:48 GMT Message-Id: <201301211106.r0LB6mBW054126@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-mips@FreeBSD.org Subject: Current problem reports assigned to freebsd-mips@FreeBSD.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2013 11:06:48 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/165951 mips [ar913x] [ath] DDR flush isn't being done for the WMAC p kern/163670 mips [mips][arge] arge can't allocate ring buffer on multip 2 problems total. From owner-freebsd-mips@FreeBSD.ORG Thu Jan 24 02:22:37 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4E54E754 for ; Thu, 24 Jan 2013 02:22:37 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-ye0-f180.google.com (mail-ye0-f180.google.com [209.85.213.180]) by mx1.freebsd.org (Postfix) with ESMTP id 1ADBFEB6 for ; Thu, 24 Jan 2013 02:22:36 +0000 (UTC) Received: by mail-ye0-f180.google.com with SMTP id r14so1408600yen.25 for ; Wed, 23 Jan 2013 18:22:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:sender:from:date:x-google-sender-auth :message-id:subject:to:content-type:x-gm-message-state; bh=61qEs9oFy4zmnL9V44Yux4egYHztp3w5IEvwsa6G0Fs=; b=VD0i05c/W7uDT+TYEDHwYBHFoLmx1uTBbmvrQQrZvdh/YcBm6ISmQFBJSgKkMq2Wy6 7dTJ4ezvh5xLCHH1Wd1BYibjPO37y/Vum4KmTh/Eq60Ir/ZxwkStO8uVlJwK9gKgIweP 0S29G4sUIKl5H9DSTit9NbcL9kehGpa7K9Hh1GOytgWMcOfhV3JMAmjXAvFBTAlMfvKZ NLI7kQhjc9h7EKX+dTV2I1Qj6CKP34lCl9kJohrUcjHG3EqbtFq8X6wRjA1c0ODkdspu 7UNo8VEbt2jGJFEsM4ySjKeqRWXMFOSiW7LlBoWiy5hhqUtcuJ9amrib/05Lt4zPST/f lfkw== X-Received: by 10.236.137.172 with SMTP id y32mr280434yhi.124.1358994150545; Wed, 23 Jan 2013 18:22:30 -0800 (PST) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.147.119.38 with HTTP; Wed, 23 Jan 2013 18:22:10 -0800 (PST) From: Juli Mallett Date: Wed, 23 Jan 2013 18:22:10 -0800 X-Google-Sender-Auth: KfbMs4tKg8CSHToo4doP992xoko Message-ID: Subject: Ubiquiti EdgeRouter Lite works multi-user with -CURRENT. To: "freebsd-mips@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkyoISCw4KWJCgDyTQEyZAOs5Xg5hJWGCYpIeLsJITo39neK8mBMma+DcVIImwODgZ2DuMa X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 02:22:37 -0000 Folks, Just wanted to let everyone know that what's in -CURRENT now boots happily to multiuser on the EdgeRouter Lite. The big challenge is getting a file system on the onboard storage. I didn't want to use Ubiquiti's Linux to do it for what are probably spurious reasons, so I ended up loading a huge kernel with tftp which had an MFS embedded in it. On the MFS, I placed pretty much just /rescue. I used netcat and dd to splat an image onto the disk, with a FAT /boot partition on slice 1 and a UFS / partition on slice 2. In U-Boot, I then changed the bootcmd to: "fatload usb 0 0 /kernel/kernel; bootoctlinux 0 coremask=0x3" It happily boots multi-user with networking, etc. Just uncomment the OCTEON_VENDOR_UBIQUITI option in the OCTEON1 kernel config and change the root device to "ufs:da0s2". It seems like it would be nice to script the creation of an image one could TFTP boot which could then pull down a disk image off the web and dd it to the disk. Then we could produce "installers" of a sort for Octeon (and other MIPS) systems with ease with a cron job or something. I probably won't get around to doing this, but wanted to suggest it as a nice way of being able to install systems like this. Especially with how cheap the EdgeRouter Lite is, it seems like a useful piece of evangelism. Heck, since U-Boot claims to support use of a gateway, you could even have a TFTP server on the Internet and let people download the installer that way, too, with just a few commands in U-Boot. If anyone needs help getting FreeBSD going on EdgeRouter Lite or other Octeon systems, they should feel free to contact me. I don't have much time, but this is at least something I've gotten down pretty well. Thanks, Juli. From owner-freebsd-mips@FreeBSD.ORG Thu Jan 24 02:55:16 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3FCBFD0 for ; Thu, 24 Jan 2013 02:55:16 +0000 (UTC) (envelope-from stefan@kooman.org) Received: from mail.kooman.org (mail.kooman.org [IPv6:2001:7b8:60a:1:213:136:13:33]) by mx1.freebsd.org (Postfix) with ESMTP id 0740BF9B for ; Thu, 24 Jan 2013 02:55:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kooman.org; s=mail-kooman; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=4XGVNt3Tt2jTbK19Mr7SosJTfmMpqPRctCP+YYZmFnk=; b=QlC2aJCvZ2936BNpNrVmkPPLXdMuAVoNBOPV73WVRxpWV3UzHCKCmYYZy6XkVi/UE+x0IQkD4v15D0ah6G+OX5ww/3YBG9uqpAWT0CqcZFipaZw3nF4mIsHc77/55QB4Xm1EPAQVJXHzwrLSDnEtzjGsIwZK/q6O0JCpeL+Xons=; Received: from archie.kooman.org ([2001:7b8:803:1::3]) by mail.kooman.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TyCy8-0000gf-Fs; Thu, 24 Jan 2013 03:55:12 +0100 Date: Thu, 24 Jan 2013 03:55:12 +0100 From: Stefan Kooman To: Monthadar Al Jaberi Subject: Re: kernel build fails for Routerboard 450g Message-ID: <20130124025512.GA504@archie.kooman.org> References: <20130107214419.GB16119@archie.kooman.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-GPG-ID: D14839C6 X-GPG-Fingerprint: 93E6 F01E F7EE 5B3B 0771 4DEB 4F21 A061 D148 39C6 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 02:55:16 -0000 On Mon, Jan 07, 2013 at 11:48:17PM +0100, Monthadar Al Jaberi wrote: > Hi, > > Try not using setenv. but modify the kernel config to have > > machine mips mips > > in the begining. Thanks, that got it going. I'm running into the next problem, build fails on uart: "uart_core.o: In function `uart_bus_probe': uart_core.c:(.text+0x3d0): undefined reference to `uart_cpu_eqres' uart_core.c:(.text+0x3d0): relocation truncated to fit: R_MIPS_26 against `uart_cpu_eqres' uart_subr.o: In function `uart_getenv': uart_subr.c:(.text+0x2b8): undefined reference to `uart_bus_space_mem' uart_subr.c:(.text+0x2bc): undefined reference to `uart_bus_space_mem' uart_subr.c:(.text+0x2d8): undefined reference to `uart_bus_space_io' uart_subr.c:(.text+0x2dc): undefined reference to `uart_bus_space_io' uart_tty.o: In function `uart_cnprobe': uart_tty.c:(.text+0x80): undefined reference to `uart_cpu_getdev' uart_tty.c:(.text+0x80): relocation truncated to fit: R_MIPS_26 against `uart_cpu_getdev' *** [kernel] Error code 1 1 error *** [buildkernel] Error code 2 1 error *** [buildkernel] Error code 2 1 error" If I remove "options uart" and "options gpioled" kernel builds fine. However, the routerboard does not boot with this kernel: RouterBOOT booter 3.02 RouterBoard 450G CPU frequency: 680 MHz Memory size: 256 MiB NAND size: 512 MiB Press any key within 2 seconds to enter setup.. writing settings to flash... OK trying dhcp protocol... OK resolved mac address B8:27:EB:48:F3:64 Gateway: 192.168.2.1 transfer started ....................................... transfer ok, time=102.51s setting up elf image... OK jumping to kernel code After half a minute or so the Mikrotik image gets loaded. Any ideas on the best way to debug? Thanks, Stefan From owner-freebsd-mips@FreeBSD.ORG Thu Jan 24 14:39:08 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D31A1309 for ; Thu, 24 Jan 2013 14:39:08 +0000 (UTC) (envelope-from ray@freebsd.org) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 93400B3B for ; Thu, 24 Jan 2013 14:39:08 +0000 (UTC) Received: from terran (unknown [192.168.99.1]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPA id 4ED23C4927; Thu, 24 Jan 2013 16:39:01 +0200 (EET) Date: Thu, 24 Jan 2013 16:40:36 +0200 From: Aleksandr Rybalko To: Stefan Kooman Subject: Re: kernel build fails for Routerboard 450g Message-Id: <20130124164036.8120091a7711983037c2b4b4@freebsd.org> In-Reply-To: <20130124025512.GA504@archie.kooman.org> References: <20130107214419.GB16119@archie.kooman.org> <20130124025512.GA504@archie.kooman.org> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 14:39:08 -0000 On Thu, 24 Jan 2013 03:55:12 +0100 Stefan Kooman wrote: > On Mon, Jan 07, 2013 at 11:48:17PM +0100, Monthadar Al Jaberi wrote: > > Hi, > > > > Try not using setenv. but modify the kernel config to have > > > > machine mips mips > > > > in the begining. > > Thanks, that got it going. > > I'm running into the next problem, build fails on uart: > > "uart_core.o: In function `uart_bus_probe': > uart_core.c:(.text+0x3d0): undefined reference to `uart_cpu_eqres' > uart_core.c:(.text+0x3d0): relocation truncated to fit: R_MIPS_26 > against `uart_cpu_eqres' > uart_subr.o: In function `uart_getenv': > uart_subr.c:(.text+0x2b8): undefined reference to `uart_bus_space_mem' > uart_subr.c:(.text+0x2bc): undefined reference to `uart_bus_space_mem' > uart_subr.c:(.text+0x2d8): undefined reference to `uart_bus_space_io' > uart_subr.c:(.text+0x2dc): undefined reference to `uart_bus_space_io' > uart_tty.o: In function `uart_cnprobe': > uart_tty.c:(.text+0x80): undefined reference to `uart_cpu_getdev' > uart_tty.c:(.text+0x80): relocation truncated to fit: R_MIPS_26 against > `uart_cpu_getdev' > *** [kernel] Error code 1 > 1 error > *** [buildkernel] Error code 2 > 1 error > *** [buildkernel] Error code 2 > 1 error" > > If I remove "options uart" and "options gpioled" kernel builds fine. Please try to add "uart_ar71xx" also: device uart device uart_ar71xx > However, the routerboard does not boot with this kernel: > > RouterBOOT booter 3.02 > > RouterBoard 450G > > CPU frequency: 680 MHz > Memory size: 256 MiB > NAND size: 512 MiB > > Press any key within 2 seconds to enter setup.. > writing settings to flash... OK > trying dhcp protocol... OK > resolved mac address B8:27:EB:48:F3:64 > Gateway: 192.168.2.1 > transfer started ....................................... transfer > ok, time=102.51s > setting up elf image... OK > jumping to kernel code Somebody said we have bad address in ELF header, so try to check what RouterBOOT want and what we have now. > > After half a minute or so the Mikrotik image gets loaded. > > Any ideas on the best way to debug? > > Thanks, > > Stefan > > > _______________________________________________ > 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" Thanks! WBW -- Aleksandr Rybalko From owner-freebsd-mips@FreeBSD.ORG Fri Jan 25 22:50:59 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id ADE8FC48; Fri, 25 Jan 2013 22:50:59 +0000 (UTC) (envelope-from stefan@kooman.org) Received: from mail.kooman.org (mail.kooman.org [IPv6:2001:7b8:60a:1:213:136:13:33]) by mx1.freebsd.org (Postfix) with ESMTP id 31735F23; Fri, 25 Jan 2013 22:50:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kooman.org; s=mail-kooman; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=+gaVFfxzscuY9cCv3lC2qHnz5SARQVE2YjjJZofVyKM=; b=UE+SdApWRSvw5jk9p3WDfoEK5J1Rn/e4wv68eVPd08DusCX52FZ/YRqXktv8lXNKe+1Dt0vJM0DDcLwkCZ/9mQ32QoN5AqoZ4OMdnDNVPM4wfwB5IC9csBie2Vbx3E95+u9avBFFXWjQlTMehlM8iL7HBeisUsa9VYcX2Uzv9mI=; Received: from nettie.kooman.org ([2001:7b8:803:1::4] helo=nettie) by mail.kooman.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Tys6n-0002MZ-NY; Fri, 25 Jan 2013 23:50:53 +0100 Date: Fri, 25 Jan 2013 23:50:54 +0100 From: Stefan Kooman To: Aleksandr Rybalko Subject: Re: kernel build fails for Routerboard 450g Message-ID: <20130125225053.GA10775@nettie> References: <20130107214419.GB16119@archie.kooman.org> <20130124025512.GA504@archie.kooman.org> <20130124164036.8120091a7711983037c2b4b4@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130124164036.8120091a7711983037c2b4b4@freebsd.org> X-GPG-ID: D14839C6 X-GPG-Fingerprint: 93E6 F01E F7EE 5B3B 0771 4DEB 4F21 A061 D148 39C6 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2013 22:50:59 -0000 On Thu, Jan 24, 2013 at 04:40:36PM +0200, Aleksandr Rybalko wrote: > > `uart_cpu_getdev' > > *** [kernel] Error code 1 > > 1 error > > *** [buildkernel] Error code 2 > > 1 error > > *** [buildkernel] Error code 2 > > 1 error" > > > > If I remove "options uart" and "options gpioled" kernel builds fine. > > Please try to add "uart_ar71xx" also: > device uart > device uart_ar71xx Yeah!, know kernel builds fine ... kernel gets executed too: uart0: console (115200,n,8,1) gpio0: on apb0 gpio0: [GIANT-LOCKED] gpio0: gpio pinmask=0x0 gpioc0: on gpio0 gpiobus0: on gpio0 gpioled0: at pin(s) 4 on gpiobus0 ehci0: at mem 0x1b000000-0x1bffffff irq 1 on nexus0 usbus0: set host controller mode usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0 on ehci0 arge0: at mem 0x19000000-0x19000fff irq 2 on nexus0 arge0: finishing attachment, phymask 000f, proxy null miibus0: on arge0 ukphy0: PHY 0 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto ukphy1: PHY 1 on miibus0 ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto ukphy2: PHY 2 on miibus0 ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto ukphy3: PHY 3 on miibus0 ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto arge0: Ethernet address: d4:ca:6d:59:dc:ef arge1: at mem 0x1a000000-0x1a000fff irq 3 on nexus0 arge1: finishing attachment, phymask 0010, proxy null arge1: unable to attach PHY 4: 6 device_attach: arge1 attach returned 6 ar71xx_wdog0: on nexus0 spi0: at mem 0x1f000000-0x1f00000f on nexus0 spibus0: on spi0 Timecounters tick every 1.000 msec bootpc_init: wired to interface 'arge1' usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 uhub0: 2 ports with 2 removable, self powered panic: bootpc_init: Could not find interface specified by BOOTP_WIRED_TO: arge1 Uptime: 11s Automatic reboot in 15 seconds - press a key on the console to abort --> Press a key on the console to reboot, --> or switch off the system now. However, the arge1 interface can't be attached. Any hints for this one? Thanks, Stefan