From owner-freebsd-mips@FreeBSD.ORG Fri Feb 1 12:20:46 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 8CAD1E6A for ; Fri, 1 Feb 2013 12:20:46 +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 24D2513A for ; Fri, 1 Feb 2013 12:20:45 +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=dy9l1Q0/NRcKCytYZQ5s+LngYePE4ft4P5VTujjkxnA=; b=eFQN8Vi7wnEHIckJ4A3EKb/taNP2/qvajvKS0+U6pis95WJutkEclxdiULJvAcF0ihd/pcncHZ63Jh+IratBN0zj5UFkZve1Ux2aa8vT5C8r0Db/QVyBZsyTCNSbw3JJrWWb6vpyPoK1bQsIirVHTTZD1tBoZFvfUjZczCv7WNI=; Received: from [2001:7b8:60a:1:213:154:229:41] (helo=basseroet.kooman.org) by mail.kooman.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1U1Fbl-0005aK-7G; Fri, 01 Feb 2013 13:20:41 +0100 Date: Fri, 1 Feb 2013 13:20:42 +0100 From: Stefan Kooman To: Luiz Otavio O Souza Subject: Re: kernel build fails for Routerboard 450g Message-ID: <20130201122041.GF13006@basseroet.kooman.org> References: <20130107214419.GB16119@archie.kooman.org> <20130124025512.GA504@archie.kooman.org> <20130124164036.8120091a7711983037c2b4b4@freebsd.org> <20130125225053.GA10775@nettie> 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: Fri, 01 Feb 2013 12:20:46 -0000 On Thu, Jan 31, 2013 at 05:15:41PM -0200, Luiz Otavio O Souza wrote: > > Hi! > > Sorry for the long hiatus, i'm trying to catch up. No problem, thanks for helping me out. > > Please try the following kernel and hints: > > http://loos.no-ip.org/rb/RB450G > http://loos.no-ip.org/rb/RB450G.hints > > You'll need to disable the mmc/sd and the nand device from kernel as > they are not committed yet. I've disabled mmc/sd and nand from kernel config, as well as references to "rb4xx" and "AR71XX_ROUTERBOOT" (they don't exist in mips src tree). > diff -u RB450G /data/mips/src/sys/mips/conf/RB450G --- RB450G 2013-01-31 20:12:13.000000000 +0100 +++ /data/mips/src/sys/mips/conf/RB450G 2013-02-01 10:29:59.000000000 +0100 @@ -10,20 +10,20 @@ # RB450[G] doesn't have any minipci slots, flash and usb ports nodevice pci -nodevice ar71xx_pci +#nodevice ar71xx_pci nodevice mx25l nodevice usb nodevice ehci nodevice umass # RouterBoard RB4XX support -device rb4xx -device nand +#device rb4xx +#device nand # MMC/SD SPI slot -device mmc -device mmcsd -device mmcspi +#device mmc +#device mmcsd +#device mmcspi # GEOM modules #device geom_redboot # to get access to the SPI flash partitions @@ -34,7 +34,7 @@ options MSDOSFS # RouterBoot support -options AR71XX_ROUTERBOOT +#options AR71XX_ROUTERBOOT # For etherswitch support options ARGE_MDIO @@ -52,6 +52,7 @@ options BOOTP_NFSV3 options BOOTP_WIRED_TO=arge1 options BOOTP_COMPAT -#options ROOTDEVNAME=\"nfs:192.168.0.10:/data/rb/rb450g/nfsroot\" +options ROOTDEVNAME=\"nfs:192.168.2.103:/mnt/bsd\" Booting up the RB450G yields: trying dhcp protocol... OK resolved mac address 00:25:22:8F:4F:CE Gateway: 192.168.2.1 transfer started .............................................. transfer ok, time=2.03s setting up elf image... OK jumping to kernel code CPU platform: Atheros AR7161 rev 2 CPU Frequency=680 MHz CPU DDR Frequency=340 MHz CPU AHB Frequency=170 MHz platform frequency: 680000000 arguments: a0 = 0000000b a1 = a0871c00 a2 = 00000000 a3 = 00000000 Cmd line: console=ttyS0,115200 parts=1 boot_part_size=4194304 gpio=1983 HZ=340000000 mem=256M kmac=D4:CA:6D:59:DC:EF board=450G ver=3.02 boot=1 mlc=4 Environment: envp is invalid Cache info: picache_stride = 4096 picache_loopcount = 16 pdcache_stride = 4096 pdcache_loopcount = 8 cpu0: MIPS Technologies processor v116.147 MMU: Standard TLB, 16 entries L1 i-cache: 4 ways of 512 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line Config1=0x9ee3519e Config3=0x20 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2013 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.0-CURRENT #0 r245698: Fri Feb 1 10:30:56 CET 2013 root@frisbee:/data/mips/src/obj/mips/mips.mips/data/mips/src/sys/RB450G mips WARNING: WITNESS option enabled, expect reduced performance. MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: MEMGUARD map base: 0xc0400000 MEMGUARD map limit: 0xc3460000 MEMGUARD map size: 49536 KBytes real memory = 33554432 (32768K bytes) avail memory = 24829952 (23MB) random device not loaded; using insecure entropy nexus0: clock0: on nexus0 Timecounter "MIPS32" frequency 340000000 Hz quality 800 Event timer "MIPS32" frequency 340000000 Hz quality 800 argemdio0: at mem 0x19000000-0x19000fff on nexus0 mdio0: on argemdio0 mdioproxy0: on mdio0 apb0 at irq 4 on nexus0 uart0: <16550 or compatible> on apb0 uart0: console (115200,n,8,1) gpio0: on apb0 gpio0: [GIANT-LOCKED] gpio0: gpio pinmask=0xff gpioc0: on gpio0 gpiobus0: on gpio0 gpioled0: at pin(s) 4 on gpiobus0 arge0: at mem 0x19000000-0x19000fff irq 2 on nexus0 arge0: arge_attach: overriding MII mode to 'RGMII' arge0: finishing attachment, phymask 0000, proxy null arge0: Ethernet address: d4:ca:6d:59:dc:ef arge1: at mem 0x1a000000-0x1a000fff irq 3 on nexus0 arge1: arge_attach: overriding MII mode to 'RGMII' miiproxy0: on arge1 arge1: can't attach proxy arge1: finishing attachment, phymask 0010, proxy null arge1: unable to attach PHY 4: 6 device_attach: arge1 attach returned 6 spi0: at mem 0x1f000000-0x1f00000f on nexus0 spibus0: on spi0 spibus0: at cs 0 spibus0: at cs 0 spibus0: at cs 1 ar71xx_wdog0: on nexus0 Timecounters tick every 1.000 msec bootpc_init: wired to interface 'arge1' panic: bootpc_init: Could not find interface specified by BOOTP_WIRED_TO: arge1 KDB: enter: panic [ thread pid 0 tid 100000 ] Stopped at kdb_enter+0x4c: lui at,0x8051 db> > Let me know if you have any problem. Same result, arge1 can't be attached. Are the "rb4xx" and "AR71XX_ROUTERBOOT" references I've commented out essential for a working kernel? Thanks, Stefan