From owner-freebsd-mips@FreeBSD.ORG Sun May 8 15:58:24 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 EF88E106566B for ; Sun, 8 May 2011 15:58:24 +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 B6D428FC14 for ; Sun, 8 May 2011 15:58:24 +0000 (UTC) Received: by iyj12 with SMTP id 12so5381707iyj.13 for ; Sun, 08 May 2011 08:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:subject:date:message-id:to :mime-version:x-mailer; bh=Iu6ZAfYOv4uyhpj+JDZxphdDvVCne8SndgO2aGE9Xbg=; b=olfaxVs4Ya4fZrhZ3Y8kQyRMQOvtSwQhFkAcMWM9YdZ6qZoOwjeFh336qmx9zCH1Rz 4JY2j7wlRmtIplrtGo+KzwnwvAY1mwMc7VKU7qVGXlM8Yl9mf5UFYEMkapRMbp0QDz/9 UNkGs9I3BnW7N6P8T5bx0aQOfeWLqnkHmSun4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:subject:date:message-id:to:mime-version:x-mailer; b=rMv2K0WEUgh6EtIHdvcbUcBQi6Nih9gM6/1lLuHrHuQ528qwY6UwOSkSM3OkLI1O8N ANnJZI9D1HuRh3okzEs3rGhDPHeeOis+gLJ3II/RvxeoU8jjeiV6LMc+ytp/EvpyqD9u ggm4MQ9YbWhJ+OThKqNuCK+CgHVnLzaVbWcVA= Received: by 10.42.162.193 with SMTP id z1mr5394578icx.515.1304868523788; Sun, 08 May 2011 08:28:43 -0700 (PDT) Received: from [192.168.1.103] (24-136-20-122.c3-0.stn-ubr3.chi-stn.il.cable.rcn.com [24.136.20.122]) by mx.google.com with ESMTPS id gx2sm2225203ibb.9.2011.05.08.08.28.41 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 08 May 2011 08:28:42 -0700 (PDT) From: Erik Moe Date: Sun, 8 May 2011 10:28:05 -0500 Message-Id: To: freebsd-mips@freebsd.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Sun, 08 May 2011 15:58:25 -0000 Hello, I'd like to get FreeBSD running on my Router Board 133c. I'm new to = MIPS and I'm running into a little problem and I was hoping that = somebody could point me in the right direction. I pulled the latest = sources from head and I can get the kernel to boot, but after it boots = FreeBSD is unable to acquire an IP address. 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=3D4.94s 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): 0x29a000 - 0xffffff, 14049280 bytes (3430 pages) Maxmem is 0x1000000 KDB: debugger backends: ddb 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 #7 r221418M: Sat May 7 15:16:10 CDT 2011 = root@freebsd.localdomain:/usr/home/emoe/obj/mips/mips.mipsel/usr/home/emoe= /svn/mips/sys/ADM5120 mips real memory =3D 16777216 (16384K bytes) Physical memory chunk(s): 0x00326000 - 0x00f8dfff, 13008896 bytes (3176 pages) avail memory =3D 12754944 (12MB) null: nfslock: pseudo-device mem: 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) DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 The RB133c has only one ethernet port, which I assume is admsw0, though = the mac address that is specified (00:0c:42:07:b2:4e) doesn't match the = mac address that shows up in RouterBoot (which is the same one that I = used to load the kernel). your choice: i - board info Board Info: Board type: 133C3 Serial number: 16EC01C3C23F Firmware version: 2.18 CPU frequency: 175 MHz Memory size: 16 MB eth1 MAC address: 00:0C:42:1E:9A:88 Using tcpdump, after RouterBoot finishes loading the kernel, I see one = DHCP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 and = then there is nothing after that. I don't see any packets at all. 192.168.11.2.23224 > 192.168.11.15.61904: [udp sum ok] UDP, length = 21 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto = UDP (17), length 32) 192.168.11.15.61904 > 192.168.11.2.23224: [udp sum ok] UDP, length 4 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto = UDP (17), length 328) 0.0.0.0.bootpc > broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, = Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid = 0xd8aaeeff, Flags [none] (0x0000) Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: Release Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 Vendor-Class Option 60, length 9: "Mikroboot" Parameter-Request Option 55, length 2:=20 Subnet-Mask, Default-Gateway END Option 255, length 0 PAD Option 0, length 0, occurs 32 Thanks, Erik From owner-freebsd-mips@FreeBSD.ORG Mon May 9 06:19:33 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 29008106566B for ; Mon, 9 May 2011 06:19:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id D88DE8FC0C for ; Mon, 9 May 2011 06:19:32 +0000 (UTC) Received: by gyg13 with SMTP id 13so2119311gyg.13 for ; Sun, 08 May 2011 23:19:32 -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=31G456TmMBZY5NT8LtePXuVKNlyZ7nlGTq52ekzJrZw=; b=ZsP4npFLrphUn5YVNuRIzMx6re4e22udPuQohedl8xGQKocgQw6rSY6zyl1kCNS9ec lej+fJhzjyXmdoKw4FI1Usk1VlofsUVwZAlBfYIWdZcqWMycuc5CZNdGk3kQT75fvAs6 x7XvNBRkvMfrn/UXgap5GAxbLhUUjLoNzvxG4= 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=VbIk5ahqiai6V2kftPOsCmU1OB03aq+tIGGbRA3/pTJh7cGwqwp9UZYXgjxFVeN4QP 2XqsB5nYBU31kLwWEd+FmaPLytcZ9GcdZ3/cI9ksXmi/WB+aEAAJb4kg4ezKO+T+hIl1 iBfpMT2XEjmy3kHMloTjgQTfi/BFi0NRMDHmo= MIME-Version: 1.0 Received: by 10.150.66.1 with SMTP id o1mr939184yba.125.1304921971173; Sun, 08 May 2011 23:19:31 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.136.8 with HTTP; Sun, 8 May 2011 23:19:31 -0700 (PDT) In-Reply-To: References: Date: Mon, 9 May 2011 14:19:31 +0800 X-Google-Sender-Auth: 2KpqjIBAZw8GCfWC-rbfC6WFX_k 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, 09 May 2011 06:19:33 -0000 If it has one physical ethernet port, I wonder why the switch engine thinks there's 6.. Adrian On 8 May 2011 23:28, Erik Moe wrote: > Hello, > > I'd like to get FreeBSD running on my Router Board 133c. =A0I'm new to MI= PS and I'm running into a little problem and I was hoping that somebody cou= ld point me in the right direction. =A0I pulled the latest sources from hea= d and I can get the kernel to boot, but after it boots FreeBSD is unable to= acquire an IP address. > > RouterBOOT booter 2.18 > > RouterBoard 133C3 > > CPU frequency: 175 MHz > =A0Memory size: =A016 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=3D4.94s > setting up elf image... OK > jumping to kernel code > entry: mips_init() > Cache info: > =A0picache_stride =A0 =A0=3D 4096 > =A0picache_loopcount =3D 2 > =A0pdcache_stride =A0 =A0=3D 4096 > =A0pdcache_loopcount =3D 2 > cpu0: MIPS Technologies processor v11.128 > =A0MMU: Standard TLB, 16 entries > =A0L1 i-cache: 2 ways of 256 sets, 16 bytes per line > =A0L1 d-cache: 2 ways of 256 sets, 16 bytes per line > =A0Config1=3D0x1e994c8a > Physical memory chunk(s): > 0x29a000 - 0xffffff, 14049280 bytes (3430 pages) > Maxmem is 0x1000000 > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2011 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > =A0 =A0 =A0 =A0The Regents of the University of California. All rights re= served. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.0-CURRENT #7 r221418M: Sat May =A07 15:16:10 CDT 2011 > =A0 =A0root@freebsd.localdomain:/usr/home/emoe/obj/mips/mips.mipsel/usr/h= ome/emoe/svn/mips/sys/ADM5120 mips > real memory =A0=3D 16777216 (16384K bytes) > Physical memory chunk(s): > 0x00326000 - 0x00f8dfff, 13008896 bytes (3176 pages) > avail memory =3D 12754944 (12MB) > null: > nfslock: pseudo-device > mem: > 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) > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > > The RB133c has only one ethernet port, which I assume is admsw0, though t= he mac address that is specified (00:0c:42:07:b2:4e) doesn't match the mac = address that shows up in RouterBoot (which is the same one that I used to l= oad the kernel). > > your choice: i - board info > > Board Info: > > =A0 =A0 =A0 =A0Board type: 133C3 > =A0 =A0 Serial number: 16EC01C3C23F > =A0Firmware version: 2.18 > =A0 =A0 CPU frequency: 175 MHz > =A0 =A0 =A0 Memory size: 16 MB > =A0eth1 MAC address: 00:0C:42:1E:9A:88 > > Using tcpdump, after RouterBoot finishes loading the kernel, I see one DH= CP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 and then= there is nothing after that. =A0I don't see any packets at all. > > =A0 =A0192.168.11.2.23224 > 192.168.11.15.61904: [udp sum ok] UDP, length= 21 > 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UD= P (17), length 32) > =A0 =A0192.168.11.15.61904 > 192.168.11.2.23224: [udp sum ok] UDP, length= 4 > 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UD= P (17), length 328) > =A0 =A00.0.0.0.bootpc > broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, Re= quest from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid 0xd8aaeeff, Fla= gs [none] (0x0000) > =A0 =A0 =A0 =A0 =A0Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown= ) > =A0 =A0 =A0 =A0 =A0Vendor-rfc1048 Extensions > =A0 =A0 =A0 =A0 =A0 =A0Magic Cookie 0x63825363 > =A0 =A0 =A0 =A0 =A0 =A0DHCP-Message Option 53, length 1: Release > =A0 =A0 =A0 =A0 =A0 =A0Client-ID Option 61, length 7: ether 00:0c:42:1e:9= a:88 > =A0 =A0 =A0 =A0 =A0 =A0Vendor-Class Option 60, length 9: "Mikroboot" > =A0 =A0 =A0 =A0 =A0 =A0Parameter-Request Option 55, length 2: > =A0 =A0 =A0 =A0 =A0 =A0 =A0Subnet-Mask, Default-Gateway > =A0 =A0 =A0 =A0 =A0 =A0END Option 255, length 0 > =A0 =A0 =A0 =A0 =A0 =A0PAD Option 0, length 0, occurs 32 > > Thanks, > Erik > > > > > _______________________________________________ > 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 Mon May 9 15:08:28 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 0F29E106564A for ; Mon, 9 May 2011 15:08:28 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id BCEAD8FC08 for ; Mon, 9 May 2011 15:08:27 +0000 (UTC) Received: by gxk28 with SMTP id 28so2298284gxk.13 for ; Mon, 09 May 2011 08:08:27 -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:content-transfer-encoding:message-id:references :to:x-mailer; bh=cy15phYemCQUFtKXPdAXQsxNqYtgcDGXaH7CYx+9mMU=; b=xW0eMh+jx6FtOINZkctEc4/iUJk42zp3QDAKxIeg9uxuUF8xBmaMlyEzDO7quHtdc9 VLRBci6Rb4sE6l5gVlU0mNBNyfsVWozx5v73wqi1USHOQZ6pRRtxv/b6DmhbLCVJTQXB EouSDczmGuCTPS333gNPUYFHS93oBeXKM7ZQY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=SXR59nIjZWen1ouU7Z1/Hk5EkVxT082ujNCBPlPKc/y2TWvdNey3KwjMvALnPbZCM0 8zl5acK0aNTBHSOYDYBSlcJ7AYKcgSvFThdxhlZojcmHCTuEcCYsYSZzSE3G73R4arsy brkPsSZYoRcQoEbBi+IloqLmOmIZw1VUu4zgc= Received: by 10.150.142.20 with SMTP id p20mr5721777ybd.255.1304952224580; Mon, 09 May 2011 07:43:44 -0700 (PDT) Received: from [192.168.0.84] ([187.39.17.214]) by mx.google.com with ESMTPS id w15sm999824ybe.15.2011.05.09.07.43.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 09 May 2011 07:43:43 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Luiz Otavio O Souza In-Reply-To: Date: Mon, 9 May 2011 11:43:39 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Erik Moe 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, 09 May 2011 15:08:28 -0000 On May 8, 2011, at 12:28 PM, Erik Moe wrote: > Hello, >=20 > I'd like to get FreeBSD running on my Router Board 133c. I'm new to = MIPS and I'm running into a little problem and I was hoping that = somebody could point me in the right direction. I pulled the latest = sources from head and I can get the kernel to boot, but after it boots = FreeBSD is unable to acquire an IP address. >=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=3D4.94s > 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): > 0x29a000 - 0xffffff, 14049280 bytes (3430 pages) > Maxmem is 0x1000000 > KDB: debugger backends: ddb > 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 #7 r221418M: Sat May 7 15:16:10 CDT 2011 > = root@freebsd.localdomain:/usr/home/emoe/obj/mips/mips.mipsel/usr/home/emoe= /svn/mips/sys/ADM5120 mips > real memory =3D 16777216 (16384K bytes) > Physical memory chunk(s): > 0x00326000 - 0x00f8dfff, 13008896 bytes (3176 pages) > avail memory =3D 12754944 (12MB) > null: > nfslock: pseudo-device > mem: > 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) > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 > DHCP/BOOTP timeout for server 255.255.255.255 >=20 > The RB133c has only one ethernet port, which I assume is admsw0, = though the mac address that is specified (00:0c:42:07:b2:4e) doesn't = match the mac address that shows up in RouterBoot (which is the same one = that I used to load the kernel). >=20 > your choice: i - board info >=20 > Board Info: >=20 > Board type: 133C3 > Serial number: 16EC01C3C23F > Firmware version: 2.18 > CPU frequency: 175 MHz > Memory size: 16 MB > eth1 MAC address: 00:0C:42:1E:9A:88 >=20 > Using tcpdump, after RouterBoot finishes loading the kernel, I see one = DHCP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 and = then there is nothing after that. I don't see any packets at all. >=20 > 192.168.11.2.23224 > 192.168.11.15.61904: [udp sum ok] UDP, length = 21 > 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto = UDP (17), length 32) > 192.168.11.15.61904 > 192.168.11.2.23224: [udp sum ok] UDP, length = 4 > 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto = UDP (17), length 328) > 0.0.0.0.bootpc > broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, = Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid = 0xd8aaeeff, Flags [none] (0x0000) > Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) > Vendor-rfc1048 Extensions > Magic Cookie 0x63825363 > DHCP-Message Option 53, length 1: Release > Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 > Vendor-Class Option 60, length 9: "Mikroboot" > Parameter-Request Option 55, length 2:=20 > Subnet-Mask, Default-Gateway > END Option 255, length 0 > PAD Option 0, length 0, occurs 32 >=20 > Thanks, > Erik >=20 Unfortunately the mac address is hardcoded for this driver (in = sys/mips/adm5120/if_admsw.c): 389 /* XXXMIPS: fix it */ 390 enaddr[0] =3D 0x00; 391 enaddr[1] =3D 0x0C; 392 enaddr[2] =3D 0x42; 393 enaddr[3] =3D 0x07; 394 enaddr[4] =3D 0xB2; 395 enaddr[5] =3D 0x4E; Luiz From owner-freebsd-mips@FreeBSD.ORG Tue May 10 14:58:47 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 2C4E91065673 for ; Tue, 10 May 2011 14:58:47 +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 E373E8FC14 for ; Tue, 10 May 2011 14:58:46 +0000 (UTC) Received: by iyj12 with SMTP id 12so7520571iyj.13 for ; Tue, 10 May 2011 07:58:46 -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:content-transfer-encoding:message-id:references :to:x-mailer; bh=sTxo9nLTqymse9yWLMK8yVqSgqwrFXkfoLswoEzwMkE=; b=b6H2/DeKiOBU84VQ8YI3YETLDcqmmhSBYjIlTfEpv0VmoU2WIT95WDJQVPfCYP3Fgk F6xUTufuIgKJmvPRVkTjctLg6YQYCLRAwCk/tViowCVON7kv2Gmxo0p/t0kTmUf9aKzl iaeAsl85s80W016+Qm10eJAEvpp29z1PVSmko= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=L8bBUMhm/bwONzmVlg80ioPRRvz/7nYuQ0xYqU/ffBwXv5alrhaeBwmn8nQcrojs/a aT9l2U5p711fctJTu48N50pFfmeFeAKvrNypaTTsRQoLkQPAT1F73vXwlVOjoNRSFaqS g0qM6TuMjO9+tIyVILau0wl9cQYga8dKRRJn0= Received: by 10.42.29.3 with SMTP id p3mr1172075icc.509.1305039526343; Tue, 10 May 2011 07:58:46 -0700 (PDT) Received: from [192.168.1.103] (24-136-20-122.c3-0.stn-ubr3.chi-stn.il.cable.rcn.com [24.136.20.122]) by mx.google.com with ESMTPS id c16sm801796ibe.24.2011.05.10.07.58.43 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 May 2011 07:58:43 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Erik Moe In-Reply-To: Date: Tue, 10 May 2011 09:58:42 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com> References: To: Luiz Otavio O Souza 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: Tue, 10 May 2011 14:58:47 -0000 On May 9, 2011, at 9:43 AM, Luiz Otavio O Souza wrote: >=20 > On May 8, 2011, at 12:28 PM, Erik Moe wrote: >=20 >> Hello, >>=20 >> I'd like to get FreeBSD running on my Router Board 133c. I'm new to = MIPS and I'm running into a little problem and I was hoping that = somebody could point me in the right direction. I pulled the latest = sources from head and I can get the kernel to boot, but after it boots = FreeBSD is unable to acquire an IP address. >>=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=3D4.94s >> 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): >> 0x29a000 - 0xffffff, 14049280 bytes (3430 pages) >> Maxmem is 0x1000000 >> KDB: debugger backends: ddb >> 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 #7 r221418M: Sat May 7 15:16:10 CDT 2011 >> = root@freebsd.localdomain:/usr/home/emoe/obj/mips/mips.mipsel/usr/home/emoe= /svn/mips/sys/ADM5120 mips >> real memory =3D 16777216 (16384K bytes) >> Physical memory chunk(s): >> 0x00326000 - 0x00f8dfff, 13008896 bytes (3176 pages) >> avail memory =3D 12754944 (12MB) >> null: >> nfslock: pseudo-device >> mem: >> 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) >> DHCP/BOOTP timeout for server 255.255.255.255 >> DHCP/BOOTP timeout for server 255.255.255.255 >> DHCP/BOOTP timeout for server 255.255.255.255 >> DHCP/BOOTP timeout for server 255.255.255.255 >> DHCP/BOOTP timeout for server 255.255.255.255 >> DHCP/BOOTP timeout for server 255.255.255.255 >> DHCP/BOOTP timeout for server 255.255.255.255 >> DHCP/BOOTP timeout for server 255.255.255.255 >>=20 >> The RB133c has only one ethernet port, which I assume is admsw0, = though the mac address that is specified (00:0c:42:07:b2:4e) doesn't = match the mac address that shows up in RouterBoot (which is the same one = that I used to load the kernel). >>=20 >> your choice: i - board info >>=20 >> Board Info: >>=20 >> Board type: 133C3 >> Serial number: 16EC01C3C23F >> Firmware version: 2.18 >> CPU frequency: 175 MHz >> Memory size: 16 MB >> eth1 MAC address: 00:0C:42:1E:9A:88 >>=20 >> Using tcpdump, after RouterBoot finishes loading the kernel, I see = one DHCP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 = and then there is nothing after that. I don't see any packets at all. >>=20 >> 192.168.11.2.23224 > 192.168.11.15.61904: [udp sum ok] UDP, length = 21 >> 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], = proto UDP (17), length 32) >> 192.168.11.15.61904 > 192.168.11.2.23224: [udp sum ok] UDP, length = 4 >> 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], = proto UDP (17), length 328) >> 0.0.0.0.bootpc > broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, = Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid = 0xd8aaeeff, Flags [none] (0x0000) >> Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) >> Vendor-rfc1048 Extensions >> Magic Cookie 0x63825363 >> DHCP-Message Option 53, length 1: Release >> Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 >> Vendor-Class Option 60, length 9: "Mikroboot" >> Parameter-Request Option 55, length 2:=20 >> Subnet-Mask, Default-Gateway >> END Option 255, length 0 >> PAD Option 0, length 0, occurs 32 >>=20 >> Thanks, >> Erik >>=20 > Unfortunately the mac address is hardcoded for this driver (in = sys/mips/adm5120/if_admsw.c): >=20 > 389 /* XXXMIPS: fix it */ > 390 enaddr[0] =3D 0x00; > 391 enaddr[1] =3D 0x0C; > 392 enaddr[2] =3D 0x42; > 393 enaddr[3] =3D 0x07; > 394 enaddr[4] =3D 0xB2; > 395 enaddr[5] =3D 0x4E; >=20 >=20 > Luiz >=20 That's not the main issue I have, the fact that the mac address is = hardcoded. The issue is once the RouterBoot loads and boots the kernel, = I'm not seeing the kernel sending any DHCP/BOOTB requests down the wire, = even though from the console log it is acting like it is.= From owner-freebsd-mips@FreeBSD.ORG Tue May 10 15:31:17 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 5A999106566B for ; Tue, 10 May 2011 15:31:17 +0000 (UTC) (envelope-from ehmoeok@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 20A988FC0C for ; Tue, 10 May 2011 15:31:17 +0000 (UTC) Received: by iwn33 with SMTP id 33so7511293iwn.13 for ; Tue, 10 May 2011 08:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:to:mime-version:x-mailer; bh=EQxtgGswcX1nuOEIRxRZT7dxBtnbjJM1GxFClvmcdnw=; b=jLhMvib3Mit1o7DyDalIK5SgWkKGvpSR0XDxKtEWHrrGx/6lCLLLiI6v104TtFihqA WWZanbPSK2luJl9ygWxFTYrGXFu2AO7IMe47kJfAJ1trW86bT6S6f6cWlxMwzro+5H63 P46UxabW1rDUmRND4iFUznLjwZe4O4g4saiAs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=w4JQDe7N1/u1FZWkZ6//lJ00qF5TWgNsv+I4D9tBxxNFQu8qvbQVJ1YZIqi90ZUsfB SnfALtC3DpNq9yNNu2kfpCQPx/hNCg75QIUNL9yfQkFEBGkFvMPD77kwAM4xeMIQlDPO L3aOpsuAO69hJ/k3XWH3xE9HMxv+WD1ariMBY= Received: by 10.42.142.71 with SMTP id r7mr1952831icu.397.1305041476565; Tue, 10 May 2011 08:31:16 -0700 (PDT) Received: from [192.168.1.103] (24-136-20-122.c3-0.stn-ubr3.chi-stn.il.cable.rcn.com [24.136.20.122]) by mx.google.com with ESMTPS id xe5sm2880530icb.10.2011.05.10.08.31.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 May 2011 08:31:15 -0700 (PDT) From: Erik Moe Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 10 May 2011 10:31:14 -0500 Message-Id: <034B1706-6E5A-41C6-988F-D4B3C911D840@gmail.com> To: freebsd-mips@freebsd.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Subject: Remote debugging 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: Tue, 10 May 2011 15:31:17 -0000 Me again, I'm trying to do some remote debugging on the RB133c. I can get the = kernel to boot over tftp. I've added the following option to the = ADM5120 kernel config: makeoptions DEBUG=3D-g=20 options DDB options KDB options GDB options BREAK_TO_DEBUGGER I've also built a cross-debugger: export SRCROOT=3D/home/emoe/svn/mips export TARGET_ARCH=3Dmipsel cd ${SRCROOT}/gnu/usr.bin/binutils && make depend all && cd ../gdb && make depend all && cd gdb && make install && cd ../kgdb && make install I've locked my serial port at 115200 baud: # stty -f /dev/cuaU0.init speed 115200 # stty -f /dev/cuaU0.lock 1 I connect to the serial port on the RB133c using screen and boot the = kernel: # screen /dev/cuaU0 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.07s 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): 0x29c000 - 0xffffff, 14041088 bytes (3428 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 #9 r221418M: Sun May 8 20:20:54 CDT 2011 = root@freebsd.localdomain:/usr/home/emoe/obj/mips/mips.mipsel/usr/home/emoe= /svn/mips/sys/ADM5120 mips real memory =3D 16777216 (16384K bytes) Physical memory chunk(s): 0x00328000 - 0x00f8dfff, 13000704 bytes (3174 pages) avail memory =3D 12746752 (12MB) nfslock: pseudo-device mem: null: 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) DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 =20 Within screen, I can send a BREAK (ctrl-a b) and drop into DDB and = invoke the GDB backend. KDB: enter: Line break on console [ thread pid 10 tid 100002 ] Stopped at kdb_enter+0x4c: lui at,0x8029 db> gdb (ctrl-c will return control to ddb) Switching to gdb back-end $T0525:78dc0b80;thread:186a2;#e4 Then I can exit screen (ctrl-a K) and invoke kgdb-mipsel, but I'm seeing = a lot of "Ignoring packet error", "Reply contains invalid hex digit 116" = errors and it doesn't seem to be functioning. # kgdb-mipsel -r /dev/cuaU0 /home/emoe/tftpboot/boot/kernel/kernel GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you = are welcome to change it and/or distribute copies of it under certain = conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for = details. This GDB was configured as "--host=3Di386-marcel-freebsd = --target=3Dmipsel-marcel-freebsd"...Switching to remote protocol kdb_enter (why=3D0x801f1eac "break", Ignoring packet error, = continuing... msg=3DReply contains invalid hex digit 116 ) at /usr/home/emoe/svn/mips/sys/kern/subr_kdb.c:336 336 kdb_why =3D KDB_WHY_UNSET; Ignoring packet error, continuing... (kgdb) break admsw_start Ignoring packet error, continuing... Reply contains invalid hex digit 116 (kgdb) continue Continuing. Ignoring packet error, continuing... It could very well be I don't know what I'm doing, but has anyone had = success? Thanks, Erik =20= From owner-freebsd-mips@FreeBSD.ORG Wed May 11 00:59:10 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 8AE481065672 for ; Wed, 11 May 2011 00:59:10 +0000 (UTC) (envelope-from ehmoeok@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4C31B8FC18 for ; Wed, 11 May 2011 00:59:10 +0000 (UTC) Received: by iwn33 with SMTP id 33so29482iwn.13 for ; Tue, 10 May 2011 17:59:09 -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:content-transfer-encoding:message-id:references :to:x-mailer; bh=3LjKLpUH5T1kACg6ykeUduPSxUy4+EoRjxIbVNW36hM=; b=q/DxFS98WT0wMg460jfpDQhNHDThhSNB3pdnRscCwN0uz3rUluspXnTjfDj/2dxbGz ltVC32D33M/d/LAMd1o3UjygRcVfP3zmRHA8X1ajARrxJA+e7Ku0SXFfEvGdqC1AqZCt Z0Dztsu9lwLYpb7R78zKe8pHHi58RMDyyTVaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=s0syQvx5XE5T9eTbYVcbjBYINXEqXxcfo/J0+n91eJ9gt1grDdg4p00m+rZh1DSjv4 QT2zMwTL751Q6mV7Ytp4gzIjgdJYUGpdztaH1b2iMs01NwydpnY/UMPksrtRwsIWq+xS m7JlnzyGCe6TwAeZ3kj+hCvIP9gnoDVF+qcf0= Received: by 10.42.158.72 with SMTP id g8mr7351487icx.149.1305075549729; Tue, 10 May 2011 17:59:09 -0700 (PDT) Received: from [192.168.1.103] (24-136-20-122.c3-0.stn-ubr3.chi-stn.il.cable.rcn.com [24.136.20.122]) by mx.google.com with ESMTPS id ui7sm3029972icb.2.2011.05.10.17.59.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 May 2011 17:59:09 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Erik Moe In-Reply-To: <4DC9DA05.7050901@freebsd.org> Date: Tue, 10 May 2011 19:59:07 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com> <4DC9DA05.7050901@freebsd.org> 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: Wed, 11 May 2011 00:59:10 -0000 On May 10, 2011, at 7:36 PM, Oleksandr Tymoshenko wrote: > On 10/05/2011 7:58 AM, Erik Moe wrote: >=20 >>>> Using tcpdump, after RouterBoot finishes loading the kernel, I see = one DHCP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 = and then there is nothing after that. I don't see any packets at all. >>>>=20 >>>> 192.168.11.2.23224> 192.168.11.15.61904: [udp sum ok] UDP, = length 21 >>>> 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], = proto UDP (17), length 32) >>>> 192.168.11.15.61904> 192.168.11.2.23224: [udp sum ok] UDP, = length 4 >>>> 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], = proto UDP (17), length 328) >>>> 0.0.0.0.bootpc> broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, = Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid = 0xd8aaeeff, Flags [none] (0x0000) >>>> Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) >>>> Vendor-rfc1048 Extensions >>>> Magic Cookie 0x63825363 >>>> DHCP-Message Option 53, length 1: Release >>>> Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 >>>> Vendor-Class Option 60, length 9: "Mikroboot" >>>> Parameter-Request Option 55, length 2: >>>> Subnet-Mask, Default-Gateway >>>> END Option 255, length 0 >>>> PAD Option 0, length 0, occurs 32 >>>>=20 >>>> Thanks, >>>> Erik >>>>=20 >>> Unfortunately the mac address is hardcoded for this driver (in = sys/mips/adm5120/if_admsw.c): >>>=20 >>> 389 /* XXXMIPS: fix it */ >>> 390 enaddr[0] =3D 0x00; >>> 391 enaddr[1] =3D 0x0C; >>> 392 enaddr[2] =3D 0x42; >>> 393 enaddr[3] =3D 0x07; >>> 394 enaddr[4] =3D 0xB2; >>> 395 enaddr[5] =3D 0x4E; >>>=20 >>>=20 >>> Luiz >>>=20 >>=20 >>=20 >> That's not the main issue I have, the fact that the mac address is = hardcoded. The issue is once the RouterBoot loads and boots the kernel, = I'm not seeing the kernel sending any DHCP/BOOTB requests down the wire, = even though from the console log it is acting like it is. >=20 > Tcpdump session above - are those only packets during the session? = Were > there proper DHCP replies that were ignored? Could you show full log? This is all the DHCP traffic, but this is coming from the Routerboot = bios. There is a Discover, Offer, Request and ACK. Then the Routerboot = tftps the kernel and starts to boot. Then right after the "Sending DHCP = Discover packet from interface admsw0 (00:0c:42:07:b2:4e)" message I see = the DHCP Release, but that's coming from the Routerboot. erik-moes-macbook-pro:~ erikmoe$ sudo tcpdump -i en0 -vv port 67 or 68 tcpdump: listening on en0, link-type EN10MB (Ethernet), capture size = 65535 bytes 19:45:28.493715 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto = UDP (17), length 328) 0.0.0.0.bootpc > broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, = Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid = 0xd8aaeeff, Flags [none] (0x0000) Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: Discover Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 Vendor-Class Option 60, length 9: "Mikroboot" Parameter-Request Option 55, length 2:=20 Subnet-Mask, Default-Gateway 19:45:28.494237 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], = proto UDP (17), length 328) 192.168.11.2.bootps > 192.168.11.15.bootpc: [udp sum ok] BOOTP/DHCP, = Reply, length 300, xid 0xd8aaeeff, Flags [none] (0x0000) Your-IP 192.168.11.15 Server-IP 192.168.11.2 Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) file "boot/kernel/kernel" Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: Offer Server-ID Option 54, length 4: 192.168.11.2 Lease-Time Option 51, length 4: 43200 Subnet-Mask Option 1, length 4: 255.255.255.0 Default-Gateway Option 3, length 4: 192.168.11.1 19:45:28.495215 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto = UDP (17), length 328) 0.0.0.0.bootpc > broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, = Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid = 0xd8aaeeff, Flags [none] (0x0000) Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: Request Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 Requested-IP Option 50, length 4: 192.168.11.15 Server-ID Option 54, length 4: 192.168.11.2 Vendor-Class Option 60, length 9: "Mikroboot" Parameter-Request Option 55, length 2:=20 Subnet-Mask, Default-Gateway 19:45:28.496099 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], = proto UDP (17), length 328) 192.168.11.2.bootps > 192.168.11.15.bootpc: [udp sum ok] BOOTP/DHCP, = Reply, length 300, xid 0xd8aaeeff, Flags [none] (0x0000) Your-IP 192.168.11.15 Server-IP 192.168.11.2 Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) file "boot/kernel/kernel" Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: ACK Server-ID Option 54, length 4: 192.168.11.2 Lease-Time Option 51, length 4: 43200 Subnet-Mask Option 1, length 4: 255.255.255.0 Default-Gateway Option 3, length 4: 192.168.11.1 19:45:33.598442 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto = UDP (17), length 328) 0.0.0.0.bootpc > broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, = Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid = 0xd8aaeeff, Flags [none] (0x0000) Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: Release Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 Vendor-Class Option 60, length 9: "Mikroboot" Parameter-Request Option 55, length 2:=20 Subnet-Mask, Default-Gateway 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.09s 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): 0x29c000 - 0xffffff, 14041088 bytes (3428 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 #0 r221418M: Tue May 10 19:43:32 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): 0x00328000 - 0x00f8dfff, 13000704 bytes (3174 pages) avail memory =3D 12746752 (12MB) nfslock: pseudo-device mem: null: 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) DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 From owner-freebsd-mips@FreeBSD.ORG Wed May 11 01:22:56 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 4E781106566C for ; Wed, 11 May 2011 01:22:56 +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 C25788FC1F for ; Wed, 11 May 2011 01:22:55 +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 1QJy8b-000DdC-GN; Tue, 10 May 2011 18:22:54 -0700 Message-ID: <4DC9E4ED.8070203@freebsd.org> Date: Tue, 10 May 2011 18:22:53 -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: Erik Moe References: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com> <4DC9DA05.7050901@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 10/05/2011 5:59 PM, Erik Moe wrote: > > On May 10, 2011, at 7:36 PM, Oleksandr Tymoshenko wrote: > >> On 10/05/2011 7:58 AM, Erik Moe wrote: >> >>>>> Using tcpdump, after RouterBoot finishes loading the kernel, I see one DHCP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 and then there is nothing after that. I don't see any packets at all. >>>>> >>>>> 192.168.11.2.23224> 192.168.11.15.61904: [udp sum ok] UDP, length 21 >>>>> 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 32) >>>>> 192.168.11.15.61904> 192.168.11.2.23224: [udp sum ok] UDP, length 4 >>>>> 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 328) >>>>> 0.0.0.0.bootpc> broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid 0xd8aaeeff, Flags [none] (0x0000) >>>>> Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) >>>>> Vendor-rfc1048 Extensions >>>>> Magic Cookie 0x63825363 >>>>> DHCP-Message Option 53, length 1: Release >>>>> Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 >>>>> Vendor-Class Option 60, length 9: "Mikroboot" >>>>> Parameter-Request Option 55, length 2: >>>>> Subnet-Mask, Default-Gateway >>>>> END Option 255, length 0 >>>>> PAD Option 0, length 0, occurs 32 >>>>> >>>>> Thanks, >>>>> Erik >>>>> >>>> Unfortunately the mac address is hardcoded for this driver (in sys/mips/adm5120/if_admsw.c): >>>> >>>> 389 /* XXXMIPS: fix it */ >>>> 390 enaddr[0] = 0x00; >>>> 391 enaddr[1] = 0x0C; >>>> 392 enaddr[2] = 0x42; >>>> 393 enaddr[3] = 0x07; >>>> 394 enaddr[4] = 0xB2; >>>> 395 enaddr[5] = 0x4E; >>>> >>>> >>>> Luiz >>>> >>> >>> >>> That's not the main issue I have, the fact that the mac address is hardcoded. The issue is once the RouterBoot loads and boots the kernel, I'm not seeing the kernel sending any DHCP/BOOTB requests down the wire, even though from the console log it is acting like it is. >> >> Tcpdump session above - are those only packets during the session? Were >> there [...] 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: 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: Wed, 11 May 2011 01:22:56 -0000 On 10/05/2011 5:59 PM, Erik Moe wrote: > > On May 10, 2011, at 7:36 PM, Oleksandr Tymoshenko wrote: > >> On 10/05/2011 7:58 AM, Erik Moe wrote: >> >>>>> Using tcpdump, after RouterBoot finishes loading the kernel, I see one DHCP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 and then there is nothing after that. I don't see any packets at all. >>>>> >>>>> 192.168.11.2.23224> 192.168.11.15.61904: [udp sum ok] UDP, length 21 >>>>> 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 32) >>>>> 192.168.11.15.61904> 192.168.11.2.23224: [udp sum ok] UDP, length 4 >>>>> 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 328) >>>>> 0.0.0.0.bootpc> broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid 0xd8aaeeff, Flags [none] (0x0000) >>>>> Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) >>>>> Vendor-rfc1048 Extensions >>>>> Magic Cookie 0x63825363 >>>>> DHCP-Message Option 53, length 1: Release >>>>> Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 >>>>> Vendor-Class Option 60, length 9: "Mikroboot" >>>>> Parameter-Request Option 55, length 2: >>>>> Subnet-Mask, Default-Gateway >>>>> END Option 255, length 0 >>>>> PAD Option 0, length 0, occurs 32 >>>>> >>>>> Thanks, >>>>> Erik >>>>> >>>> Unfortunately the mac address is hardcoded for this driver (in sys/mips/adm5120/if_admsw.c): >>>> >>>> 389 /* XXXMIPS: fix it */ >>>> 390 enaddr[0] = 0x00; >>>> 391 enaddr[1] = 0x0C; >>>> 392 enaddr[2] = 0x42; >>>> 393 enaddr[3] = 0x07; >>>> 394 enaddr[4] = 0xB2; >>>> 395 enaddr[5] = 0x4E; >>>> >>>> >>>> Luiz >>>> >>> >>> >>> That's not the main issue I have, the fact that the mac address is hardcoded. The issue is once the RouterBoot loads and boots the kernel, I'm not seeing the kernel sending any DHCP/BOOTB requests down the wire, even though from the console log it is acting like it is. >> >> Tcpdump session above - are those only packets during the session? Were >> there proper DHCP replies that were ignored? Could you show full log? > > > This is all the DHCP traffic, but this is coming from the Routerboot bios. There is a Discover, Offer, Request and ACK. Then the Routerboot tftps the kernel and starts to boot. Then right after the "Sending DHCP Discover packet from interface admsw0 (00:0c:42:07:b2:4e)" message I see the DHCP Release, but that's coming from the Routerboot. Try this hack: http://people.freebsd.org/~gonzo/patches/admsw-hack.diff From owner-freebsd-mips@FreeBSD.ORG Wed May 11 01:24:53 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 23A661065674 for ; Wed, 11 May 2011 01:24:53 +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 B77898FC1A for ; Wed, 11 May 2011 01:24:52 +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 1QJxPY-000DT8-NG; Tue, 10 May 2011 17:36:21 -0700 Message-ID: <4DC9DA05.7050901@freebsd.org> Date: Tue, 10 May 2011 17:36:21 -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: Erik Moe , freebsd-mips@freebsd.org References: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com> In-Reply-To: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com> 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 10/05/2011 7:58 AM, Erik Moe wrote: >>> Using tcpdump, after RouterBoot finishes loading the kernel, I see one DHCP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 and then there is nothing after that. I don't see any packets at all. >>> >>> 192.168.11.2.23224> 192.168.11.15.61904: [udp sum ok] UDP, length 21 >>> 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 32) >>> 192.168.11.15.61904> 192.168.11.2.23224: [udp sum ok] UDP, length 4 >>> 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 328) >>> 0.0.0.0.bootpc> broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid 0xd8aaeeff, Flags [none] (0x0000) >>> Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) >>> Vendor-rfc1048 Extensions >>> Magic Cookie 0x63825363 >>> DHCP-Message Option 53, length 1: Release >>> Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 >>> Vendor-Class Option 60, length 9: "Mikroboot" >>> Parameter-Request Option 55, length 2: >>> Subnet-Mask, Default-Gateway >>> END Option 255, length 0 >>> PAD Option 0, length 0, occurs 32 >>> >>> Thanks, >>> Erik >>> >> Unfortunately the mac address is hardcoded for this driver (in sys/mips/adm5120/if_admsw.c): >> >> 389 /* XXXMIPS: fix it */ >> 390 enaddr[0] = 0x00; >> 391 enaddr[1] = 0x0C; >> 392 enaddr[2] = 0x42; >> 393 enaddr[3] = 0x07; >> 394 enaddr[4] = 0xB2; >> 395 enaddr[5] = 0x4E; >> >> >> Luiz >> > > > That's not the main issue I have, the fact that the mac address is hardcoded. The issue is once the RouterBoot loads and boots the kernel, I'm not seeing the kernel sending any DHCP/BOOTB requests down the wire, even though from the console log it is acting like it is. [...] 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: 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: Wed, 11 May 2011 01:24:53 -0000 On 10/05/2011 7:58 AM, Erik Moe wrote: >>> Using tcpdump, after RouterBoot finishes loading the kernel, I see one DHCP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 and then there is nothing after that. I don't see any packets at all. >>> >>> 192.168.11.2.23224> 192.168.11.15.61904: [udp sum ok] UDP, length 21 >>> 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 32) >>> 192.168.11.15.61904> 192.168.11.2.23224: [udp sum ok] UDP, length 4 >>> 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 328) >>> 0.0.0.0.bootpc> broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid 0xd8aaeeff, Flags [none] (0x0000) >>> Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) >>> Vendor-rfc1048 Extensions >>> Magic Cookie 0x63825363 >>> DHCP-Message Option 53, length 1: Release >>> Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 >>> Vendor-Class Option 60, length 9: "Mikroboot" >>> Parameter-Request Option 55, length 2: >>> Subnet-Mask, Default-Gateway >>> END Option 255, length 0 >>> PAD Option 0, length 0, occurs 32 >>> >>> Thanks, >>> Erik >>> >> Unfortunately the mac address is hardcoded for this driver (in sys/mips/adm5120/if_admsw.c): >> >> 389 /* XXXMIPS: fix it */ >> 390 enaddr[0] = 0x00; >> 391 enaddr[1] = 0x0C; >> 392 enaddr[2] = 0x42; >> 393 enaddr[3] = 0x07; >> 394 enaddr[4] = 0xB2; >> 395 enaddr[5] = 0x4E; >> >> >> Luiz >> > > > That's not the main issue I have, the fact that the mac address is hardcoded. The issue is once the RouterBoot loads and boots the kernel, I'm not seeing the kernel sending any DHCP/BOOTB requests down the wire, even though from the console log it is acting like it is. Tcpdump session above - are those only packets during the session? Were there proper DHCP replies that were ignored? Could you show full log? From owner-freebsd-mips@FreeBSD.ORG Wed May 11 01:24:53 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 BC1AD106567B for ; Wed, 11 May 2011 01:24:53 +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 86A258FC1C for ; Wed, 11 May 2011 01:24:53 +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 1QJxUD-000DUG-Fn for freebsd-mips@freebsd.org; Tue, 10 May 2011 17:41:09 -0700 Message-ID: <4DC9DB26.4050004@freebsd.org> Date: Tue, 10 May 2011 17:41:10 -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 08/05/2011 11:19 PM, Adrian Chadd wrote: > If it has one physical ethernet port, I wonder why the switch engine > thinks there's 6.. Because it's hardcoded. I lost access to hardware at relatively early stage of development :( [...] 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: 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: Wed, 11 May 2011 01:24:54 -0000 On 08/05/2011 11:19 PM, Adrian Chadd wrote: > If it has one physical ethernet port, I wonder why the switch engine > thinks there's 6.. Because it's hardcoded. I lost access to hardware at relatively early stage of development :( From owner-freebsd-mips@FreeBSD.ORG Wed May 11 02:04:06 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 E560F1065670; Wed, 11 May 2011 02:04:06 +0000 (UTC) (envelope-from ehmoeok@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 88C558FC19; Wed, 11 May 2011 02:04:06 +0000 (UTC) Received: by ywf7 with SMTP id 7so26972ywf.13 for ; Tue, 10 May 2011 19:04:05 -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:content-transfer-encoding:message-id:references :to:x-mailer; bh=VjEMHESoa3uWqoaNp3dhDdsbhV+4L59e4KahJIfjFIw=; b=AEl84bMEy5G6vPMdr3hxXZ2TgIqV+7OTgsfih1yfb+oBvuNX/Wqpjbrg5N/9FljUAB LmDBZH9S8Z5rN8wBRxaVOX+pHPQvC3eqFw5On6LOewOevxu/ga4/PLs05Jl69KfQApDo 7Tmm91/qJAwzPwDNR29QpTGMMQbR7BF/NtNNk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=uFF2gtz/3XWo7DExqSRosk/h+UbrSZkAR1yD7XylM3XE5cTSShJXcvnmOY35QSgjHE i2LFZdTfc7xBv/33yrGM0LUVLZXjUR3OeHfUv7IWD4HxowyPD36cNPNbihMJFOfCWs7Q gTuZ2+gYbCl1oyopJz+xkuKeuPgx11iFkEir4= Received: by 10.150.118.41 with SMTP id q41mr7133470ybc.314.1305079445706; Tue, 10 May 2011 19:04:05 -0700 (PDT) Received: from [192.168.1.103] (24-136-20-122.c3-0.stn-ubr3.chi-stn.il.cable.rcn.com [24.136.20.122]) by mx.google.com with ESMTPS id p23sm1834271ybc.29.2011.05.10.19.04.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 May 2011 19:04:05 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Erik Moe In-Reply-To: <4DC9E4ED.8070203@freebsd.org> Date: Tue, 10 May 2011 21:04:03 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <5BF1630A-DC4C-4301-B27D-61004D238361@gmail.com> References: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com> <4DC9DA05.7050901@freebsd.org> <4DC9E4ED.8070203@freebsd.org> 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: Wed, 11 May 2011 02:04:07 -0000 On May 10, 2011, at 8:22 PM, Oleksandr Tymoshenko wrote: > On 10/05/2011 5:59 PM, Erik Moe wrote: >>=20 >> On May 10, 2011, at 7:36 PM, Oleksandr Tymoshenko wrote: >>=20 >>> On 10/05/2011 7:58 AM, Erik Moe wrote: >>>=20 >>>>>> Using tcpdump, after RouterBoot finishes loading the kernel, I = see one DHCP request coming from the RouterBoard using mac = 00:0c:42:1e:9a:88 and then there is nothing after that. I don't see any = packets at all. >>>>>>=20 >>>>>> 192.168.11.2.23224> 192.168.11.15.61904: [udp sum ok] UDP, = length 21 >>>>>> 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], = proto UDP (17), length 32) >>>>>> 192.168.11.15.61904> 192.168.11.2.23224: [udp sum ok] UDP, = length 4 >>>>>> 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], = proto UDP (17), length 328) >>>>>> 0.0.0.0.bootpc> broadcasthost.bootps: [udp sum ok] = BOOTP/DHCP, Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, = xid 0xd8aaeeff, Flags [none] (0x0000) >>>>>> Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) >>>>>> Vendor-rfc1048 Extensions >>>>>> Magic Cookie 0x63825363 >>>>>> DHCP-Message Option 53, length 1: Release >>>>>> Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 >>>>>> Vendor-Class Option 60, length 9: "Mikroboot" >>>>>> Parameter-Request Option 55, length 2: >>>>>> Subnet-Mask, Default-Gateway >>>>>> END Option 255, length 0 >>>>>> PAD Option 0, length 0, occurs 32 >>>>>>=20 >>>>>> Thanks, >>>>>> Erik >>>>>>=20 >>>>> Unfortunately the mac address is hardcoded for this driver (in = sys/mips/adm5120/if_admsw.c): >>>>>=20 >>>>> 389 /* XXXMIPS: fix it */ >>>>> 390 enaddr[0] =3D 0x00; >>>>> 391 enaddr[1] =3D 0x0C; >>>>> 392 enaddr[2] =3D 0x42; >>>>> 393 enaddr[3] =3D 0x07; >>>>> 394 enaddr[4] =3D 0xB2; >>>>> 395 enaddr[5] =3D 0x4E; >>>>>=20 >>>>>=20 >>>>> Luiz >>>>>=20 >>>>=20 >>>>=20 >>>> That's not the main issue I have, the fact that the mac address is = hardcoded. The issue is once the RouterBoot loads and boots the kernel, = I'm not seeing the kernel sending any DHCP/BOOTB requests down the wire, = even though from the console log it is acting like it is. >>>=20 >>> Tcpdump session above - are those only packets during the session? = Were >>> there proper DHCP replies that were ignored? Could you show full = log? >>=20 >>=20 >> This is all the DHCP traffic, but this is coming from the Routerboot = bios. There is a Discover, Offer, Request and ACK. Then the Routerboot = tftps the kernel and starts to boot. Then right after the "Sending DHCP = Discover packet from interface admsw0 (00:0c:42:07:b2:4e)" message I see = the DHCP Release, but that's coming from the Routerboot. >=20 > Try this hack: > http://people.freebsd.org/~gonzo/patches/admsw-hack.diff Progress! I definitely got further now. I had to add a new entry to my = dhcpd.conf for the hardcoded mac address, but now I'm getting a kernel = panic. # dhcpd.conf # subnet 192.168.221.0 netmask 255.255.255.0 { } subnet 192.168.11.0 netmask 255.255.255.0 { deny unknown-clients; option routers 192.168.11.1; next-server 192.168.11.2; filename "boot/kernel/kernel"; } host rb133c-boot { hardware ethernet 00:0c:42:1e:9a:88; fixed-address 192.168.11.15; } host rb133c { hardware ethernet 00:0c:42:07:b2:4e; fixed-address 192.168.11.15; option root-path "192.168.11.2:/home/emoe/nfsroot"; } 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.09s 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): 0x29c000 - 0xffffff, 14041088 bytes (3428 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 #1 r221418M: Tue May 10 20:45:51 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): 0x00328000 - 0x00f8dfff, 13000704 bytes (3174 pages) avail memory =3D 12746752 (12MB) nfslock: pseudo-device mem: null: 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:/home/emoe/nfsroot=20 Adjusted interface admsw0 panic: _mtx_lock_sleep: recursed on non-recursive mutex admsw1 @ /usr/ db> bt Tracing pid 0 tid 100000 td 0x8027cd50 db_trace_thread+30 (?,?,?,?) ra 800030b0 sp 802ad3d8 sz 24 80002f9c+114 (0,?,ffffffff,?) ra 8000266c sp 802ad3f0 sz 32 800022e4+388 (?,?,?,?) ra 800027f0 sp 802ad410 sz 168 db_command_loop+70 (?,?,?,?) ra 80004e34 sp 802ad4b8 sz 24 80004d40+f4 (?,?,?,?) ra 800bd9ec sp 802ad4d0 sz 424 kdb_trap+104 (?,?,?,?) ra 801cb0f0 sp 802ad678 sz 40 trap+b98 (?,?,?,?) ra 801c3140 sp 802ad6a0 sz 168 MipsKernGenException+134 (0,a,802abfe4,109) ra 800bdc78 sp 802ad748 sz = 200 kdb_enter+4c (?,?,?,?) ra 80086bf4 sp 802ad810 sz 24 panic+f4 (?,80444814,8021fd68,269) ra 80076f9c sp 802ad828 sz 40 _mtx_lock_sleep+68 (?,?,?,?) ra 800771e0 sp 802ad850 sz 32 _mtx_lock_flags+104 (?,?,?,?) ra 801e0840 sp 802ad870 sz 32 801e07ac+94 (?,?,?,?) ra 801e0ea4 sp 802ad890 sz 72 801e0d20+184 (?,?,?,?) ra 801e185c sp 802ad8d8 sz 40 801e1774+e8 (?,?,?,?) ra 8005f47c sp 802ad900 sz 40 intr_event_handle+98 (?,?,?,?) ra 801e27e0 sp 802ad928 sz 48 801e277c+64 (?,?,?,?) ra 8005f47c sp 802ad958 sz 32 intr_event_handle+98 (?,?,?,?) ra 801e45f4 sp 802ad978 sz 48 cpu_intr+184 (802ad9f8,?,?,?) ra 801c361c sp 802ad9a8 sz 56 MipsKernIntr+134 (80444914,8027cd50,0,269) ra 801e08a8 sp 802ad9e0 sz = 200 801e07ac+fc (?,?,?,?) ra 8012c0d0 sp 802adaa8 sz 72 if_start+14 (?,?,?,?) ra 8012ca8c sp 802adaf0 sz 24 8012c938+154 (?,?,?,?) ra 801348d4 sp 802adb08 sz 40 ether_output_frame+6c (?,8044fd00,?,?) ra 80134eec sp 802adb30 sz 24 ether_output+608 (?,8044fd00,?,?) ra 80141884 sp 802adb48 sz 72 arprequest+1ec (?,?,?,?) ra 80142b88 sp 802adb90 sz 72 arp_ifinit+6c (?,?,?,?) ra 80133f88 sp 802adbd8 sz 32 ether_ioctl+78 (?,?,?,?) ra 801e1024 sp 802adbf8 sz 32 801e0ed8+14c (?,?,?,?) ra 80148c7c sp 802adc18 sz 32 80148984+2f8 (0,?,0,?) ra 80149dfc sp 802adc38 sz 80 in_control+968 (?,?,?,?) ra 8013224c sp 802adc88 sz 88 ifioctl+1350 (?,?,8049fb78,8027cd50) ra 80175740 sp 802adce0 sz 144 bootpc_init+162c (?,?,?,?) ra 8003f3fc sp 802add70 sz 240 mi_startup+138 (?,?,?,?) ra 80001190 sp 802ade60 sz 32 _start+90 (?,?,?,?) ra 0 sp 802ade80 sz 0 pid 0 From owner-freebsd-mips@FreeBSD.ORG Thu May 12 01:49:24 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 64AA2106567B for ; Thu, 12 May 2011 01:49:24 +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 D86E68FC08 for ; Thu, 12 May 2011 01:49:23 +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 1QKL1l-000KC9-TK; Wed, 11 May 2011 18:49:22 -0700 Message-ID: <4DCB3CA2.7080505@freebsd.org> Date: Wed, 11 May 2011 18:49:22 -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: Erik Moe References: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com> <4DC9DA05.7050901@freebsd.org> <4DC9E4ED.8070203@freebsd.org> <5BF1630A-DC4C-4301-B27D-61004D238361@gmail.com> In-Reply-To: <5BF1630A-DC4C-4301-B27D-61004D238361@gmail.com> 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 10/05/2011 7:04 PM, Erik Moe wrote: > db> bt > Tracing pid 0 tid 100000 td 0x8027cd50 > db_trace_thread+30 (?, ?, ?, ?) ra 800030b0 sp 802ad3d8 sz 24 > 80002f9c+114 (0, ?, ffffffff, ?) ra 8000266c sp 802ad3f0 sz 32 > 800022e4+388 (?, ?, ?, ?) ra 800027f0 sp 802ad410 sz 168 > db_command_loop+70 (?, ?, ?, ?) ra 80004e34 sp 802ad4b8 sz 24 > 80004d40+f4 (?, ?, ?, ?) ra 800bd9ec sp 802ad4d0 sz 424 > kdb_trap+104 (?, ?, ?, ?) ra 801cb0f0 sp 802ad678 sz 40 > trap+b98 (?, ?, ?, ?) ra 801c3140 sp 802ad6a0 sz 168 > MipsKernGenException+134 (0, a, 802abfe4, 109) ra 800bdc78 sp 802ad748 sz 200 > kdb_enter+4c (?, ?, ?, ?) ra 80086bf4 sp 802ad810 sz 24 > panic+f4 (?, 80444814, 8021fd68, 269) ra 80076f9c sp 802ad828 sz 40 > _mtx_lock_sleep+68 (?, ?, ?, ?) ra 800771e0 sp 802ad850 sz 32 > _mtx_lock_flags+104 (?, ?, ?, ?) ra 801e0840 sp 802ad870 sz 32 > 801e07ac+94 (?, ?, ?, ?) ra 801e0ea4 sp 802ad890 sz 72 > 801e0d20+184 (?, ?, ?, ?) ra 801e185c sp 802ad8d8 sz 40 > 801e1774+e8 (?, ?, ?, ?) ra 8005f47c sp 802ad900 sz 40 > intr_event_handle+98 (?, ?, ?, ?) ra 801e27e0 sp 802ad928 sz 48 > 801e277c+64 (?, ?, ?, ?) ra 8005f47c sp 802ad958 sz 32 > intr_event_handle+98 (?, ?, ?, ?) ra 801e45f4 sp 802ad978 sz 48 > cpu_intr+184 (802ad9f8, ?, ?, ?) ra 801c361c sp 802ad9a8 sz 56 > MipsKernIntr+134 (80444914, 8027cd50, 0, 269) ra 801e08a8 sp 802ad9e0 sz 200 > 801e07ac+fc (?, ?, ?, ?) ra 8012c0d0 sp 802adaa8 sz 72 > if_start+14 (?, ?, ?, ?) ra 8012ca8c sp 802adaf0 sz 24 > 8012c938+154 (?, ?, ?, ?) ra 801348d4 sp 802adb08 sz 40 > ether_output_frame+6c (?, 8044fd00, ?, ?) ra 80134eec sp 802adb30 sz 24 > ether_output+608 (?, 8044fd00, ?, ?) ra 80141884 sp 802adb48 sz 72 > arprequest+1ec (?, ?, ?, ?) ra 80142b88 sp 802adb90 sz 72 > arp_ifinit+6c (?, ?, ?, ?) ra 80133f88 sp 802adbd8 sz 32 > ether_ioctl+78 (?, ?, ?, ?) ra 801e1024 sp 802adbf8 sz 32 > 801e0ed8+14c (?, ?, ?, ?) ra 80148c7c sp 802adc18 sz 32 > 80148984+2f8 (0, ?, 0, ?) ra 80149dfc sp 802adc38 sz 80 > in_control+968 (?, ?, ?, ?) ra 8013224c sp 802adc88 sz 88 > ifioctl+1350 (?, ?, 8049fb78, 8027cd50) ra 80175740 sp 802adce0 sz 144 > bootpc_init+162c (?, ?, ?, ?) ra 8003f3fc sp [...] 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: 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: Thu, 12 May 2011 01:49:24 -0000 On 10/05/2011 7:04 PM, Erik Moe wrote: > db> bt > Tracing pid 0 tid 100000 td 0x8027cd50 > db_trace_thread+30 (?,?,?,?) ra 800030b0 sp 802ad3d8 sz 24 > 80002f9c+114 (0,?,ffffffff,?) ra 8000266c sp 802ad3f0 sz 32 > 800022e4+388 (?,?,?,?) ra 800027f0 sp 802ad410 sz 168 > db_command_loop+70 (?,?,?,?) ra 80004e34 sp 802ad4b8 sz 24 > 80004d40+f4 (?,?,?,?) ra 800bd9ec sp 802ad4d0 sz 424 > kdb_trap+104 (?,?,?,?) ra 801cb0f0 sp 802ad678 sz 40 > trap+b98 (?,?,?,?) ra 801c3140 sp 802ad6a0 sz 168 > MipsKernGenException+134 (0,a,802abfe4,109) ra 800bdc78 sp 802ad748 sz 200 > kdb_enter+4c (?,?,?,?) ra 80086bf4 sp 802ad810 sz 24 > panic+f4 (?,80444814,8021fd68,269) ra 80076f9c sp 802ad828 sz 40 > _mtx_lock_sleep+68 (?,?,?,?) ra 800771e0 sp 802ad850 sz 32 > _mtx_lock_flags+104 (?,?,?,?) ra 801e0840 sp 802ad870 sz 32 > 801e07ac+94 (?,?,?,?) ra 801e0ea4 sp 802ad890 sz 72 > 801e0d20+184 (?,?,?,?) ra 801e185c sp 802ad8d8 sz 40 > 801e1774+e8 (?,?,?,?) ra 8005f47c sp 802ad900 sz 40 > intr_event_handle+98 (?,?,?,?) ra 801e27e0 sp 802ad928 sz 48 > 801e277c+64 (?,?,?,?) ra 8005f47c sp 802ad958 sz 32 > intr_event_handle+98 (?,?,?,?) ra 801e45f4 sp 802ad978 sz 48 > cpu_intr+184 (802ad9f8,?,?,?) ra 801c361c sp 802ad9a8 sz 56 > MipsKernIntr+134 (80444914,8027cd50,0,269) ra 801e08a8 sp 802ad9e0 sz 200 > 801e07ac+fc (?,?,?,?) ra 8012c0d0 sp 802adaa8 sz 72 > if_start+14 (?,?,?,?) ra 8012ca8c sp 802adaf0 sz 24 > 8012c938+154 (?,?,?,?) ra 801348d4 sp 802adb08 sz 40 > ether_output_frame+6c (?,8044fd00,?,?) ra 80134eec sp 802adb30 sz 24 > ether_output+608 (?,8044fd00,?,?) ra 80141884 sp 802adb48 sz 72 > arprequest+1ec (?,?,?,?) ra 80142b88 sp 802adb90 sz 72 > arp_ifinit+6c (?,?,?,?) ra 80133f88 sp 802adbd8 sz 32 > ether_ioctl+78 (?,?,?,?) ra 801e1024 sp 802adbf8 sz 32 > 801e0ed8+14c (?,?,?,?) ra 80148c7c sp 802adc18 sz 32 > 80148984+2f8 (0,?,0,?) ra 80149dfc sp 802adc38 sz 80 > in_control+968 (?,?,?,?) ra 8013224c sp 802adc88 sz 88 > ifioctl+1350 (?,?,8049fb78,8027cd50) ra 80175740 sp 802adce0 sz 144 > bootpc_init+162c (?,?,?,?) ra 8003f3fc sp 802add70 sz 240 > mi_startup+138 (?,?,?,?) ra 80001190 sp 802ade60 sz 32 > _start+90 (?,?,?,?) ra 0 sp 802ade80 sz 0 > pid 0 Unresolved symbols are static functions. In order to get them resolved you need to boot trampoline kernel, although I'm not sure how to do it in RouterBOOT (yet). Could you send me your kernel binary meanwhile? From owner-freebsd-mips@FreeBSD.ORG Thu May 12 14:44:00 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 246FE106564A; Thu, 12 May 2011 14:44:00 +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 C1CF98FC1A; Thu, 12 May 2011 14:43:59 +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 p4CEhwd9075145; Thu, 12 May 2011 10:43:58 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.4/Submit) id p4CEhwQT075140; Thu, 12 May 2011 14:43:58 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 12 May 2011 14:43:58 GMT Message-Id: <201105121443.p4CEhwQT075140@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: Thu, 12 May 2011 14:44:00 -0000 TB --- 2011-05-12 13:51:15 - tinderbox 2.7 running on freebsd-current.sentex.ca TB --- 2011-05-12 13:51:15 - starting HEAD tinderbox run for mips/mips TB --- 2011-05-12 13:51:15 - cleaning the object tree TB --- 2011-05-12 13:51:22 - cvsupping the source tree TB --- 2011-05-12 13:51:22 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2011-05-12 13:52:08 - building world TB --- 2011-05-12 13:52:08 - MAKEOBJDIRPREFIX=/obj TB --- 2011-05-12 13:52:08 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2011-05-12 13:52:08 - TARGET=mips TB --- 2011-05-12 13:52:08 - TARGET_ARCH=mips TB --- 2011-05-12 13:52:08 - TZ=UTC TB --- 2011-05-12 13:52:08 - __MAKE_CONF=/dev/null TB --- 2011-05-12 13:52:08 - cd /src TB --- 2011-05-12 13:52:08 - /usr/bin/make -B buildworld >>> World build started on Thu May 12 13:52:08 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 >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] 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 -o from from.o gzip -cn /src/usr.bin/from/from.1 > from.1.gz ===> usr.bin/fstat (all) 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/usr.bin/fstat/fstat.c cc1: warnings being treated as errors /src/usr.bin/fstat/fstat.c: In function 'print_vnode_info': /src/usr.bin/fstat/fstat.c:455: warning: format '%6ld' expects type 'long int', but argument 2 has type 'uint64_t' /src/usr.bin/fstat/fstat.c:464: warning: format '%6lu' expects type 'long unsigned int', but argument 2 has type 'uint64_t' *** Error code 1 Stop in /src/usr.bin/fstat. *** Error code 1 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2011-05-12 14:43:58 - WARNING: /usr/bin/make returned exit code 1 TB --- 2011-05-12 14:43:58 - ERROR: failed to build world TB --- 2011-05-12 14:43:58 - 2248.13 user 573.08 system 3162.78 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Fri May 13 01:12:34 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 3A8231065672 for ; Fri, 13 May 2011 01:12:34 +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 D4A688FC08 for ; Fri, 13 May 2011 01:12:33 +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 1QKgvc-0003cV-O0; Thu, 12 May 2011 18:12:32 -0700 Message-ID: <4DCC857C.5050903@freebsd.org> Date: Thu, 12 May 2011 18:12:28 -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: Erik Moe References: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com> <4DC9DA05.7050901@freebsd.org> <4DC9E4ED.8070203@freebsd.org> <5BF1630A-DC4C-4301-B27D-61004D238361@gmail.com> In-Reply-To: <5BF1630A-DC4C-4301-B27D-61004D238361@gmail.com> 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 10/05/2011 7:04 PM, Erik Moe wrote: > Adjusted interface admsw0 > panic: _mtx_lock_sleep: recursed on non-recursive mutex admsw1 @ /usr/ > db> bt > Tracing pid 0 tid 100000 td 0x8027cd50 > db_trace_thread+30 (?, ?, ?, ?) ra 800030b0 sp 802ad3d8 sz 24 > 80002f9c+114 (0, ?, ffffffff, ?) ra 8000266c sp 802ad3f0 sz 32 > 800022e4+388 (?, ?, ?, ?) ra 800027f0 sp 802ad410 sz 168 > db_command_loop+70 (?, ?, ?, ?) ra 80004e34 sp 802ad4b8 sz 24 > 80004d40+f4 (?, ?, ?, ?) ra 800bd9ec sp 802ad4d0 sz 424 > kdb_trap+104 (?, ?, ?, ?) ra 801cb0f0 sp 802ad678 sz 40 > trap+b98 (?, ?, ?, ?) ra 801c3140 sp 802ad6a0 sz 168 > MipsKernGenException+134 (0, a, 802abfe4, 109) ra 800bdc78 sp 802ad748 sz 200 > kdb_enter+4c (?, ?, ?, ?) ra 80086bf4 sp 802ad810 sz 24 > panic+f4 (?, 80444814, 8021fd68, 269) ra 80076f9c sp 802ad828 sz 40 > _mtx_lock_sleep+68 (?, ?, ?, ?) ra 800771e0 sp 802ad850 sz 32 > _mtx_lock_flags+104 (?, ?, ?, ?) ra 801e0840 sp 802ad870 sz 32 > 801e07ac+94 (?, ?, ?, ?) ra 801e0ea4 sp 802ad890 sz 72 > 801e0d20+184 (?, ?, ?, ?) ra 801e185c sp 802ad8d8 sz 40 > 801e1774+e8 (?, ?, ?, ?) ra 8005f47c sp 802ad900 sz 40 ... skipped ... [...] 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: 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: Fri, 13 May 2011 01:12:34 -0000 On 10/05/2011 7:04 PM, Erik Moe wrote: > Adjusted interface admsw0 > panic: _mtx_lock_sleep: recursed on non-recursive mutex admsw1 @ /usr/ > db> bt > Tracing pid 0 tid 100000 td 0x8027cd50 > db_trace_thread+30 (?,?,?,?) ra 800030b0 sp 802ad3d8 sz 24 > 80002f9c+114 (0,?,ffffffff,?) ra 8000266c sp 802ad3f0 sz 32 > 800022e4+388 (?,?,?,?) ra 800027f0 sp 802ad410 sz 168 > db_command_loop+70 (?,?,?,?) ra 80004e34 sp 802ad4b8 sz 24 > 80004d40+f4 (?,?,?,?) ra 800bd9ec sp 802ad4d0 sz 424 > kdb_trap+104 (?,?,?,?) ra 801cb0f0 sp 802ad678 sz 40 > trap+b98 (?,?,?,?) ra 801c3140 sp 802ad6a0 sz 168 > MipsKernGenException+134 (0,a,802abfe4,109) ra 800bdc78 sp 802ad748 sz 200 > kdb_enter+4c (?,?,?,?) ra 80086bf4 sp 802ad810 sz 24 > panic+f4 (?,80444814,8021fd68,269) ra 80076f9c sp 802ad828 sz 40 > _mtx_lock_sleep+68 (?,?,?,?) ra 800771e0 sp 802ad850 sz 32 > _mtx_lock_flags+104 (?,?,?,?) ra 801e0840 sp 802ad870 sz 32 > 801e07ac+94 (?,?,?,?) ra 801e0ea4 sp 802ad890 sz 72 > 801e0d20+184 (?,?,?,?) ra 801e185c sp 802ad8d8 sz 40 > 801e1774+e8 (?,?,?,?) ra 8005f47c sp 802ad900 sz 40 ... skipped ... Try this patch: http://people.freebsd.org/~gonzo/patches/admsw-hack-2.diff From owner-freebsd-mips@FreeBSD.ORG Fri May 13 02:25:11 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 2D4B8106566B; Fri, 13 May 2011 02:25:11 +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 D3C418FC0C; Fri, 13 May 2011 02:25:10 +0000 (UTC) Received: by iyj12 with SMTP id 12so2440696iyj.13 for ; Thu, 12 May 2011 19:25:10 -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:content-transfer-encoding:message-id:references :to:x-mailer; bh=jurwQhMUWPciw7QluW9G10QhufBjSMNX2iZWnrd9/F0=; b=IRi4dHXIOI+PNt0lxXeUpSPN3uDWQLd2Vv9NxX+4z98aW3G7BblZGgox1E/DtcH2O3 sS4Y84UShQT6o+ClxYhFIftlh7MaAUwqamtuIcr8ChzqyV6CENiVwTOzfSf0xUPc1poe n6Hve3NVmZfGNRxL0VPjvLQCJN70pXbrChvj4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=WwROY/Lr4ArAXa7KnsJv6/s/mq6/wzgSOue4M2jGv/x0QUTbhOjNhLxQKbr/sVZUBr gPwSCzWQNmJ9FLnx2FCVXQ+yOPyySvtjgu5aB/myMbqSBhqxzz5H4fWa98TJpldqXPGZ itMIm7idg6Mm/+YCadUw4r4IfCuyfuBC9li9w= Received: by 10.42.148.194 with SMTP id s2mr1185345icv.126.1305253510162; Thu, 12 May 2011 19:25:10 -0700 (PDT) Received: from [192.168.1.103] ([207.229.134.111]) by mx.google.com with ESMTPS id hc41sm740710ibb.47.2011.05.12.19.25.08 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 May 2011 19:25:09 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Erik Moe In-Reply-To: <4DCC857C.5050903@freebsd.org> Date: Thu, 12 May 2011 21:25:07 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <295FD17B-AED3-4468-8803-BCB78B4B06A1@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> 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: Fri, 13 May 2011 02:25:11 -0000 On May 12, 2011, at 8:12 PM, Oleksandr Tymoshenko wrote: > On 10/05/2011 7:04 PM, Erik Moe wrote: >=20 >> Adjusted interface admsw0 >> panic: _mtx_lock_sleep: recursed on non-recursive mutex admsw1 @ = /usr/ >> db> bt >> Tracing pid 0 tid 100000 td 0x8027cd50 >> db_trace_thread+30 (?,?,?,?) ra 800030b0 sp 802ad3d8 sz 24 >> 80002f9c+114 (0,?,ffffffff,?) ra 8000266c sp 802ad3f0 sz 32 >> 800022e4+388 (?,?,?,?) ra 800027f0 sp 802ad410 sz 168 >> db_command_loop+70 (?,?,?,?) ra 80004e34 sp 802ad4b8 sz 24 >> 80004d40+f4 (?,?,?,?) ra 800bd9ec sp 802ad4d0 sz 424 >> kdb_trap+104 (?,?,?,?) ra 801cb0f0 sp 802ad678 sz 40 >> trap+b98 (?,?,?,?) ra 801c3140 sp 802ad6a0 sz 168 >> MipsKernGenException+134 (0,a,802abfe4,109) ra 800bdc78 sp 802ad748 = sz 200 >> kdb_enter+4c (?,?,?,?) ra 80086bf4 sp 802ad810 sz 24 >> panic+f4 (?,80444814,8021fd68,269) ra 80076f9c sp 802ad828 sz 40 >> _mtx_lock_sleep+68 (?,?,?,?) ra 800771e0 sp 802ad850 sz 32 >> _mtx_lock_flags+104 (?,?,?,?) ra 801e0840 sp 802ad870 sz 32 >> 801e07ac+94 (?,?,?,?) ra 801e0ea4 sp 802ad890 sz 72 >> 801e0d20+184 (?,?,?,?) ra 801e185c sp 802ad8d8 sz 40 >> 801e1774+e8 (?,?,?,?) ra 8005f47c sp 802ad900 sz 40 > ... skipped ... >=20 > Try this patch: >=20 > http://people.freebsd.org/~gonzo/patches/admsw-hack-2.diff I tried the patch, here are the results... 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.51s 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 #39 r221418M: Thu May 12 12:22:30 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 panic: _mtx_lock_sleep: recursed on non-recursive mutex admsw1 @ /bt Tracing pid 0 tid 100000 td 0x802b7920 db_trace_thread+30 (?,?,?,?) ra 800030b0 sp 802e73d8 sz 24 80002f9c+114 (0,?,ffffffff,?) ra 8000266c sp 802e73f0 sz 32 800022e4+388 (?,?,?,?) ra 800027f0 sp 802e7410 sz 168 db_command_loop+70 (?,?,?,?) ra 80004e34 sp 802e74b8 sz 24 80004d40+f4 (?,?,?,?) ra 80100a6c sp 802e74d0 sz 424 kdb_trap+104 (?,?,?,?) ra 801fec20 sp 802e7678 sz 40 trap+b98 (?,?,?,?) ra 801f6c70 sp 802e76a0 sz 168 MipsKernGenException+134 (0,a,802e5fe4,109) ra 80100cf8 sp 802e7748 sz = 200 kdb_enter+4c (?,?,?,?) ra 800c9c74 sp 802e7810 sz 24 panic+f4 (?,80444814,80255128,269) ra 800ba01c sp 802e7828 sz 40 _mtx_lock_sleep+68 (?,?,?,?) ra 800ba260 sp 802e7850 sz 32 _mtx_lock_flags+104 (?,?,?,?) ra 802143b0 sp 802e7870 sz 32 802142dc+d4 (?,?,?,?) ra 80214b14 sp 802e7890 sz 72 80214990+184 (?,?,?,?) ra 802154cc sp 802e78d8 sz 40 802153e4+e8 (?,?,?,?) ra 800a24fc sp 802e7900 sz 40 intr_event_handle+98 (?,?,?,?) ra 80216450 sp 802e7928 sz 48 802163ec+64 (?,?,?,?) ra 800a24fc sp 802e7958 sz 32 intr_event_handle+98 (?,?,?,?) ra 80218264 sp 802e7978 sz 48 cpu_intr+184 (802e79f8,?,?,?) ra 801f714c sp 802e79a8 sz 56 MipsKernIntr+134 (80444900,802b7920,0,269) ra 802143fc sp 802e79e0 sz = 200 802142dc+120 (?,?,?,?) ra 8016f100 sp 802e7aa8 sz 72 if_start+14 (?,?,?,?) ra 8016fabc sp 802e7af0 sz 24 8016f968+154 (?,?,?,?) ra 80177904 sp 802e7b08 sz 40 ether_output_frame+6c (?,8044f700,?,?) ra 80177f1c sp 802e7b30 sz 24 ether_output+608 (?,8044f700,?,?) ra 801848b4 sp 802e7b48 sz 72 arprequest+1ec (?,?,?,?) ra 80185bb8 sp 802e7b90 sz 72 arp_ifinit+6c (?,?,?,?) ra 80176fb8 sp 802e7bd8 sz 32 ether_ioctl+78 (?,?,?,?) ra 80214c94 sp 802e7bf8 sz 32 80214b48+14c (?,?,?,?) ra 8018bcac sp 802e7c18 sz 32 8018b9b4+2f8 (0,?,0,?) ra 8018ce2c sp 802e7c38 sz 80 in_control+968 (?,?,?,?) ra 8017527c sp 802e7c88 sz 88 ifioctl+1350 (?,?,8049fb78,802b7920) ra 801b8730 sp 802e7ce0 sz 144 bootpc_init+162c (?,?,?,?) ra 8008247c sp 802e7d70 sz 240 mi_startup+138 (?,?,?,?) ra 80001190 sp 802e7e60 sz 32 _start+90 (?,?,?,?) ra 0 sp 802e7e80 sz 0 pid 0 From owner-freebsd-mips@FreeBSD.ORG Sat May 14 06:33:49 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 D728B106566B for ; Sat, 14 May 2011 06:33:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 96FCC8FC08 for ; Sat, 14 May 2011 06:33:49 +0000 (UTC) Received: by ywf7 with SMTP id 7so1371731ywf.13 for ; Fri, 13 May 2011 23:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=IckOaneBo29shCLNrKOV8E2JHSDGVLL3czeI2HXL7DQ=; b=FPc0ze1QA6RnwpA5Icdo+QHLTBwTI2HhZOF3ZMaKajOxAUpAP7VBd3m6weZKht8nH/ 3V/sAGcAqzH9qph24fu+S95TYFxkv9huxsVuSIClsegXYZ/AmNwqhCLafSpWUXJCM/EA o5PbGBAyNnpqiXEx7SSF1xqpQHEIj+K27LaX4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=RBJjvoklagfImNyOFDe9rBNRxj7q9iix/xRED5r/lOC3RIJTvQSMG+CqCaThG6pJRW DG8SbyPh4w3Fhqq+SecfixxziYtjdu6kGfXGIw2EwpW+1FGbVV6XPVM15Plmr7Jyg5hR S8Y10G88Z6svAfcgmFybOZoQBcPm9iDA/X4AA= MIME-Version: 1.0 Received: by 10.150.14.13 with SMTP id 13mr2096577ybn.438.1305354828813; Fri, 13 May 2011 23:33:48 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.201.4 with HTTP; Fri, 13 May 2011 23:33:48 -0700 (PDT) Date: Sat, 14 May 2011 14:33:48 +0800 X-Google-Sender-Auth: w5E5AlPppdrzenQkVQAs_Seqayw Message-ID: From: Adrian Chadd To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: request - bump if_arge TX/RX ring buffer to 1024 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: Sat, 14 May 2011 06:33:49 -0000 Hi all, I'd like to bump the if_arge ring buffer sizes from 128 to 1024. I've been trying to source/squish 11n throughput issues on the routerstation pro board and I was finding that under high UDP 11n RX load (which meant high if_arge TX load) packets would start being dropped after around 100-125mbit. Bumping the ring buffer up to 512 helped but it started dropping packets at around 180mbit. With 1024, I can sustain 200mbit UDP throughput before the 11n MAC falls over and needs to be reset. (Just for a rough estimate - 200mbit of iperf UDP here is about 18,000 pps.) Are there any issues with this? I can make it a compile time option if that would help. Thanks, Adrian