From owner-freebsd-mips@FreeBSD.ORG Sun May 10 03:01:17 2009 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 DAD2B106566C for ; Sun, 10 May 2009 03:01:17 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id AD5F28FC1D for ; Sun, 10 May 2009 03:01:17 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 49C9833EEA4; Sat, 9 May 2009 22:41:46 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Sat, 09 May 2009 22:41:46 -0400 X-Sasl-enc: JEreujyjyUlUmSzGjRULlJ5bBXr8FUVOLF26SVo1N+B0 1241923305 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 9D80B5B121; Sat, 9 May 2009 22:41:45 -0400 (EDT) Message-ID: <4A063EE8.70002@incunabulum.net> Date: Sun, 10 May 2009 03:41:44 +0100 From: Bruce Simpson User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Alexandr Rybalko References: <20090506141208.9ea79d6a.ray@dlink.ua> In-Reply-To: <20090506141208.9ea79d6a.ray@dlink.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: BCM5354 D-Link DIR-320 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, 10 May 2009 03:01:18 -0000 Alexandr Rybalko wrote: > Good day to all! > > bfe driver ported as client of siba bus, it`s worked, but work not done. > To dirty code :) > Wow. That is seriously cool. Thanks for picking that up and running with it, I only got so far. Any plans to push this code into Perforce or SVN? cheers, BMS From owner-freebsd-mips@FreeBSD.ORG Tue May 12 08:25:56 2009 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 12139106566B for ; Tue, 12 May 2009 08:25:56 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id BA9E48FC13 for ; Tue, 12 May 2009 08:25:55 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from gw ([192.168.10.10] helo=terran.mk.farlep.net) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1M3n4H-0005bn-MN; Tue, 12 May 2009 11:10:29 +0300 Date: Tue, 12 May 2009 11:25:30 +0300 From: Alexandr Rybalko To: Bruce Simpson Message-Id: <20090512112530.860d837f.ray@dlink.ua> In-Reply-To: <4A063EE8.70002@incunabulum.net> References: <20090506141208.9ea79d6a.ray@dlink.ua> <4A063EE8.70002@incunabulum.net> Organization: D-Link X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-mips@freebsd.org Subject: Re: BCM5354 D-Link DIR-320 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, 12 May 2009 08:25:56 -0000 On Sun, 10 May 2009 03:41:44 +0100 Bruce Simpson wrote: >> Alexandr Rybalko wrote: >> > Good day to all! >> > >> > bfe driver ported as client of siba bus, it`s worked, but work not done. >> > To dirty code :) >> > >> >> Wow. That is seriously cool. Thanks for picking that up and running with >> it, I only got so far. >> >> Any plans to push this code into Perforce or SVN? Currently I`m working on other drivers for BCM5354, we need some basic drivers to work. As example we need correct Flash handling, because bfe core don`t have SPROM, so we need get value of PHY address, MAC address from NVRAM. And now code very dirty, I need to clean code. :) >> >> cheers, >> BMS -- Рыбалко Александр Консультант D-Link Украина From owner-freebsd-mips@FreeBSD.ORG Tue May 12 08:54:48 2009 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 5B1121065670 for ; Tue, 12 May 2009 08:54:48 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id C68B88FC18 for ; Tue, 12 May 2009 08:54:47 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from gw ([192.168.10.10] helo=terran.mk.farlep.net) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1M3nW8-0006vs-Mu; Tue, 12 May 2009 11:39:16 +0300 Date: Tue, 12 May 2009 11:54:13 +0300 From: Alexandr Rybalko To: Oleksandr Tymoshenko Message-Id: <20090512115413.a9a94d87.ray@dlink.ua> In-Reply-To: <4A032821.1040800@freebsd.org> References: <20090506141208.9ea79d6a.ray@dlink.ua> <4A032821.1040800@freebsd.org> Organization: D-Link X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-mips@freebsd.org Subject: Re: BCM5354 D-Link DIR-320 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, 12 May 2009 08:54:48 -0000 On Thu, 07 May 2009 11:27:45 -0700 Oleksandr Tymoshenko wrote: >> Alexandr Rybalko wrote: >> > Good day to all! >> > >> > bfe driver ported as client of siba bus, it`s worked, but work not done. >> > To dirty code :) >> > >> > Question to FreeBSD MIPS guru: >> > Maybe problem in me low experience in FreeBSD internals, but I thing bus_dmamem_alloc and bus_dmamem_load >> > ignore "alignment" attribute passed to bus_dma_tag_create. >> Yes, looks like it. I just skimmed the code and will confirm/test >> it a bit later. >> >> > >> > BFE need DMA descriptors page to be aligned to 4096, but I done this alignment only with set descriptors count from 128 to >> > 512 >> >> > >> > Next question, how I can start init (without "write fault at 0x2003821"), if someone know >> > start_init: trying /sbin/init >> > trap type 3 (TLB miss (store) - kernel mode) >> > badaddr = 0x7fffefff, pc = 0x80243400, ra = 0x800bdc2c, sp = 0xc0659e00, sr = 0xff03, pid = 1, ASID = 0x2 >> > trap type 3 (TLB miss (store) - kernel mode) >> > badaddr = 0xc36f4000, pc = 0x80243060, ra = 0x80243208, sp = 0xc0659d60, sr = 0xff03, pid = 1, ASID = 0x2 >> > trap type 3 (TLB miss (store) - kernel mode) >> > badaddr = 0xc36b4000, pc = 0x80243060, ra = 0x80243208, sp = 0xc0659d60, sr = 0xff03, pid = 1, ASID = 0x2 >> > trap type 3 (TLB miss (store) - kernel mode) >> > badaddr = 0x10004000, pc = 0x802435c8, ra = 0x802432cc, sp = 0xc0659b28, sr = 0xff03, pid = 1, ASID = 0x2 >> > trap type 3 (TLB miss (store) - kernel mode) >> > badaddr = 0x7fffefe0, pc = 0x802435c8, ra = 0x802432cc, sp = 0xc0659bc8, sr = 0xff03, pid = 1, ASID = 0x2 >> > trap type 3 (TLB miss (store) - kernel mode) >> > badaddr = 0x7fffdfc4, pc = 0x802435c8, ra = 0x802432cc, sp = 0xc0659bc8, sr = 0xff03, pid = 1, ASID = 0x2 >> > trap type 25 (address error (store) - user mode) >> > badaddr = 0x2003821, pc = 0x4001b4, ra = 0, sp = 0x7fffded8, sr = 0x12, pid = 1, ASID = 0x2 >> .. skipped .. >> These faults should not happen. I think pmap internal data is messed >> in some way. So there is no simple answer, this problem requires more >> debugging >> Maybe it so, because I have wrong value in "gp" register? Every function start with: lui gp,0xfc1 But ldscript.mips, ldscript.mips.cfe say "_gp = ALIGN(16) + 0x7ff0;" badvaddr: 02003821 pc: 004001b4 Dumping 4 words starting at pc address 0x4001b8: ac510000 8c840004 1080000e 00000000 4001b0: 8f828aa4 lw v0,-30044(gp) 4001b4: 1a000011 blez s0,4001fc <__start+0x84> 4001b8: ac510000 sw s1,0(v0) 4001bc: 8c840004 lw a0,4(a0) 4001c0: 1080000e beqz a0,4001fc <__start+0x84> 4001c4: 00000000 nop -- Рыбалко Александр Консультант D-Link Украина From owner-freebsd-mips@FreeBSD.ORG Wed May 13 08:09:29 2009 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 99E051065670; Wed, 13 May 2009 08:09:29 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 47E498FC2E; Wed, 13 May 2009 08:09:28 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n4D89QUT087064; Wed, 13 May 2009 04:09:26 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.3/8.14.3) with ESMTP id n4D89Q21088931; Wed, 13 May 2009 04:09:26 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 175F37302F; Wed, 13 May 2009 04:09:25 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090513080926.175F37302F@freebsd-current.sentex.ca> Date: Wed, 13 May 2009 04:09:25 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at smtp1.sentex.ca X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 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: Wed, 13 May 2009 08:09:30 -0000 TB --- 2009-05-13 07:04:55 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-05-13 07:04:55 - starting HEAD tinderbox run for mips/mips TB --- 2009-05-13 07:04:55 - cleaning the object tree TB --- 2009-05-13 07:05:48 - cvsupping the source tree TB --- 2009-05-13 07:05:48 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/mips/mips/supfile TB --- 2009-05-13 07:05:56 - building world TB --- 2009-05-13 07:05:56 - MAKEOBJDIRPREFIX=/obj TB --- 2009-05-13 07:05:56 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-05-13 07:05:56 - TARGET=mips TB --- 2009-05-13 07:05:56 - TARGET_ARCH=mips TB --- 2009-05-13 07:05:56 - TZ=UTC TB --- 2009-05-13 07:05:56 - __MAKE_CONF=/dev/null TB --- 2009-05-13 07:05:56 - cd /src TB --- 2009-05-13 07:05:56 - /usr/bin/make -B buildworld >>> World build started on Wed May 13 07:05:59 UTC 2009 >>> 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 [...] In file included from ioctl.c:101: /obj/mips/src/tmp/usr/include/sys/ioctl_compat.h:117:1: warning: "MDMBUF" redefined In file included from /obj/mips/src/tmp/usr/include/sys/tty.h:41, from ioctl.c:9: /obj/mips/src/tmp/usr/include/sys/termios.h:148:1: warning: this is the location of the previous definition cc -O -pipe -EL -msoft-float -G0 -mno-dsp -mabicalls -I/src/usr.bin/truss -I. -std=gnu99 -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /src/usr.bin/truss/mips-fbsd.c /src/usr.bin/truss/mips-fbsd.c: In function 'mips_syscall_exit': /src/usr.bin/truss/mips-fbsd.c:341: error: too few arguments to function 'print_syscall_ret' *** Error code 1 Stop in /src/usr.bin/truss. *** 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 --- 2009-05-13 08:09:25 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-05-13 08:09:25 - ERROR: failed to build world TB --- 2009-05-13 08:09:25 - 2841.80 user 324.30 system 3870.22 real http://tinderbox.des.no/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Wed May 13 13:04:17 2009 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 1AD8C106564A; Wed, 13 May 2009 13:04:17 +0000 (UTC) (envelope-from dds@aueb.gr) Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id 88D448FC1D; Wed, 13 May 2009 13:04:16 +0000 (UTC) (envelope-from dds@aueb.gr) Received: from mx-av-04.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-04.forthnet.gr (8.14.3/8.14.3) with ESMTP id n4DCpI3t004977; Wed, 13 May 2009 15:51:18 +0300 Received: from MX-IN-05.forthnet.gr (mx-in-05.forthnet.gr [193.92.150.30]) by mx-av-04.forthnet.gr (8.14.3/8.14.3) with ESMTP id n4DCpIsV024781; Wed, 13 May 2009 15:51:18 +0300 Received: from [192.168.136.22] (adsl45-42.kln.forthnet.gr [77.49.172.42]) by MX-IN-05.forthnet.gr (8.14.3/8.14.3) with ESMTP id n4DCpH83030211; Wed, 13 May 2009 15:51:18 +0300 Authentication-Results: MX-IN-05.forthnet.gr smtp.mail=dds@aueb.gr; spf=neutral Authentication-Results: MX-IN-05.forthnet.gr header.from=dds@aueb.gr; sender-id=neutral Message-ID: <4A0AC23E.2060005@aueb.gr> Date: Wed, 13 May 2009 15:51:10 +0300 From: Diomidis Spinellis User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: FreeBSD Tinderbox References: <20090513080926.175F37302F@freebsd-current.sentex.ca> In-Reply-To: <20090513080926.175F37302F@freebsd-current.sentex.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: mips@freebsd.org, current@freebsd.org Subject: Re: [head tinderbox] failure on mips/mips 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, 13 May 2009 13:04:17 -0000 FreeBSD Tinderbox wrote: > TB --- 2009-05-13 07:04:55 - tinderbox 2.6 running on freebsd-current.sentex.ca > TB --- 2009-05-13 07:04:55 - starting HEAD tinderbox run for mips/mips > TB --- 2009-05-13 07:04:55 - cleaning the object tree > TB --- 2009-05-13 07:05:48 - cvsupping the source tree > TB --- 2009-05-13 07:05:48 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/mips/mips/supfile > TB --- 2009-05-13 07:05:56 - building world > TB --- 2009-05-13 07:05:56 - MAKEOBJDIRPREFIX=/obj > TB --- 2009-05-13 07:05:56 - PATH=/usr/bin:/usr/sbin:/bin:/sbin > TB --- 2009-05-13 07:05:56 - TARGET=mips > TB --- 2009-05-13 07:05:56 - TARGET_ARCH=mips > TB --- 2009-05-13 07:05:56 - TZ=UTC > TB --- 2009-05-13 07:05:56 - __MAKE_CONF=/dev/null > TB --- 2009-05-13 07:05:56 - cd /src > TB --- 2009-05-13 07:05:56 - /usr/bin/make -B buildworld >>>> World build started on Wed May 13 07:05:59 UTC 2009 >>>> 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 -EL -msoft-float -G0 -mno-dsp -mabicalls -I/src/usr.bin/truss -I. -std=gnu99 -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /src/usr.bin/truss/mips-fbsd.c > /src/usr.bin/truss/mips-fbsd.c: In function 'mips_syscall_exit': > /src/usr.bin/truss/mips-fbsd.c:341: error: too few arguments to function 'print_syscall_ret' > *** Error code 1 > > Stop in /src/usr.bin/truss. > *** Error code 1 > > Stop in /src/usr.bin. > *** Error code 1 > > Stop in /src. > *** Error code 1 > > Stop in /src. > *** Error code 1 Sorry, I missed syncing the code I wrote in January with the MIPS support introduced in February. I fixed it in r192040. Diomidis Spinellis